1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="yafic.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE OPENSSL CRYPTO_PROGRAMS CRYPTO_MANS CPP EGREP YAFIC_DB_HEADER LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834Program names:
835  --program-prefix=PREFIX            prepend PREFIX to installed program names
836  --program-suffix=SUFFIX            append SUFFIX to installed program names
837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843  cat <<\_ACEOF
844
845Optional Features:
846  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848  --disable-dependency-tracking Speeds up one-time builds
849  --enable-dependency-tracking  Do not reject slow dependency extractors
850  --disable-crypto        disable database signing/verification
851
852Some influential environment variables:
853  CC          C compiler command
854  CFLAGS      C compiler flags
855  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
856              nonstandard directory <lib dir>
857  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
858              headers in a nonstandard directory <include dir>
859  CPP         C preprocessor
860
861Use these variables to override the choices made by `configure' or to help
862it to find libraries and programs with nonstandard names/locations.
863
864_ACEOF
865fi
866
867if test "$ac_init_help" = "recursive"; then
868  # If there are subdirs, report their specific --help.
869  ac_popdir=`pwd`
870  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871    test -d $ac_dir || continue
872    ac_builddir=.
873
874if test "$ac_dir" != .; then
875  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876  # A "../" for each directory in $ac_dir_suffix.
877  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878else
879  ac_dir_suffix= ac_top_builddir=
880fi
881
882case $srcdir in
883  .)  # No --srcdir option.  We are building in place.
884    ac_srcdir=.
885    if test -z "$ac_top_builddir"; then
886       ac_top_srcdir=.
887    else
888       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889    fi ;;
890  [\\/]* | ?:[\\/]* )  # Absolute path.
891    ac_srcdir=$srcdir$ac_dir_suffix;
892    ac_top_srcdir=$srcdir ;;
893  *) # Relative path.
894    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895    ac_top_srcdir=$ac_top_builddir$srcdir ;;
896esac
897
898# Do not use `cd foo && pwd` to compute absolute paths, because
899# the directories may not exist.
900case `pwd` in
901.) ac_abs_builddir="$ac_dir";;
902*)
903  case "$ac_dir" in
904  .) ac_abs_builddir=`pwd`;;
905  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
906  *) ac_abs_builddir=`pwd`/"$ac_dir";;
907  esac;;
908esac
909case $ac_abs_builddir in
910.) ac_abs_top_builddir=${ac_top_builddir}.;;
911*)
912  case ${ac_top_builddir}. in
913  .) ac_abs_top_builddir=$ac_abs_builddir;;
914  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
915  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916  esac;;
917esac
918case $ac_abs_builddir in
919.) ac_abs_srcdir=$ac_srcdir;;
920*)
921  case $ac_srcdir in
922  .) ac_abs_srcdir=$ac_abs_builddir;;
923  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
924  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925  esac;;
926esac
927case $ac_abs_builddir in
928.) ac_abs_top_srcdir=$ac_top_srcdir;;
929*)
930  case $ac_top_srcdir in
931  .) ac_abs_top_srcdir=$ac_abs_builddir;;
932  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
933  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
934  esac;;
935esac
936
937    cd $ac_dir
938    # Check for guested configure; otherwise get Cygnus style configure.
939    if test -f $ac_srcdir/configure.gnu; then
940      echo
941      $SHELL $ac_srcdir/configure.gnu  --help=recursive
942    elif test -f $ac_srcdir/configure; then
943      echo
944      $SHELL $ac_srcdir/configure  --help=recursive
945    elif test -f $ac_srcdir/configure.ac ||
946	   test -f $ac_srcdir/configure.in; then
947      echo
948      $ac_configure --help
949    else
950      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951    fi
952    cd $ac_popdir
953  done
954fi
955
956test -n "$ac_init_help" && exit 0
957if $ac_init_version; then
958  cat <<\_ACEOF
959
960Copyright (C) 2003 Free Software Foundation, Inc.
961This configure script is free software; the Free Software Foundation
962gives unlimited permission to copy, distribute and modify it.
963_ACEOF
964  exit 0
965fi
966exec 5>config.log
967cat >&5 <<_ACEOF
968This file contains any messages produced by compilers while
969running configure, to aid debugging if configure makes a mistake.
970
971It was created by $as_me, which was
972generated by GNU Autoconf 2.59.  Invocation command line was
973
974  $ $0 $@
975
976_ACEOF
977{
978cat <<_ASUNAME
979## --------- ##
980## Platform. ##
981## --------- ##
982
983hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984uname -m = `(uname -m) 2>/dev/null || echo unknown`
985uname -r = `(uname -r) 2>/dev/null || echo unknown`
986uname -s = `(uname -s) 2>/dev/null || echo unknown`
987uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
991
992/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
993/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
994/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
996/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
997/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
998/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
999
1000_ASUNAME
1001
1002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003for as_dir in $PATH
1004do
1005  IFS=$as_save_IFS
1006  test -z "$as_dir" && as_dir=.
1007  echo "PATH: $as_dir"
1008done
1009
1010} >&5
1011
1012cat >&5 <<_ACEOF
1013
1014
1015## ----------- ##
1016## Core tests. ##
1017## ----------- ##
1018
1019_ACEOF
1020
1021
1022# Keep a trace of the command line.
1023# Strip out --no-create and --no-recursion so they do not pile up.
1024# Strip out --silent because we don't want to record it for future runs.
1025# Also quote any args containing shell meta-characters.
1026# Make two passes to allow for proper duplicate-argument suppression.
1027ac_configure_args=
1028ac_configure_args0=
1029ac_configure_args1=
1030ac_sep=
1031ac_must_keep_next=false
1032for ac_pass in 1 2
1033do
1034  for ac_arg
1035  do
1036    case $ac_arg in
1037    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039    | -silent | --silent | --silen | --sile | --sil)
1040      continue ;;
1041    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043    esac
1044    case $ac_pass in
1045    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046    2)
1047      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048      if test $ac_must_keep_next = true; then
1049	ac_must_keep_next=false # Got value, back to normal.
1050      else
1051	case $ac_arg in
1052	  *=* | --config-cache | -C | -disable-* | --disable-* \
1053	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055	  | -with-* | --with-* | -without-* | --without-* | --x)
1056	    case "$ac_configure_args0 " in
1057	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058	    esac
1059	    ;;
1060	  -* ) ac_must_keep_next=true ;;
1061	esac
1062      fi
1063      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064      # Get rid of the leading space.
1065      ac_sep=" "
1066      ;;
1067    esac
1068  done
1069done
1070$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072
1073# When interrupted or exit'd, cleanup temporary files, and complete
1074# config.log.  We remove comments because anyway the quotes in there
1075# would cause problems or look ugly.
1076# WARNING: Be sure not to use single quotes in there, as some shells,
1077# such as our DU 5.0 friend, will then `close' the trap.
1078trap 'exit_status=$?
1079  # Save into config.log some information that might help in debugging.
1080  {
1081    echo
1082
1083    cat <<\_ASBOX
1084## ---------------- ##
1085## Cache variables. ##
1086## ---------------- ##
1087_ASBOX
1088    echo
1089    # The following way of writing the cache mishandles newlines in values,
1090{
1091  (set) 2>&1 |
1092    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093    *ac_space=\ *)
1094      sed -n \
1095	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097      ;;
1098    *)
1099      sed -n \
1100	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101      ;;
1102    esac;
1103}
1104    echo
1105
1106    cat <<\_ASBOX
1107## ----------------- ##
1108## Output variables. ##
1109## ----------------- ##
1110_ASBOX
1111    echo
1112    for ac_var in $ac_subst_vars
1113    do
1114      eval ac_val=$`echo $ac_var`
1115      echo "$ac_var='"'"'$ac_val'"'"'"
1116    done | sort
1117    echo
1118
1119    if test -n "$ac_subst_files"; then
1120      cat <<\_ASBOX
1121## ------------- ##
1122## Output files. ##
1123## ------------- ##
1124_ASBOX
1125      echo
1126      for ac_var in $ac_subst_files
1127      do
1128	eval ac_val=$`echo $ac_var`
1129	echo "$ac_var='"'"'$ac_val'"'"'"
1130      done | sort
1131      echo
1132    fi
1133
1134    if test -s confdefs.h; then
1135      cat <<\_ASBOX
1136## ----------- ##
1137## confdefs.h. ##
1138## ----------- ##
1139_ASBOX
1140      echo
1141      sed "/^$/d" confdefs.h | sort
1142      echo
1143    fi
1144    test "$ac_signal" != 0 &&
1145      echo "$as_me: caught signal $ac_signal"
1146    echo "$as_me: exit $exit_status"
1147  } >&5
1148  rm -f core *.core &&
1149  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150    exit $exit_status
1151     ' 0
1152for ac_signal in 1 2 13 15; do
1153  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154done
1155ac_signal=0
1156
1157# confdefs.h avoids OS command line length limits that DEFS can exceed.
1158rm -rf conftest* confdefs.h
1159# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160echo >confdefs.h
1161
1162# Predefined preprocessor variables.
1163
1164cat >>confdefs.h <<_ACEOF
1165#define PACKAGE_NAME "$PACKAGE_NAME"
1166_ACEOF
1167
1168
1169cat >>confdefs.h <<_ACEOF
1170#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171_ACEOF
1172
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_VERSION "$PACKAGE_VERSION"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_STRING "$PACKAGE_STRING"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186_ACEOF
1187
1188
1189# Let the site file select an alternate cache file if it wants to.
1190# Prefer explicitly selected file to automatically selected ones.
1191if test -z "$CONFIG_SITE"; then
1192  if test "x$prefix" != xNONE; then
1193    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194  else
1195    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196  fi
1197fi
1198for ac_site_file in $CONFIG_SITE; do
1199  if test -r "$ac_site_file"; then
1200    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201echo "$as_me: loading site script $ac_site_file" >&6;}
1202    sed 's/^/| /' "$ac_site_file" >&5
1203    . "$ac_site_file"
1204  fi
1205done
1206
1207if test -r "$cache_file"; then
1208  # Some versions of bash will fail to source /dev/null (special
1209  # files actually), so we avoid doing that.
1210  if test -f "$cache_file"; then
1211    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212echo "$as_me: loading cache $cache_file" >&6;}
1213    case $cache_file in
1214      [\\/]* | ?:[\\/]* ) . $cache_file;;
1215      *)                      . ./$cache_file;;
1216    esac
1217  fi
1218else
1219  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220echo "$as_me: creating cache $cache_file" >&6;}
1221  >$cache_file
1222fi
1223
1224# Check that the precious variables saved in the cache have kept the same
1225# value.
1226ac_cache_corrupted=false
1227for ac_var in `(set) 2>&1 |
1228	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230  eval ac_new_set=\$ac_env_${ac_var}_set
1231  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232  eval ac_new_val="\$ac_env_${ac_var}_value"
1233  case $ac_old_set,$ac_new_set in
1234    set,)
1235      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237      ac_cache_corrupted=: ;;
1238    ,set)
1239      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241      ac_cache_corrupted=: ;;
1242    ,);;
1243    *)
1244      if test "x$ac_old_val" != "x$ac_new_val"; then
1245	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1248echo "$as_me:   former value:  $ac_old_val" >&2;}
1249	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1250echo "$as_me:   current value: $ac_new_val" >&2;}
1251	ac_cache_corrupted=:
1252      fi;;
1253  esac
1254  # Pass precious variables to config.status.
1255  if test "$ac_new_set" = set; then
1256    case $ac_new_val in
1257    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259    *) ac_arg=$ac_var=$ac_new_val ;;
1260    esac
1261    case " $ac_configure_args " in
1262      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1263      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264    esac
1265  fi
1266done
1267if $ac_cache_corrupted; then
1268  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272   { (exit 1); exit 1; }; }
1273fi
1274
1275ac_ext=c
1276ac_cpp='$CPP $CPPFLAGS'
1277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299am__api_version="1.6"
1300ac_aux_dir=
1301for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1302  if test -f $ac_dir/install-sh; then
1303    ac_aux_dir=$ac_dir
1304    ac_install_sh="$ac_aux_dir/install-sh -c"
1305    break
1306  elif test -f $ac_dir/install.sh; then
1307    ac_aux_dir=$ac_dir
1308    ac_install_sh="$ac_aux_dir/install.sh -c"
1309    break
1310  elif test -f $ac_dir/shtool; then
1311    ac_aux_dir=$ac_dir
1312    ac_install_sh="$ac_aux_dir/shtool install -c"
1313    break
1314  fi
1315done
1316if test -z "$ac_aux_dir"; then
1317  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1318echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1319   { (exit 1); exit 1; }; }
1320fi
1321ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1322ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1323ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1324
1325# Find a good install program.  We prefer a C program (faster),
1326# so one script is as good as another.  But avoid the broken or
1327# incompatible versions:
1328# SysV /etc/install, /usr/sbin/install
1329# SunOS /usr/etc/install
1330# IRIX /sbin/install
1331# AIX /bin/install
1332# AmigaOS /C/install, which installs bootblocks on floppy discs
1333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1334# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1336# OS/2's system install, which has a completely different semantic
1337# ./install, which can be erroneously created by make from ./install.sh.
1338echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1339echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1340if test -z "$INSTALL"; then
1341if test "${ac_cv_path_install+set}" = set; then
1342  echo $ECHO_N "(cached) $ECHO_C" >&6
1343else
1344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1345for as_dir in $PATH
1346do
1347  IFS=$as_save_IFS
1348  test -z "$as_dir" && as_dir=.
1349  # Account for people who put trailing slashes in PATH elements.
1350case $as_dir/ in
1351  ./ | .// | /cC/* | \
1352  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1353  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1354  /usr/ucb/* ) ;;
1355  *)
1356    # OSF1 and SCO ODT 3.0 have their own names for install.
1357    # Don't use installbsd from OSF since it installs stuff as root
1358    # by default.
1359    for ac_prog in ginstall scoinst install; do
1360      for ac_exec_ext in '' $ac_executable_extensions; do
1361	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1362	  if test $ac_prog = install &&
1363	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364	    # AIX install.  It has an incompatible calling convention.
1365	    :
1366	  elif test $ac_prog = install &&
1367	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1368	    # program-specific install script used by HP pwplus--don't use.
1369	    :
1370	  else
1371	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1372	    break 3
1373	  fi
1374	fi
1375      done
1376    done
1377    ;;
1378esac
1379done
1380
1381
1382fi
1383  if test "${ac_cv_path_install+set}" = set; then
1384    INSTALL=$ac_cv_path_install
1385  else
1386    # As a last resort, use the slow shell script.  We don't cache a
1387    # path for INSTALL within a source directory, because that will
1388    # break other packages using the cache if that directory is
1389    # removed, or if the path is relative.
1390    INSTALL=$ac_install_sh
1391  fi
1392fi
1393echo "$as_me:$LINENO: result: $INSTALL" >&5
1394echo "${ECHO_T}$INSTALL" >&6
1395
1396# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1397# It thinks the first close brace ends the variable substitution.
1398test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1399
1400test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1401
1402test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1403
1404echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1405echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1406# Just in case
1407sleep 1
1408echo timestamp > conftest.file
1409# Do `set' in a subshell so we don't clobber the current shell's
1410# arguments.  Must try -L first in case configure is actually a
1411# symlink; some systems play weird games with the mod time of symlinks
1412# (eg FreeBSD returns the mod time of the symlink's containing
1413# directory).
1414if (
1415   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1416   if test "$*" = "X"; then
1417      # -L didn't work.
1418      set X `ls -t $srcdir/configure conftest.file`
1419   fi
1420   rm -f conftest.file
1421   if test "$*" != "X $srcdir/configure conftest.file" \
1422      && test "$*" != "X conftest.file $srcdir/configure"; then
1423
1424      # If neither matched, then we have a broken ls.  This can happen
1425      # if, for instance, CONFIG_SHELL is bash and it inherits a
1426      # broken ls alias from the environment.  This has actually
1427      # happened.  Such a system could not be considered "sane".
1428      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1429alias in your environment" >&5
1430echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1431alias in your environment" >&2;}
1432   { (exit 1); exit 1; }; }
1433   fi
1434
1435   test "$2" = conftest.file
1436   )
1437then
1438   # Ok.
1439   :
1440else
1441   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1442Check your system clock" >&5
1443echo "$as_me: error: newly created file is older than distributed files!
1444Check your system clock" >&2;}
1445   { (exit 1); exit 1; }; }
1446fi
1447echo "$as_me:$LINENO: result: yes" >&5
1448echo "${ECHO_T}yes" >&6
1449test "$program_prefix" != NONE &&
1450  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1451# Use a double $ so make ignores it.
1452test "$program_suffix" != NONE &&
1453  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1454# Double any \ or $.  echo might interpret backslashes.
1455# By default was `s,x,x', remove it if useless.
1456cat <<\_ACEOF >conftest.sed
1457s/[\\$]/&&/g;s/;s,x,x,$//
1458_ACEOF
1459program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1460rm conftest.sed
1461
1462
1463# expand $ac_aux_dir to an absolute path
1464am_aux_dir=`cd $ac_aux_dir && pwd`
1465
1466test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1467# Use eval to expand $SHELL
1468if eval "$MISSING --run true"; then
1469  am_missing_run="$MISSING --run "
1470else
1471  am_missing_run=
1472  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1473echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1474fi
1475
1476for ac_prog in gawk mawk nawk awk
1477do
1478  # Extract the first word of "$ac_prog", so it can be a program name with args.
1479set dummy $ac_prog; ac_word=$2
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_AWK+set}" = set; then
1483  echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485  if test -n "$AWK"; then
1486  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1487else
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491  IFS=$as_save_IFS
1492  test -z "$as_dir" && as_dir=.
1493  for ac_exec_ext in '' $ac_executable_extensions; do
1494  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495    ac_cv_prog_AWK="$ac_prog"
1496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497    break 2
1498  fi
1499done
1500done
1501
1502fi
1503fi
1504AWK=$ac_cv_prog_AWK
1505if test -n "$AWK"; then
1506  echo "$as_me:$LINENO: result: $AWK" >&5
1507echo "${ECHO_T}$AWK" >&6
1508else
1509  echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513  test -n "$AWK" && break
1514done
1515
1516echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1517echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1518set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1519if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1520  echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522  cat >conftest.make <<\_ACEOF
1523all:
1524	@echo 'ac_maketemp="$(MAKE)"'
1525_ACEOF
1526# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1527eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1528if test -n "$ac_maketemp"; then
1529  eval ac_cv_prog_make_${ac_make}_set=yes
1530else
1531  eval ac_cv_prog_make_${ac_make}_set=no
1532fi
1533rm -f conftest.make
1534fi
1535if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1536  echo "$as_me:$LINENO: result: yes" >&5
1537echo "${ECHO_T}yes" >&6
1538  SET_MAKE=
1539else
1540  echo "$as_me:$LINENO: result: no" >&5
1541echo "${ECHO_T}no" >&6
1542  SET_MAKE="MAKE=${MAKE-make}"
1543fi
1544
1545 # test to see if srcdir already configured
1546if test "`cd $srcdir && pwd`" != "`pwd`" &&
1547   test -f $srcdir/config.status; then
1548  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1549echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1550   { (exit 1); exit 1; }; }
1551fi
1552
1553# Define the identity of the package.
1554 PACKAGE=yafic
1555 VERSION=1.2.2
1556
1557
1558cat >>confdefs.h <<_ACEOF
1559#define PACKAGE "$PACKAGE"
1560_ACEOF
1561
1562
1563cat >>confdefs.h <<_ACEOF
1564#define VERSION "$VERSION"
1565_ACEOF
1566
1567# Some tools Automake needs.
1568
1569ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1570
1571
1572AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1573
1574
1575AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1576
1577
1578AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1579
1580
1581MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1582
1583
1584AMTAR=${AMTAR-"${am_missing_run}tar"}
1585
1586install_sh=${install_sh-"$am_aux_dir/install-sh"}
1587
1588# Installed binaries are usually stripped using `strip' when the user
1589# run `make install-strip'.  However `strip' might not be the right
1590# tool to use in cross-compilation environments, therefore Automake
1591# will honor the `STRIP' environment variable to overrule this program.
1592if test "$cross_compiling" != no; then
1593  if test -n "$ac_tool_prefix"; then
1594  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1595set dummy ${ac_tool_prefix}strip; ac_word=$2
1596echo "$as_me:$LINENO: checking for $ac_word" >&5
1597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598if test "${ac_cv_prog_STRIP+set}" = set; then
1599  echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601  if test -n "$STRIP"; then
1602  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1603else
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607  IFS=$as_save_IFS
1608  test -z "$as_dir" && as_dir=.
1609  for ac_exec_ext in '' $ac_executable_extensions; do
1610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613    break 2
1614  fi
1615done
1616done
1617
1618fi
1619fi
1620STRIP=$ac_cv_prog_STRIP
1621if test -n "$STRIP"; then
1622  echo "$as_me:$LINENO: result: $STRIP" >&5
1623echo "${ECHO_T}$STRIP" >&6
1624else
1625  echo "$as_me:$LINENO: result: no" >&5
1626echo "${ECHO_T}no" >&6
1627fi
1628
1629fi
1630if test -z "$ac_cv_prog_STRIP"; then
1631  ac_ct_STRIP=$STRIP
1632  # Extract the first word of "strip", so it can be a program name with args.
1633set dummy strip; ac_word=$2
1634echo "$as_me:$LINENO: checking for $ac_word" >&5
1635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1637  echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639  if test -n "$ac_ct_STRIP"; then
1640  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1641else
1642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645  IFS=$as_save_IFS
1646  test -z "$as_dir" && as_dir=.
1647  for ac_exec_ext in '' $ac_executable_extensions; do
1648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649    ac_cv_prog_ac_ct_STRIP="strip"
1650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651    break 2
1652  fi
1653done
1654done
1655
1656  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1657fi
1658fi
1659ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1660if test -n "$ac_ct_STRIP"; then
1661  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1662echo "${ECHO_T}$ac_ct_STRIP" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  STRIP=$ac_ct_STRIP
1669else
1670  STRIP="$ac_cv_prog_STRIP"
1671fi
1672
1673fi
1674INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1675
1676# We need awk for the "check" target.  The system "awk" is bad on
1677# some platforms.
1678
1679
1680
1681# Add the stamp file to the list of files AC keeps track of,
1682# along with our hook.
1683          ac_config_headers="$ac_config_headers config.h"
1684
1685
1686
1687
1688ac_ext=c
1689ac_cpp='$CPP $CPPFLAGS'
1690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692ac_compiler_gnu=$ac_cv_c_compiler_gnu
1693if test -n "$ac_tool_prefix"; then
1694  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1695set dummy ${ac_tool_prefix}gcc; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_CC+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  if test -n "$CC"; then
1702  ac_cv_prog_CC="$CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  for ac_exec_ext in '' $ac_executable_extensions; do
1710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713    break 2
1714  fi
1715done
1716done
1717
1718fi
1719fi
1720CC=$ac_cv_prog_CC
1721if test -n "$CC"; then
1722  echo "$as_me:$LINENO: result: $CC" >&5
1723echo "${ECHO_T}$CC" >&6
1724else
1725  echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729fi
1730if test -z "$ac_cv_prog_CC"; then
1731  ac_ct_CC=$CC
1732  # Extract the first word of "gcc", so it can be a program name with args.
1733set dummy gcc; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737  echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739  if test -n "$ac_ct_CC"; then
1740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745  IFS=$as_save_IFS
1746  test -z "$as_dir" && as_dir=.
1747  for ac_exec_ext in '' $ac_executable_extensions; do
1748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749    ac_cv_prog_ac_ct_CC="gcc"
1750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751    break 2
1752  fi
1753done
1754done
1755
1756fi
1757fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then
1760  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6
1762else
1763  echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767  CC=$ac_ct_CC
1768else
1769  CC="$ac_cv_prog_CC"
1770fi
1771
1772if test -z "$CC"; then
1773  if test -n "$ac_tool_prefix"; then
1774  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1775set dummy ${ac_tool_prefix}cc; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_CC+set}" = set; then
1779  echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781  if test -n "$CC"; then
1782  ac_cv_prog_CC="$CC" # Let the user override the test.
1783else
1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785for as_dir in $PATH
1786do
1787  IFS=$as_save_IFS
1788  test -z "$as_dir" && as_dir=.
1789  for ac_exec_ext in '' $ac_executable_extensions; do
1790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791    ac_cv_prog_CC="${ac_tool_prefix}cc"
1792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793    break 2
1794  fi
1795done
1796done
1797
1798fi
1799fi
1800CC=$ac_cv_prog_CC
1801if test -n "$CC"; then
1802  echo "$as_me:$LINENO: result: $CC" >&5
1803echo "${ECHO_T}$CC" >&6
1804else
1805  echo "$as_me:$LINENO: result: no" >&5
1806echo "${ECHO_T}no" >&6
1807fi
1808
1809fi
1810if test -z "$ac_cv_prog_CC"; then
1811  ac_ct_CC=$CC
1812  # Extract the first word of "cc", so it can be a program name with args.
1813set dummy cc; ac_word=$2
1814echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1817  echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819  if test -n "$ac_ct_CC"; then
1820  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1821else
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  test -z "$as_dir" && as_dir=.
1827  for ac_exec_ext in '' $ac_executable_extensions; do
1828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829    ac_cv_prog_ac_ct_CC="cc"
1830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831    break 2
1832  fi
1833done
1834done
1835
1836fi
1837fi
1838ac_ct_CC=$ac_cv_prog_ac_ct_CC
1839if test -n "$ac_ct_CC"; then
1840  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1841echo "${ECHO_T}$ac_ct_CC" >&6
1842else
1843  echo "$as_me:$LINENO: result: no" >&5
1844echo "${ECHO_T}no" >&6
1845fi
1846
1847  CC=$ac_ct_CC
1848else
1849  CC="$ac_cv_prog_CC"
1850fi
1851
1852fi
1853if test -z "$CC"; then
1854  # Extract the first word of "cc", so it can be a program name with args.
1855set dummy cc; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_CC+set}" = set; then
1859  echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861  if test -n "$CC"; then
1862  ac_cv_prog_CC="$CC" # Let the user override the test.
1863else
1864  ac_prog_rejected=no
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868  IFS=$as_save_IFS
1869  test -z "$as_dir" && as_dir=.
1870  for ac_exec_ext in '' $ac_executable_extensions; do
1871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1873       ac_prog_rejected=yes
1874       continue
1875     fi
1876    ac_cv_prog_CC="cc"
1877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878    break 2
1879  fi
1880done
1881done
1882
1883if test $ac_prog_rejected = yes; then
1884  # We found a bogon in the path, so make sure we never use it.
1885  set dummy $ac_cv_prog_CC
1886  shift
1887  if test $# != 0; then
1888    # We chose a different compiler from the bogus one.
1889    # However, it has the same basename, so the bogon will be chosen
1890    # first if we set CC to just the basename; use the full file name.
1891    shift
1892    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1893  fi
1894fi
1895fi
1896fi
1897CC=$ac_cv_prog_CC
1898if test -n "$CC"; then
1899  echo "$as_me:$LINENO: result: $CC" >&5
1900echo "${ECHO_T}$CC" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906fi
1907if test -z "$CC"; then
1908  if test -n "$ac_tool_prefix"; then
1909  for ac_prog in cl
1910  do
1911    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1913echo "$as_me:$LINENO: checking for $ac_word" >&5
1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915if test "${ac_cv_prog_CC+set}" = set; then
1916  echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918  if test -n "$CC"; then
1919  ac_cv_prog_CC="$CC" # Let the user override the test.
1920else
1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922for as_dir in $PATH
1923do
1924  IFS=$as_save_IFS
1925  test -z "$as_dir" && as_dir=.
1926  for ac_exec_ext in '' $ac_executable_extensions; do
1927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930    break 2
1931  fi
1932done
1933done
1934
1935fi
1936fi
1937CC=$ac_cv_prog_CC
1938if test -n "$CC"; then
1939  echo "$as_me:$LINENO: result: $CC" >&5
1940echo "${ECHO_T}$CC" >&6
1941else
1942  echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6
1944fi
1945
1946    test -n "$CC" && break
1947  done
1948fi
1949if test -z "$CC"; then
1950  ac_ct_CC=$CC
1951  for ac_prog in cl
1952do
1953  # Extract the first word of "$ac_prog", so it can be a program name with args.
1954set dummy $ac_prog; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958  echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960  if test -n "$ac_ct_CC"; then
1961  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962else
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966  IFS=$as_save_IFS
1967  test -z "$as_dir" && as_dir=.
1968  for ac_exec_ext in '' $ac_executable_extensions; do
1969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970    ac_cv_prog_ac_ct_CC="$ac_prog"
1971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972    break 2
1973  fi
1974done
1975done
1976
1977fi
1978fi
1979ac_ct_CC=$ac_cv_prog_ac_ct_CC
1980if test -n "$ac_ct_CC"; then
1981  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1982echo "${ECHO_T}$ac_ct_CC" >&6
1983else
1984  echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6
1986fi
1987
1988  test -n "$ac_ct_CC" && break
1989done
1990
1991  CC=$ac_ct_CC
1992fi
1993
1994fi
1995
1996
1997test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1998See \`config.log' for more details." >&5
1999echo "$as_me: error: no acceptable C compiler found in \$PATH
2000See \`config.log' for more details." >&2;}
2001   { (exit 1); exit 1; }; }
2002
2003# Provide some information about the compiler.
2004echo "$as_me:$LINENO:" \
2005     "checking for C compiler version" >&5
2006ac_compiler=`set X $ac_compile; echo $2`
2007{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2008  (eval $ac_compiler --version </dev/null >&5) 2>&5
2009  ac_status=$?
2010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011  (exit $ac_status); }
2012{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2013  (eval $ac_compiler -v </dev/null >&5) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }
2017{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2018  (eval $ac_compiler -V </dev/null >&5) 2>&5
2019  ac_status=$?
2020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021  (exit $ac_status); }
2022
2023cat >conftest.$ac_ext <<_ACEOF
2024/* confdefs.h.  */
2025_ACEOF
2026cat confdefs.h >>conftest.$ac_ext
2027cat >>conftest.$ac_ext <<_ACEOF
2028/* end confdefs.h.  */
2029
2030int
2031main ()
2032{
2033
2034  ;
2035  return 0;
2036}
2037_ACEOF
2038ac_clean_files_save=$ac_clean_files
2039ac_clean_files="$ac_clean_files a.out a.exe b.out"
2040# Try to create an executable without -o first, disregard a.out.
2041# It will help us diagnose broken compilers, and finding out an intuition
2042# of exeext.
2043echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2044echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2045ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2046if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2047  (eval $ac_link_default) 2>&5
2048  ac_status=$?
2049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050  (exit $ac_status); }; then
2051  # Find the output, starting from the most likely.  This scheme is
2052# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2053# resort.
2054
2055# Be careful to initialize this variable, since it used to be cached.
2056# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2057ac_cv_exeext=
2058# b.out is created by i960 compilers.
2059for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2060do
2061  test -f "$ac_file" || continue
2062  case $ac_file in
2063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2064	;;
2065    conftest.$ac_ext )
2066	# This is the source file.
2067	;;
2068    [ab].out )
2069	# We found the default executable, but exeext='' is most
2070	# certainly right.
2071	break;;
2072    *.* )
2073	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074	# FIXME: I believe we export ac_cv_exeext for Libtool,
2075	# but it would be cool to find out if it's true.  Does anybody
2076	# maintain Libtool? --akim.
2077	export ac_cv_exeext
2078	break;;
2079    * )
2080	break;;
2081  esac
2082done
2083else
2084  echo "$as_me: failed program was:" >&5
2085sed 's/^/| /' conftest.$ac_ext >&5
2086
2087{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2088See \`config.log' for more details." >&5
2089echo "$as_me: error: C compiler cannot create executables
2090See \`config.log' for more details." >&2;}
2091   { (exit 77); exit 77; }; }
2092fi
2093
2094ac_exeext=$ac_cv_exeext
2095echo "$as_me:$LINENO: result: $ac_file" >&5
2096echo "${ECHO_T}$ac_file" >&6
2097
2098# Check the compiler produces executables we can run.  If not, either
2099# the compiler is broken, or we cross compile.
2100echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2101echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2102# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2103# If not cross compiling, check that we can run a simple program.
2104if test "$cross_compiling" != yes; then
2105  if { ac_try='./$ac_file'
2106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107  (eval $ac_try) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; }; then
2111    cross_compiling=no
2112  else
2113    if test "$cross_compiling" = maybe; then
2114	cross_compiling=yes
2115    else
2116	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2117If you meant to cross compile, use \`--host'.
2118See \`config.log' for more details." >&5
2119echo "$as_me: error: cannot run C compiled programs.
2120If you meant to cross compile, use \`--host'.
2121See \`config.log' for more details." >&2;}
2122   { (exit 1); exit 1; }; }
2123    fi
2124  fi
2125fi
2126echo "$as_me:$LINENO: result: yes" >&5
2127echo "${ECHO_T}yes" >&6
2128
2129rm -f a.out a.exe conftest$ac_cv_exeext b.out
2130ac_clean_files=$ac_clean_files_save
2131# Check the compiler produces executables we can run.  If not, either
2132# the compiler is broken, or we cross compile.
2133echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2134echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2135echo "$as_me:$LINENO: result: $cross_compiling" >&5
2136echo "${ECHO_T}$cross_compiling" >&6
2137
2138echo "$as_me:$LINENO: checking for suffix of executables" >&5
2139echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2141  (eval $ac_link) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }; then
2145  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2146# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2147# work properly (i.e., refer to `conftest.exe'), while it won't with
2148# `rm'.
2149for ac_file in conftest.exe conftest conftest.*; do
2150  test -f "$ac_file" || continue
2151  case $ac_file in
2152    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2153    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2154	  export ac_cv_exeext
2155	  break;;
2156    * ) break;;
2157  esac
2158done
2159else
2160  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2161See \`config.log' for more details." >&5
2162echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2163See \`config.log' for more details." >&2;}
2164   { (exit 1); exit 1; }; }
2165fi
2166
2167rm -f conftest$ac_cv_exeext
2168echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2169echo "${ECHO_T}$ac_cv_exeext" >&6
2170
2171rm -f conftest.$ac_ext
2172EXEEXT=$ac_cv_exeext
2173ac_exeext=$EXEEXT
2174echo "$as_me:$LINENO: checking for suffix of object files" >&5
2175echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2176if test "${ac_cv_objext+set}" = set; then
2177  echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179  cat >conftest.$ac_ext <<_ACEOF
2180/* confdefs.h.  */
2181_ACEOF
2182cat confdefs.h >>conftest.$ac_ext
2183cat >>conftest.$ac_ext <<_ACEOF
2184/* end confdefs.h.  */
2185
2186int
2187main ()
2188{
2189
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194rm -f conftest.o conftest.obj
2195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196  (eval $ac_compile) 2>&5
2197  ac_status=$?
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); }; then
2200  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2201  case $ac_file in
2202    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2203    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2204       break;;
2205  esac
2206done
2207else
2208  echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5
2210
2211{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2212See \`config.log' for more details." >&5
2213echo "$as_me: error: cannot compute suffix of object files: cannot compile
2214See \`config.log' for more details." >&2;}
2215   { (exit 1); exit 1; }; }
2216fi
2217
2218rm -f conftest.$ac_cv_objext conftest.$ac_ext
2219fi
2220echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2221echo "${ECHO_T}$ac_cv_objext" >&6
2222OBJEXT=$ac_cv_objext
2223ac_objext=$OBJEXT
2224echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2225echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2226if test "${ac_cv_c_compiler_gnu+set}" = set; then
2227  echo $ECHO_N "(cached) $ECHO_C" >&6
2228else
2229  cat >conftest.$ac_ext <<_ACEOF
2230/* confdefs.h.  */
2231_ACEOF
2232cat confdefs.h >>conftest.$ac_ext
2233cat >>conftest.$ac_ext <<_ACEOF
2234/* end confdefs.h.  */
2235
2236int
2237main ()
2238{
2239#ifndef __GNUC__
2240       choke me
2241#endif
2242
2243  ;
2244  return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249  (eval $ac_compile) 2>conftest.er1
2250  ac_status=$?
2251  grep -v '^ *+' conftest.er1 >conftest.err
2252  rm -f conftest.er1
2253  cat conftest.err >&5
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); } &&
2256	 { ac_try='test -z "$ac_c_werror_flag"
2257			 || test ! -s conftest.err'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; } &&
2263	 { ac_try='test -s conftest.$ac_objext'
2264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265  (eval $ac_try) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); }; }; then
2269  ac_compiler_gnu=yes
2270else
2271  echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274ac_compiler_gnu=no
2275fi
2276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277ac_cv_c_compiler_gnu=$ac_compiler_gnu
2278
2279fi
2280echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2281echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2282GCC=`test $ac_compiler_gnu = yes && echo yes`
2283ac_test_CFLAGS=${CFLAGS+set}
2284ac_save_CFLAGS=$CFLAGS
2285CFLAGS="-g"
2286echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2287echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2288if test "${ac_cv_prog_cc_g+set}" = set; then
2289  echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291  cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297
2298int
2299main ()
2300{
2301
2302  ;
2303  return 0;
2304}
2305_ACEOF
2306rm -f conftest.$ac_objext
2307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308  (eval $ac_compile) 2>conftest.er1
2309  ac_status=$?
2310  grep -v '^ *+' conftest.er1 >conftest.err
2311  rm -f conftest.er1
2312  cat conftest.err >&5
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); } &&
2315	 { ac_try='test -z "$ac_c_werror_flag"
2316			 || test ! -s conftest.err'
2317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318  (eval $ac_try) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; } &&
2322	 { ac_try='test -s conftest.$ac_objext'
2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324  (eval $ac_try) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }; }; then
2328  ac_cv_prog_cc_g=yes
2329else
2330  echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333ac_cv_prog_cc_g=no
2334fi
2335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336fi
2337echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2338echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2339if test "$ac_test_CFLAGS" = set; then
2340  CFLAGS=$ac_save_CFLAGS
2341elif test $ac_cv_prog_cc_g = yes; then
2342  if test "$GCC" = yes; then
2343    CFLAGS="-g -O2"
2344  else
2345    CFLAGS="-g"
2346  fi
2347else
2348  if test "$GCC" = yes; then
2349    CFLAGS="-O2"
2350  else
2351    CFLAGS=
2352  fi
2353fi
2354echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2355echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2356if test "${ac_cv_prog_cc_stdc+set}" = set; then
2357  echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359  ac_cv_prog_cc_stdc=no
2360ac_save_CC=$CC
2361cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367#include <stdarg.h>
2368#include <stdio.h>
2369#include <sys/types.h>
2370#include <sys/stat.h>
2371/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2372struct buf { int x; };
2373FILE * (*rcsopen) (struct buf *, struct stat *, int);
2374static char *e (p, i)
2375     char **p;
2376     int i;
2377{
2378  return p[i];
2379}
2380static char *f (char * (*g) (char **, int), char **p, ...)
2381{
2382  char *s;
2383  va_list v;
2384  va_start (v,p);
2385  s = g (p, va_arg (v,int));
2386  va_end (v);
2387  return s;
2388}
2389
2390/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2391   function prototypes and stuff, but not '\xHH' hex character constants.
2392   These don't provoke an error unfortunately, instead are silently treated
2393   as 'x'.  The following induces an error, until -std1 is added to get
2394   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2395   array size at least.  It's necessary to write '\x00'==0 to get something
2396   that's true only with -std1.  */
2397int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2398
2399int test (int i, double x);
2400struct s1 {int (*f) (int a);};
2401struct s2 {int (*f) (double a);};
2402int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2403int argc;
2404char **argv;
2405int
2406main ()
2407{
2408return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2409  ;
2410  return 0;
2411}
2412_ACEOF
2413# Don't try gcc -ansi; that turns off useful extensions and
2414# breaks some systems' header files.
2415# AIX			-qlanglvl=ansi
2416# Ultrix and OSF/1	-std1
2417# HP-UX 10.20 and later	-Ae
2418# HP-UX older versions	-Aa -D_HPUX_SOURCE
2419# SVR4			-Xc -D__EXTENSIONS__
2420for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2421do
2422  CC="$ac_save_CC $ac_arg"
2423  rm -f conftest.$ac_objext
2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425  (eval $ac_compile) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } &&
2432	 { ac_try='test -z "$ac_c_werror_flag"
2433			 || test ! -s conftest.err'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; } &&
2439	 { ac_try='test -s conftest.$ac_objext'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; }; then
2445  ac_cv_prog_cc_stdc=$ac_arg
2446break
2447else
2448  echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451fi
2452rm -f conftest.err conftest.$ac_objext
2453done
2454rm -f conftest.$ac_ext conftest.$ac_objext
2455CC=$ac_save_CC
2456
2457fi
2458
2459case "x$ac_cv_prog_cc_stdc" in
2460  x|xno)
2461    echo "$as_me:$LINENO: result: none needed" >&5
2462echo "${ECHO_T}none needed" >&6 ;;
2463  *)
2464    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2465echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2466    CC="$CC $ac_cv_prog_cc_stdc" ;;
2467esac
2468
2469# Some people use a C++ compiler to compile C.  Since we use `exit',
2470# in C++ we need to declare it.  In case someone uses the same compiler
2471# for both compiling C and C++ we need to have the C++ compiler decide
2472# the declaration of exit, since it's the most demanding environment.
2473cat >conftest.$ac_ext <<_ACEOF
2474#ifndef __cplusplus
2475  choke me
2476#endif
2477_ACEOF
2478rm -f conftest.$ac_objext
2479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480  (eval $ac_compile) 2>conftest.er1
2481  ac_status=$?
2482  grep -v '^ *+' conftest.er1 >conftest.err
2483  rm -f conftest.er1
2484  cat conftest.err >&5
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); } &&
2487	 { ac_try='test -z "$ac_c_werror_flag"
2488			 || test ! -s conftest.err'
2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490  (eval $ac_try) 2>&5
2491  ac_status=$?
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); }; } &&
2494	 { ac_try='test -s conftest.$ac_objext'
2495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496  (eval $ac_try) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }; }; then
2500  for ac_declaration in \
2501   '' \
2502   'extern "C" void std::exit (int) throw (); using std::exit;' \
2503   'extern "C" void std::exit (int); using std::exit;' \
2504   'extern "C" void exit (int) throw ();' \
2505   'extern "C" void exit (int);' \
2506   'void exit (int);'
2507do
2508  cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h.  */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h.  */
2514$ac_declaration
2515#include <stdlib.h>
2516int
2517main ()
2518{
2519exit (42);
2520  ;
2521  return 0;
2522}
2523_ACEOF
2524rm -f conftest.$ac_objext
2525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526  (eval $ac_compile) 2>conftest.er1
2527  ac_status=$?
2528  grep -v '^ *+' conftest.er1 >conftest.err
2529  rm -f conftest.er1
2530  cat conftest.err >&5
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); } &&
2533	 { ac_try='test -z "$ac_c_werror_flag"
2534			 || test ! -s conftest.err'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; } &&
2540	 { ac_try='test -s conftest.$ac_objext'
2541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542  (eval $ac_try) 2>&5
2543  ac_status=$?
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); }; }; then
2546  :
2547else
2548  echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551continue
2552fi
2553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554  cat >conftest.$ac_ext <<_ACEOF
2555/* confdefs.h.  */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
2559/* end confdefs.h.  */
2560$ac_declaration
2561int
2562main ()
2563{
2564exit (42);
2565  ;
2566  return 0;
2567}
2568_ACEOF
2569rm -f conftest.$ac_objext
2570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571  (eval $ac_compile) 2>conftest.er1
2572  ac_status=$?
2573  grep -v '^ *+' conftest.er1 >conftest.err
2574  rm -f conftest.er1
2575  cat conftest.err >&5
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } &&
2578	 { ac_try='test -z "$ac_c_werror_flag"
2579			 || test ! -s conftest.err'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; } &&
2585	 { ac_try='test -s conftest.$ac_objext'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; }; then
2591  break
2592else
2593  echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596fi
2597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598done
2599rm -f conftest*
2600if test -n "$ac_declaration"; then
2601  echo '#ifdef __cplusplus' >>confdefs.h
2602  echo $ac_declaration      >>confdefs.h
2603  echo '#endif'             >>confdefs.h
2604fi
2605
2606else
2607  echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610fi
2611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612ac_ext=c
2613ac_cpp='$CPP $CPPFLAGS'
2614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617rm -f .deps 2>/dev/null
2618mkdir .deps 2>/dev/null
2619if test -d .deps; then
2620  DEPDIR=.deps
2621else
2622  # MS-DOS does not allow filenames that begin with a dot.
2623  DEPDIR=_deps
2624fi
2625rmdir .deps 2>/dev/null
2626
2627
2628          ac_config_commands="$ac_config_commands depfiles"
2629
2630
2631am_make=${MAKE-make}
2632cat > confinc << 'END'
2633doit:
2634	@echo done
2635END
2636# If we don't find an include directive, just comment out the code.
2637echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2638echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2639am__include="#"
2640am__quote=
2641_am_result=none
2642# First try GNU make style include.
2643echo "include confinc" > confmf
2644# We grep out `Entering directory' and `Leaving directory'
2645# messages which can occur if `w' ends up in MAKEFLAGS.
2646# In particular we don't look at `^make:' because GNU make might
2647# be invoked under some other name (usually "gmake"), in which
2648# case it prints its new name instead of `make'.
2649if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2650   am__include=include
2651   am__quote=
2652   _am_result=GNU
2653fi
2654# Now try BSD make style include.
2655if test "$am__include" = "#"; then
2656   echo '.include "confinc"' > confmf
2657   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2658      am__include=.include
2659      am__quote="\""
2660      _am_result=BSD
2661   fi
2662fi
2663
2664
2665echo "$as_me:$LINENO: result: $_am_result" >&5
2666echo "${ECHO_T}$_am_result" >&6
2667rm -f confinc confmf
2668
2669# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2670if test "${enable_dependency_tracking+set}" = set; then
2671  enableval="$enable_dependency_tracking"
2672
2673fi;
2674if test "x$enable_dependency_tracking" != xno; then
2675  am_depcomp="$ac_aux_dir/depcomp"
2676  AMDEPBACKSLASH='\'
2677fi
2678
2679
2680if test "x$enable_dependency_tracking" != xno; then
2681  AMDEP_TRUE=
2682  AMDEP_FALSE='#'
2683else
2684  AMDEP_TRUE='#'
2685  AMDEP_FALSE=
2686fi
2687
2688
2689
2690
2691depcc="$CC"   am_compiler_list=
2692
2693echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2694echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2695if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2696  echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2699  # We make a subdir and do the tests there.  Otherwise we can end up
2700  # making bogus files that we don't know about and never remove.  For
2701  # instance it was reported that on HP-UX the gcc test will end up
2702  # making a dummy file named `D' -- because `-MD' means `put the output
2703  # in D'.
2704  mkdir conftest.dir
2705  # Copy depcomp to subdir because otherwise we won't find it if we're
2706  # using a relative directory.
2707  cp "$am_depcomp" conftest.dir
2708  cd conftest.dir
2709
2710  am_cv_CC_dependencies_compiler_type=none
2711  if test "$am_compiler_list" = ""; then
2712     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2713  fi
2714  for depmode in $am_compiler_list; do
2715    # We need to recreate these files for each test, as the compiler may
2716    # overwrite some of them when testing with obscure command lines.
2717    # This happens at least with the AIX C compiler.
2718    echo '#include "conftest.h"' > conftest.c
2719    echo 'int i;' > conftest.h
2720    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2721
2722    case $depmode in
2723    nosideeffect)
2724      # after this tag, mechanisms are not by side-effect, so they'll
2725      # only be used when explicitly requested
2726      if test "x$enable_dependency_tracking" = xyes; then
2727	continue
2728      else
2729	break
2730      fi
2731      ;;
2732    none) break ;;
2733    esac
2734    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2735    # mode.  It turns out that the SunPro C++ compiler does not properly
2736    # handle `-M -o', and we need to detect this.
2737    if depmode=$depmode \
2738       source=conftest.c object=conftest.o \
2739       depfile=conftest.Po tmpdepfile=conftest.TPo \
2740       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2741       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2742       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2743      am_cv_CC_dependencies_compiler_type=$depmode
2744      break
2745    fi
2746  done
2747
2748  cd ..
2749  rm -rf conftest.dir
2750else
2751  am_cv_CC_dependencies_compiler_type=none
2752fi
2753
2754fi
2755echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2756echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2758
2759
2760
2761# Check whether --enable-crypto or --disable-crypto was given.
2762if test "${enable_crypto+set}" = set; then
2763  enableval="$enable_crypto"
2764
2765else
2766  enable_crypto=yes
2767fi;
2768
2769if test "$enable_crypto" = "yes"; then
2770  # Extract the first word of "openssl", so it can be a program name with args.
2771set dummy openssl; ac_word=$2
2772echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774if test "${ac_cv_path_OPENSSL+set}" = set; then
2775  echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777  case $OPENSSL in
2778  [\\/]* | ?:[\\/]*)
2779  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
2780  ;;
2781  *)
2782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787  for ac_exec_ext in '' $ac_executable_extensions; do
2788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789    ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
2790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794done
2795
2796  test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
2797  ;;
2798esac
2799fi
2800OPENSSL=$ac_cv_path_OPENSSL
2801
2802if test -n "$OPENSSL"; then
2803  echo "$as_me:$LINENO: result: $OPENSSL" >&5
2804echo "${ECHO_T}$OPENSSL" >&6
2805else
2806  echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808fi
2809
2810  if test "$OPENSSL" != "notfound"; then
2811
2812cat >>confdefs.h <<\_ACEOF
2813#define YAFIC_CRYPTO 1
2814_ACEOF
2815
2816    CRYPTO_PROGRAMS="yafic-sign"
2817    CRYPTO_MANS="yafic-sign.1"
2818  fi
2819fi
2820
2821
2822
2823
2824ac_ext=c
2825ac_cpp='$CPP $CPPFLAGS'
2826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2830echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2831# On Suns, sometimes $CPP names a directory.
2832if test -n "$CPP" && test -d "$CPP"; then
2833  CPP=
2834fi
2835if test -z "$CPP"; then
2836  if test "${ac_cv_prog_CPP+set}" = set; then
2837  echo $ECHO_N "(cached) $ECHO_C" >&6
2838else
2839      # Double quotes because CPP needs to be expanded
2840    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2841    do
2842      ac_preproc_ok=false
2843for ac_c_preproc_warn_flag in '' yes
2844do
2845  # Use a header file that comes with gcc, so configuring glibc
2846  # with a fresh cross-compiler works.
2847  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2848  # <limits.h> exists even on freestanding compilers.
2849  # On the NeXT, cc -E runs the code through the compiler's parser,
2850  # not just through cpp. "Syntax error" is here to catch this case.
2851  cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h.  */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h.  */
2857#ifdef __STDC__
2858# include <limits.h>
2859#else
2860# include <assert.h>
2861#endif
2862		     Syntax error
2863_ACEOF
2864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2865  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2866  ac_status=$?
2867  grep -v '^ *+' conftest.er1 >conftest.err
2868  rm -f conftest.er1
2869  cat conftest.err >&5
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); } >/dev/null; then
2872  if test -s conftest.err; then
2873    ac_cpp_err=$ac_c_preproc_warn_flag
2874    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2875  else
2876    ac_cpp_err=
2877  fi
2878else
2879  ac_cpp_err=yes
2880fi
2881if test -z "$ac_cpp_err"; then
2882  :
2883else
2884  echo "$as_me: failed program was:" >&5
2885sed 's/^/| /' conftest.$ac_ext >&5
2886
2887  # Broken: fails on valid input.
2888continue
2889fi
2890rm -f conftest.err conftest.$ac_ext
2891
2892  # OK, works on sane cases.  Now check whether non-existent headers
2893  # can be detected and how.
2894  cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900#include <ac_nonexistent.h>
2901_ACEOF
2902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2903  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2904  ac_status=$?
2905  grep -v '^ *+' conftest.er1 >conftest.err
2906  rm -f conftest.er1
2907  cat conftest.err >&5
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); } >/dev/null; then
2910  if test -s conftest.err; then
2911    ac_cpp_err=$ac_c_preproc_warn_flag
2912    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2913  else
2914    ac_cpp_err=
2915  fi
2916else
2917  ac_cpp_err=yes
2918fi
2919if test -z "$ac_cpp_err"; then
2920  # Broken: success on invalid input.
2921continue
2922else
2923  echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926  # Passes both tests.
2927ac_preproc_ok=:
2928break
2929fi
2930rm -f conftest.err conftest.$ac_ext
2931
2932done
2933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2934rm -f conftest.err conftest.$ac_ext
2935if $ac_preproc_ok; then
2936  break
2937fi
2938
2939    done
2940    ac_cv_prog_CPP=$CPP
2941
2942fi
2943  CPP=$ac_cv_prog_CPP
2944else
2945  ac_cv_prog_CPP=$CPP
2946fi
2947echo "$as_me:$LINENO: result: $CPP" >&5
2948echo "${ECHO_T}$CPP" >&6
2949ac_preproc_ok=false
2950for ac_c_preproc_warn_flag in '' yes
2951do
2952  # Use a header file that comes with gcc, so configuring glibc
2953  # with a fresh cross-compiler works.
2954  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2955  # <limits.h> exists even on freestanding compilers.
2956  # On the NeXT, cc -E runs the code through the compiler's parser,
2957  # not just through cpp. "Syntax error" is here to catch this case.
2958  cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h.  */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h.  */
2964#ifdef __STDC__
2965# include <limits.h>
2966#else
2967# include <assert.h>
2968#endif
2969		     Syntax error
2970_ACEOF
2971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2973  ac_status=$?
2974  grep -v '^ *+' conftest.er1 >conftest.err
2975  rm -f conftest.er1
2976  cat conftest.err >&5
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); } >/dev/null; then
2979  if test -s conftest.err; then
2980    ac_cpp_err=$ac_c_preproc_warn_flag
2981    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2982  else
2983    ac_cpp_err=
2984  fi
2985else
2986  ac_cpp_err=yes
2987fi
2988if test -z "$ac_cpp_err"; then
2989  :
2990else
2991  echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994  # Broken: fails on valid input.
2995continue
2996fi
2997rm -f conftest.err conftest.$ac_ext
2998
2999  # OK, works on sane cases.  Now check whether non-existent headers
3000  # can be detected and how.
3001  cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h.  */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h.  */
3007#include <ac_nonexistent.h>
3008_ACEOF
3009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011  ac_status=$?
3012  grep -v '^ *+' conftest.er1 >conftest.err
3013  rm -f conftest.er1
3014  cat conftest.err >&5
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); } >/dev/null; then
3017  if test -s conftest.err; then
3018    ac_cpp_err=$ac_c_preproc_warn_flag
3019    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020  else
3021    ac_cpp_err=
3022  fi
3023else
3024  ac_cpp_err=yes
3025fi
3026if test -z "$ac_cpp_err"; then
3027  # Broken: success on invalid input.
3028continue
3029else
3030  echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033  # Passes both tests.
3034ac_preproc_ok=:
3035break
3036fi
3037rm -f conftest.err conftest.$ac_ext
3038
3039done
3040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3041rm -f conftest.err conftest.$ac_ext
3042if $ac_preproc_ok; then
3043  :
3044else
3045  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3046See \`config.log' for more details." >&5
3047echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3048See \`config.log' for more details." >&2;}
3049   { (exit 1); exit 1; }; }
3050fi
3051
3052ac_ext=c
3053ac_cpp='$CPP $CPPFLAGS'
3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057
3058
3059echo "$as_me:$LINENO: checking for egrep" >&5
3060echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3061if test "${ac_cv_prog_egrep+set}" = set; then
3062  echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3065    then ac_cv_prog_egrep='grep -E'
3066    else ac_cv_prog_egrep='egrep'
3067    fi
3068fi
3069echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3070echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3071 EGREP=$ac_cv_prog_egrep
3072
3073
3074echo "$as_me:$LINENO: checking for Berkeley DB 1.xx header" >&5
3075echo $ECHO_N "checking for Berkeley DB 1.xx header... $ECHO_C" >&6
3076if test "${aps_cv_bdb_header+set}" = set; then
3077  echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079  aps_cv_bdb_header="not found"
3080for aps_header in db.h db1/db.h db_185.h db4/db_185.h db3/db_185.h db2/db_185.h; do
3081  cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h.  */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h.  */
3087#include <$aps_header>
3088_ACEOF
3089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3090  $EGREP "(dbopen|db185_open)" >/dev/null 2>&1; then
3091  aps_cv_bdb_header=$aps_header
3092break
3093fi
3094rm -f conftest*
3095
3096done
3097
3098fi
3099echo "$as_me:$LINENO: result: $aps_cv_bdb_header" >&5
3100echo "${ECHO_T}$aps_cv_bdb_header" >&6
3101if test "$aps_cv_bdb_header" = "not found"; then
3102  { { echo "$as_me:$LINENO: error: cannot find Berkeley DB 1.xx header" >&5
3103echo "$as_me: error: cannot find Berkeley DB 1.xx header" >&2;}
3104   { (exit 1); exit 1; }; }
3105fi
3106YAFIC_DB_HEADER=$aps_cv_bdb_header
3107
3108echo "$as_me:$LINENO: checking for Berkeley DB 1.xx library" >&5
3109echo $ECHO_N "checking for Berkeley DB 1.xx library... $ECHO_C" >&6
3110if test "${aps_cv_bdb_lib+set}" = set; then
3111  echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
3113  aps_cv_bdb_save_LIBS=$LIBS
3114aps_cv_bdb_lib=no
3115cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h.  */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h.  */
3121#include <$aps_cv_bdb_header>
3122int
3123main ()
3124{
3125dbopen (0, 0, 0, DB_HASH, 0);
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext conftest$ac_exeext
3131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3132  (eval $ac_link) 2>conftest.er1
3133  ac_status=$?
3134  grep -v '^ *+' conftest.er1 >conftest.err
3135  rm -f conftest.er1
3136  cat conftest.err >&5
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); } &&
3139	 { ac_try='test -z "$ac_c_werror_flag"
3140			 || test ! -s conftest.err'
3141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142  (eval $ac_try) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; } &&
3146	 { ac_try='test -s conftest$ac_exeext'
3147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148  (eval $ac_try) 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }; }; then
3152  aps_cv_bdb_lib="none required"
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157fi
3158rm -f conftest.err conftest.$ac_objext \
3159      conftest$ac_exeext conftest.$ac_ext
3160if test "$aps_cv_bdb_lib" = "no"; then
3161  for aps_lib in db db1 db4 db3 db2; do
3162    LIBS="-l$aps_lib $aps_cv_bdb_save_LIBS"
3163    cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h.  */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h.  */
3169#include <$aps_cv_bdb_header>
3170int
3171main ()
3172{
3173dbopen (0, 0, 0, DB_HASH, 0);
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext conftest$ac_exeext
3179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180  (eval $ac_link) 2>conftest.er1
3181  ac_status=$?
3182  grep -v '^ *+' conftest.er1 >conftest.err
3183  rm -f conftest.er1
3184  cat conftest.err >&5
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } &&
3187	 { ac_try='test -z "$ac_c_werror_flag"
3188			 || test ! -s conftest.err'
3189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190  (eval $ac_try) 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); }; } &&
3194	 { ac_try='test -s conftest$ac_exeext'
3195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }; }; then
3200  aps_cv_bdb_lib="-l$aps_lib"
3201break
3202else
3203  echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206fi
3207rm -f conftest.err conftest.$ac_objext \
3208      conftest$ac_exeext conftest.$ac_ext
3209  done
3210fi
3211LIBS=$aps_cv_bdb_save_LIBS
3212fi
3213echo "$as_me:$LINENO: result: $aps_cv_bdb_lib" >&5
3214echo "${ECHO_T}$aps_cv_bdb_lib" >&6
3215if test "$aps_cv_bdb_lib" != "no"; then
3216  test "$aps_cv_bdb_lib" = "none required" || LIBS="$aps_cv_bdb_lib $LIBS"
3217fi
3218
3219if test "$aps_cv_bdb_lib" = "no"; then
3220  { { echo "$as_me:$LINENO: error: cannot find Berkeley DB 1.xx library" >&5
3221echo "$as_me: error: cannot find Berkeley DB 1.xx library" >&2;}
3222   { (exit 1); exit 1; }; }
3223fi
3224if test "$enable_crypto" = "yes"; then
3225  if test "$OPENSSL" != "notfound"; then
3226    echo "$as_me:$LINENO: checking for library containing EVP_SignFinal" >&5
3227echo $ECHO_N "checking for library containing EVP_SignFinal... $ECHO_C" >&6
3228if test "${ac_cv_search_EVP_SignFinal+set}" = set; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  ac_func_search_save_LIBS=$LIBS
3232ac_cv_search_EVP_SignFinal=no
3233cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h.  */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h.  */
3239
3240/* Override any gcc2 internal prototype to avoid an error.  */
3241#ifdef __cplusplus
3242extern "C"
3243#endif
3244/* We use char because int might match the return type of a gcc2
3245   builtin and then its argument prototype would still apply.  */
3246char EVP_SignFinal ();
3247int
3248main ()
3249{
3250EVP_SignFinal ();
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext conftest$ac_exeext
3256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3257  (eval $ac_link) 2>conftest.er1
3258  ac_status=$?
3259  grep -v '^ *+' conftest.er1 >conftest.err
3260  rm -f conftest.er1
3261  cat conftest.err >&5
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); } &&
3264	 { ac_try='test -z "$ac_c_werror_flag"
3265			 || test ! -s conftest.err'
3266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267  (eval $ac_try) 2>&5
3268  ac_status=$?
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; } &&
3271	 { ac_try='test -s conftest$ac_exeext'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; }; then
3277  ac_cv_search_EVP_SignFinal="none required"
3278else
3279  echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282fi
3283rm -f conftest.err conftest.$ac_objext \
3284      conftest$ac_exeext conftest.$ac_ext
3285if test "$ac_cv_search_EVP_SignFinal" = no; then
3286  for ac_lib in crypto; do
3287    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3288    cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h.  */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h.  */
3294
3295/* Override any gcc2 internal prototype to avoid an error.  */
3296#ifdef __cplusplus
3297extern "C"
3298#endif
3299/* We use char because int might match the return type of a gcc2
3300   builtin and then its argument prototype would still apply.  */
3301char EVP_SignFinal ();
3302int
3303main ()
3304{
3305EVP_SignFinal ();
3306  ;
3307  return 0;
3308}
3309_ACEOF
3310rm -f conftest.$ac_objext conftest$ac_exeext
3311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312  (eval $ac_link) 2>conftest.er1
3313  ac_status=$?
3314  grep -v '^ *+' conftest.er1 >conftest.err
3315  rm -f conftest.er1
3316  cat conftest.err >&5
3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); } &&
3319	 { ac_try='test -z "$ac_c_werror_flag"
3320			 || test ! -s conftest.err'
3321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322  (eval $ac_try) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }; } &&
3326	 { ac_try='test -s conftest$ac_exeext'
3327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328  (eval $ac_try) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }; }; then
3332  ac_cv_search_EVP_SignFinal="-l$ac_lib"
3333break
3334else
3335  echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
3338fi
3339rm -f conftest.err conftest.$ac_objext \
3340      conftest$ac_exeext conftest.$ac_ext
3341  done
3342fi
3343LIBS=$ac_func_search_save_LIBS
3344fi
3345echo "$as_me:$LINENO: result: $ac_cv_search_EVP_SignFinal" >&5
3346echo "${ECHO_T}$ac_cv_search_EVP_SignFinal" >&6
3347if test "$ac_cv_search_EVP_SignFinal" != no; then
3348  test "$ac_cv_search_EVP_SignFinal" = "none required" || LIBS="$ac_cv_search_EVP_SignFinal $LIBS"
3349
3350fi
3351
3352  fi
3353fi
3354
3355
3356
3357
3358
3359
3360ac_header_dirent=no
3361for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3362  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3363echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3364echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3365if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366  echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368  cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h.  */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h.  */
3374#include <sys/types.h>
3375#include <$ac_hdr>
3376
3377int
3378main ()
3379{
3380if ((DIR *) 0)
3381return 0;
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388  (eval $ac_compile) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } &&
3395	 { ac_try='test -z "$ac_c_werror_flag"
3396			 || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402	 { ac_try='test -s conftest.$ac_objext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  eval "$as_ac_Header=yes"
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413eval "$as_ac_Header=no"
3414fi
3415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416fi
3417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419if test `eval echo '${'$as_ac_Header'}'` = yes; then
3420  cat >>confdefs.h <<_ACEOF
3421#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3422_ACEOF
3423
3424ac_header_dirent=$ac_hdr; break
3425fi
3426
3427done
3428# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3429if test $ac_header_dirent = dirent.h; then
3430  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3431echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3432if test "${ac_cv_search_opendir+set}" = set; then
3433  echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435  ac_func_search_save_LIBS=$LIBS
3436ac_cv_search_opendir=no
3437cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443
3444/* Override any gcc2 internal prototype to avoid an error.  */
3445#ifdef __cplusplus
3446extern "C"
3447#endif
3448/* We use char because int might match the return type of a gcc2
3449   builtin and then its argument prototype would still apply.  */
3450char opendir ();
3451int
3452main ()
3453{
3454opendir ();
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459rm -f conftest.$ac_objext conftest$ac_exeext
3460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461  (eval $ac_link) 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } &&
3468	 { ac_try='test -z "$ac_c_werror_flag"
3469			 || test ! -s conftest.err'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; } &&
3475	 { ac_try='test -s conftest$ac_exeext'
3476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477  (eval $ac_try) 2>&5
3478  ac_status=$?
3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480  (exit $ac_status); }; }; then
3481  ac_cv_search_opendir="none required"
3482else
3483  echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486fi
3487rm -f conftest.err conftest.$ac_objext \
3488      conftest$ac_exeext conftest.$ac_ext
3489if test "$ac_cv_search_opendir" = no; then
3490  for ac_lib in dir; do
3491    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3492    cat >conftest.$ac_ext <<_ACEOF
3493/* confdefs.h.  */
3494_ACEOF
3495cat confdefs.h >>conftest.$ac_ext
3496cat >>conftest.$ac_ext <<_ACEOF
3497/* end confdefs.h.  */
3498
3499/* Override any gcc2 internal prototype to avoid an error.  */
3500#ifdef __cplusplus
3501extern "C"
3502#endif
3503/* We use char because int might match the return type of a gcc2
3504   builtin and then its argument prototype would still apply.  */
3505char opendir ();
3506int
3507main ()
3508{
3509opendir ();
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514rm -f conftest.$ac_objext conftest$ac_exeext
3515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516  (eval $ac_link) 2>conftest.er1
3517  ac_status=$?
3518  grep -v '^ *+' conftest.er1 >conftest.err
3519  rm -f conftest.er1
3520  cat conftest.err >&5
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); } &&
3523	 { ac_try='test -z "$ac_c_werror_flag"
3524			 || test ! -s conftest.err'
3525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526  (eval $ac_try) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); }; } &&
3530	 { ac_try='test -s conftest$ac_exeext'
3531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532  (eval $ac_try) 2>&5
3533  ac_status=$?
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); }; }; then
3536  ac_cv_search_opendir="-l$ac_lib"
3537break
3538else
3539  echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542fi
3543rm -f conftest.err conftest.$ac_objext \
3544      conftest$ac_exeext conftest.$ac_ext
3545  done
3546fi
3547LIBS=$ac_func_search_save_LIBS
3548fi
3549echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3550echo "${ECHO_T}$ac_cv_search_opendir" >&6
3551if test "$ac_cv_search_opendir" != no; then
3552  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3553
3554fi
3555
3556else
3557  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3558echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3559if test "${ac_cv_search_opendir+set}" = set; then
3560  echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562  ac_func_search_save_LIBS=$LIBS
3563ac_cv_search_opendir=no
3564cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h.  */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h.  */
3570
3571/* Override any gcc2 internal prototype to avoid an error.  */
3572#ifdef __cplusplus
3573extern "C"
3574#endif
3575/* We use char because int might match the return type of a gcc2
3576   builtin and then its argument prototype would still apply.  */
3577char opendir ();
3578int
3579main ()
3580{
3581opendir ();
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext conftest$ac_exeext
3587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588  (eval $ac_link) 2>conftest.er1
3589  ac_status=$?
3590  grep -v '^ *+' conftest.er1 >conftest.err
3591  rm -f conftest.er1
3592  cat conftest.err >&5
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); } &&
3595	 { ac_try='test -z "$ac_c_werror_flag"
3596			 || test ! -s conftest.err'
3597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598  (eval $ac_try) 2>&5
3599  ac_status=$?
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); }; } &&
3602	 { ac_try='test -s conftest$ac_exeext'
3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604  (eval $ac_try) 2>&5
3605  ac_status=$?
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); }; }; then
3608  ac_cv_search_opendir="none required"
3609else
3610  echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613fi
3614rm -f conftest.err conftest.$ac_objext \
3615      conftest$ac_exeext conftest.$ac_ext
3616if test "$ac_cv_search_opendir" = no; then
3617  for ac_lib in x; do
3618    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3619    cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625
3626/* Override any gcc2 internal prototype to avoid an error.  */
3627#ifdef __cplusplus
3628extern "C"
3629#endif
3630/* We use char because int might match the return type of a gcc2
3631   builtin and then its argument prototype would still apply.  */
3632char opendir ();
3633int
3634main ()
3635{
3636opendir ();
3637  ;
3638  return 0;
3639}
3640_ACEOF
3641rm -f conftest.$ac_objext conftest$ac_exeext
3642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643  (eval $ac_link) 2>conftest.er1
3644  ac_status=$?
3645  grep -v '^ *+' conftest.er1 >conftest.err
3646  rm -f conftest.er1
3647  cat conftest.err >&5
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); } &&
3650	 { ac_try='test -z "$ac_c_werror_flag"
3651			 || test ! -s conftest.err'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; } &&
3657	 { ac_try='test -s conftest$ac_exeext'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; }; then
3663  ac_cv_search_opendir="-l$ac_lib"
3664break
3665else
3666  echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669fi
3670rm -f conftest.err conftest.$ac_objext \
3671      conftest$ac_exeext conftest.$ac_ext
3672  done
3673fi
3674LIBS=$ac_func_search_save_LIBS
3675fi
3676echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3677echo "${ECHO_T}$ac_cv_search_opendir" >&6
3678if test "$ac_cv_search_opendir" != no; then
3679  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3680
3681fi
3682
3683fi
3684
3685echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3686echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3687if test "${ac_cv_header_stdc+set}" = set; then
3688  echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690  cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h.  */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h.  */
3696#include <stdlib.h>
3697#include <stdarg.h>
3698#include <string.h>
3699#include <float.h>
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709rm -f conftest.$ac_objext
3710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711  (eval $ac_compile) 2>conftest.er1
3712  ac_status=$?
3713  grep -v '^ *+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } &&
3718	 { ac_try='test -z "$ac_c_werror_flag"
3719			 || test ! -s conftest.err'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; } &&
3725	 { ac_try='test -s conftest.$ac_objext'
3726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727  (eval $ac_try) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); }; }; then
3731  ac_cv_header_stdc=yes
3732else
3733  echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736ac_cv_header_stdc=no
3737fi
3738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3739
3740if test $ac_cv_header_stdc = yes; then
3741  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3742  cat >conftest.$ac_ext <<_ACEOF
3743/* confdefs.h.  */
3744_ACEOF
3745cat confdefs.h >>conftest.$ac_ext
3746cat >>conftest.$ac_ext <<_ACEOF
3747/* end confdefs.h.  */
3748#include <string.h>
3749
3750_ACEOF
3751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3752  $EGREP "memchr" >/dev/null 2>&1; then
3753  :
3754else
3755  ac_cv_header_stdc=no
3756fi
3757rm -f conftest*
3758
3759fi
3760
3761if test $ac_cv_header_stdc = yes; then
3762  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3763  cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h.  */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
3768/* end confdefs.h.  */
3769#include <stdlib.h>
3770
3771_ACEOF
3772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773  $EGREP "free" >/dev/null 2>&1; then
3774  :
3775else
3776  ac_cv_header_stdc=no
3777fi
3778rm -f conftest*
3779
3780fi
3781
3782if test $ac_cv_header_stdc = yes; then
3783  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3784  if test "$cross_compiling" = yes; then
3785  :
3786else
3787  cat >conftest.$ac_ext <<_ACEOF
3788/* confdefs.h.  */
3789_ACEOF
3790cat confdefs.h >>conftest.$ac_ext
3791cat >>conftest.$ac_ext <<_ACEOF
3792/* end confdefs.h.  */
3793#include <ctype.h>
3794#if ((' ' & 0x0FF) == 0x020)
3795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3797#else
3798# define ISLOWER(c) \
3799		   (('a' <= (c) && (c) <= 'i') \
3800		     || ('j' <= (c) && (c) <= 'r') \
3801		     || ('s' <= (c) && (c) <= 'z'))
3802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3803#endif
3804
3805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3806int
3807main ()
3808{
3809  int i;
3810  for (i = 0; i < 256; i++)
3811    if (XOR (islower (i), ISLOWER (i))
3812	|| toupper (i) != TOUPPER (i))
3813      exit(2);
3814  exit (0);
3815}
3816_ACEOF
3817rm -f conftest$ac_exeext
3818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3819  (eval $ac_link) 2>&5
3820  ac_status=$?
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824  (eval $ac_try) 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }; }; then
3828  :
3829else
3830  echo "$as_me: program exited with status $ac_status" >&5
3831echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834( exit $ac_status )
3835ac_cv_header_stdc=no
3836fi
3837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3838fi
3839fi
3840fi
3841echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3842echo "${ECHO_T}$ac_cv_header_stdc" >&6
3843if test $ac_cv_header_stdc = yes; then
3844
3845cat >>confdefs.h <<\_ACEOF
3846#define STDC_HEADERS 1
3847_ACEOF
3848
3849fi
3850
3851# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3862		  inttypes.h stdint.h unistd.h
3863do
3864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3865echo "$as_me:$LINENO: checking for $ac_header" >&5
3866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3867if eval "test \"\${$as_ac_Header+set}\" = set"; then
3868  echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870  cat >conftest.$ac_ext <<_ACEOF
3871/* confdefs.h.  */
3872_ACEOF
3873cat confdefs.h >>conftest.$ac_ext
3874cat >>conftest.$ac_ext <<_ACEOF
3875/* end confdefs.h.  */
3876$ac_includes_default
3877
3878#include <$ac_header>
3879_ACEOF
3880rm -f conftest.$ac_objext
3881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882  (eval $ac_compile) 2>conftest.er1
3883  ac_status=$?
3884  grep -v '^ *+' conftest.er1 >conftest.err
3885  rm -f conftest.er1
3886  cat conftest.err >&5
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); } &&
3889	 { ac_try='test -z "$ac_c_werror_flag"
3890			 || test ! -s conftest.err'
3891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892  (eval $ac_try) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; } &&
3896	 { ac_try='test -s conftest.$ac_objext'
3897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898  (eval $ac_try) 2>&5
3899  ac_status=$?
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); }; }; then
3902  eval "$as_ac_Header=yes"
3903else
3904  echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907eval "$as_ac_Header=no"
3908fi
3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3910fi
3911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3913if test `eval echo '${'$as_ac_Header'}'` = yes; then
3914  cat >>confdefs.h <<_ACEOF
3915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3916_ACEOF
3917
3918fi
3919
3920done
3921
3922
3923
3924for ac_header in libgen.h
3925do
3926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3927if eval "test \"\${$as_ac_Header+set}\" = set"; then
3928  echo "$as_me:$LINENO: checking for $ac_header" >&5
3929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3930if eval "test \"\${$as_ac_Header+set}\" = set"; then
3931  echo $ECHO_N "(cached) $ECHO_C" >&6
3932fi
3933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935else
3936  # Is the header compilable?
3937echo "$as_me:$LINENO: checking $ac_header usability" >&5
3938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3939cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h.  */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h.  */
3945$ac_includes_default
3946#include <$ac_header>
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950  (eval $ac_compile) 2>conftest.er1
3951  ac_status=$?
3952  grep -v '^ *+' conftest.er1 >conftest.err
3953  rm -f conftest.er1
3954  cat conftest.err >&5
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); } &&
3957	 { ac_try='test -z "$ac_c_werror_flag"
3958			 || test ! -s conftest.err'
3959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960  (eval $ac_try) 2>&5
3961  ac_status=$?
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); }; } &&
3964	 { ac_try='test -s conftest.$ac_objext'
3965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966  (eval $ac_try) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; }; then
3970  ac_header_compiler=yes
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975ac_header_compiler=no
3976fi
3977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3979echo "${ECHO_T}$ac_header_compiler" >&6
3980
3981# Is the header present?
3982echo "$as_me:$LINENO: checking $ac_header presence" >&5
3983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3984cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h.  */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h.  */
3990#include <$ac_header>
3991_ACEOF
3992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3993  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3994  ac_status=$?
3995  grep -v '^ *+' conftest.er1 >conftest.err
3996  rm -f conftest.er1
3997  cat conftest.err >&5
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); } >/dev/null; then
4000  if test -s conftest.err; then
4001    ac_cpp_err=$ac_c_preproc_warn_flag
4002    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4003  else
4004    ac_cpp_err=
4005  fi
4006else
4007  ac_cpp_err=yes
4008fi
4009if test -z "$ac_cpp_err"; then
4010  ac_header_preproc=yes
4011else
4012  echo "$as_me: failed program was:" >&5
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
4015  ac_header_preproc=no
4016fi
4017rm -f conftest.err conftest.$ac_ext
4018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4019echo "${ECHO_T}$ac_header_preproc" >&6
4020
4021# So?  What about this header?
4022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4023  yes:no: )
4024    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4026    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4028    ac_header_preproc=yes
4029    ;;
4030  no:yes:* )
4031    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4033    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4034echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4035    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4037    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4038echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4039    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4041    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4043    (
4044      cat <<\_ASBOX
4045## ------------------------------------------ ##
4046## Report this to the AC_PACKAGE_NAME lists.  ##
4047## ------------------------------------------ ##
4048_ASBOX
4049    ) |
4050      sed "s/^/$as_me: WARNING:     /" >&2
4051    ;;
4052esac
4053echo "$as_me:$LINENO: checking for $ac_header" >&5
4054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4055if eval "test \"\${$as_ac_Header+set}\" = set"; then
4056  echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058  eval "$as_ac_Header=\$ac_header_preproc"
4059fi
4060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4062
4063fi
4064if test `eval echo '${'$as_ac_Header'}'` = yes; then
4065  cat >>confdefs.h <<_ACEOF
4066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4067_ACEOF
4068
4069fi
4070
4071done
4072
4073
4074echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4075echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4076if test "${ac_cv_c_bigendian+set}" = set; then
4077  echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079  # See if sys/param.h defines the BYTE_ORDER macro.
4080cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h.  */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h.  */
4086#include <sys/types.h>
4087#include <sys/param.h>
4088
4089int
4090main ()
4091{
4092#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4093 bogus endian macros
4094#endif
4095
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100rm -f conftest.$ac_objext
4101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102  (eval $ac_compile) 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } &&
4109	 { ac_try='test -z "$ac_c_werror_flag"
4110			 || test ! -s conftest.err'
4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112  (eval $ac_try) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; } &&
4116	 { ac_try='test -s conftest.$ac_objext'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; }; then
4122  # It does; now see whether it defined to BIG_ENDIAN or not.
4123cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h.  */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h.  */
4129#include <sys/types.h>
4130#include <sys/param.h>
4131
4132int
4133main ()
4134{
4135#if BYTE_ORDER != BIG_ENDIAN
4136 not big endian
4137#endif
4138
4139  ;
4140  return 0;
4141}
4142_ACEOF
4143rm -f conftest.$ac_objext
4144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145  (eval $ac_compile) 2>conftest.er1
4146  ac_status=$?
4147  grep -v '^ *+' conftest.er1 >conftest.err
4148  rm -f conftest.er1
4149  cat conftest.err >&5
4150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151  (exit $ac_status); } &&
4152	 { ac_try='test -z "$ac_c_werror_flag"
4153			 || test ! -s conftest.err'
4154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155  (eval $ac_try) 2>&5
4156  ac_status=$?
4157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158  (exit $ac_status); }; } &&
4159	 { ac_try='test -s conftest.$ac_objext'
4160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161  (eval $ac_try) 2>&5
4162  ac_status=$?
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); }; }; then
4165  ac_cv_c_bigendian=yes
4166else
4167  echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170ac_cv_c_bigendian=no
4171fi
4172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4173else
4174  echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177# It does not; compile a test program.
4178if test "$cross_compiling" = yes; then
4179  # try to guess the endianness by grepping values into an object file
4180  ac_cv_c_bigendian=unknown
4181  cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h.  */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h.  */
4187short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4188short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4189void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4190short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4191short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4192void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4193int
4194main ()
4195{
4196 _ascii (); _ebcdic ();
4197  ;
4198  return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext
4202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203  (eval $ac_compile) 2>conftest.er1
4204  ac_status=$?
4205  grep -v '^ *+' conftest.er1 >conftest.err
4206  rm -f conftest.er1
4207  cat conftest.err >&5
4208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209  (exit $ac_status); } &&
4210	 { ac_try='test -z "$ac_c_werror_flag"
4211			 || test ! -s conftest.err'
4212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213  (eval $ac_try) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; } &&
4217	 { ac_try='test -s conftest.$ac_objext'
4218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219  (eval $ac_try) 2>&5
4220  ac_status=$?
4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); }; }; then
4223  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4224  ac_cv_c_bigendian=yes
4225fi
4226if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4227  if test "$ac_cv_c_bigendian" = unknown; then
4228    ac_cv_c_bigendian=no
4229  else
4230    # finding both strings is unlikely to happen, but who knows?
4231    ac_cv_c_bigendian=unknown
4232  fi
4233fi
4234else
4235  echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238fi
4239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240else
4241  cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h.  */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h.  */
4247int
4248main ()
4249{
4250  /* Are we little or big endian?  From Harbison&Steele.  */
4251  union
4252  {
4253    long l;
4254    char c[sizeof (long)];
4255  } u;
4256  u.l = 1;
4257  exit (u.c[sizeof (long) - 1] == 1);
4258}
4259_ACEOF
4260rm -f conftest$ac_exeext
4261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262  (eval $ac_link) 2>&5
4263  ac_status=$?
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267  (eval $ac_try) 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); }; }; then
4271  ac_cv_c_bigendian=no
4272else
4273  echo "$as_me: program exited with status $ac_status" >&5
4274echo "$as_me: failed program was:" >&5
4275sed 's/^/| /' conftest.$ac_ext >&5
4276
4277( exit $ac_status )
4278ac_cv_c_bigendian=yes
4279fi
4280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4281fi
4282fi
4283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284fi
4285echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4286echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4287case $ac_cv_c_bigendian in
4288  yes)
4289
4290cat >>confdefs.h <<\_ACEOF
4291#define WORDS_BIGENDIAN 1
4292_ACEOF
4293 ;;
4294  no)
4295     ;;
4296  *)
4297    { { echo "$as_me:$LINENO: error: unknown endianness
4298presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4299echo "$as_me: error: unknown endianness
4300presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4301   { (exit 1); exit 1; }; } ;;
4302esac
4303
4304echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4305echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4306if test "${ac_cv_c_const+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309  cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h.  */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h.  */
4315
4316int
4317main ()
4318{
4319/* FIXME: Include the comments suggested by Paul. */
4320#ifndef __cplusplus
4321  /* Ultrix mips cc rejects this.  */
4322  typedef int charset[2];
4323  const charset x;
4324  /* SunOS 4.1.1 cc rejects this.  */
4325  char const *const *ccp;
4326  char **p;
4327  /* NEC SVR4.0.2 mips cc rejects this.  */
4328  struct point {int x, y;};
4329  static struct point const zero = {0,0};
4330  /* AIX XL C 1.02.0.0 rejects this.
4331     It does not let you subtract one const X* pointer from another in
4332     an arm of an if-expression whose if-part is not a constant
4333     expression */
4334  const char *g = "string";
4335  ccp = &g + (g ? g-g : 0);
4336  /* HPUX 7.0 cc rejects these. */
4337  ++ccp;
4338  p = (char**) ccp;
4339  ccp = (char const *const *) p;
4340  { /* SCO 3.2v4 cc rejects this.  */
4341    char *t;
4342    char const *s = 0 ? (char *) 0 : (char const *) 0;
4343
4344    *t++ = 0;
4345  }
4346  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4347    int x[] = {25, 17};
4348    const int *foo = &x[0];
4349    ++foo;
4350  }
4351  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4352    typedef const int *iptr;
4353    iptr p = 0;
4354    ++p;
4355  }
4356  { /* AIX XL C 1.02.0.0 rejects this saying
4357       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4358    struct s { int j; const int *ap[3]; };
4359    struct s *b; b->j = 5;
4360  }
4361  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4362    const int foo = 10;
4363  }
4364#endif
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370rm -f conftest.$ac_objext
4371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372  (eval $ac_compile) 2>conftest.er1
4373  ac_status=$?
4374  grep -v '^ *+' conftest.er1 >conftest.err
4375  rm -f conftest.er1
4376  cat conftest.err >&5
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); } &&
4379	 { ac_try='test -z "$ac_c_werror_flag"
4380			 || test ! -s conftest.err'
4381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382  (eval $ac_try) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; } &&
4386	 { ac_try='test -s conftest.$ac_objext'
4387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388  (eval $ac_try) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; }; then
4392  ac_cv_c_const=yes
4393else
4394  echo "$as_me: failed program was:" >&5
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
4397ac_cv_c_const=no
4398fi
4399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4400fi
4401echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4402echo "${ECHO_T}$ac_cv_c_const" >&6
4403if test $ac_cv_c_const = no; then
4404
4405cat >>confdefs.h <<\_ACEOF
4406#define const
4407_ACEOF
4408
4409fi
4410
4411echo "$as_me:$LINENO: checking for inline" >&5
4412echo $ECHO_N "checking for inline... $ECHO_C" >&6
4413if test "${ac_cv_c_inline+set}" = set; then
4414  echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416  ac_cv_c_inline=no
4417for ac_kw in inline __inline__ __inline; do
4418  cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h.  */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h.  */
4424#ifndef __cplusplus
4425typedef int foo_t;
4426static $ac_kw foo_t static_foo () {return 0; }
4427$ac_kw foo_t foo () {return 0; }
4428#endif
4429
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433  (eval $ac_compile) 2>conftest.er1
4434  ac_status=$?
4435  grep -v '^ *+' conftest.er1 >conftest.err
4436  rm -f conftest.er1
4437  cat conftest.err >&5
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); } &&
4440	 { ac_try='test -z "$ac_c_werror_flag"
4441			 || test ! -s conftest.err'
4442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443  (eval $ac_try) 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; } &&
4447	 { ac_try='test -s conftest.$ac_objext'
4448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449  (eval $ac_try) 2>&5
4450  ac_status=$?
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); }; }; then
4453  ac_cv_c_inline=$ac_kw; break
4454else
4455  echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458fi
4459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4460done
4461
4462fi
4463echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4464echo "${ECHO_T}$ac_cv_c_inline" >&6
4465
4466
4467case $ac_cv_c_inline in
4468  inline | yes) ;;
4469  *)
4470    case $ac_cv_c_inline in
4471      no) ac_val=;;
4472      *) ac_val=$ac_cv_c_inline;;
4473    esac
4474    cat >>confdefs.h <<_ACEOF
4475#ifndef __cplusplus
4476#define inline $ac_val
4477#endif
4478_ACEOF
4479    ;;
4480esac
4481
4482echo "$as_me:$LINENO: checking for size_t" >&5
4483echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4484if test "${ac_cv_type_size_t+set}" = set; then
4485  echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487  cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h.  */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h.  */
4493$ac_includes_default
4494int
4495main ()
4496{
4497if ((size_t *) 0)
4498  return 0;
4499if (sizeof (size_t))
4500  return 0;
4501  ;
4502  return 0;
4503}
4504_ACEOF
4505rm -f conftest.$ac_objext
4506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507  (eval $ac_compile) 2>conftest.er1
4508  ac_status=$?
4509  grep -v '^ *+' conftest.er1 >conftest.err
4510  rm -f conftest.er1
4511  cat conftest.err >&5
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); } &&
4514	 { ac_try='test -z "$ac_c_werror_flag"
4515			 || test ! -s conftest.err'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; } &&
4521	 { ac_try='test -s conftest.$ac_objext'
4522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); }; }; then
4527  ac_cv_type_size_t=yes
4528else
4529  echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532ac_cv_type_size_t=no
4533fi
4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535fi
4536echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4537echo "${ECHO_T}$ac_cv_type_size_t" >&6
4538if test $ac_cv_type_size_t = yes; then
4539  :
4540else
4541
4542cat >>confdefs.h <<_ACEOF
4543#define size_t unsigned
4544_ACEOF
4545
4546fi
4547
4548echo "$as_me:$LINENO: checking for uint8_t" >&5
4549echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4550if test "${ac_cv_type_uint8_t+set}" = set; then
4551  echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553  cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h.  */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
4558/* end confdefs.h.  */
4559$ac_includes_default
4560int
4561main ()
4562{
4563if ((uint8_t *) 0)
4564  return 0;
4565if (sizeof (uint8_t))
4566  return 0;
4567  ;
4568  return 0;
4569}
4570_ACEOF
4571rm -f conftest.$ac_objext
4572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573  (eval $ac_compile) 2>conftest.er1
4574  ac_status=$?
4575  grep -v '^ *+' conftest.er1 >conftest.err
4576  rm -f conftest.er1
4577  cat conftest.err >&5
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); } &&
4580	 { ac_try='test -z "$ac_c_werror_flag"
4581			 || test ! -s conftest.err'
4582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583  (eval $ac_try) 2>&5
4584  ac_status=$?
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); }; } &&
4587	 { ac_try='test -s conftest.$ac_objext'
4588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589  (eval $ac_try) 2>&5
4590  ac_status=$?
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); }; }; then
4593  ac_cv_type_uint8_t=yes
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598ac_cv_type_uint8_t=no
4599fi
4600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601fi
4602echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4603echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4604if test $ac_cv_type_uint8_t = yes; then
4605  :
4606else
4607
4608cat >>confdefs.h <<\_ACEOF
4609#define uint8_t unsigned char
4610_ACEOF
4611
4612fi
4613
4614echo "$as_me:$LINENO: checking for uint32_t" >&5
4615echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4616if test "${ac_cv_type_uint32_t+set}" = set; then
4617  echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619  cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h.  */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h.  */
4625$ac_includes_default
4626int
4627main ()
4628{
4629if ((uint32_t *) 0)
4630  return 0;
4631if (sizeof (uint32_t))
4632  return 0;
4633  ;
4634  return 0;
4635}
4636_ACEOF
4637rm -f conftest.$ac_objext
4638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639  (eval $ac_compile) 2>conftest.er1
4640  ac_status=$?
4641  grep -v '^ *+' conftest.er1 >conftest.err
4642  rm -f conftest.er1
4643  cat conftest.err >&5
4644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645  (exit $ac_status); } &&
4646	 { ac_try='test -z "$ac_c_werror_flag"
4647			 || test ! -s conftest.err'
4648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649  (eval $ac_try) 2>&5
4650  ac_status=$?
4651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652  (exit $ac_status); }; } &&
4653	 { ac_try='test -s conftest.$ac_objext'
4654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655  (eval $ac_try) 2>&5
4656  ac_status=$?
4657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658  (exit $ac_status); }; }; then
4659  ac_cv_type_uint32_t=yes
4660else
4661  echo "$as_me: failed program was:" >&5
4662sed 's/^/| /' conftest.$ac_ext >&5
4663
4664ac_cv_type_uint32_t=no
4665fi
4666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4667fi
4668echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4669echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4670if test $ac_cv_type_uint32_t = yes; then
4671  :
4672else
4673
4674cat >>confdefs.h <<\_ACEOF
4675#define uint32_t unsigned int
4676_ACEOF
4677
4678fi
4679
4680echo "$as_me:$LINENO: checking for uint64_t" >&5
4681echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4682if test "${ac_cv_type_uint64_t+set}" = set; then
4683  echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685  cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h.  */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h.  */
4691$ac_includes_default
4692int
4693main ()
4694{
4695if ((uint64_t *) 0)
4696  return 0;
4697if (sizeof (uint64_t))
4698  return 0;
4699  ;
4700  return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext
4704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705  (eval $ac_compile) 2>conftest.er1
4706  ac_status=$?
4707  grep -v '^ *+' conftest.er1 >conftest.err
4708  rm -f conftest.er1
4709  cat conftest.err >&5
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); } &&
4712	 { ac_try='test -z "$ac_c_werror_flag"
4713			 || test ! -s conftest.err'
4714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715  (eval $ac_try) 2>&5
4716  ac_status=$?
4717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718  (exit $ac_status); }; } &&
4719	 { ac_try='test -s conftest.$ac_objext'
4720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721  (eval $ac_try) 2>&5
4722  ac_status=$?
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); }; }; then
4725  ac_cv_type_uint64_t=yes
4726else
4727  echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730ac_cv_type_uint64_t=no
4731fi
4732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733fi
4734echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
4735echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4736if test $ac_cv_type_uint64_t = yes; then
4737  :
4738else
4739
4740cat >>confdefs.h <<\_ACEOF
4741#define uint64_t unsigned long long
4742_ACEOF
4743
4744fi
4745
4746
4747echo "$as_me:$LINENO: checking size of struct stat's st_mode" >&5
4748echo $ECHO_N "checking size of struct stat's st_mode... $ECHO_C" >&6
4749if test "${ac_cv_sizeof_st_mode+set}" = set; then
4750  echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752  if test "$cross_compiling" = yes; then
4753  ac_cv_sizeof_st_mode=4
4754else
4755  cat >conftest.$ac_ext <<_ACEOF
4756/* confdefs.h.  */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h.  */
4761#include <sys/types.h>
4762#include <sys/stat.h>
4763#include <stdio.h>
4764main()
4765{
4766  struct stat sb;
4767  FILE *f=fopen("conftestval", "w");
4768  if (!f) exit(1);
4769  fprintf(f, "%d\n", sizeof(sb.st_mode));
4770  exit(0);
4771}
4772_ACEOF
4773rm -f conftest$ac_exeext
4774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4775  (eval $ac_link) 2>&5
4776  ac_status=$?
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780  (eval $ac_try) 2>&5
4781  ac_status=$?
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); }; }; then
4784  ac_cv_sizeof_st_mode=`cat conftestval`
4785else
4786  echo "$as_me: program exited with status $ac_status" >&5
4787echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790( exit $ac_status )
4791ac_cv_sizeof_st_mode=0
4792fi
4793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4794fi
4795
4796fi
4797echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_mode" >&5
4798echo "${ECHO_T}$ac_cv_sizeof_st_mode" >&6
4799
4800cat >>confdefs.h <<_ACEOF
4801#define SIZEOF_STAT_ST_MODE $ac_cv_sizeof_st_mode
4802_ACEOF
4803
4804
4805echo "$as_me:$LINENO: checking size of struct stat's st_ino" >&5
4806echo $ECHO_N "checking size of struct stat's st_ino... $ECHO_C" >&6
4807if test "${ac_cv_sizeof_st_ino+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  if test "$cross_compiling" = yes; then
4811  ac_cv_sizeof_st_ino=4
4812else
4813  cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h.  */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
4818/* end confdefs.h.  */
4819#include <sys/types.h>
4820#include <sys/stat.h>
4821#include <stdio.h>
4822main()
4823{
4824  struct stat sb;
4825  FILE *f=fopen("conftestval", "w");
4826  if (!f) exit(1);
4827  fprintf(f, "%d\n", sizeof(sb.st_ino));
4828  exit(0);
4829}
4830_ACEOF
4831rm -f conftest$ac_exeext
4832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833  (eval $ac_link) 2>&5
4834  ac_status=$?
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838  (eval $ac_try) 2>&5
4839  ac_status=$?
4840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); }; }; then
4842  ac_cv_sizeof_st_ino=`cat conftestval`
4843else
4844  echo "$as_me: program exited with status $ac_status" >&5
4845echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848( exit $ac_status )
4849ac_cv_sizeof_st_ino=0
4850fi
4851rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4852fi
4853
4854fi
4855echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_ino" >&5
4856echo "${ECHO_T}$ac_cv_sizeof_st_ino" >&6
4857
4858cat >>confdefs.h <<_ACEOF
4859#define SIZEOF_STAT_ST_INO $ac_cv_sizeof_st_ino
4860_ACEOF
4861
4862
4863echo "$as_me:$LINENO: checking size of struct stat's st_nlink" >&5
4864echo $ECHO_N "checking size of struct stat's st_nlink... $ECHO_C" >&6
4865if test "${ac_cv_sizeof_st_nlink+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  if test "$cross_compiling" = yes; then
4869  ac_cv_sizeof_st_nlink=4
4870else
4871  cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h.  */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h.  */
4877#include <sys/types.h>
4878#include <sys/stat.h>
4879#include <stdio.h>
4880main()
4881{
4882  struct stat sb;
4883  FILE *f=fopen("conftestval", "w");
4884  if (!f) exit(1);
4885  fprintf(f, "%d\n", sizeof(sb.st_nlink));
4886  exit(0);
4887}
4888_ACEOF
4889rm -f conftest$ac_exeext
4890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891  (eval $ac_link) 2>&5
4892  ac_status=$?
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; }; then
4900  ac_cv_sizeof_st_nlink=`cat conftestval`
4901else
4902  echo "$as_me: program exited with status $ac_status" >&5
4903echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906( exit $ac_status )
4907ac_cv_sizeof_st_nlink=0
4908fi
4909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4910fi
4911
4912fi
4913echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_nlink" >&5
4914echo "${ECHO_T}$ac_cv_sizeof_st_nlink" >&6
4915
4916cat >>confdefs.h <<_ACEOF
4917#define SIZEOF_STAT_ST_NLINK $ac_cv_sizeof_st_nlink
4918_ACEOF
4919
4920
4921echo "$as_me:$LINENO: checking size of struct stat's st_uid" >&5
4922echo $ECHO_N "checking size of struct stat's st_uid... $ECHO_C" >&6
4923if test "${ac_cv_sizeof_st_uid+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  if test "$cross_compiling" = yes; then
4927  ac_cv_sizeof_st_uid=4
4928else
4929  cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h.  */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h.  */
4935#include <sys/types.h>
4936#include <sys/stat.h>
4937#include <stdio.h>
4938main()
4939{
4940  struct stat sb;
4941  FILE *f=fopen("conftestval", "w");
4942  if (!f) exit(1);
4943  fprintf(f, "%d\n", sizeof(sb.st_uid));
4944  exit(0);
4945}
4946_ACEOF
4947rm -f conftest$ac_exeext
4948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949  (eval $ac_link) 2>&5
4950  ac_status=$?
4951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954  (eval $ac_try) 2>&5
4955  ac_status=$?
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); }; }; then
4958  ac_cv_sizeof_st_uid=`cat conftestval`
4959else
4960  echo "$as_me: program exited with status $ac_status" >&5
4961echo "$as_me: failed program was:" >&5
4962sed 's/^/| /' conftest.$ac_ext >&5
4963
4964( exit $ac_status )
4965ac_cv_sizeof_st_uid=0
4966fi
4967rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968fi
4969
4970fi
4971echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_uid" >&5
4972echo "${ECHO_T}$ac_cv_sizeof_st_uid" >&6
4973
4974cat >>confdefs.h <<_ACEOF
4975#define SIZEOF_STAT_ST_UID $ac_cv_sizeof_st_uid
4976_ACEOF
4977
4978
4979echo "$as_me:$LINENO: checking size of struct stat's st_gid" >&5
4980echo $ECHO_N "checking size of struct stat's st_gid... $ECHO_C" >&6
4981if test "${ac_cv_sizeof_st_gid+set}" = set; then
4982  echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984  if test "$cross_compiling" = yes; then
4985  ac_cv_sizeof_st_gid=4
4986else
4987  cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993#include <sys/types.h>
4994#include <sys/stat.h>
4995#include <stdio.h>
4996main()
4997{
4998  struct stat sb;
4999  FILE *f=fopen("conftestval", "w");
5000  if (!f) exit(1);
5001  fprintf(f, "%d\n", sizeof(sb.st_gid));
5002  exit(0);
5003}
5004_ACEOF
5005rm -f conftest$ac_exeext
5006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007  (eval $ac_link) 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012  (eval $ac_try) 2>&5
5013  ac_status=$?
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); }; }; then
5016  ac_cv_sizeof_st_gid=`cat conftestval`
5017else
5018  echo "$as_me: program exited with status $ac_status" >&5
5019echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022( exit $ac_status )
5023ac_cv_sizeof_st_gid=0
5024fi
5025rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5026fi
5027
5028fi
5029echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_gid" >&5
5030echo "${ECHO_T}$ac_cv_sizeof_st_gid" >&6
5031
5032cat >>confdefs.h <<_ACEOF
5033#define SIZEOF_STAT_ST_GID $ac_cv_sizeof_st_gid
5034_ACEOF
5035
5036
5037echo "$as_me:$LINENO: checking size of struct stat's st_size" >&5
5038echo $ECHO_N "checking size of struct stat's st_size... $ECHO_C" >&6
5039if test "${ac_cv_sizeof_st_size+set}" = set; then
5040  echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042  if test "$cross_compiling" = yes; then
5043  ac_cv_sizeof_st_size=4
5044else
5045  cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h.  */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h.  */
5051#include <sys/types.h>
5052#include <sys/stat.h>
5053#include <stdio.h>
5054main()
5055{
5056  struct stat sb;
5057  FILE *f=fopen("conftestval", "w");
5058  if (!f) exit(1);
5059  fprintf(f, "%d\n", sizeof(sb.st_size));
5060  exit(0);
5061}
5062_ACEOF
5063rm -f conftest$ac_exeext
5064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065  (eval $ac_link) 2>&5
5066  ac_status=$?
5067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070  (eval $ac_try) 2>&5
5071  ac_status=$?
5072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073  (exit $ac_status); }; }; then
5074  ac_cv_sizeof_st_size=`cat conftestval`
5075else
5076  echo "$as_me: program exited with status $ac_status" >&5
5077echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080( exit $ac_status )
5081ac_cv_sizeof_st_size=0
5082fi
5083rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5084fi
5085
5086fi
5087echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_size" >&5
5088echo "${ECHO_T}$ac_cv_sizeof_st_size" >&6
5089
5090cat >>confdefs.h <<_ACEOF
5091#define SIZEOF_STAT_ST_SIZE $ac_cv_sizeof_st_size
5092_ACEOF
5093
5094
5095echo "$as_me:$LINENO: checking size of struct stat's st_atime" >&5
5096echo $ECHO_N "checking size of struct stat's st_atime... $ECHO_C" >&6
5097if test "${ac_cv_sizeof_st_atime+set}" = set; then
5098  echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100  if test "$cross_compiling" = yes; then
5101  ac_cv_sizeof_st_atime=4
5102else
5103  cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h.  */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h.  */
5109#include <sys/types.h>
5110#include <sys/stat.h>
5111#include <stdio.h>
5112main()
5113{
5114  struct stat sb;
5115  FILE *f=fopen("conftestval", "w");
5116  if (!f) exit(1);
5117  fprintf(f, "%d\n", sizeof(sb.st_atime));
5118  exit(0);
5119}
5120_ACEOF
5121rm -f conftest$ac_exeext
5122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123  (eval $ac_link) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128  (eval $ac_try) 2>&5
5129  ac_status=$?
5130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131  (exit $ac_status); }; }; then
5132  ac_cv_sizeof_st_atime=`cat conftestval`
5133else
5134  echo "$as_me: program exited with status $ac_status" >&5
5135echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138( exit $ac_status )
5139ac_cv_sizeof_st_atime=0
5140fi
5141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5142fi
5143
5144fi
5145echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_atime" >&5
5146echo "${ECHO_T}$ac_cv_sizeof_st_atime" >&6
5147
5148cat >>confdefs.h <<_ACEOF
5149#define SIZEOF_STAT_ST_ATIME $ac_cv_sizeof_st_atime
5150_ACEOF
5151
5152
5153echo "$as_me:$LINENO: checking size of struct stat's st_mtime" >&5
5154echo $ECHO_N "checking size of struct stat's st_mtime... $ECHO_C" >&6
5155if test "${ac_cv_sizeof_st_mtime+set}" = set; then
5156  echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158  if test "$cross_compiling" = yes; then
5159  ac_cv_sizeof_st_mtime=4
5160else
5161  cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h.  */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h.  */
5167#include <sys/types.h>
5168#include <sys/stat.h>
5169#include <stdio.h>
5170main()
5171{
5172  struct stat sb;
5173  FILE *f=fopen("conftestval", "w");
5174  if (!f) exit(1);
5175  fprintf(f, "%d\n", sizeof(sb.st_mtime));
5176  exit(0);
5177}
5178_ACEOF
5179rm -f conftest$ac_exeext
5180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181  (eval $ac_link) 2>&5
5182  ac_status=$?
5183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186  (eval $ac_try) 2>&5
5187  ac_status=$?
5188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189  (exit $ac_status); }; }; then
5190  ac_cv_sizeof_st_mtime=`cat conftestval`
5191else
5192  echo "$as_me: program exited with status $ac_status" >&5
5193echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196( exit $ac_status )
5197ac_cv_sizeof_st_mtime=0
5198fi
5199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5200fi
5201
5202fi
5203echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_mtime" >&5
5204echo "${ECHO_T}$ac_cv_sizeof_st_mtime" >&6
5205
5206cat >>confdefs.h <<_ACEOF
5207#define SIZEOF_STAT_ST_MTIME $ac_cv_sizeof_st_mtime
5208_ACEOF
5209
5210
5211echo "$as_me:$LINENO: checking size of struct stat's st_ctime" >&5
5212echo $ECHO_N "checking size of struct stat's st_ctime... $ECHO_C" >&6
5213if test "${ac_cv_sizeof_st_ctime+set}" = set; then
5214  echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216  if test "$cross_compiling" = yes; then
5217  ac_cv_sizeof_st_ctime=4
5218else
5219  cat >conftest.$ac_ext <<_ACEOF
5220/* confdefs.h.  */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h.  */
5225#include <sys/types.h>
5226#include <sys/stat.h>
5227#include <stdio.h>
5228main()
5229{
5230  struct stat sb;
5231  FILE *f=fopen("conftestval", "w");
5232  if (!f) exit(1);
5233  fprintf(f, "%d\n", sizeof(sb.st_ctime));
5234  exit(0);
5235}
5236_ACEOF
5237rm -f conftest$ac_exeext
5238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239  (eval $ac_link) 2>&5
5240  ac_status=$?
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244  (eval $ac_try) 2>&5
5245  ac_status=$?
5246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247  (exit $ac_status); }; }; then
5248  ac_cv_sizeof_st_ctime=`cat conftestval`
5249else
5250  echo "$as_me: program exited with status $ac_status" >&5
5251echo "$as_me: failed program was:" >&5
5252sed 's/^/| /' conftest.$ac_ext >&5
5253
5254( exit $ac_status )
5255ac_cv_sizeof_st_ctime=0
5256fi
5257rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5258fi
5259
5260fi
5261echo "$as_me:$LINENO: result: $ac_cv_sizeof_st_ctime" >&5
5262echo "${ECHO_T}$ac_cv_sizeof_st_ctime" >&6
5263
5264cat >>confdefs.h <<_ACEOF
5265#define SIZEOF_STAT_ST_CTIME $ac_cv_sizeof_st_ctime
5266_ACEOF
5267
5268
5269
5270echo "$as_me:$LINENO: checking for function prototypes" >&5
5271echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5272if test "$ac_cv_prog_cc_stdc" != no; then
5273  echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275
5276cat >>confdefs.h <<\_ACEOF
5277#define PROTOTYPES 1
5278_ACEOF
5279
5280
5281cat >>confdefs.h <<\_ACEOF
5282#define __PROTOTYPES 1
5283_ACEOF
5284
5285else
5286  echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288fi
5289
5290echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
5291echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
5292if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5293  echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295  ac_cv_func_setvbuf_reversed=no
5296   cat >conftest.$ac_ext <<_ACEOF
5297/* confdefs.h.  */
5298_ACEOF
5299cat confdefs.h >>conftest.$ac_ext
5300cat >>conftest.$ac_ext <<_ACEOF
5301/* end confdefs.h.  */
5302#include <stdio.h>
5303#	  if PROTOTYPES
5304	   int (setvbuf) (FILE *, int, char *, size_t);
5305#	  endif
5306int
5307main ()
5308{
5309char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
5310  ;
5311  return 0;
5312}
5313_ACEOF
5314rm -f conftest.$ac_objext conftest$ac_exeext
5315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316  (eval $ac_link) 2>conftest.er1
5317  ac_status=$?
5318  grep -v '^ *+' conftest.er1 >conftest.err
5319  rm -f conftest.er1
5320  cat conftest.err >&5
5321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322  (exit $ac_status); } &&
5323	 { ac_try='test -z "$ac_c_werror_flag"
5324			 || test ! -s conftest.err'
5325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326  (eval $ac_try) 2>&5
5327  ac_status=$?
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); }; } &&
5330	 { ac_try='test -s conftest$ac_exeext'
5331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332  (eval $ac_try) 2>&5
5333  ac_status=$?
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); }; }; then
5336  cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h.  */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h.  */
5342#include <stdio.h>
5343#	     if PROTOTYPES
5344	      int (setvbuf) (FILE *, int, char *, size_t);
5345#	     endif
5346int
5347main ()
5348{
5349char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext conftest$ac_exeext
5355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356  (eval $ac_link) 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } &&
5363	 { ac_try='test -z "$ac_c_werror_flag"
5364			 || test ! -s conftest.err'
5365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366  (eval $ac_try) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; } &&
5370	 { ac_try='test -s conftest$ac_exeext'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; }; then
5376  # It compiles and links either way, so it must not be declared
5377	 # with a prototype and most likely this is a K&R C compiler.
5378	 # Try running it.
5379	 if test "$cross_compiling" = yes; then
5380  : # Assume setvbuf is not reversed when cross-compiling.
5381else
5382  cat >conftest.$ac_ext <<_ACEOF
5383/* confdefs.h.  */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h.  */
5388#include <stdio.h>
5389int
5390main ()
5391{
5392/* This call has the arguments reversed.
5393		   A reversed system may check and see that the address of buf
5394		   is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
5395		char buf;
5396		if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
5397		  exit (1);
5398		putchar ('\r');
5399		exit (0); /* Non-reversed systems SEGV here.  */
5400  ;
5401  return 0;
5402}
5403_ACEOF
5404rm -f conftest$ac_exeext
5405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5406  (eval $ac_link) 2>&5
5407  ac_status=$?
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411  (eval $ac_try) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }; }; then
5415  ac_cv_func_setvbuf_reversed=yes
5416else
5417  echo "$as_me: program exited with status $ac_status" >&5
5418echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421( exit $ac_status )
5422rm -f core *.core
5423fi
5424rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5425fi
5426	ac_cv_func_setvbuf_reversed=yes
5427else
5428  echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431fi
5432rm -f conftest.err conftest.$ac_objext \
5433      conftest$ac_exeext conftest.$ac_ext
5434else
5435  echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438fi
5439rm -f conftest.err conftest.$ac_objext \
5440      conftest$ac_exeext conftest.$ac_ext
5441fi
5442echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
5443echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5444if test $ac_cv_func_setvbuf_reversed = yes; then
5445
5446cat >>confdefs.h <<\_ACEOF
5447#define SETVBUF_REVERSED 1
5448_ACEOF
5449
5450fi
5451
5452
5453
5454
5455for ac_func in dirname strlcat strlcpy
5456do
5457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5458echo "$as_me:$LINENO: checking for $ac_func" >&5
5459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5460if eval "test \"\${$as_ac_var+set}\" = set"; then
5461  echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463  cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5470   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5471#define $ac_func innocuous_$ac_func
5472
5473/* System header to define __stub macros and hopefully few prototypes,
5474    which can conflict with char $ac_func (); below.
5475    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5476    <limits.h> exists even on freestanding compilers.  */
5477
5478#ifdef __STDC__
5479# include <limits.h>
5480#else
5481# include <assert.h>
5482#endif
5483
5484#undef $ac_func
5485
5486/* Override any gcc2 internal prototype to avoid an error.  */
5487#ifdef __cplusplus
5488extern "C"
5489{
5490#endif
5491/* We use char because int might match the return type of a gcc2
5492   builtin and then its argument prototype would still apply.  */
5493char $ac_func ();
5494/* The GNU C library defines this for functions which it implements
5495    to always fail with ENOSYS.  Some functions are actually named
5496    something starting with __ and the normal name is an alias.  */
5497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5498choke me
5499#else
5500char (*f) () = $ac_func;
5501#endif
5502#ifdef __cplusplus
5503}
5504#endif
5505
5506int
5507main ()
5508{
5509return f != $ac_func;
5510  ;
5511  return 0;
5512}
5513_ACEOF
5514rm -f conftest.$ac_objext conftest$ac_exeext
5515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516  (eval $ac_link) 2>conftest.er1
5517  ac_status=$?
5518  grep -v '^ *+' conftest.er1 >conftest.err
5519  rm -f conftest.er1
5520  cat conftest.err >&5
5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522  (exit $ac_status); } &&
5523	 { ac_try='test -z "$ac_c_werror_flag"
5524			 || test ! -s conftest.err'
5525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526  (eval $ac_try) 2>&5
5527  ac_status=$?
5528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); }; } &&
5530	 { ac_try='test -s conftest$ac_exeext'
5531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532  (eval $ac_try) 2>&5
5533  ac_status=$?
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); }; }; then
5536  eval "$as_ac_var=yes"
5537else
5538  echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541eval "$as_ac_var=no"
5542fi
5543rm -f conftest.err conftest.$ac_objext \
5544      conftest$ac_exeext conftest.$ac_ext
5545fi
5546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5548if test `eval echo '${'$as_ac_var'}'` = yes; then
5549  cat >>confdefs.h <<_ACEOF
5550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5551_ACEOF
5552
5553else
5554  case $LIBOBJS in
5555    "$ac_func.$ac_objext"   | \
5556  *" $ac_func.$ac_objext"   | \
5557    "$ac_func.$ac_objext "* | \
5558  *" $ac_func.$ac_objext "* ) ;;
5559  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
5560esac
5561
5562fi
5563done
5564
5565
5566if test "$enable_crypto" = "yes"; then
5567  if test "$OPENSSL" != "notfound"; then
5568
5569
5570for ac_func in EVP_MD_CTX_init EVP_MD_CTX_cleanup
5571do
5572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5573echo "$as_me:$LINENO: checking for $ac_func" >&5
5574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5575if eval "test \"\${$as_ac_var+set}\" = set"; then
5576  echo $ECHO_N "(cached) $ECHO_C" >&6
5577else
5578  cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h.  */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h.  */
5584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5585   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5586#define $ac_func innocuous_$ac_func
5587
5588/* System header to define __stub macros and hopefully few prototypes,
5589    which can conflict with char $ac_func (); below.
5590    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591    <limits.h> exists even on freestanding compilers.  */
5592
5593#ifdef __STDC__
5594# include <limits.h>
5595#else
5596# include <assert.h>
5597#endif
5598
5599#undef $ac_func
5600
5601/* Override any gcc2 internal prototype to avoid an error.  */
5602#ifdef __cplusplus
5603extern "C"
5604{
5605#endif
5606/* We use char because int might match the return type of a gcc2
5607   builtin and then its argument prototype would still apply.  */
5608char $ac_func ();
5609/* The GNU C library defines this for functions which it implements
5610    to always fail with ENOSYS.  Some functions are actually named
5611    something starting with __ and the normal name is an alias.  */
5612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5613choke me
5614#else
5615char (*f) () = $ac_func;
5616#endif
5617#ifdef __cplusplus
5618}
5619#endif
5620
5621int
5622main ()
5623{
5624return f != $ac_func;
5625  ;
5626  return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext conftest$ac_exeext
5630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631  (eval $ac_link) 2>conftest.er1
5632  ac_status=$?
5633  grep -v '^ *+' conftest.er1 >conftest.err
5634  rm -f conftest.er1
5635  cat conftest.err >&5
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); } &&
5638	 { ac_try='test -z "$ac_c_werror_flag"
5639			 || test ! -s conftest.err'
5640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641  (eval $ac_try) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }; } &&
5645	 { ac_try='test -s conftest$ac_exeext'
5646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647  (eval $ac_try) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; }; then
5651  eval "$as_ac_var=yes"
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656eval "$as_ac_var=no"
5657fi
5658rm -f conftest.err conftest.$ac_objext \
5659      conftest$ac_exeext conftest.$ac_ext
5660fi
5661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5662echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5663if test `eval echo '${'$as_ac_var'}'` = yes; then
5664  cat >>confdefs.h <<_ACEOF
5665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5666_ACEOF
5667
5668fi
5669done
5670
5671    echo "$as_me:$LINENO: checking whether EVP_DigestInit returns void" >&5
5672echo $ECHO_N "checking whether EVP_DigestInit returns void... $ECHO_C" >&6
5673if test "${aps_cv_func_evp_digestinit_void+set}" = set; then
5674  echo $ECHO_N "(cached) $ECHO_C" >&6
5675else
5676  if test "$cross_compiling" = yes; then
5677  aps_cv_func_evp_digestinit_void=yes
5678else
5679  cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685$ac_includes_default
5686#include <openssl/evp.h>
5687#ifndef __cplusplus
5688int EVP_DigestInit ();
5689#endif
5690
5691int
5692main ()
5693{
5694EVP_MD_CTX ctx;
5695exit (EVP_DigestInit (&ctx, EVP_md_null ()) == 0);
5696  ;
5697  return 0;
5698}
5699_ACEOF
5700rm -f conftest$ac_exeext
5701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702  (eval $ac_link) 2>&5
5703  ac_status=$?
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707  (eval $ac_try) 2>&5
5708  ac_status=$?
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); }; }; then
5711  aps_cv_func_evp_digestinit_void=no
5712else
5713  echo "$as_me: program exited with status $ac_status" >&5
5714echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717( exit $ac_status )
5718aps_cv_func_evp_digestinit_void=yes
5719fi
5720rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5721fi
5722fi
5723echo "$as_me:$LINENO: result: $aps_cv_func_evp_digestinit_void" >&5
5724echo "${ECHO_T}$aps_cv_func_evp_digestinit_void" >&6
5725if test "$aps_cv_func_evp_digestinit_void" = "yes"; then
5726
5727cat >>confdefs.h <<\_ACEOF
5728#define EVP_DIGESTINIT_VOID 1
5729_ACEOF
5730
5731fi
5732
5733  fi
5734fi
5735
5736                    ac_config_files="$ac_config_files Makefile yafic-db.h"
5737cat >confcache <<\_ACEOF
5738# This file is a shell script that caches the results of configure
5739# tests run on this system so they can be shared between configure
5740# scripts and configure runs, see configure's option --config-cache.
5741# It is not useful on other systems.  If it contains results you don't
5742# want to keep, you may remove or edit it.
5743#
5744# config.status only pays attention to the cache file if you give it
5745# the --recheck option to rerun configure.
5746#
5747# `ac_cv_env_foo' variables (set or unset) will be overridden when
5748# loading this file, other *unset* `ac_cv_foo' will be assigned the
5749# following values.
5750
5751_ACEOF
5752
5753# The following way of writing the cache mishandles newlines in values,
5754# but we know of no workaround that is simple, portable, and efficient.
5755# So, don't put newlines in cache variables' values.
5756# Ultrix sh set writes to stderr and can't be redirected directly,
5757# and sets the high bit in the cache file unless we assign to the vars.
5758{
5759  (set) 2>&1 |
5760    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5761    *ac_space=\ *)
5762      # `set' does not quote correctly, so add quotes (double-quote
5763      # substitution turns \\\\ into \\, and sed turns \\ into \).
5764      sed -n \
5765	"s/'/'\\\\''/g;
5766	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5767      ;;
5768    *)
5769      # `set' quotes correctly as required by POSIX, so do not add quotes.
5770      sed -n \
5771	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5772      ;;
5773    esac;
5774} |
5775  sed '
5776     t clear
5777     : clear
5778     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5779     t end
5780     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5781     : end' >>confcache
5782if diff $cache_file confcache >/dev/null 2>&1; then :; else
5783  if test -w $cache_file; then
5784    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5785    cat confcache >$cache_file
5786  else
5787    echo "not updating unwritable cache $cache_file"
5788  fi
5789fi
5790rm -f confcache
5791
5792test "x$prefix" = xNONE && prefix=$ac_default_prefix
5793# Let make expand exec_prefix.
5794test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5795
5796# VPATH may cause trouble with some makes, so we remove $(srcdir),
5797# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5798# trailing colons and then remove the whole line if VPATH becomes empty
5799# (actually we leave an empty line to preserve line numbers).
5800if test "x$srcdir" = x.; then
5801  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5802s/:*\$(srcdir):*/:/;
5803s/:*\${srcdir}:*/:/;
5804s/:*@srcdir@:*/:/;
5805s/^\([^=]*=[	 ]*\):*/\1/;
5806s/:*$//;
5807s/^[^=]*=[	 ]*$//;
5808}'
5809fi
5810
5811DEFS=-DHAVE_CONFIG_H
5812
5813ac_libobjs=
5814ac_ltlibobjs=
5815for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5816  # 1. Remove the extension, and $U if already installed.
5817  ac_i=`echo "$ac_i" |
5818	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5819  # 2. Add them.
5820  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5821  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5822done
5823LIBOBJS=$ac_libobjs
5824
5825LTLIBOBJS=$ac_ltlibobjs
5826
5827
5828if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5829  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5830Usually this means the macro was only invoked conditionally." >&5
5831echo "$as_me: error: conditional \"AMDEP\" was never defined.
5832Usually this means the macro was only invoked conditionally." >&2;}
5833   { (exit 1); exit 1; }; }
5834fi
5835
5836: ${CONFIG_STATUS=./config.status}
5837ac_clean_files_save=$ac_clean_files
5838ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5839{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5840echo "$as_me: creating $CONFIG_STATUS" >&6;}
5841cat >$CONFIG_STATUS <<_ACEOF
5842#! $SHELL
5843# Generated by $as_me.
5844# Run this file to recreate the current configuration.
5845# Compiler output produced by configure, useful for debugging
5846# configure, is in config.log if it exists.
5847
5848debug=false
5849ac_cs_recheck=false
5850ac_cs_silent=false
5851SHELL=\${CONFIG_SHELL-$SHELL}
5852_ACEOF
5853
5854cat >>$CONFIG_STATUS <<\_ACEOF
5855## --------------------- ##
5856## M4sh Initialization.  ##
5857## --------------------- ##
5858
5859# Be Bourne compatible
5860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5861  emulate sh
5862  NULLCMD=:
5863  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5864  # is contrary to our usage.  Disable this feature.
5865  alias -g '${1+"$@"}'='"$@"'
5866elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5867  set -o posix
5868fi
5869DUALCASE=1; export DUALCASE # for MKS sh
5870
5871# Support unset when possible.
5872if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5873  as_unset=unset
5874else
5875  as_unset=false
5876fi
5877
5878
5879# Work around bugs in pre-3.0 UWIN ksh.
5880$as_unset ENV MAIL MAILPATH
5881PS1='$ '
5882PS2='> '
5883PS4='+ '
5884
5885# NLS nuisances.
5886for as_var in \
5887  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5888  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5889  LC_TELEPHONE LC_TIME
5890do
5891  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5892    eval $as_var=C; export $as_var
5893  else
5894    $as_unset $as_var
5895  fi
5896done
5897
5898# Required to use basename.
5899if expr a : '\(a\)' >/dev/null 2>&1; then
5900  as_expr=expr
5901else
5902  as_expr=false
5903fi
5904
5905if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5906  as_basename=basename
5907else
5908  as_basename=false
5909fi
5910
5911
5912# Name of the executable.
5913as_me=`$as_basename "$0" ||
5914$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5915	 X"$0" : 'X\(//\)$' \| \
5916	 X"$0" : 'X\(/\)$' \| \
5917	 .     : '\(.\)' 2>/dev/null ||
5918echo X/"$0" |
5919    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5920  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
5921  	  /^X\/\(\/\).*/{ s//\1/; q; }
5922  	  s/.*/./; q'`
5923
5924
5925# PATH needs CR, and LINENO needs CR and PATH.
5926# Avoid depending upon Character Ranges.
5927as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5928as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5929as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5930as_cr_digits='0123456789'
5931as_cr_alnum=$as_cr_Letters$as_cr_digits
5932
5933# The user is always right.
5934if test "${PATH_SEPARATOR+set}" != set; then
5935  echo "#! /bin/sh" >conf$$.sh
5936  echo  "exit 0"   >>conf$$.sh
5937  chmod +x conf$$.sh
5938  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5939    PATH_SEPARATOR=';'
5940  else
5941    PATH_SEPARATOR=:
5942  fi
5943  rm -f conf$$.sh
5944fi
5945
5946
5947  as_lineno_1=$LINENO
5948  as_lineno_2=$LINENO
5949  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5950  test "x$as_lineno_1" != "x$as_lineno_2" &&
5951  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5952  # Find who we are.  Look in the path if we contain no path at all
5953  # relative or not.
5954  case $0 in
5955    *[\\/]* ) as_myself=$0 ;;
5956    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959  IFS=$as_save_IFS
5960  test -z "$as_dir" && as_dir=.
5961  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5962done
5963
5964       ;;
5965  esac
5966  # We did not find ourselves, most probably we were run as `sh COMMAND'
5967  # in which case we are not to be found in the path.
5968  if test "x$as_myself" = x; then
5969    as_myself=$0
5970  fi
5971  if test ! -f "$as_myself"; then
5972    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5973echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5974   { (exit 1); exit 1; }; }
5975  fi
5976  case $CONFIG_SHELL in
5977  '')
5978    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5980do
5981  IFS=$as_save_IFS
5982  test -z "$as_dir" && as_dir=.
5983  for as_base in sh bash ksh sh5; do
5984	 case $as_dir in
5985	 /*)
5986	   if ("$as_dir/$as_base" -c '
5987  as_lineno_1=$LINENO
5988  as_lineno_2=$LINENO
5989  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5990  test "x$as_lineno_1" != "x$as_lineno_2" &&
5991  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5992	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5993	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5994	     CONFIG_SHELL=$as_dir/$as_base
5995	     export CONFIG_SHELL
5996	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5997	   fi;;
5998	 esac
5999       done
6000done
6001;;
6002  esac
6003
6004  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6005  # uniformly replaced by the line number.  The first 'sed' inserts a
6006  # line-number line before each line; the second 'sed' does the real
6007  # work.  The second script uses 'N' to pair each line-number line
6008  # with the numbered line, and appends trailing '-' during
6009  # substitution so that $LINENO is not a special case at line end.
6010  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6011  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6012  sed '=' <$as_myself |
6013    sed '
6014      N
6015      s,$,-,
6016      : loop
6017      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6018      t loop
6019      s,-$,,
6020      s,^['$as_cr_digits']*\n,,
6021    ' >$as_me.lineno &&
6022  chmod +x $as_me.lineno ||
6023    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6024echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6025   { (exit 1); exit 1; }; }
6026
6027  # Don't try to exec as it changes $[0], causing all sort of problems
6028  # (the dirname of $[0] is not the place where we might find the
6029  # original and so on.  Autoconf is especially sensible to this).
6030  . ./$as_me.lineno
6031  # Exit status is that of the last command.
6032  exit
6033}
6034
6035
6036case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6037  *c*,-n*) ECHO_N= ECHO_C='
6038' ECHO_T='	' ;;
6039  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6040  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6041esac
6042
6043if expr a : '\(a\)' >/dev/null 2>&1; then
6044  as_expr=expr
6045else
6046  as_expr=false
6047fi
6048
6049rm -f conf$$ conf$$.exe conf$$.file
6050echo >conf$$.file
6051if ln -s conf$$.file conf$$ 2>/dev/null; then
6052  # We could just check for DJGPP; but this test a) works b) is more generic
6053  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6054  if test -f conf$$.exe; then
6055    # Don't use ln at all; we don't have any links
6056    as_ln_s='cp -p'
6057  else
6058    as_ln_s='ln -s'
6059  fi
6060elif ln conf$$.file conf$$ 2>/dev/null; then
6061  as_ln_s=ln
6062else
6063  as_ln_s='cp -p'
6064fi
6065rm -f conf$$ conf$$.exe conf$$.file
6066
6067if mkdir -p . 2>/dev/null; then
6068  as_mkdir_p=:
6069else
6070  test -d ./-p && rmdir ./-p
6071  as_mkdir_p=false
6072fi
6073
6074as_executable_p="test -f"
6075
6076# Sed expression to map a string onto a valid CPP name.
6077as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6078
6079# Sed expression to map a string onto a valid variable name.
6080as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6081
6082
6083# IFS
6084# We need space, tab and new line, in precisely that order.
6085as_nl='
6086'
6087IFS=" 	$as_nl"
6088
6089# CDPATH.
6090$as_unset CDPATH
6091
6092exec 6>&1
6093
6094# Open the log real soon, to keep \$[0] and so on meaningful, and to
6095# report actual input values of CONFIG_FILES etc. instead of their
6096# values after options handling.  Logging --version etc. is OK.
6097exec 5>>config.log
6098{
6099  echo
6100  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6101## Running $as_me. ##
6102_ASBOX
6103} >&5
6104cat >&5 <<_CSEOF
6105
6106This file was extended by $as_me, which was
6107generated by GNU Autoconf 2.59.  Invocation command line was
6108
6109  CONFIG_FILES    = $CONFIG_FILES
6110  CONFIG_HEADERS  = $CONFIG_HEADERS
6111  CONFIG_LINKS    = $CONFIG_LINKS
6112  CONFIG_COMMANDS = $CONFIG_COMMANDS
6113  $ $0 $@
6114
6115_CSEOF
6116echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6117echo >&5
6118_ACEOF
6119
6120# Files that config.status was made for.
6121if test -n "$ac_config_files"; then
6122  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6123fi
6124
6125if test -n "$ac_config_headers"; then
6126  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6127fi
6128
6129if test -n "$ac_config_links"; then
6130  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6131fi
6132
6133if test -n "$ac_config_commands"; then
6134  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6135fi
6136
6137cat >>$CONFIG_STATUS <<\_ACEOF
6138
6139ac_cs_usage="\
6140\`$as_me' instantiates files from templates according to the
6141current configuration.
6142
6143Usage: $0 [OPTIONS] [FILE]...
6144
6145  -h, --help       print this help, then exit
6146  -V, --version    print version number, then exit
6147  -q, --quiet      do not print progress messages
6148  -d, --debug      don't remove temporary files
6149      --recheck    update $as_me by reconfiguring in the same conditions
6150  --file=FILE[:TEMPLATE]
6151		   instantiate the configuration file FILE
6152  --header=FILE[:TEMPLATE]
6153		   instantiate the configuration header FILE
6154
6155Configuration files:
6156$config_files
6157
6158Configuration headers:
6159$config_headers
6160
6161Configuration commands:
6162$config_commands
6163
6164Report bugs to <bug-autoconf@gnu.org>."
6165_ACEOF
6166
6167cat >>$CONFIG_STATUS <<_ACEOF
6168ac_cs_version="\\
6169config.status
6170configured by $0, generated by GNU Autoconf 2.59,
6171  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6172
6173Copyright (C) 2003 Free Software Foundation, Inc.
6174This config.status script is free software; the Free Software Foundation
6175gives unlimited permission to copy, distribute and modify it."
6176srcdir=$srcdir
6177INSTALL="$INSTALL"
6178_ACEOF
6179
6180cat >>$CONFIG_STATUS <<\_ACEOF
6181# If no file are specified by the user, then we need to provide default
6182# value.  By we need to know if files were specified by the user.
6183ac_need_defaults=:
6184while test $# != 0
6185do
6186  case $1 in
6187  --*=*)
6188    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6189    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6190    ac_shift=:
6191    ;;
6192  -*)
6193    ac_option=$1
6194    ac_optarg=$2
6195    ac_shift=shift
6196    ;;
6197  *) # This is not an option, so the user has probably given explicit
6198     # arguments.
6199     ac_option=$1
6200     ac_need_defaults=false;;
6201  esac
6202
6203  case $ac_option in
6204  # Handling of the options.
6205_ACEOF
6206cat >>$CONFIG_STATUS <<\_ACEOF
6207  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6208    ac_cs_recheck=: ;;
6209  --version | --vers* | -V )
6210    echo "$ac_cs_version"; exit 0 ;;
6211  --he | --h)
6212    # Conflict between --help and --header
6213    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6214Try \`$0 --help' for more information." >&5
6215echo "$as_me: error: ambiguous option: $1
6216Try \`$0 --help' for more information." >&2;}
6217   { (exit 1); exit 1; }; };;
6218  --help | --hel | -h )
6219    echo "$ac_cs_usage"; exit 0 ;;
6220  --debug | --d* | -d )
6221    debug=: ;;
6222  --file | --fil | --fi | --f )
6223    $ac_shift
6224    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6225    ac_need_defaults=false;;
6226  --header | --heade | --head | --hea )
6227    $ac_shift
6228    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6229    ac_need_defaults=false;;
6230  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6231  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6232    ac_cs_silent=: ;;
6233
6234  # This is an error.
6235  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6236Try \`$0 --help' for more information." >&5
6237echo "$as_me: error: unrecognized option: $1
6238Try \`$0 --help' for more information." >&2;}
6239   { (exit 1); exit 1; }; } ;;
6240
6241  *) ac_config_targets="$ac_config_targets $1" ;;
6242
6243  esac
6244  shift
6245done
6246
6247ac_configure_extra_args=
6248
6249if $ac_cs_silent; then
6250  exec 6>/dev/null
6251  ac_configure_extra_args="$ac_configure_extra_args --silent"
6252fi
6253
6254_ACEOF
6255cat >>$CONFIG_STATUS <<_ACEOF
6256if \$ac_cs_recheck; then
6257  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6258  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6259fi
6260
6261_ACEOF
6262
6263cat >>$CONFIG_STATUS <<_ACEOF
6264#
6265# INIT-COMMANDS section.
6266#
6267
6268AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6269
6270_ACEOF
6271
6272
6273
6274cat >>$CONFIG_STATUS <<\_ACEOF
6275for ac_config_target in $ac_config_targets
6276do
6277  case "$ac_config_target" in
6278  # Handling of arguments.
6279  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6280  "yafic-db.h" ) CONFIG_FILES="$CONFIG_FILES yafic-db.h" ;;
6281  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6282  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6283  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6284echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6285   { (exit 1); exit 1; }; };;
6286  esac
6287done
6288
6289# If the user did not use the arguments to specify the items to instantiate,
6290# then the envvar interface is used.  Set only those that are not.
6291# We use the long form for the default assignment because of an extremely
6292# bizarre bug on SunOS 4.1.3.
6293if $ac_need_defaults; then
6294  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6295  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6296  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6297fi
6298
6299# Have a temporary directory for convenience.  Make it in the build tree
6300# simply because there is no reason to put it here, and in addition,
6301# creating and moving files from /tmp can sometimes cause problems.
6302# Create a temporary directory, and hook for its removal unless debugging.
6303$debug ||
6304{
6305  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6306  trap '{ (exit 1); exit 1; }' 1 2 13 15
6307}
6308
6309# Create a (secure) tmp directory for tmp files.
6310
6311{
6312  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6313  test -n "$tmp" && test -d "$tmp"
6314}  ||
6315{
6316  tmp=./confstat$$-$RANDOM
6317  (umask 077 && mkdir $tmp)
6318} ||
6319{
6320   echo "$me: cannot create a temporary directory in ." >&2
6321   { (exit 1); exit 1; }
6322}
6323
6324_ACEOF
6325
6326cat >>$CONFIG_STATUS <<_ACEOF
6327
6328#
6329# CONFIG_FILES section.
6330#
6331
6332# No need to generate the scripts if there are no CONFIG_FILES.
6333# This happens for instance when ./config.status config.h
6334if test -n "\$CONFIG_FILES"; then
6335  # Protect against being on the right side of a sed subst in config.status.
6336  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6337   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6338s,@SHELL@,$SHELL,;t t
6339s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6340s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6341s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6342s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6343s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6344s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6345s,@exec_prefix@,$exec_prefix,;t t
6346s,@prefix@,$prefix,;t t
6347s,@program_transform_name@,$program_transform_name,;t t
6348s,@bindir@,$bindir,;t t
6349s,@sbindir@,$sbindir,;t t
6350s,@libexecdir@,$libexecdir,;t t
6351s,@datadir@,$datadir,;t t
6352s,@sysconfdir@,$sysconfdir,;t t
6353s,@sharedstatedir@,$sharedstatedir,;t t
6354s,@localstatedir@,$localstatedir,;t t
6355s,@libdir@,$libdir,;t t
6356s,@includedir@,$includedir,;t t
6357s,@oldincludedir@,$oldincludedir,;t t
6358s,@infodir@,$infodir,;t t
6359s,@mandir@,$mandir,;t t
6360s,@build_alias@,$build_alias,;t t
6361s,@host_alias@,$host_alias,;t t
6362s,@target_alias@,$target_alias,;t t
6363s,@DEFS@,$DEFS,;t t
6364s,@ECHO_C@,$ECHO_C,;t t
6365s,@ECHO_N@,$ECHO_N,;t t
6366s,@ECHO_T@,$ECHO_T,;t t
6367s,@LIBS@,$LIBS,;t t
6368s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6369s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6370s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6371s,@PACKAGE@,$PACKAGE,;t t
6372s,@VERSION@,$VERSION,;t t
6373s,@ACLOCAL@,$ACLOCAL,;t t
6374s,@AUTOCONF@,$AUTOCONF,;t t
6375s,@AUTOMAKE@,$AUTOMAKE,;t t
6376s,@AUTOHEADER@,$AUTOHEADER,;t t
6377s,@MAKEINFO@,$MAKEINFO,;t t
6378s,@AMTAR@,$AMTAR,;t t
6379s,@install_sh@,$install_sh,;t t
6380s,@STRIP@,$STRIP,;t t
6381s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6382s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6383s,@AWK@,$AWK,;t t
6384s,@SET_MAKE@,$SET_MAKE,;t t
6385s,@CC@,$CC,;t t
6386s,@CFLAGS@,$CFLAGS,;t t
6387s,@LDFLAGS@,$LDFLAGS,;t t
6388s,@CPPFLAGS@,$CPPFLAGS,;t t
6389s,@ac_ct_CC@,$ac_ct_CC,;t t
6390s,@EXEEXT@,$EXEEXT,;t t
6391s,@OBJEXT@,$OBJEXT,;t t
6392s,@DEPDIR@,$DEPDIR,;t t
6393s,@am__include@,$am__include,;t t
6394s,@am__quote@,$am__quote,;t t
6395s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6396s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6397s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6398s,@CCDEPMODE@,$CCDEPMODE,;t t
6399s,@OPENSSL@,$OPENSSL,;t t
6400s,@CRYPTO_PROGRAMS@,$CRYPTO_PROGRAMS,;t t
6401s,@CRYPTO_MANS@,$CRYPTO_MANS,;t t
6402s,@CPP@,$CPP,;t t
6403s,@EGREP@,$EGREP,;t t
6404s,@YAFIC_DB_HEADER@,$YAFIC_DB_HEADER,;t t
6405s,@LIBOBJS@,$LIBOBJS,;t t
6406s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6407CEOF
6408
6409_ACEOF
6410
6411  cat >>$CONFIG_STATUS <<\_ACEOF
6412  # Split the substitutions into bite-sized pieces for seds with
6413  # small command number limits, like on Digital OSF/1 and HP-UX.
6414  ac_max_sed_lines=48
6415  ac_sed_frag=1 # Number of current file.
6416  ac_beg=1 # First line for current file.
6417  ac_end=$ac_max_sed_lines # Line after last line for current file.
6418  ac_more_lines=:
6419  ac_sed_cmds=
6420  while $ac_more_lines; do
6421    if test $ac_beg -gt 1; then
6422      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6423    else
6424      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6425    fi
6426    if test ! -s $tmp/subs.frag; then
6427      ac_more_lines=false
6428    else
6429      # The purpose of the label and of the branching condition is to
6430      # speed up the sed processing (if there are no `@' at all, there
6431      # is no need to browse any of the substitutions).
6432      # These are the two extra sed commands mentioned above.
6433      (echo ':t
6434  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6435      if test -z "$ac_sed_cmds"; then
6436	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6437      else
6438	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6439      fi
6440      ac_sed_frag=`expr $ac_sed_frag + 1`
6441      ac_beg=$ac_end
6442      ac_end=`expr $ac_end + $ac_max_sed_lines`
6443    fi
6444  done
6445  if test -z "$ac_sed_cmds"; then
6446    ac_sed_cmds=cat
6447  fi
6448fi # test -n "$CONFIG_FILES"
6449
6450_ACEOF
6451cat >>$CONFIG_STATUS <<\_ACEOF
6452for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6453  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6454  case $ac_file in
6455  - | *:- | *:-:* ) # input from stdin
6456	cat >$tmp/stdin
6457	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6458	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6459  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6460	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6461  * )   ac_file_in=$ac_file.in ;;
6462  esac
6463
6464  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6465  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6466$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6467	 X"$ac_file" : 'X\(//\)[^/]' \| \
6468	 X"$ac_file" : 'X\(//\)$' \| \
6469	 X"$ac_file" : 'X\(/\)' \| \
6470	 .     : '\(.\)' 2>/dev/null ||
6471echo X"$ac_file" |
6472    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6473  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6474  	  /^X\(\/\/\)$/{ s//\1/; q; }
6475  	  /^X\(\/\).*/{ s//\1/; q; }
6476  	  s/.*/./; q'`
6477  { if $as_mkdir_p; then
6478    mkdir -p "$ac_dir"
6479  else
6480    as_dir="$ac_dir"
6481    as_dirs=
6482    while test ! -d "$as_dir"; do
6483      as_dirs="$as_dir $as_dirs"
6484      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6485$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6486	 X"$as_dir" : 'X\(//\)[^/]' \| \
6487	 X"$as_dir" : 'X\(//\)$' \| \
6488	 X"$as_dir" : 'X\(/\)' \| \
6489	 .     : '\(.\)' 2>/dev/null ||
6490echo X"$as_dir" |
6491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6492  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6493  	  /^X\(\/\/\)$/{ s//\1/; q; }
6494  	  /^X\(\/\).*/{ s//\1/; q; }
6495  	  s/.*/./; q'`
6496    done
6497    test ! -n "$as_dirs" || mkdir $as_dirs
6498  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6499echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6500   { (exit 1); exit 1; }; }; }
6501
6502  ac_builddir=.
6503
6504if test "$ac_dir" != .; then
6505  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6506  # A "../" for each directory in $ac_dir_suffix.
6507  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6508else
6509  ac_dir_suffix= ac_top_builddir=
6510fi
6511
6512case $srcdir in
6513  .)  # No --srcdir option.  We are building in place.
6514    ac_srcdir=.
6515    if test -z "$ac_top_builddir"; then
6516       ac_top_srcdir=.
6517    else
6518       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6519    fi ;;
6520  [\\/]* | ?:[\\/]* )  # Absolute path.
6521    ac_srcdir=$srcdir$ac_dir_suffix;
6522    ac_top_srcdir=$srcdir ;;
6523  *) # Relative path.
6524    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6525    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6526esac
6527
6528# Do not use `cd foo && pwd` to compute absolute paths, because
6529# the directories may not exist.
6530case `pwd` in
6531.) ac_abs_builddir="$ac_dir";;
6532*)
6533  case "$ac_dir" in
6534  .) ac_abs_builddir=`pwd`;;
6535  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6536  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6537  esac;;
6538esac
6539case $ac_abs_builddir in
6540.) ac_abs_top_builddir=${ac_top_builddir}.;;
6541*)
6542  case ${ac_top_builddir}. in
6543  .) ac_abs_top_builddir=$ac_abs_builddir;;
6544  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6545  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6546  esac;;
6547esac
6548case $ac_abs_builddir in
6549.) ac_abs_srcdir=$ac_srcdir;;
6550*)
6551  case $ac_srcdir in
6552  .) ac_abs_srcdir=$ac_abs_builddir;;
6553  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6554  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6555  esac;;
6556esac
6557case $ac_abs_builddir in
6558.) ac_abs_top_srcdir=$ac_top_srcdir;;
6559*)
6560  case $ac_top_srcdir in
6561  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6562  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6563  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6564  esac;;
6565esac
6566
6567
6568  case $INSTALL in
6569  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6570  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6571  esac
6572
6573  if test x"$ac_file" != x-; then
6574    { echo "$as_me:$LINENO: creating $ac_file" >&5
6575echo "$as_me: creating $ac_file" >&6;}
6576    rm -f "$ac_file"
6577  fi
6578  # Let's still pretend it is `configure' which instantiates (i.e., don't
6579  # use $as_me), people would be surprised to read:
6580  #    /* config.h.  Generated by config.status.  */
6581  if test x"$ac_file" = x-; then
6582    configure_input=
6583  else
6584    configure_input="$ac_file.  "
6585  fi
6586  configure_input=$configure_input"Generated from `echo $ac_file_in |
6587				     sed 's,.*/,,'` by configure."
6588
6589  # First look for the input files in the build tree, otherwise in the
6590  # src tree.
6591  ac_file_inputs=`IFS=:
6592    for f in $ac_file_in; do
6593      case $f in
6594      -) echo $tmp/stdin ;;
6595      [\\/$]*)
6596	 # Absolute (can't be DOS-style, as IFS=:)
6597	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6598echo "$as_me: error: cannot find input file: $f" >&2;}
6599   { (exit 1); exit 1; }; }
6600	 echo "$f";;
6601      *) # Relative
6602	 if test -f "$f"; then
6603	   # Build tree
6604	   echo "$f"
6605	 elif test -f "$srcdir/$f"; then
6606	   # Source tree
6607	   echo "$srcdir/$f"
6608	 else
6609	   # /dev/null tree
6610	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6611echo "$as_me: error: cannot find input file: $f" >&2;}
6612   { (exit 1); exit 1; }; }
6613	 fi;;
6614      esac
6615    done` || { (exit 1); exit 1; }
6616_ACEOF
6617cat >>$CONFIG_STATUS <<_ACEOF
6618  sed "$ac_vpsub
6619$extrasub
6620_ACEOF
6621cat >>$CONFIG_STATUS <<\_ACEOF
6622:t
6623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6624s,@configure_input@,$configure_input,;t t
6625s,@srcdir@,$ac_srcdir,;t t
6626s,@abs_srcdir@,$ac_abs_srcdir,;t t
6627s,@top_srcdir@,$ac_top_srcdir,;t t
6628s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6629s,@builddir@,$ac_builddir,;t t
6630s,@abs_builddir@,$ac_abs_builddir,;t t
6631s,@top_builddir@,$ac_top_builddir,;t t
6632s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6633s,@INSTALL@,$ac_INSTALL,;t t
6634" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6635  rm -f $tmp/stdin
6636  if test x"$ac_file" != x-; then
6637    mv $tmp/out $ac_file
6638  else
6639    cat $tmp/out
6640    rm -f $tmp/out
6641  fi
6642
6643done
6644_ACEOF
6645cat >>$CONFIG_STATUS <<\_ACEOF
6646
6647#
6648# CONFIG_HEADER section.
6649#
6650
6651# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6652# NAME is the cpp macro being defined and VALUE is the value it is being given.
6653#
6654# ac_d sets the value in "#define NAME VALUE" lines.
6655ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
6656ac_dB='[	 ].*$,\1#\2'
6657ac_dC=' '
6658ac_dD=',;t'
6659# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6660ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
6661ac_uB='$,\1#\2define\3'
6662ac_uC=' '
6663ac_uD=',;t'
6664
6665for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6666  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6667  case $ac_file in
6668  - | *:- | *:-:* ) # input from stdin
6669	cat >$tmp/stdin
6670	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6671	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6672  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6673	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6674  * )   ac_file_in=$ac_file.in ;;
6675  esac
6676
6677  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6678echo "$as_me: creating $ac_file" >&6;}
6679
6680  # First look for the input files in the build tree, otherwise in the
6681  # src tree.
6682  ac_file_inputs=`IFS=:
6683    for f in $ac_file_in; do
6684      case $f in
6685      -) echo $tmp/stdin ;;
6686      [\\/$]*)
6687	 # Absolute (can't be DOS-style, as IFS=:)
6688	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6689echo "$as_me: error: cannot find input file: $f" >&2;}
6690   { (exit 1); exit 1; }; }
6691	 # Do quote $f, to prevent DOS paths from being IFS'd.
6692	 echo "$f";;
6693      *) # Relative
6694	 if test -f "$f"; then
6695	   # Build tree
6696	   echo "$f"
6697	 elif test -f "$srcdir/$f"; then
6698	   # Source tree
6699	   echo "$srcdir/$f"
6700	 else
6701	   # /dev/null tree
6702	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6703echo "$as_me: error: cannot find input file: $f" >&2;}
6704   { (exit 1); exit 1; }; }
6705	 fi;;
6706      esac
6707    done` || { (exit 1); exit 1; }
6708  # Remove the trailing spaces.
6709  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
6710
6711_ACEOF
6712
6713# Transform confdefs.h into two sed scripts, `conftest.defines' and
6714# `conftest.undefs', that substitutes the proper values into
6715# config.h.in to produce config.h.  The first handles `#define'
6716# templates, and the second `#undef' templates.
6717# And first: Protect against being on the right side of a sed subst in
6718# config.status.  Protect against being in an unquoted here document
6719# in config.status.
6720rm -f conftest.defines conftest.undefs
6721# Using a here document instead of a string reduces the quoting nightmare.
6722# Putting comments in sed scripts is not portable.
6723#
6724# `end' is used to avoid that the second main sed command (meant for
6725# 0-ary CPP macros) applies to n-ary macro definitions.
6726# See the Autoconf documentation for `clear'.
6727cat >confdef2sed.sed <<\_ACEOF
6728s/[\\&,]/\\&/g
6729s,[\\$`],\\&,g
6730t clear
6731: clear
6732s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6733t end
6734s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6735: end
6736_ACEOF
6737# If some macros were called several times there might be several times
6738# the same #defines, which is useless.  Nevertheless, we may not want to
6739# sort them, since we want the *last* AC-DEFINE to be honored.
6740uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6741sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6742rm -f confdef2sed.sed
6743
6744# This sed command replaces #undef with comments.  This is necessary, for
6745# example, in the case of _POSIX_SOURCE, which is predefined and required
6746# on some systems where configure will not decide to define it.
6747cat >>conftest.undefs <<\_ACEOF
6748s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6749_ACEOF
6750
6751# Break up conftest.defines because some shells have a limit on the size
6752# of here documents, and old seds have small limits too (100 cmds).
6753echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6754echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6755echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6756echo '  :' >>$CONFIG_STATUS
6757rm -f conftest.tail
6758while grep . conftest.defines >/dev/null
6759do
6760  # Write a limited-size here document to $tmp/defines.sed.
6761  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6762  # Speed up: don't consider the non `#define' lines.
6763  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
6764  # Work around the forget-to-reset-the-flag bug.
6765  echo 't clr' >>$CONFIG_STATUS
6766  echo ': clr' >>$CONFIG_STATUS
6767  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6768  echo 'CEOF
6769  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6770  rm -f $tmp/in
6771  mv $tmp/out $tmp/in
6772' >>$CONFIG_STATUS
6773  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6774  rm -f conftest.defines
6775  mv conftest.tail conftest.defines
6776done
6777rm -f conftest.defines
6778echo '  fi # grep' >>$CONFIG_STATUS
6779echo >>$CONFIG_STATUS
6780
6781# Break up conftest.undefs because some shells have a limit on the size
6782# of here documents, and old seds have small limits too (100 cmds).
6783echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6784rm -f conftest.tail
6785while grep . conftest.undefs >/dev/null
6786do
6787  # Write a limited-size here document to $tmp/undefs.sed.
6788  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6789  # Speed up: don't consider the non `#undef'
6790  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
6791  # Work around the forget-to-reset-the-flag bug.
6792  echo 't clr' >>$CONFIG_STATUS
6793  echo ': clr' >>$CONFIG_STATUS
6794  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6795  echo 'CEOF
6796  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6797  rm -f $tmp/in
6798  mv $tmp/out $tmp/in
6799' >>$CONFIG_STATUS
6800  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6801  rm -f conftest.undefs
6802  mv conftest.tail conftest.undefs
6803done
6804rm -f conftest.undefs
6805
6806cat >>$CONFIG_STATUS <<\_ACEOF
6807  # Let's still pretend it is `configure' which instantiates (i.e., don't
6808  # use $as_me), people would be surprised to read:
6809  #    /* config.h.  Generated by config.status.  */
6810  if test x"$ac_file" = x-; then
6811    echo "/* Generated by configure.  */" >$tmp/config.h
6812  else
6813    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6814  fi
6815  cat $tmp/in >>$tmp/config.h
6816  rm -f $tmp/in
6817  if test x"$ac_file" != x-; then
6818    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6819      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6820echo "$as_me: $ac_file is unchanged" >&6;}
6821    else
6822      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6823$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6824	 X"$ac_file" : 'X\(//\)[^/]' \| \
6825	 X"$ac_file" : 'X\(//\)$' \| \
6826	 X"$ac_file" : 'X\(/\)' \| \
6827	 .     : '\(.\)' 2>/dev/null ||
6828echo X"$ac_file" |
6829    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6830  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6831  	  /^X\(\/\/\)$/{ s//\1/; q; }
6832  	  /^X\(\/\).*/{ s//\1/; q; }
6833  	  s/.*/./; q'`
6834      { if $as_mkdir_p; then
6835    mkdir -p "$ac_dir"
6836  else
6837    as_dir="$ac_dir"
6838    as_dirs=
6839    while test ! -d "$as_dir"; do
6840      as_dirs="$as_dir $as_dirs"
6841      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6843	 X"$as_dir" : 'X\(//\)[^/]' \| \
6844	 X"$as_dir" : 'X\(//\)$' \| \
6845	 X"$as_dir" : 'X\(/\)' \| \
6846	 .     : '\(.\)' 2>/dev/null ||
6847echo X"$as_dir" |
6848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6849  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6850  	  /^X\(\/\/\)$/{ s//\1/; q; }
6851  	  /^X\(\/\).*/{ s//\1/; q; }
6852  	  s/.*/./; q'`
6853    done
6854    test ! -n "$as_dirs" || mkdir $as_dirs
6855  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6856echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6857   { (exit 1); exit 1; }; }; }
6858
6859      rm -f $ac_file
6860      mv $tmp/config.h $ac_file
6861    fi
6862  else
6863    cat $tmp/config.h
6864    rm -f $tmp/config.h
6865  fi
6866  # Run the commands associated with the file.
6867  case $ac_file in
6868    config.h ) # update the timestamp
6869echo 'timestamp for config.h' >"./stamp-h1"
6870 ;;
6871  esac
6872done
6873_ACEOF
6874cat >>$CONFIG_STATUS <<\_ACEOF
6875
6876#
6877# CONFIG_COMMANDS section.
6878#
6879for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6880  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6881  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6882  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6883$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6884	 X"$ac_dest" : 'X\(//\)[^/]' \| \
6885	 X"$ac_dest" : 'X\(//\)$' \| \
6886	 X"$ac_dest" : 'X\(/\)' \| \
6887	 .     : '\(.\)' 2>/dev/null ||
6888echo X"$ac_dest" |
6889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6890  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6891  	  /^X\(\/\/\)$/{ s//\1/; q; }
6892  	  /^X\(\/\).*/{ s//\1/; q; }
6893  	  s/.*/./; q'`
6894  { if $as_mkdir_p; then
6895    mkdir -p "$ac_dir"
6896  else
6897    as_dir="$ac_dir"
6898    as_dirs=
6899    while test ! -d "$as_dir"; do
6900      as_dirs="$as_dir $as_dirs"
6901      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6902$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6903	 X"$as_dir" : 'X\(//\)[^/]' \| \
6904	 X"$as_dir" : 'X\(//\)$' \| \
6905	 X"$as_dir" : 'X\(/\)' \| \
6906	 .     : '\(.\)' 2>/dev/null ||
6907echo X"$as_dir" |
6908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6909  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6910  	  /^X\(\/\/\)$/{ s//\1/; q; }
6911  	  /^X\(\/\).*/{ s//\1/; q; }
6912  	  s/.*/./; q'`
6913    done
6914    test ! -n "$as_dirs" || mkdir $as_dirs
6915  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6916echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6917   { (exit 1); exit 1; }; }; }
6918
6919  ac_builddir=.
6920
6921if test "$ac_dir" != .; then
6922  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6923  # A "../" for each directory in $ac_dir_suffix.
6924  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6925else
6926  ac_dir_suffix= ac_top_builddir=
6927fi
6928
6929case $srcdir in
6930  .)  # No --srcdir option.  We are building in place.
6931    ac_srcdir=.
6932    if test -z "$ac_top_builddir"; then
6933       ac_top_srcdir=.
6934    else
6935       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6936    fi ;;
6937  [\\/]* | ?:[\\/]* )  # Absolute path.
6938    ac_srcdir=$srcdir$ac_dir_suffix;
6939    ac_top_srcdir=$srcdir ;;
6940  *) # Relative path.
6941    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6942    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6943esac
6944
6945# Do not use `cd foo && pwd` to compute absolute paths, because
6946# the directories may not exist.
6947case `pwd` in
6948.) ac_abs_builddir="$ac_dir";;
6949*)
6950  case "$ac_dir" in
6951  .) ac_abs_builddir=`pwd`;;
6952  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6953  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6954  esac;;
6955esac
6956case $ac_abs_builddir in
6957.) ac_abs_top_builddir=${ac_top_builddir}.;;
6958*)
6959  case ${ac_top_builddir}. in
6960  .) ac_abs_top_builddir=$ac_abs_builddir;;
6961  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6962  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6963  esac;;
6964esac
6965case $ac_abs_builddir in
6966.) ac_abs_srcdir=$ac_srcdir;;
6967*)
6968  case $ac_srcdir in
6969  .) ac_abs_srcdir=$ac_abs_builddir;;
6970  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6971  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6972  esac;;
6973esac
6974case $ac_abs_builddir in
6975.) ac_abs_top_srcdir=$ac_top_srcdir;;
6976*)
6977  case $ac_top_srcdir in
6978  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6979  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6980  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6981  esac;;
6982esac
6983
6984
6985  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6986echo "$as_me: executing $ac_dest commands" >&6;}
6987  case $ac_dest in
6988    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6989  # Strip MF so we end up with the name of the file.
6990  mf=`echo "$mf" | sed -e 's/:.*$//'`
6991  # Check whether this is an Automake generated Makefile or not.
6992  # We used to match only the files named `Makefile.in', but
6993  # some people rename them; so instead we look at the file content.
6994  # Grep'ing the first line is not enough: some people post-process
6995  # each Makefile.in and add a new line on top of each file to say so.
6996  # So let's grep whole file.
6997  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6998    dirpart=`(dirname "$mf") 2>/dev/null ||
6999$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7000	 X"$mf" : 'X\(//\)[^/]' \| \
7001	 X"$mf" : 'X\(//\)$' \| \
7002	 X"$mf" : 'X\(/\)' \| \
7003	 .     : '\(.\)' 2>/dev/null ||
7004echo X"$mf" |
7005    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7006  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7007  	  /^X\(\/\/\)$/{ s//\1/; q; }
7008  	  /^X\(\/\).*/{ s//\1/; q; }
7009  	  s/.*/./; q'`
7010  else
7011    continue
7012  fi
7013  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7014  # Extract the definition of DEP_FILES from the Makefile without
7015  # running `make'.
7016  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7017  test -z "$DEPDIR" && continue
7018  # When using ansi2knr, U may be empty or an underscore; expand it
7019  U=`sed -n -e '/^U = / s///p' < "$mf"`
7020  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7021  # We invoke sed twice because it is the simplest approach to
7022  # changing $(DEPDIR) to its actual value in the expansion.
7023  for file in `sed -n -e '
7024    /^DEP_FILES = .*\\\\$/ {
7025      s/^DEP_FILES = //
7026      :loop
7027	s/\\\\$//
7028	p
7029	n
7030	/\\\\$/ b loop
7031      p
7032    }
7033    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7034       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7035    # Make sure the directory exists.
7036    test -f "$dirpart/$file" && continue
7037    fdir=`(dirname "$file") 2>/dev/null ||
7038$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7039	 X"$file" : 'X\(//\)[^/]' \| \
7040	 X"$file" : 'X\(//\)$' \| \
7041	 X"$file" : 'X\(/\)' \| \
7042	 .     : '\(.\)' 2>/dev/null ||
7043echo X"$file" |
7044    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7045  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7046  	  /^X\(\/\/\)$/{ s//\1/; q; }
7047  	  /^X\(\/\).*/{ s//\1/; q; }
7048  	  s/.*/./; q'`
7049    { if $as_mkdir_p; then
7050    mkdir -p $dirpart/$fdir
7051  else
7052    as_dir=$dirpart/$fdir
7053    as_dirs=
7054    while test ! -d "$as_dir"; do
7055      as_dirs="$as_dir $as_dirs"
7056      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7058	 X"$as_dir" : 'X\(//\)[^/]' \| \
7059	 X"$as_dir" : 'X\(//\)$' \| \
7060	 X"$as_dir" : 'X\(/\)' \| \
7061	 .     : '\(.\)' 2>/dev/null ||
7062echo X"$as_dir" |
7063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7064  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7065  	  /^X\(\/\/\)$/{ s//\1/; q; }
7066  	  /^X\(\/\).*/{ s//\1/; q; }
7067  	  s/.*/./; q'`
7068    done
7069    test ! -n "$as_dirs" || mkdir $as_dirs
7070  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7071echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7072   { (exit 1); exit 1; }; }; }
7073
7074    # echo "creating $dirpart/$file"
7075    echo '# dummy' > "$dirpart/$file"
7076  done
7077done
7078 ;;
7079  esac
7080done
7081_ACEOF
7082
7083cat >>$CONFIG_STATUS <<\_ACEOF
7084
7085{ (exit 0); exit 0; }
7086_ACEOF
7087chmod +x $CONFIG_STATUS
7088ac_clean_files=$ac_clean_files_save
7089
7090
7091# configure is writing to config.log, and then calls config.status.
7092# config.status does its own redirection, appending to config.log.
7093# Unfortunately, on DOS this fails, as config.log is still kept open
7094# by configure, so config.status won't be able to write to it; its
7095# output is simply discarded.  So we exec the FD to /dev/null,
7096# effectively closing config.log, so it can be properly (re)opened and
7097# appended to by config.status.  When coming back to configure, we
7098# need to make the FD available again.
7099if test "$no_create" != yes; then
7100  ac_cs_success=:
7101  ac_config_status_args=
7102  test "$silent" = yes &&
7103    ac_config_status_args="$ac_config_status_args --quiet"
7104  exec 5>/dev/null
7105  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7106  exec 5>>config.log
7107  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7108  # would make configure fail if this is the last instruction.
7109  $ac_cs_success || { (exit 1); exit 1; }
7110fi
7111
7112