Andreas Krennmair:
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL GPGME_CONFIG LIBGPGME_CFLAGS LIBGPGME_LIBS OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --disable-largefile     omit support for large files
854   --enable-gpgme          Enable GPGME support
855   --disable-pgp           Disable PGP support
856   --disable-smime         Disable SMIME support
857   --enable-external-dotlock
858                           Force use of an external dotlock program
859   --enable-pop            Enable POP3 support
860   --enable-imap           Enable IMAP support
861   --enable-nntp              Enable NNTP support
862   --enable-debug          Enable debugging support
863   --enable-flock          Use flock() to lock files
864   --disable-fcntl         Do NOT use fcntl() to lock files
865   --enable-inodesort      Read files in maildir folders sorted by inode.
866   --disable-warnings      Turn off compiler warnings (not recommended)
867   --enable-nfs-fix        Work around an NFS with broken attributes caching
868   --enable-buffy-size     Use file size attribute instead of access time
869   --enable-mailtool       Enable Sun mailtool attachments support
870   --enable-compressed        Enable compressed folders support
871   --enable-locales-fix    The result of isprint() is unreliable
872   --enable-exact-address  Enable regeneration of email addresses
873   --enable-hcache         Enable header caching
874   --disable-iconv         Disable iconv support
875   --disable-nls           Do not use Native Language Support
876
877 Optional Packages:
878   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880   --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
881   --with-mixmaster=PATH Include Mixmaster support
882   --with-slang=DIR      Use S-Lang instead of ncurses
883   --with-curses=DIR       Where ncurses is installed
884   --with-regex            Use the GNU regex library
885   --with-homespool=FILE File in user's directory where new mail is spooled
886   --with-mailpath=DIR     Directory where spool mailboxes are located
887   --with-docdir=PATH      Specify where to put the documentation
888   --with-domain=DOMAIN    Specify your DNS domain name
889   --with-gss=PFX        Compile in GSSAPI authentication for IMAP
890   --with-ssl=PFX        Compile in SSL support for POP/IMAP
891   --with-nss=PFX        Compile in SSL support for POP/IMAP via NSS
892   --with-gnutls=PFX     Enable SSL support using gnutls
893   --with-sasl=PFX       Use Cyrus SASL library for POP/IMAP authentication
894   --with-sasl2=PFX      Use Cyrus SASL library version 2 for POP/IMAP
895                           authentication
896   --with-idn=PFX        Use GNU libidn for domain names
897   --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
898   --without-gdbm          Don't use gdbm even if it is available
899   --with-bdb=DIR        Use BerkeleyDB4 if gdbm is not available
900   --with-libiconv-prefix=DIR
901                           Search for libiconv in DIR/include and DIR/lib
902   --with-included-gettext Use the GNU gettext library included here
903   --without-wc-funcs      Do not use the system's wchar_t functions
904   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
952 # absolute.
953 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
954 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
955 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
956 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd $ac_popdir
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980
981 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
982 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986   exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.57.  Invocation command line was
995
996   $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1013
1014 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1015 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1018 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1019 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1020 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027   IFS=$as_save_IFS
1028   test -z "$as_dir" && as_dir=.
1029   echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056   for ac_arg
1057   do
1058     case $ac_arg in
1059     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061     | -silent | --silent | --silen | --sile | --sil)
1062       continue ;;
1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065     esac
1066     case $ac_pass in
1067     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068     2)
1069       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070       if test $ac_must_keep_next = true; then
1071         ac_must_keep_next=false # Got value, back to normal.
1072       else
1073         case $ac_arg in
1074           *=* | --config-cache | -C | -disable-* | --disable-* \
1075           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077           | -with-* | --with-* | -without-* | --without-* | --x)
1078             case "$ac_configure_args0 " in
1079               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080             esac
1081             ;;
1082           -* ) ac_must_keep_next=true ;;
1083         esac
1084       fi
1085       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086       # Get rid of the leading space.
1087       ac_sep=" "
1088       ;;
1089     esac
1090   done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log.  We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101   # Save into config.log some information that might help in debugging.
1102   {
1103     echo
1104
1105     cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110     echo
1111     # The following way of writing the cache mishandles newlines in values,
1112 {
1113   (set) 2>&1 |
1114     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115     *ac_space=\ *)
1116       sed -n \
1117         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119       ;;
1120     *)
1121       sed -n \
1122         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123       ;;
1124     esac;
1125 }
1126     echo
1127
1128     cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133     echo
1134     for ac_var in $ac_subst_vars
1135     do
1136       eval ac_val=$`echo $ac_var`
1137       echo "$ac_var='"'"'$ac_val'"'"'"
1138     done | sort
1139     echo
1140
1141     if test -n "$ac_subst_files"; then
1142       cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147       echo
1148       for ac_var in $ac_subst_files
1149       do
1150         eval ac_val=$`echo $ac_var`
1151         echo "$ac_var='"'"'$ac_val'"'"'"
1152       done | sort
1153       echo
1154     fi
1155
1156     if test -s confdefs.h; then
1157       cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162       echo
1163       sed "/^$/d" confdefs.h | sort
1164       echo
1165     fi
1166     test "$ac_signal" != 0 &&
1167       echo "$as_me: caught signal $ac_signal"
1168     echo "$as_me: exit $exit_status"
1169   } >&5
1170   rm -f core core.* *.core &&
1171   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172     exit $exit_status
1173      ' 0
1174 for ac_signal in 1 2 13 15; do
1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214   if test "x$prefix" != xNONE; then
1215     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216   else
1217     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218   fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221   if test -r "$ac_site_file"; then
1222     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224     sed 's/^/| /' "$ac_site_file" >&5
1225     . "$ac_site_file"
1226   fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230   # Some versions of bash will fail to source /dev/null (special
1231   # files actually), so we avoid doing that.
1232   if test -f "$cache_file"; then
1233     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235     case $cache_file in
1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
1237       *)                      . ./$cache_file;;
1238     esac
1239   fi
1240 else
1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243   >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252   eval ac_new_set=\$ac_env_${ac_var}_set
1253   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254   eval ac_new_val="\$ac_env_${ac_var}_value"
1255   case $ac_old_set,$ac_new_set in
1256     set,)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,set)
1261       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263       ac_cache_corrupted=: ;;
1264     ,);;
1265     *)
1266       if test "x$ac_old_val" != "x$ac_new_val"; then
1267         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
1271         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272 echo "$as_me:   current value: $ac_new_val" >&2;}
1273         ac_cache_corrupted=:
1274       fi;;
1275   esac
1276   # Pass precious variables to config.status.
1277   if test "$ac_new_set" = set; then
1278     case $ac_new_val in
1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281     *) ac_arg=$ac_var=$ac_new_val ;;
1282     esac
1283     case " $ac_configure_args " in
1284       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1285       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286     esac
1287   fi
1288 done
1289 if $ac_cache_corrupted; then
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321           ac_config_headers="$ac_config_headers config.h"
1322
1323
1324 mutt_cv_version=`cat $srcdir/VERSION`
1325
1326 am__api_version="1.7"
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329   if test -f $ac_dir/install-sh; then
1330     ac_aux_dir=$ac_dir
1331     ac_install_sh="$ac_aux_dir/install-sh -c"
1332     break
1333   elif test -f $ac_dir/install.sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install.sh -c"
1336     break
1337   elif test -f $ac_dir/shtool; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/shtool install -c"
1340     break
1341   fi
1342 done
1343 if test -z "$ac_aux_dir"; then
1344   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346    { (exit 1); exit 1; }; }
1347 fi
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352 # Find a good install program.  We prefer a C program (faster),
1353 # so one script is as good as another.  But avoid the broken or
1354 # incompatible versions:
1355 # SysV /etc/install, /usr/sbin/install
1356 # SunOS /usr/etc/install
1357 # IRIX /sbin/install
1358 # AIX /bin/install
1359 # AmigaOS /C/install, which installs bootblocks on floppy discs
1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1366 if test -z "$INSTALL"; then
1367 if test "${ac_cv_path_install+set}" = set; then
1368   echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1372 do
1373   IFS=$as_save_IFS
1374   test -z "$as_dir" && as_dir=.
1375   # Account for people who put trailing slashes in PATH elements.
1376 case $as_dir/ in
1377   ./ | .// | /cC/* | \
1378   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1379   /usr/ucb/* ) ;;
1380   *)
1381     # OSF1 and SCO ODT 3.0 have their own names for install.
1382     # Don't use installbsd from OSF since it installs stuff as root
1383     # by default.
1384     for ac_prog in ginstall scoinst install; do
1385       for ac_exec_ext in '' $ac_executable_extensions; do
1386         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1387           if test $ac_prog = install &&
1388             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1389             # AIX install.  It has an incompatible calling convention.
1390             :
1391           elif test $ac_prog = install &&
1392             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393             # program-specific install script used by HP pwplus--don't use.
1394             :
1395           else
1396             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1397             break 3
1398           fi
1399         fi
1400       done
1401     done
1402     ;;
1403 esac
1404 done
1405
1406
1407 fi
1408   if test "${ac_cv_path_install+set}" = set; then
1409     INSTALL=$ac_cv_path_install
1410   else
1411     # As a last resort, use the slow shell script.  We don't cache a
1412     # path for INSTALL within a source directory, because that will
1413     # break other packages using the cache if that directory is
1414     # removed, or if the path is relative.
1415     INSTALL=$ac_install_sh
1416   fi
1417 fi
1418 echo "$as_me:$LINENO: result: $INSTALL" >&5
1419 echo "${ECHO_T}$INSTALL" >&6
1420
1421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1422 # It thinks the first close brace ends the variable substitution.
1423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1424
1425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1426
1427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1428
1429 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1430 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1431 # Just in case
1432 sleep 1
1433 echo timestamp > conftest.file
1434 # Do `set' in a subshell so we don't clobber the current shell's
1435 # arguments.  Must try -L first in case configure is actually a
1436 # symlink; some systems play weird games with the mod time of symlinks
1437 # (eg FreeBSD returns the mod time of the symlink's containing
1438 # directory).
1439 if (
1440    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1441    if test "$*" = "X"; then
1442       # -L didn't work.
1443       set X `ls -t $srcdir/configure conftest.file`
1444    fi
1445    rm -f conftest.file
1446    if test "$*" != "X $srcdir/configure conftest.file" \
1447       && test "$*" != "X conftest.file $srcdir/configure"; then
1448
1449       # If neither matched, then we have a broken ls.  This can happen
1450       # if, for instance, CONFIG_SHELL is bash and it inherits a
1451       # broken ls alias from the environment.  This has actually
1452       # happened.  Such a system could not be considered "sane".
1453       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1454 alias in your environment" >&5
1455 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1456 alias in your environment" >&2;}
1457    { (exit 1); exit 1; }; }
1458    fi
1459
1460    test "$2" = conftest.file
1461    )
1462 then
1463    # Ok.
1464    :
1465 else
1466    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1467 Check your system clock" >&5
1468 echo "$as_me: error: newly created file is older than distributed files!
1469 Check your system clock" >&2;}
1470    { (exit 1); exit 1; }; }
1471 fi
1472 echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474 test "$program_prefix" != NONE &&
1475   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1476 # Use a double $ so make ignores it.
1477 test "$program_suffix" != NONE &&
1478   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1479 # Double any \ or $.  echo might interpret backslashes.
1480 # By default was `s,x,x', remove it if useless.
1481 cat <<\_ACEOF >conftest.sed
1482 s/[\\$]/&&/g;s/;s,x,x,$//
1483 _ACEOF
1484 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1485 rm conftest.sed
1486
1487
1488 # expand $ac_aux_dir to an absolute path
1489 am_aux_dir=`cd $ac_aux_dir && pwd`
1490
1491 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1492 # Use eval to expand $SHELL
1493 if eval "$MISSING --run true"; then
1494   am_missing_run="$MISSING --run "
1495 else
1496   am_missing_run=
1497   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1498 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1499 fi
1500
1501 for ac_prog in gawk mawk nawk awk
1502 do
1503   # Extract the first word of "$ac_prog", so it can be a program name with args.
1504 set dummy $ac_prog; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_AWK+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   if test -n "$AWK"; then
1511   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1512 else
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1515 do
1516   IFS=$as_save_IFS
1517   test -z "$as_dir" && as_dir=.
1518   for ac_exec_ext in '' $ac_executable_extensions; do
1519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520     ac_cv_prog_AWK="$ac_prog"
1521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522     break 2
1523   fi
1524 done
1525 done
1526
1527 fi
1528 fi
1529 AWK=$ac_cv_prog_AWK
1530 if test -n "$AWK"; then
1531   echo "$as_me:$LINENO: result: $AWK" >&5
1532 echo "${ECHO_T}$AWK" >&6
1533 else
1534   echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1536 fi
1537
1538   test -n "$AWK" && break
1539 done
1540
1541 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1542 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1543 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1544 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   cat >conftest.make <<\_ACEOF
1548 all:
1549         @echo 'ac_maketemp="$(MAKE)"'
1550 _ACEOF
1551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1552 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1553 if test -n "$ac_maketemp"; then
1554   eval ac_cv_prog_make_${ac_make}_set=yes
1555 else
1556   eval ac_cv_prog_make_${ac_make}_set=no
1557 fi
1558 rm -f conftest.make
1559 fi
1560 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1561   echo "$as_me:$LINENO: result: yes" >&5
1562 echo "${ECHO_T}yes" >&6
1563   SET_MAKE=
1564 else
1565   echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1567   SET_MAKE="MAKE=${MAKE-make}"
1568 fi
1569
1570 rm -rf .tst 2>/dev/null
1571 mkdir .tst 2>/dev/null
1572 if test -d .tst; then
1573   am__leading_dot=.
1574 else
1575   am__leading_dot=_
1576 fi
1577 rmdir .tst 2>/dev/null
1578
1579  # test to see if srcdir already configured
1580 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1581    test -f $srcdir/config.status; then
1582   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1583 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1584    { (exit 1); exit 1; }; }
1585 fi
1586
1587 # test whether we have cygpath
1588 if test -z "$CYGPATH_W"; then
1589   if (cygpath --version) >/dev/null 2>/dev/null; then
1590     CYGPATH_W='cygpath -w'
1591   else
1592     CYGPATH_W=echo
1593   fi
1594 fi
1595
1596
1597 # Define the identity of the package.
1598  PACKAGE=muttng
1599  VERSION=$mutt_cv_version
1600
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE "$PACKAGE"
1604 _ACEOF
1605
1606
1607 cat >>confdefs.h <<_ACEOF
1608 #define VERSION "$VERSION"
1609 _ACEOF
1610
1611 # Some tools Automake needs.
1612
1613 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1614
1615
1616 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1617
1618
1619 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1620
1621
1622 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1623
1624
1625 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1626
1627
1628 AMTAR=${AMTAR-"${am_missing_run}tar"}
1629
1630 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1631
1632 # Installed binaries are usually stripped using `strip' when the user
1633 # run `make install-strip'.  However `strip' might not be the right
1634 # tool to use in cross-compilation environments, therefore Automake
1635 # will honor the `STRIP' environment variable to overrule this program.
1636 if test "$cross_compiling" != no; then
1637   if test -n "$ac_tool_prefix"; then
1638   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1639 set dummy ${ac_tool_prefix}strip; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_STRIP+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$STRIP"; then
1646   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1647 else
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651   IFS=$as_save_IFS
1652   test -z "$as_dir" && as_dir=.
1653   for ac_exec_ext in '' $ac_executable_extensions; do
1654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658   fi
1659 done
1660 done
1661
1662 fi
1663 fi
1664 STRIP=$ac_cv_prog_STRIP
1665 if test -n "$STRIP"; then
1666   echo "$as_me:$LINENO: result: $STRIP" >&5
1667 echo "${ECHO_T}$STRIP" >&6
1668 else
1669   echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1671 fi
1672
1673 fi
1674 if test -z "$ac_cv_prog_STRIP"; then
1675   ac_ct_STRIP=$STRIP
1676   # Extract the first word of "strip", so it can be a program name with args.
1677 set dummy strip; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$ac_ct_STRIP"; then
1684   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691   for ac_exec_ext in '' $ac_executable_extensions; do
1692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693     ac_cv_prog_ac_ct_STRIP="strip"
1694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695     break 2
1696   fi
1697 done
1698 done
1699
1700   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1701 fi
1702 fi
1703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1704 if test -n "$ac_ct_STRIP"; then
1705   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1706 echo "${ECHO_T}$ac_ct_STRIP" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712   STRIP=$ac_ct_STRIP
1713 else
1714   STRIP="$ac_cv_prog_STRIP"
1715 fi
1716
1717 fi
1718 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1719
1720 # We need awk for the "check" target.  The system "awk" is bad on
1721 # some platforms.
1722
1723
1724
1725
1726
1727
1728 ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg"
1729
1730 # Make sure we can run config.sub.
1731 $ac_config_sub sun4 >/dev/null 2>&1 ||
1732   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1733 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1734    { (exit 1); exit 1; }; }
1735
1736 echo "$as_me:$LINENO: checking build system type" >&5
1737 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1738 if test "${ac_cv_build+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   ac_cv_build_alias=$build_alias
1742 test -z "$ac_cv_build_alias" &&
1743   ac_cv_build_alias=`$ac_config_guess`
1744 test -z "$ac_cv_build_alias" &&
1745   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1746 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1747    { (exit 1); exit 1; }; }
1748 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1749   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1750 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1751    { (exit 1); exit 1; }; }
1752
1753 fi
1754 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1755 echo "${ECHO_T}$ac_cv_build" >&6
1756 build=$ac_cv_build
1757 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1758 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1759 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1760
1761
1762 echo "$as_me:$LINENO: checking host system type" >&5
1763 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1764 if test "${ac_cv_host+set}" = set; then
1765   echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767   ac_cv_host_alias=$host_alias
1768 test -z "$ac_cv_host_alias" &&
1769   ac_cv_host_alias=$ac_cv_build_alias
1770 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1771   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1772 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1773    { (exit 1); exit 1; }; }
1774
1775 fi
1776 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1777 echo "${ECHO_T}$ac_cv_host" >&6
1778 host=$ac_cv_host
1779 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1780 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1781 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1782
1783
1784
1785 echo "$as_me:$LINENO: checking for prefix" >&5
1786 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1787 if test x$prefix = xNONE; then
1788         mutt_cv_prefix=$ac_default_prefix
1789 else
1790         mutt_cv_prefix=$prefix
1791 fi
1792 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1793 echo "${ECHO_T}$mutt_cv_prefix" >&6
1794
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800 if test -n "$ac_tool_prefix"; then
1801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   if test -n "$CC"; then
1809   ac_cv_prog_CC="$CC" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 fi
1826 fi
1827 CC=$ac_cv_prog_CC
1828 if test -n "$CC"; then
1829   echo "$as_me:$LINENO: result: $CC" >&5
1830 echo "${ECHO_T}$CC" >&6
1831 else
1832   echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1834 fi
1835
1836 fi
1837 if test -z "$ac_cv_prog_CC"; then
1838   ac_ct_CC=$CC
1839   # Extract the first word of "gcc", so it can be a program name with args.
1840 set dummy gcc; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   if test -n "$ac_ct_CC"; then
1847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852   IFS=$as_save_IFS
1853   test -z "$as_dir" && as_dir=.
1854   for ac_exec_ext in '' $ac_executable_extensions; do
1855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856     ac_cv_prog_ac_ct_CC="gcc"
1857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858     break 2
1859   fi
1860 done
1861 done
1862
1863 fi
1864 fi
1865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1866 if test -n "$ac_ct_CC"; then
1867   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1868 echo "${ECHO_T}$ac_ct_CC" >&6
1869 else
1870   echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1872 fi
1873
1874   CC=$ac_ct_CC
1875 else
1876   CC="$ac_cv_prog_CC"
1877 fi
1878
1879 if test -z "$CC"; then
1880   if test -n "$ac_tool_prefix"; then
1881   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}cc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$CC"; then
1889   ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_CC="${ac_tool_prefix}cc"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909   echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 fi
1917 if test -z "$ac_cv_prog_CC"; then
1918   ac_ct_CC=$CC
1919   # Extract the first word of "cc", so it can be a program name with args.
1920 set dummy cc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$ac_ct_CC"; then
1927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_ac_ct_CC="cc"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   CC=$ac_ct_CC
1955 else
1956   CC="$ac_cv_prog_CC"
1957 fi
1958
1959 fi
1960 if test -z "$CC"; then
1961   # Extract the first word of "cc", so it can be a program name with args.
1962 set dummy cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$CC"; then
1969   ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971   ac_prog_rejected=no
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980        ac_prog_rejected=yes
1981        continue
1982      fi
1983     ac_cv_prog_CC="cc"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989
1990 if test $ac_prog_rejected = yes; then
1991   # We found a bogon in the path, so make sure we never use it.
1992   set dummy $ac_cv_prog_CC
1993   shift
1994   if test $# != 0; then
1995     # We chose a different compiler from the bogus one.
1996     # However, it has the same basename, so the bogon will be chosen
1997     # first if we set CC to just the basename; use the full file name.
1998     shift
1999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2000   fi
2001 fi
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006   echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2008 else
2009   echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2011 fi
2012
2013 fi
2014 if test -z "$CC"; then
2015   if test -n "$ac_tool_prefix"; then
2016   for ac_prog in cl
2017   do
2018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   if test -n "$CC"; then
2026   ac_cv_prog_CC="$CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031   IFS=$as_save_IFS
2032   test -z "$as_dir" && as_dir=.
2033   for ac_exec_ext in '' $ac_executable_extensions; do
2034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037     break 2
2038   fi
2039 done
2040 done
2041
2042 fi
2043 fi
2044 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then
2046   echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2048 else
2049   echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2051 fi
2052
2053     test -n "$CC" && break
2054   done
2055 fi
2056 if test -z "$CC"; then
2057   ac_ct_CC=$CC
2058   for ac_prog in cl
2059 do
2060   # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test -n "$ac_ct_CC"; then
2068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   for ac_exec_ext in '' $ac_executable_extensions; do
2076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077     ac_cv_prog_ac_ct_CC="$ac_prog"
2078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079     break 2
2080   fi
2081 done
2082 done
2083
2084 fi
2085 fi
2086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087 if test -n "$ac_ct_CC"; then
2088   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2089 echo "${ECHO_T}$ac_ct_CC" >&6
2090 else
2091   echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2093 fi
2094
2095   test -n "$ac_ct_CC" && break
2096 done
2097
2098   CC=$ac_ct_CC
2099 fi
2100
2101 fi
2102
2103
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO:" \
2112      "checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2115   (eval $ac_compiler --version </dev/null >&5) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2120   (eval $ac_compiler -v </dev/null >&5) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2125   (eval $ac_compiler -V </dev/null >&5) 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }
2129
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line $LINENO "configure"
2132 /* confdefs.h.  */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h.  */
2137
2138 int
2139 main ()
2140 {
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2150 # of exeext.
2151 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2152 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155   (eval $ac_link_default) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; then
2159   # Find the output, starting from the most likely.  This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161 # resort.
2162
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165 ac_cv_exeext=
2166 # b.out is created by i960 compilers.
2167 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2168 do
2169   test -f "$ac_file" || continue
2170   case $ac_file in
2171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2172         ;;
2173     conftest.$ac_ext )
2174         # This is the source file.
2175         ;;
2176     [ab].out )
2177         # We found the default executable, but exeext='' is most
2178         # certainly right.
2179         break;;
2180     *.* )
2181         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182         # FIXME: I believe we export ac_cv_exeext for Libtool,
2183         # but it would be cool to find out if it's true.  Does anybody
2184         # maintain Libtool? --akim.
2185         export ac_cv_exeext
2186         break;;
2187     * )
2188         break;;
2189   esac
2190 done
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199    { (exit 77); exit 77; }; }
2200 fi
2201
2202 ac_exeext=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2205
2206 # Check the compiler produces executables we can run.  If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213   if { ac_try='./$ac_file'
2214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215   (eval $ac_try) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; }; then
2219     cross_compiling=no
2220   else
2221     if test "$cross_compiling" = maybe; then
2222         cross_compiling=yes
2223     else
2224         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230    { (exit 1); exit 1; }; }
2231     fi
2232   fi
2233 fi
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2236
2237 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238 ac_clean_files=$ac_clean_files_save
2239 # Check the compiler produces executables we can run.  If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2245
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249   (eval $ac_link) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; then
2253   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2256 # `rm'.
2257 for ac_file in conftest.exe conftest conftest.*; do
2258   test -f "$ac_file" || continue
2259   case $ac_file in
2260     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262           export ac_cv_exeext
2263           break;;
2264     * ) break;;
2265   esac
2266 done
2267 else
2268   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273 fi
2274
2275 rm -f conftest$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2278
2279 rm -f conftest.$ac_ext
2280 EXEEXT=$ac_cv_exeext
2281 ac_exeext=$EXEEXT
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285   echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287   cat >conftest.$ac_ext <<_ACEOF
2288 #line $LINENO "configure"
2289 /* confdefs.h.  */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h.  */
2294
2295 int
2296 main ()
2297 {
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 rm -f conftest.o conftest.obj
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305   (eval $ac_compile) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; then
2309   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310   case $ac_file in
2311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2312     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2313        break;;
2314   esac
2315 done
2316 else
2317   echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&2;}
2324    { (exit 1); exit 1; }; }
2325 fi
2326
2327 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2328 fi
2329 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2330 echo "${ECHO_T}$ac_cv_objext" >&6
2331 OBJEXT=$ac_cv_objext
2332 ac_objext=$OBJEXT
2333 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2334 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2335 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349 #ifndef __GNUC__
2350        choke me
2351 #endif
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); } &&
2363          { ac_try='test -s conftest.$ac_objext'
2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365   (eval $ac_try) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; }; then
2369   ac_compiler_gnu=yes
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 ac_compiler_gnu=no
2375 fi
2376 rm -f conftest.$ac_objext conftest.$ac_ext
2377 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2378
2379 fi
2380 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2381 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2382 GCC=`test $ac_compiler_gnu = yes && echo yes`
2383 ac_test_CFLAGS=${CFLAGS+set}
2384 ac_save_CFLAGS=$CFLAGS
2385 CFLAGS="-g"
2386 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2387 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2388 if test "${ac_cv_prog_cc_g+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2393 /* confdefs.h.  */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h.  */
2398
2399 int
2400 main ()
2401 {
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409   (eval $ac_compile) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); } &&
2413          { ac_try='test -s conftest.$ac_objext'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; }; then
2419   ac_cv_prog_cc_g=yes
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 ac_cv_prog_cc_g=no
2425 fi
2426 rm -f conftest.$ac_objext conftest.$ac_ext
2427 fi
2428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2430 if test "$ac_test_CFLAGS" = set; then
2431   CFLAGS=$ac_save_CFLAGS
2432 elif test $ac_cv_prog_cc_g = yes; then
2433   if test "$GCC" = yes; then
2434     CFLAGS="-g -O2"
2435   else
2436     CFLAGS="-g"
2437   fi
2438 else
2439   if test "$GCC" = yes; then
2440     CFLAGS="-O2"
2441   else
2442     CFLAGS=
2443   fi
2444 fi
2445 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2446 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2447 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   ac_cv_prog_cc_stdc=no
2451 ac_save_CC=$CC
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459 #include <stdarg.h>
2460 #include <stdio.h>
2461 #include <sys/types.h>
2462 #include <sys/stat.h>
2463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2464 struct buf { int x; };
2465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2466 static char *e (p, i)
2467      char **p;
2468      int i;
2469 {
2470   return p[i];
2471 }
2472 static char *f (char * (*g) (char **, int), char **p, ...)
2473 {
2474   char *s;
2475   va_list v;
2476   va_start (v,p);
2477   s = g (p, va_arg (v,int));
2478   va_end (v);
2479   return s;
2480 }
2481 int test (int i, double x);
2482 struct s1 {int (*f) (int a);};
2483 struct s2 {int (*f) (double a);};
2484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2485 int argc;
2486 char **argv;
2487 int
2488 main ()
2489 {
2490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 # Don't try gcc -ansi; that turns off useful extensions and
2496 # breaks some systems' header files.
2497 # AIX                   -qlanglvl=ansi
2498 # Ultrix and OSF/1      -std1
2499 # HP-UX 10.20 and later -Ae
2500 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2501 # SVR4                  -Xc -D__EXTENSIONS__
2502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2503 do
2504   CC="$ac_save_CC $ac_arg"
2505   rm -f conftest.$ac_objext
2506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507   (eval $ac_compile) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; }; then
2517   ac_cv_prog_cc_stdc=$ac_arg
2518 break
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 fi
2524 rm -f conftest.$ac_objext
2525 done
2526 rm -f conftest.$ac_ext conftest.$ac_objext
2527 CC=$ac_save_CC
2528
2529 fi
2530
2531 case "x$ac_cv_prog_cc_stdc" in
2532   x|xno)
2533     echo "$as_me:$LINENO: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2535   *)
2536     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538     CC="$CC $ac_cv_prog_cc_stdc" ;;
2539 esac
2540
2541 # Some people use a C++ compiler to compile C.  Since we use `exit',
2542 # in C++ we need to declare it.  In case someone uses the same compiler
2543 # for both compiling C and C++ we need to have the C++ compiler decide
2544 # the declaration of exit, since it's the most demanding environment.
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #ifndef __cplusplus
2547   choke me
2548 #endif
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552   (eval $ac_compile) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   for ac_declaration in \
2563    ''\
2564    '#include <stdlib.h>' \
2565    'extern "C" void std::exit (int) throw (); using std::exit;' \
2566    'extern "C" void std::exit (int); using std::exit;' \
2567    'extern "C" void exit (int) throw ();' \
2568    'extern "C" void exit (int);' \
2569    'void exit (int);'
2570 do
2571   cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578 #include <stdlib.h>
2579 $ac_declaration
2580 int
2581 main ()
2582 {
2583 exit (42);
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590   (eval $ac_compile) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 continue
2606 fi
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608   cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615 $ac_declaration
2616 int
2617 main ()
2618 {
2619 exit (42);
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   break
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641 fi
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2643 done
2644 rm -f conftest*
2645 if test -n "$ac_declaration"; then
2646   echo '#ifdef __cplusplus' >>confdefs.h
2647   echo $ac_declaration      >>confdefs.h
2648   echo '#endif'             >>confdefs.h
2649 fi
2650
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 fi
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 DEPDIR="${am__leading_dot}deps"
2663
2664           ac_config_commands="$ac_config_commands depfiles"
2665
2666
2667 am_make=${MAKE-make}
2668 cat > confinc << 'END'
2669 am__doit:
2670         @echo done
2671 .PHONY: am__doit
2672 END
2673 # If we don't find an include directive, just comment out the code.
2674 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2675 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2676 am__include="#"
2677 am__quote=
2678 _am_result=none
2679 # First try GNU make style include.
2680 echo "include confinc" > confmf
2681 # We grep out `Entering directory' and `Leaving directory'
2682 # messages which can occur if `w' ends up in MAKEFLAGS.
2683 # In particular we don't look at `^make:' because GNU make might
2684 # be invoked under some other name (usually "gmake"), in which
2685 # case it prints its new name instead of `make'.
2686 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2687    am__include=include
2688    am__quote=
2689    _am_result=GNU
2690 fi
2691 # Now try BSD make style include.
2692 if test "$am__include" = "#"; then
2693    echo '.include "confinc"' > confmf
2694    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2695       am__include=.include
2696       am__quote="\""
2697       _am_result=BSD
2698    fi
2699 fi
2700
2701
2702 echo "$as_me:$LINENO: result: $_am_result" >&5
2703 echo "${ECHO_T}$_am_result" >&6
2704 rm -f confinc confmf
2705
2706 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2707 if test "${enable_dependency_tracking+set}" = set; then
2708   enableval="$enable_dependency_tracking"
2709
2710 fi;
2711 if test "x$enable_dependency_tracking" != xno; then
2712   am_depcomp="$ac_aux_dir/depcomp"
2713   AMDEPBACKSLASH='\'
2714 fi
2715
2716
2717 if test "x$enable_dependency_tracking" != xno; then
2718   AMDEP_TRUE=
2719   AMDEP_FALSE='#'
2720 else
2721   AMDEP_TRUE='#'
2722   AMDEP_FALSE=
2723 fi
2724
2725
2726
2727
2728 depcc="$CC"   am_compiler_list=
2729
2730 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2731 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2732 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2736   # We make a subdir and do the tests there.  Otherwise we can end up
2737   # making bogus files that we don't know about and never remove.  For
2738   # instance it was reported that on HP-UX the gcc test will end up
2739   # making a dummy file named `D' -- because `-MD' means `put the output
2740   # in D'.
2741   mkdir conftest.dir
2742   # Copy depcomp to subdir because otherwise we won't find it if we're
2743   # using a relative directory.
2744   cp "$am_depcomp" conftest.dir
2745   cd conftest.dir
2746   # We will build objects and dependencies in a subdirectory because
2747   # it helps to detect inapplicable dependency modes.  For instance
2748   # both Tru64's cc and ICC support -MD to output dependencies as a
2749   # side effect of compilation, but ICC will put the dependencies in
2750   # the current directory while Tru64 will put them in the object
2751   # directory.
2752   mkdir sub
2753
2754   am_cv_CC_dependencies_compiler_type=none
2755   if test "$am_compiler_list" = ""; then
2756      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2757   fi
2758   for depmode in $am_compiler_list; do
2759     # Setup a source with many dependencies, because some compilers
2760     # like to wrap large dependency lists on column 80 (with \), and
2761     # we should not choose a depcomp mode which is confused by this.
2762     #
2763     # We need to recreate these files for each test, as the compiler may
2764     # overwrite some of them when testing with obscure command lines.
2765     # This happens at least with the AIX C compiler.
2766     : > sub/conftest.c
2767     for i in 1 2 3 4 5 6; do
2768       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2769       : > sub/conftst$i.h
2770     done
2771     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2772
2773     case $depmode in
2774     nosideeffect)
2775       # after this tag, mechanisms are not by side-effect, so they'll
2776       # only be used when explicitly requested
2777       if test "x$enable_dependency_tracking" = xyes; then
2778         continue
2779       else
2780         break
2781       fi
2782       ;;
2783     none) break ;;
2784     esac
2785     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2786     # mode.  It turns out that the SunPro C++ compiler does not properly
2787     # handle `-M -o', and we need to detect this.
2788     if depmode=$depmode \
2789        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2790        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2791        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2792          >/dev/null 2>conftest.err &&
2793        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2794        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2795        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2796       # icc doesn't choke on unknown options, it will just issue warnings
2797       # (even with -Werror).  So we grep stderr for any message
2798       # that says an option was ignored.
2799       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2800         am_cv_CC_dependencies_compiler_type=$depmode
2801         break
2802       fi
2803     fi
2804   done
2805
2806   cd ..
2807   rm -rf conftest.dir
2808 else
2809   am_cv_CC_dependencies_compiler_type=none
2810 fi
2811
2812 fi
2813 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2814 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2815 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2816
2817
2818
2819 if
2820   test "x$enable_dependency_tracking" != xno \
2821   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2822   am__fastdepCC_TRUE=
2823   am__fastdepCC_FALSE='#'
2824 else
2825   am__fastdepCC_TRUE='#'
2826   am__fastdepCC_FALSE=
2827 fi
2828
2829
2830
2831
2832         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2833 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2834 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   ac_check_lib_save_LIBS=$LIBS
2838 LIBS="-lcposix  $LIBS"
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line $LINENO "configure"
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846
2847 /* Override any gcc2 internal prototype to avoid an error.  */
2848 #ifdef __cplusplus
2849 extern "C"
2850 #endif
2851 /* We use char because int might match the return type of a gcc2
2852    builtin and then its argument prototype would still apply.  */
2853 char strerror ();
2854 int
2855 main ()
2856 {
2857 strerror ();
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864   (eval $ac_link) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -s conftest$ac_exeext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_cv_lib_cposix_strerror=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_cv_lib_cposix_strerror=no
2880 fi
2881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2882 LIBS=$ac_check_lib_save_LIBS
2883 fi
2884 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2885 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2886 if test $ac_cv_lib_cposix_strerror = yes; then
2887   LIBS="$LIBS -lcposix"
2888 fi
2889
2890
2891
2892
2893
2894
2895 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2896 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2897 if test "${am_cv_prog_cc_stdc+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   am_cv_prog_cc_stdc=no
2901 ac_save_CC="$CC"
2902 # Don't try gcc -ansi; that turns off useful extensions and
2903 # breaks some systems' header files.
2904 # AIX                   -qlanglvl=ansi
2905 # Ultrix and OSF/1      -std1
2906 # HP-UX 10.20 and later -Ae
2907 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2908 # SVR4                  -Xc -D__EXTENSIONS__
2909 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2910 do
2911   CC="$ac_save_CC $ac_arg"
2912   cat >conftest.$ac_ext <<_ACEOF
2913 #line $LINENO "configure"
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 #include <stdarg.h>
2920 #include <stdio.h>
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2927      char **p;
2928      int i;
2929 {
2930   return p[i];
2931 }
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2933 {
2934   char *s;
2935   va_list v;
2936   va_start (v,p);
2937   s = g (p, va_arg (v,int));
2938   va_end (v);
2939   return s;
2940 }
2941 int test (int i, double x);
2942 struct s1 {int (*f) (int a);};
2943 struct s2 {int (*f) (double a);};
2944 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2945 int argc;
2946 char **argv;
2947
2948 int
2949 main ()
2950 {
2951
2952 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960   (eval $ac_compile) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; }; then
2970   am_cv_prog_cc_stdc="$ac_arg"; break
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 fi
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2977 done
2978 CC="$ac_save_CC"
2979
2980 fi
2981
2982 if test -z "$am_cv_prog_cc_stdc"; then
2983   echo "$as_me:$LINENO: result: none needed" >&5
2984 echo "${ECHO_T}none needed" >&6
2985 else
2986   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2987 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2988 fi
2989 case "x$am_cv_prog_cc_stdc" in
2990   x|xno) ;;
2991   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2992 esac
2993
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3000 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3001 # On Suns, sometimes $CPP names a directory.
3002 if test -n "$CPP" && test -d "$CPP"; then
3003   CPP=
3004 fi
3005 if test -z "$CPP"; then
3006   if test "${ac_cv_prog_CPP+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009       # Double quotes because CPP needs to be expanded
3010     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3011     do
3012       ac_preproc_ok=false
3013 for ac_c_preproc_warn_flag in '' yes
3014 do
3015   # Use a header file that comes with gcc, so configuring glibc
3016   # with a fresh cross-compiler works.
3017   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018   # <limits.h> exists even on freestanding compilers.
3019   # On the NeXT, cc -E runs the code through the compiler's parser,
3020   # not just through cpp. "Syntax error" is here to catch this case.
3021   cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033                      Syntax error
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } >/dev/null; then
3043   if test -s conftest.err; then
3044     ac_cpp_err=$ac_c_preproc_warn_flag
3045   else
3046     ac_cpp_err=
3047   fi
3048 else
3049   ac_cpp_err=yes
3050 fi
3051 if test -z "$ac_cpp_err"; then
3052   :
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057   # Broken: fails on valid input.
3058 continue
3059 fi
3060 rm -f conftest.err conftest.$ac_ext
3061
3062   # OK, works on sane cases.  Now check whether non-existent headers
3063   # can be detected and how.
3064   cat >conftest.$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } >/dev/null; then
3081   if test -s conftest.err; then
3082     ac_cpp_err=$ac_c_preproc_warn_flag
3083   else
3084     ac_cpp_err=
3085   fi
3086 else
3087   ac_cpp_err=yes
3088 fi
3089 if test -z "$ac_cpp_err"; then
3090   # Broken: success on invalid input.
3091 continue
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096   # Passes both tests.
3097 ac_preproc_ok=:
3098 break
3099 fi
3100 rm -f conftest.err conftest.$ac_ext
3101
3102 done
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3106   break
3107 fi
3108
3109     done
3110     ac_cv_prog_CPP=$CPP
3111
3112 fi
3113   CPP=$ac_cv_prog_CPP
3114 else
3115   ac_cv_prog_CPP=$CPP
3116 fi
3117 echo "$as_me:$LINENO: result: $CPP" >&5
3118 echo "${ECHO_T}$CPP" >&6
3119 ac_preproc_ok=false
3120 for ac_c_preproc_warn_flag in '' yes
3121 do
3122   # Use a header file that comes with gcc, so configuring glibc
3123   # with a fresh cross-compiler works.
3124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125   # <limits.h> exists even on freestanding compilers.
3126   # On the NeXT, cc -E runs the code through the compiler's parser,
3127   # not just through cpp. "Syntax error" is here to catch this case.
3128   cat >conftest.$ac_ext <<_ACEOF
3129 #line $LINENO "configure"
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 #ifdef __STDC__
3136 # include <limits.h>
3137 #else
3138 # include <assert.h>
3139 #endif
3140                      Syntax error
3141 _ACEOF
3142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } >/dev/null; then
3150   if test -s conftest.err; then
3151     ac_cpp_err=$ac_c_preproc_warn_flag
3152   else
3153     ac_cpp_err=
3154   fi
3155 else
3156   ac_cpp_err=yes
3157 fi
3158 if test -z "$ac_cpp_err"; then
3159   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164   # Broken: fails on valid input.
3165 continue
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168
3169   # OK, works on sane cases.  Now check whether non-existent headers
3170   # can be detected and how.
3171   cat >conftest.$ac_ext <<_ACEOF
3172 #line $LINENO "configure"
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <ac_nonexistent.h>
3179 _ACEOF
3180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } >/dev/null; then
3188   if test -s conftest.err; then
3189     ac_cpp_err=$ac_c_preproc_warn_flag
3190   else
3191     ac_cpp_err=
3192   fi
3193 else
3194   ac_cpp_err=yes
3195 fi
3196 if test -z "$ac_cpp_err"; then
3197   # Broken: success on invalid input.
3198 continue
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203   # Passes both tests.
3204 ac_preproc_ok=:
3205 break
3206 fi
3207 rm -f conftest.err conftest.$ac_ext
3208
3209 done
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3213   :
3214 else
3215   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3216 See \`config.log' for more details." >&5
3217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3218 See \`config.log' for more details." >&2;}
3219    { (exit 1); exit 1; }; }
3220 fi
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228
3229 echo "$as_me:$LINENO: checking for egrep" >&5
3230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3231 if test "${ac_cv_prog_egrep+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3235     then ac_cv_prog_egrep='grep -E'
3236     else ac_cv_prog_egrep='egrep'
3237     fi
3238 fi
3239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3241  EGREP=$ac_cv_prog_egrep
3242
3243
3244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3255                   inttypes.h stdint.h unistd.h
3256 do
3257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3258 echo "$as_me:$LINENO: checking for $ac_header" >&5
3259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_includes_default
3271
3272 #include <$ac_header>
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276   (eval $ac_compile) 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } &&
3280          { ac_try='test -s conftest.$ac_objext'
3281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282   (eval $ac_try) 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }; }; then
3286   eval "$as_ac_Header=yes"
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 eval "$as_ac_Header=no"
3292 fi
3293 rm -f conftest.$ac_objext conftest.$ac_ext
3294 fi
3295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3298   cat >>confdefs.h <<_ACEOF
3299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3300 _ACEOF
3301
3302 fi
3303
3304 done
3305
3306
3307
3308
3309 echo "$as_me:$LINENO: checking for function prototypes" >&5
3310 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3311 if test "$am_cv_prog_cc_stdc" != no; then
3312   echo "$as_me:$LINENO: result: yes" >&5
3313 echo "${ECHO_T}yes" >&6
3314
3315 cat >>confdefs.h <<\_ACEOF
3316 #define PROTOTYPES 1
3317 _ACEOF
3318
3319   U= ANSI2KNR=
3320 else
3321   echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323   U=_ ANSI2KNR=./ansi2knr
3324 fi
3325 # Ensure some checks needed by ansi2knr itself.
3326 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3327 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3328 if test "${ac_cv_header_stdc+set}" = set; then
3329   echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331   cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #include <stdlib.h>
3339 #include <stdarg.h>
3340 #include <string.h>
3341 #include <float.h>
3342
3343 int
3344 main ()
3345 {
3346
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353   (eval $ac_compile) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } &&
3357          { ac_try='test -s conftest.$ac_objext'
3358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359   (eval $ac_try) 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; }; then
3363   ac_cv_header_stdc=yes
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 ac_cv_header_stdc=no
3369 fi
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3371
3372 if test $ac_cv_header_stdc = yes; then
3373   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3374   cat >conftest.$ac_ext <<_ACEOF
3375 #line $LINENO "configure"
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #include <string.h>
3382
3383 _ACEOF
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385   $EGREP "memchr" >/dev/null 2>&1; then
3386   :
3387 else
3388   ac_cv_header_stdc=no
3389 fi
3390 rm -f conftest*
3391
3392 fi
3393
3394 if test $ac_cv_header_stdc = yes; then
3395   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3396   cat >conftest.$ac_ext <<_ACEOF
3397 #line $LINENO "configure"
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #include <stdlib.h>
3404
3405 _ACEOF
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407   $EGREP "free" >/dev/null 2>&1; then
3408   :
3409 else
3410   ac_cv_header_stdc=no
3411 fi
3412 rm -f conftest*
3413
3414 fi
3415
3416 if test $ac_cv_header_stdc = yes; then
3417   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3418   if test "$cross_compiling" = yes; then
3419   :
3420 else
3421   cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h.  */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h.  */
3428 #include <ctype.h>
3429 #if ((' ' & 0x0FF) == 0x020)
3430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3432 #else
3433 # define ISLOWER(c) \
3434                    (('a' <= (c) && (c) <= 'i') \
3435                      || ('j' <= (c) && (c) <= 'r') \
3436                      || ('s' <= (c) && (c) <= 'z'))
3437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3438 #endif
3439
3440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3441 int
3442 main ()
3443 {
3444   int i;
3445   for (i = 0; i < 256; i++)
3446     if (XOR (islower (i), ISLOWER (i))
3447         || toupper (i) != TOUPPER (i))
3448       exit(2);
3449   exit (0);
3450 }
3451 _ACEOF
3452 rm -f conftest$ac_exeext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454   (eval $ac_link) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   :
3464 else
3465   echo "$as_me: program exited with status $ac_status" >&5
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ( exit $ac_status )
3470 ac_cv_header_stdc=no
3471 fi
3472 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 fi
3475 fi
3476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3478 if test $ac_cv_header_stdc = yes; then
3479
3480 cat >>confdefs.h <<\_ACEOF
3481 #define STDC_HEADERS 1
3482 _ACEOF
3483
3484 fi
3485
3486
3487 for ac_header in string.h
3488 do
3489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491   echo "$as_me:$LINENO: checking for $ac_header" >&5
3492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 fi
3496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3498 else
3499   # Is the header compilable?
3500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 $ac_includes_default
3510 #include <$ac_header>
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514   (eval $ac_compile) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -s conftest.$ac_objext'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; }; then
3524   ac_header_compiler=yes
3525 else
3526   echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 ac_header_compiler=no
3530 fi
3531 rm -f conftest.$ac_objext conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3533 echo "${ECHO_T}$ac_header_compiler" >&6
3534
3535 # Is the header present?
3536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3538 cat >conftest.$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545 #include <$ac_header>
3546 _ACEOF
3547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } >/dev/null; then
3555   if test -s conftest.err; then
3556     ac_cpp_err=$ac_c_preproc_warn_flag
3557   else
3558     ac_cpp_err=
3559   fi
3560 else
3561   ac_cpp_err=yes
3562 fi
3563 if test -z "$ac_cpp_err"; then
3564   ac_header_preproc=yes
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569   ac_header_preproc=no
3570 fi
3571 rm -f conftest.err conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3573 echo "${ECHO_T}$ac_header_preproc" >&6
3574
3575 # So?  What about this header?
3576 case $ac_header_compiler:$ac_header_preproc in
3577   yes:no )
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3582     (
3583       cat <<\_ASBOX
3584 ## ------------------------------------ ##
3585 ## Report this to bug-autoconf@gnu.org. ##
3586 ## ------------------------------------ ##
3587 _ASBOX
3588     ) |
3589       sed "s/^/$as_me: WARNING:     /" >&2
3590     ;;
3591   no:yes )
3592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3594     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3598     (
3599       cat <<\_ASBOX
3600 ## ------------------------------------ ##
3601 ## Report this to bug-autoconf@gnu.org. ##
3602 ## ------------------------------------ ##
3603 _ASBOX
3604     ) |
3605       sed "s/^/$as_me: WARNING:     /" >&2
3606     ;;
3607 esac
3608 echo "$as_me:$LINENO: checking for $ac_header" >&5
3609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   eval "$as_ac_Header=$ac_header_preproc"
3614 fi
3615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3617
3618 fi
3619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3620   cat >>confdefs.h <<_ACEOF
3621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3622 _ACEOF
3623
3624 fi
3625
3626 done
3627
3628
3629 if test "x$U" != "x"; then
3630   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3631 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3632    { (exit 1); exit 1; }; }
3633 fi
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3641 # On Suns, sometimes $CPP names a directory.
3642 if test -n "$CPP" && test -d "$CPP"; then
3643   CPP=
3644 fi
3645 if test -z "$CPP"; then
3646   if test "${ac_cv_prog_CPP+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649       # Double quotes because CPP needs to be expanded
3650     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3651     do
3652       ac_preproc_ok=false
3653 for ac_c_preproc_warn_flag in '' yes
3654 do
3655   # Use a header file that comes with gcc, so configuring glibc
3656   # with a fresh cross-compiler works.
3657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658   # <limits.h> exists even on freestanding compilers.
3659   # On the NeXT, cc -E runs the code through the compiler's parser,
3660   # not just through cpp. "Syntax error" is here to catch this case.
3661   cat >conftest.$ac_ext <<_ACEOF
3662 #line $LINENO "configure"
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #ifdef __STDC__
3669 # include <limits.h>
3670 #else
3671 # include <assert.h>
3672 #endif
3673                      Syntax error
3674 _ACEOF
3675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } >/dev/null; then
3683   if test -s conftest.err; then
3684     ac_cpp_err=$ac_c_preproc_warn_flag
3685   else
3686     ac_cpp_err=
3687   fi
3688 else
3689   ac_cpp_err=yes
3690 fi
3691 if test -z "$ac_cpp_err"; then
3692   :
3693 else
3694   echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697   # Broken: fails on valid input.
3698 continue
3699 fi
3700 rm -f conftest.err conftest.$ac_ext
3701
3702   # OK, works on sane cases.  Now check whether non-existent headers
3703   # can be detected and how.
3704   cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #include <ac_nonexistent.h>
3712 _ACEOF
3713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } >/dev/null; then
3721   if test -s conftest.err; then
3722     ac_cpp_err=$ac_c_preproc_warn_flag
3723   else
3724     ac_cpp_err=
3725   fi
3726 else
3727   ac_cpp_err=yes
3728 fi
3729 if test -z "$ac_cpp_err"; then
3730   # Broken: success on invalid input.
3731 continue
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736   # Passes both tests.
3737 ac_preproc_ok=:
3738 break
3739 fi
3740 rm -f conftest.err conftest.$ac_ext
3741
3742 done
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3746   break
3747 fi
3748
3749     done
3750     ac_cv_prog_CPP=$CPP
3751
3752 fi
3753   CPP=$ac_cv_prog_CPP
3754 else
3755   ac_cv_prog_CPP=$CPP
3756 fi
3757 echo "$as_me:$LINENO: result: $CPP" >&5
3758 echo "${ECHO_T}$CPP" >&6
3759 ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3761 do
3762   # Use a header file that comes with gcc, so configuring glibc
3763   # with a fresh cross-compiler works.
3764   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765   # <limits.h> exists even on freestanding compilers.
3766   # On the NeXT, cc -E runs the code through the compiler's parser,
3767   # not just through cpp. "Syntax error" is here to catch this case.
3768   cat >conftest.$ac_ext <<_ACEOF
3769 #line $LINENO "configure"
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780                      Syntax error
3781 _ACEOF
3782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3784   ac_status=$?
3785   grep -v '^ *+' conftest.er1 >conftest.err
3786   rm -f conftest.er1
3787   cat conftest.err >&5
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } >/dev/null; then
3790   if test -s conftest.err; then
3791     ac_cpp_err=$ac_c_preproc_warn_flag
3792   else
3793     ac_cpp_err=
3794   fi
3795 else
3796   ac_cpp_err=yes
3797 fi
3798 if test -z "$ac_cpp_err"; then
3799   :
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804   # Broken: fails on valid input.
3805 continue
3806 fi
3807 rm -f conftest.err conftest.$ac_ext
3808
3809   # OK, works on sane cases.  Now check whether non-existent headers
3810   # can be detected and how.
3811   cat >conftest.$ac_ext <<_ACEOF
3812 #line $LINENO "configure"
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818 #include <ac_nonexistent.h>
3819 _ACEOF
3820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3822   ac_status=$?
3823   grep -v '^ *+' conftest.er1 >conftest.err
3824   rm -f conftest.er1
3825   cat conftest.err >&5
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); } >/dev/null; then
3828   if test -s conftest.err; then
3829     ac_cpp_err=$ac_c_preproc_warn_flag
3830   else
3831     ac_cpp_err=
3832   fi
3833 else
3834   ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837   # Broken: success on invalid input.
3838 continue
3839 else
3840   echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843   # Passes both tests.
3844 ac_preproc_ok=:
3845 break
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 done
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3853   :
3854 else
3855   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&2;}
3859    { (exit 1); exit 1; }; }
3860 fi
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3870 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   cat >conftest.make <<\_ACEOF
3875 all:
3876         @echo 'ac_maketemp="$(MAKE)"'
3877 _ACEOF
3878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3879 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3880 if test -n "$ac_maketemp"; then
3881   eval ac_cv_prog_make_${ac_make}_set=yes
3882 else
3883   eval ac_cv_prog_make_${ac_make}_set=no
3884 fi
3885 rm -f conftest.make
3886 fi
3887 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3888   echo "$as_me:$LINENO: result: yes" >&5
3889 echo "${ECHO_T}yes" >&6
3890   SET_MAKE=
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894   SET_MAKE="MAKE=${MAKE-make}"
3895 fi
3896
3897 # Find a good install program.  We prefer a C program (faster),
3898 # so one script is as good as another.  But avoid the broken or
3899 # incompatible versions:
3900 # SysV /etc/install, /usr/sbin/install
3901 # SunOS /usr/etc/install
3902 # IRIX /sbin/install
3903 # AIX /bin/install
3904 # AmigaOS /C/install, which installs bootblocks on floppy discs
3905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3908 # ./install, which can be erroneously created by make from ./install.sh.
3909 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3910 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3911 if test -z "$INSTALL"; then
3912 if test "${ac_cv_path_install+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   # Account for people who put trailing slashes in PATH elements.
3921 case $as_dir/ in
3922   ./ | .// | /cC/* | \
3923   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3924   /usr/ucb/* ) ;;
3925   *)
3926     # OSF1 and SCO ODT 3.0 have their own names for install.
3927     # Don't use installbsd from OSF since it installs stuff as root
3928     # by default.
3929     for ac_prog in ginstall scoinst install; do
3930       for ac_exec_ext in '' $ac_executable_extensions; do
3931         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932           if test $ac_prog = install &&
3933             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934             # AIX install.  It has an incompatible calling convention.
3935             :
3936           elif test $ac_prog = install &&
3937             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938             # program-specific install script used by HP pwplus--don't use.
3939             :
3940           else
3941             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942             break 3
3943           fi
3944         fi
3945       done
3946     done
3947     ;;
3948 esac
3949 done
3950
3951
3952 fi
3953   if test "${ac_cv_path_install+set}" = set; then
3954     INSTALL=$ac_cv_path_install
3955   else
3956     # As a last resort, use the slow shell script.  We don't cache a
3957     # path for INSTALL within a source directory, because that will
3958     # break other packages using the cache if that directory is
3959     # removed, or if the path is relative.
3960     INSTALL=$ac_install_sh
3961   fi
3962 fi
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3965
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3969
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3971
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3973
3974 if test -n "$ac_tool_prefix"; then
3975   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3977 echo "$as_me:$LINENO: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_RANLIB+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   if test -n "$RANLIB"; then
3983   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990   for ac_exec_ext in '' $ac_executable_extensions; do
3991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997 done
3998
3999 fi
4000 fi
4001 RANLIB=$ac_cv_prog_RANLIB
4002 if test -n "$RANLIB"; then
4003   echo "$as_me:$LINENO: result: $RANLIB" >&5
4004 echo "${ECHO_T}$RANLIB" >&6
4005 else
4006   echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4008 fi
4009
4010 fi
4011 if test -z "$ac_cv_prog_RANLIB"; then
4012   ac_ct_RANLIB=$RANLIB
4013   # Extract the first word of "ranlib", so it can be a program name with args.
4014 set dummy ranlib; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if test -n "$ac_ct_RANLIB"; then
4021   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028   for ac_exec_ext in '' $ac_executable_extensions; do
4029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030     ac_cv_prog_ac_ct_RANLIB="ranlib"
4031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032     break 2
4033   fi
4034 done
4035 done
4036
4037   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4038 fi
4039 fi
4040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4041 if test -n "$ac_ct_RANLIB"; then
4042   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4043 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4044 else
4045   echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049   RANLIB=$ac_ct_RANLIB
4050 else
4051   RANLIB="$ac_cv_prog_RANLIB"
4052 fi
4053
4054 if test -n "$ac_tool_prefix"; then
4055   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}ar; ac_word=$2
4057 echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4059 if test "${ac_cv_prog_AR+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   if test -n "$AR"; then
4063   ac_cv_prog_AR="$AR" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070   for ac_exec_ext in '' $ac_executable_extensions; do
4071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072     ac_cv_prog_AR="${ac_tool_prefix}ar"
4073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077 done
4078
4079 fi
4080 fi
4081 AR=$ac_cv_prog_AR
4082 if test -n "$AR"; then
4083   echo "$as_me:$LINENO: result: $AR" >&5
4084 echo "${ECHO_T}$AR" >&6
4085 else
4086   echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4088 fi
4089
4090 fi
4091 if test -z "$ac_cv_prog_AR"; then
4092   ac_ct_AR=$AR
4093   # Extract the first word of "ar", so it can be a program name with args.
4094 set dummy ar; ac_word=$2
4095 echo "$as_me:$LINENO: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   if test -n "$ac_ct_AR"; then
4101   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108   for ac_exec_ext in '' $ac_executable_extensions; do
4109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110     ac_cv_prog_ac_ct_AR="ar"
4111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115 done
4116
4117   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4118 fi
4119 fi
4120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4121 if test -n "$ac_ct_AR"; then
4122   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4123 echo "${ECHO_T}$ac_ct_AR" >&6
4124 else
4125   echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4127 fi
4128
4129   AR=$ac_ct_AR
4130 else
4131   AR="$ac_cv_prog_AR"
4132 fi
4133
4134
4135 echo "$as_me:$LINENO: checking for inline" >&5
4136 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4137 if test "${ac_cv_c_inline+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   ac_cv_c_inline=no
4141 for ac_kw in inline __inline__ __inline; do
4142   cat >conftest.$ac_ext <<_ACEOF
4143 #line $LINENO "configure"
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #ifndef __cplusplus
4150 typedef int foo_t;
4151 static $ac_kw foo_t static_foo () {return 0; }
4152 $ac_kw foo_t foo () {return 0; }
4153 #endif
4154
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158   (eval $ac_compile) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } &&
4162          { ac_try='test -s conftest.$ac_objext'
4163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164   (eval $ac_try) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   ac_cv_c_inline=$ac_kw; break
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 fi
4174 rm -f conftest.$ac_objext conftest.$ac_ext
4175 done
4176
4177 fi
4178 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4179 echo "${ECHO_T}$ac_cv_c_inline" >&6
4180 case $ac_cv_c_inline in
4181   inline | yes) ;;
4182   no)
4183 cat >>confdefs.h <<\_ACEOF
4184 #define inline
4185 _ACEOF
4186  ;;
4187   *)  cat >>confdefs.h <<_ACEOF
4188 #define inline $ac_cv_c_inline
4189 _ACEOF
4190  ;;
4191 esac
4192
4193 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4194 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4195 if test "${ac_cv_c_const+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   cat >conftest.$ac_ext <<_ACEOF
4199 #line $LINENO "configure"
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205
4206 int
4207 main ()
4208 {
4209 /* FIXME: Include the comments suggested by Paul. */
4210 #ifndef __cplusplus
4211   /* Ultrix mips cc rejects this.  */
4212   typedef int charset[2];
4213   const charset x;
4214   /* SunOS 4.1.1 cc rejects this.  */
4215   char const *const *ccp;
4216   char **p;
4217   /* NEC SVR4.0.2 mips cc rejects this.  */
4218   struct point {int x, y;};
4219   static struct point const zero = {0,0};
4220   /* AIX XL C 1.02.0.0 rejects this.
4221      It does not let you subtract one const X* pointer from another in
4222      an arm of an if-expression whose if-part is not a constant
4223      expression */
4224   const char *g = "string";
4225   ccp = &g + (g ? g-g : 0);
4226   /* HPUX 7.0 cc rejects these. */
4227   ++ccp;
4228   p = (char**) ccp;
4229   ccp = (char const *const *) p;
4230   { /* SCO 3.2v4 cc rejects this.  */
4231     char *t;
4232     char const *s = 0 ? (char *) 0 : (char const *) 0;
4233
4234     *t++ = 0;
4235   }
4236   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4237     int x[] = {25, 17};
4238     const int *foo = &x[0];
4239     ++foo;
4240   }
4241   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4242     typedef const int *iptr;
4243     iptr p = 0;
4244     ++p;
4245   }
4246   { /* AIX XL C 1.02.0.0 rejects this saying
4247        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4248     struct s { int j; const int *ap[3]; };
4249     struct s *b; b->j = 5;
4250   }
4251   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4252     const int foo = 10;
4253   }
4254 #endif
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262   (eval $ac_compile) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   ac_cv_c_const=yes
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 ac_cv_c_const=no
4278 fi
4279 rm -f conftest.$ac_objext conftest.$ac_ext
4280 fi
4281 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4282 echo "${ECHO_T}$ac_cv_c_const" >&6
4283 if test $ac_cv_c_const = no; then
4284
4285 cat >>confdefs.h <<\_ACEOF
4286 #define const
4287 _ACEOF
4288
4289 fi
4290
4291
4292 # Check whether --enable-largefile or --disable-largefile was given.
4293 if test "${enable_largefile+set}" = set; then
4294   enableval="$enable_largefile"
4295
4296 fi;
4297 if test "$enable_largefile" != no; then
4298
4299   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4300 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4301 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   ac_cv_sys_largefile_CC=no
4305      if test "$GCC" != yes; then
4306        ac_save_CC=$CC
4307        while :; do
4308          # IRIX 6.2 and later do not support large files by default,
4309          # so use the C compiler's -n32 option if that helps.
4310          cat >conftest.$ac_ext <<_ACEOF
4311 #line $LINENO "configure"
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #include <sys/types.h>
4318  /* Check that off_t can represent 2**63 - 1 correctly.
4319     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4320     since some C++ compilers masquerading as C compilers
4321     incorrectly reject 9223372036854775807.  */
4322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4323   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4324                        && LARGE_OFF_T % 2147483647 == 1)
4325                       ? 1 : -1];
4326 int
4327 main ()
4328 {
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334          rm -f conftest.$ac_objext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336   (eval $ac_compile) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   break
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 fi
4352 rm -f conftest.$ac_objext
4353          CC="$CC -n32"
4354          rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356   (eval $ac_compile) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } &&
4360          { ac_try='test -s conftest.$ac_objext'
4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362   (eval $ac_try) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   ac_cv_sys_largefile_CC=' -n32'; break
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 fi
4372 rm -f conftest.$ac_objext
4373          break
4374        done
4375        CC=$ac_save_CC
4376        rm -f conftest.$ac_ext
4377     fi
4378 fi
4379 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4380 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4381   if test "$ac_cv_sys_largefile_CC" != no; then
4382     CC=$CC$ac_cv_sys_largefile_CC
4383   fi
4384
4385   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4386 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4387 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   while :; do
4391   ac_cv_sys_file_offset_bits=no
4392   cat >conftest.$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 /* confdefs.h.  */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h.  */
4399 #include <sys/types.h>
4400  /* Check that off_t can represent 2**63 - 1 correctly.
4401     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4402     since some C++ compilers masquerading as C compilers
4403     incorrectly reject 9223372036854775807.  */
4404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4405   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4406                        && LARGE_OFF_T % 2147483647 == 1)
4407                       ? 1 : -1];
4408 int
4409 main ()
4410 {
4411
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418   (eval $ac_compile) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); } &&
4422          { ac_try='test -s conftest.$ac_objext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   break
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 fi
4434 rm -f conftest.$ac_objext conftest.$ac_ext
4435   cat >conftest.$ac_ext <<_ACEOF
4436 #line $LINENO "configure"
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #define _FILE_OFFSET_BITS 64
4443 #include <sys/types.h>
4444  /* Check that off_t can represent 2**63 - 1 correctly.
4445     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4446     since some C++ compilers masquerading as C compilers
4447     incorrectly reject 9223372036854775807.  */
4448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4449   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4450                        && LARGE_OFF_T % 2147483647 == 1)
4451                       ? 1 : -1];
4452 int
4453 main ()
4454 {
4455
4456   ;
4457   return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462   (eval $ac_compile) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   ac_cv_sys_file_offset_bits=64; break
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 fi
4478 rm -f conftest.$ac_objext conftest.$ac_ext
4479   break
4480 done
4481 fi
4482 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4483 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4484 if test "$ac_cv_sys_file_offset_bits" != no; then
4485
4486 cat >>confdefs.h <<_ACEOF
4487 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4488 _ACEOF
4489
4490 fi
4491 rm -f conftest*
4492   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4493 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4494 if test "${ac_cv_sys_large_files+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   while :; do
4498   ac_cv_sys_large_files=no
4499   cat >conftest.$ac_ext <<_ACEOF
4500 #line $LINENO "configure"
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 #include <sys/types.h>
4507  /* Check that off_t can represent 2**63 - 1 correctly.
4508     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4509     since some C++ compilers masquerading as C compilers
4510     incorrectly reject 9223372036854775807.  */
4511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4512   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4513                        && LARGE_OFF_T % 2147483647 == 1)
4514                       ? 1 : -1];
4515 int
4516 main ()
4517 {
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525   (eval $ac_compile) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } &&
4529          { ac_try='test -s conftest.$ac_objext'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; }; then
4535   break
4536 else
4537   echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 fi
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4542   cat >conftest.$ac_ext <<_ACEOF
4543 #line $LINENO "configure"
4544 /* confdefs.h.  */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h.  */
4549 #define _LARGE_FILES 1
4550 #include <sys/types.h>
4551  /* Check that off_t can represent 2**63 - 1 correctly.
4552     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4553     since some C++ compilers masquerading as C compilers
4554     incorrectly reject 9223372036854775807.  */
4555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4556   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4557                        && LARGE_OFF_T % 2147483647 == 1)
4558                       ? 1 : -1];
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569   (eval $ac_compile) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } &&
4573          { ac_try='test -s conftest.$ac_objext'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579   ac_cv_sys_large_files=1; break
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 fi
4585 rm -f conftest.$ac_objext conftest.$ac_ext
4586   break
4587 done
4588 fi
4589 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4590 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4591 if test "$ac_cv_sys_large_files" != no; then
4592
4593 cat >>confdefs.h <<_ACEOF
4594 #define _LARGE_FILES $ac_cv_sys_large_files
4595 _ACEOF
4596
4597 fi
4598 rm -f conftest*
4599 fi
4600
4601
4602 # Extract the first word of "dbx", so it can be a program name with args.
4603 set dummy dbx; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_path_DBX+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   case $DBX in
4610   [\\/]* | ?:[\\/]*)
4611   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4612   ;;
4613   *)
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619   for ac_exec_ext in '' $ac_executable_extensions; do
4620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626 done
4627
4628   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4629   ;;
4630 esac
4631 fi
4632 DBX=$ac_cv_path_DBX
4633
4634 if test -n "$DBX"; then
4635   echo "$as_me:$LINENO: result: $DBX" >&5
4636 echo "${ECHO_T}$DBX" >&6
4637 else
4638   echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641
4642 # Extract the first word of "gdb", so it can be a program name with args.
4643 set dummy gdb; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_path_GDB+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   case $GDB in
4650   [\\/]* | ?:[\\/]*)
4651   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4652   ;;
4653   *)
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659   for ac_exec_ext in '' $ac_executable_extensions; do
4660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667
4668   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4669   ;;
4670 esac
4671 fi
4672 GDB=$ac_cv_path_GDB
4673
4674 if test -n "$GDB"; then
4675   echo "$as_me:$LINENO: result: $GDB" >&5
4676 echo "${ECHO_T}$GDB" >&6
4677 else
4678   echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6
4680 fi
4681
4682 # Extract the first word of "sdb", so it can be a program name with args.
4683 set dummy sdb; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_path_SDB+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   case $SDB in
4690   [\\/]* | ?:[\\/]*)
4691   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4692   ;;
4693   *)
4694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707
4708   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4709   ;;
4710 esac
4711 fi
4712 SDB=$ac_cv_path_SDB
4713
4714 if test -n "$SDB"; then
4715   echo "$as_me:$LINENO: result: $SDB" >&5
4716 echo "${ECHO_T}$SDB" >&6
4717 else
4718   echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6
4720 fi
4721
4722
4723 if test $GDB != no ; then
4724         DEBUGGER=$GDB
4725 elif test $DBX != no ; then
4726         DEBUGGER=$DBX
4727 elif test $SDB != no ; then
4728         DEBUGGER=$SDB
4729 else
4730         DEBUGGER=no
4731 fi
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 for ac_header in inttypes.h
4758 do
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761   echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 fi
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 else
4769   # Is the header compilable?
4770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line $LINENO "configure"
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 $ac_includes_default
4780 #include <$ac_header>
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_header_compiler=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_header_compiler=no
4800 fi
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4803 echo "${ECHO_T}$ac_header_compiler" >&6
4804
4805 # Is the header present?
4806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #include <$ac_header>
4816 _ACEOF
4817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } >/dev/null; then
4825   if test -s conftest.err; then
4826     ac_cpp_err=$ac_c_preproc_warn_flag
4827   else
4828     ac_cpp_err=
4829   fi
4830 else
4831   ac_cpp_err=yes
4832 fi
4833 if test -z "$ac_cpp_err"; then
4834   ac_header_preproc=yes
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839   ac_header_preproc=no
4840 fi
4841 rm -f conftest.err conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843 echo "${ECHO_T}$ac_header_preproc" >&6
4844
4845 # So?  What about this header?
4846 case $ac_header_compiler:$ac_header_preproc in
4847   yes:no )
4848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4852     (
4853       cat <<\_ASBOX
4854 ## ------------------------------------ ##
4855 ## Report this to bug-autoconf@gnu.org. ##
4856 ## ------------------------------------ ##
4857 _ASBOX
4858     ) |
4859       sed "s/^/$as_me: WARNING:     /" >&2
4860     ;;
4861   no:yes )
4862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}