libtar-1.2.11 tarball sources, taken from Debian's orig tar
[libtar.git] / autom4te.cache / output.0
blobe2f0db9098359c9ca149e950f96ceff5a083893b
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.57 for libtar 1.2.11.
4 @%:@ 
5 @%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 @%:@ Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 @%:@ 
10 @%:@ 
11 @%:@ Copyright (c) 1998-2003 University of Illinois Board of Trustees
12 @%:@ Copyright (c) 1998-2003 Mark D. Roth
13 @%:@ All rights reserved.
14 @%:@ 
15 ## --------------------- ##
16 ## M4sh Initialization.  ##
17 ## --------------------- ##
19 # Be Bourne compatible
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21   emulate sh
22   NULLCMD=:
23   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27   set -o posix
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
38 # Work around bugs in pre-3.0 UWIN ksh.
39 $as_unset ENV MAIL MAILPATH
40 PS1='$ '
41 PS2='> '
42 PS4='+ '
44 # NLS nuisances.
45 for as_var in \
46   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48   LC_TELEPHONE LC_TIME
50   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
51     eval $as_var=C; export $as_var
52   else
53     $as_unset $as_var
54   fi
55 done
57 # Required to use basename.
58 if expr a : '\(a\)' >/dev/null 2>&1; then
59   as_expr=expr
60 else
61   as_expr=false
64 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65   as_basename=basename
66 else
67   as_basename=false
71 # Name of the executable.
72 as_me=`$as_basename "$0" ||
73 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74          X"$0" : 'X\(//\)$' \| \
75          X"$0" : 'X\(/\)$' \| \
76          .     : '\(.\)' 2>/dev/null ||
77 echo X/"$0" |
78     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79           /^X\/\(\/\/\)$/{ s//\1/; q; }
80           /^X\/\(\/\).*/{ s//\1/; q; }
81           s/.*/./; q'`
84 # PATH needs CR, and LINENO needs CR and PATH.
85 # Avoid depending upon Character Ranges.
86 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89 as_cr_digits='0123456789'
90 as_cr_alnum=$as_cr_Letters$as_cr_digits
92 # The user is always right.
93 if test "${PATH_SEPARATOR+set}" != set; then
94   echo "#! /bin/sh" >conf$$.sh
95   echo  "exit 0"   >>conf$$.sh
96   chmod +x conf$$.sh
97   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
98     PATH_SEPARATOR=';'
99   else
100     PATH_SEPARATOR=:
101   fi
102   rm -f conf$$.sh
106   as_lineno_1=$LINENO
107   as_lineno_2=$LINENO
108   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109   test "x$as_lineno_1" != "x$as_lineno_2" &&
110   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
111   # Find who we are.  Look in the path if we contain no path at all
112   # relative or not.
113   case $0 in
114     *[\\/]* ) as_myself=$0 ;;
115     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 for as_dir in $PATH
118   IFS=$as_save_IFS
119   test -z "$as_dir" && as_dir=.
120   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 done
123        ;;
124   esac
125   # We did not find ourselves, most probably we were run as `sh COMMAND'
126   # in which case we are not to be found in the path.
127   if test "x$as_myself" = x; then
128     as_myself=$0
129   fi
130   if test ! -f "$as_myself"; then
131     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132    { (exit 1); exit 1; }; }
133   fi
134   case $CONFIG_SHELL in
135   '')
136     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
139   IFS=$as_save_IFS
140   test -z "$as_dir" && as_dir=.
141   for as_base in sh bash ksh sh5; do
142          case $as_dir in
143          /*)
144            if ("$as_dir/$as_base" -c '
145   as_lineno_1=$LINENO
146   as_lineno_2=$LINENO
147   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148   test "x$as_lineno_1" != "x$as_lineno_2" &&
149   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
150              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152              CONFIG_SHELL=$as_dir/$as_base
153              export CONFIG_SHELL
154              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155            fi;;
156          esac
157        done
158 done
160   esac
162   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163   # uniformly replaced by the line number.  The first 'sed' inserts a
164   # line-number line before each line; the second 'sed' does the real
165   # work.  The second script uses 'N' to pair each line-number line
166   # with the numbered line, and appends trailing '-' during
167   # substitution so that $LINENO is not a special case at line end.
168   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
170   sed '=' <$as_myself |
171     sed '
172       N
173       s,$,-,
174       : loop
175       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176       t loop
177       s,-$,,
178       s,^['$as_cr_digits']*\n,,
179     ' >$as_me.lineno &&
180   chmod +x $as_me.lineno ||
181     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182    { (exit 1); exit 1; }; }
184   # Don't try to exec as it changes $[0], causing all sort of problems
185   # (the dirname of $[0] is not the place where we might find the
186   # original and so on.  Autoconf is especially sensible to this).
187   . ./$as_me.lineno
188   # Exit status is that of the last command.
189   exit
193 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194   *c*,-n*) ECHO_N= ECHO_C='
195 ' ECHO_T='      ' ;;
196   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 esac
200 if expr a : '\(a\)' >/dev/null 2>&1; then
201   as_expr=expr
202 else
203   as_expr=false
206 rm -f conf$$ conf$$.exe conf$$.file
207 echo >conf$$.file
208 if ln -s conf$$.file conf$$ 2>/dev/null; then
209   # We could just check for DJGPP; but this test a) works b) is more generic
210   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211   if test -f conf$$.exe; then
212     # Don't use ln at all; we don't have any links
213     as_ln_s='cp -p'
214   else
215     as_ln_s='ln -s'
216   fi
217 elif ln conf$$.file conf$$ 2>/dev/null; then
218   as_ln_s=ln
219 else
220   as_ln_s='cp -p'
222 rm -f conf$$ conf$$.exe conf$$.file
224 if mkdir -p . 2>/dev/null; then
225   as_mkdir_p=:
226 else
227   as_mkdir_p=false
230 as_executable_p="test -f"
232 # Sed expression to map a string onto a valid CPP name.
233 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
235 # Sed expression to map a string onto a valid variable name.
236 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
239 # IFS
240 # We need space, tab and new line, in precisely that order.
241 as_nl='
243 IFS="   $as_nl"
245 # CDPATH.
246 $as_unset CDPATH
249 # Name of the host.
250 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
251 # so uname gets run too.
252 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 exec 6>&1
257 # Initializations.
259 ac_default_prefix=/usr/local
260 ac_config_libobj_dir=.
261 cross_compiling=no
262 subdirs=
263 MFLAGS=
264 MAKEFLAGS=
265 SHELL=${CONFIG_SHELL-/bin/sh}
267 # Maximum number of lines to put in a shell here document.
268 # This variable seems obsolete.  It should probably be removed, and
269 # only ac_max_sed_lines should be used.
270 : ${ac_max_here_lines=38}
272 # Identity of this package.
273 PACKAGE_NAME='libtar'
274 PACKAGE_TARNAME='libtar'
275 PACKAGE_VERSION='1.2.11'
276 PACKAGE_STRING='libtar 1.2.11'
277 PACKAGE_BUGREPORT=''
279 ac_unique_file="lib/libtar.h"
280 # Factoring default headers for most tests.
281 ac_includes_default="\
282 #include <stdio.h>
283 #if HAVE_SYS_TYPES_H
284 # include <sys/types.h>
285 #endif
286 #if HAVE_SYS_STAT_H
287 # include <sys/stat.h>
288 #endif
289 #if STDC_HEADERS
290 # include <stdlib.h>
291 # include <stddef.h>
292 #else
293 # if HAVE_STDLIB_H
294 #  include <stdlib.h>
295 # endif
296 #endif
297 #if HAVE_STRING_H
298 # if !STDC_HEADERS && HAVE_MEMORY_H
299 #  include <memory.h>
300 # endif
301 # include <string.h>
302 #endif
303 #if HAVE_STRINGS_H
304 # include <strings.h>
305 #endif
306 #if HAVE_INTTYPES_H
307 # include <inttypes.h>
308 #else
309 # if HAVE_STDINT_H
310 #  include <stdint.h>
311 # endif
312 #endif
313 #if HAVE_UNISTD_H
314 # include <unistd.h>
315 #endif"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EPKG MKENCAP ENCAP_DEFS ENCAP_INSTALL_RULES ENCAP_INSTALL_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIB@&t@OBJS LISTHASH_PREFIX LISTHASH_DIR MKDIR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE CPP EGREP LTLIBOBJS'
318 ac_subst_files=''
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
358 ac_prev=
359 for ac_option
361   # If the previous option needs an argument, assign it.
362   if test -n "$ac_prev"; then
363     eval "$ac_prev=\$ac_option"
364     ac_prev=
365     continue
366   fi
368   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370   # Accept the important Cygnus configure options, so we can diagnose typos.
372   case $ac_option in
374   -bindir | --bindir | --bindi | --bind | --bin | --bi)
375     ac_prev=bindir ;;
376   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377     bindir=$ac_optarg ;;
379   -build | --build | --buil | --bui | --bu)
380     ac_prev=build_alias ;;
381   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382     build_alias=$ac_optarg ;;
384   -cache-file | --cache-file | --cache-fil | --cache-fi \
385   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386     ac_prev=cache_file ;;
387   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389     cache_file=$ac_optarg ;;
391   --config-cache | -C)
392     cache_file=config.cache ;;
394   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395     ac_prev=datadir ;;
396   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397   | --da=*)
398     datadir=$ac_optarg ;;
400   -disable-* | --disable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     eval "enable_$ac_feature=no" ;;
409   -enable-* | --enable-*)
410     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411     # Reject names that are not valid shell variable names.
412     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414    { (exit 1); exit 1; }; }
415     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416     case $ac_option in
417       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418       *) ac_optarg=yes ;;
419     esac
420     eval "enable_$ac_feature='$ac_optarg'" ;;
422   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424   | --exec | --exe | --ex)
425     ac_prev=exec_prefix ;;
426   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428   | --exec=* | --exe=* | --ex=*)
429     exec_prefix=$ac_optarg ;;
431   -gas | --gas | --ga | --g)
432     # Obsolete; use --with-gas.
433     with_gas=yes ;;
435   -help | --help | --hel | --he | -h)
436     ac_init_help=long ;;
437   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438     ac_init_help=recursive ;;
439   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440     ac_init_help=short ;;
442   -host | --host | --hos | --ho)
443     ac_prev=host_alias ;;
444   -host=* | --host=* | --hos=* | --ho=*)
445     host_alias=$ac_optarg ;;
447   -includedir | --includedir | --includedi | --included | --include \
448   | --includ | --inclu | --incl | --inc)
449     ac_prev=includedir ;;
450   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451   | --includ=* | --inclu=* | --incl=* | --inc=*)
452     includedir=$ac_optarg ;;
454   -infodir | --infodir | --infodi | --infod | --info | --inf)
455     ac_prev=infodir ;;
456   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457     infodir=$ac_optarg ;;
459   -libdir | --libdir | --libdi | --libd)
460     ac_prev=libdir ;;
461   -libdir=* | --libdir=* | --libdi=* | --libd=*)
462     libdir=$ac_optarg ;;
464   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465   | --libexe | --libex | --libe)
466     ac_prev=libexecdir ;;
467   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468   | --libexe=* | --libex=* | --libe=*)
469     libexecdir=$ac_optarg ;;
471   -localstatedir | --localstatedir | --localstatedi | --localstated \
472   | --localstate | --localstat | --localsta | --localst \
473   | --locals | --local | --loca | --loc | --lo)
474     ac_prev=localstatedir ;;
475   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478     localstatedir=$ac_optarg ;;
480   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481     ac_prev=mandir ;;
482   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483     mandir=$ac_optarg ;;
485   -nfp | --nfp | --nf)
486     # Obsolete; use --without-fp.
487     with_fp=no ;;
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c | -n)
491     no_create=yes ;;
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495     no_recursion=yes ;;
497   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499   | --oldin | --oldi | --old | --ol | --o)
500     ac_prev=oldincludedir ;;
501   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504     oldincludedir=$ac_optarg ;;
506   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507     ac_prev=prefix ;;
508   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509     prefix=$ac_optarg ;;
511   -program-prefix | --program-prefix | --program-prefi | --program-pref \
512   | --program-pre | --program-pr | --program-p)
513     ac_prev=program_prefix ;;
514   -program-prefix=* | --program-prefix=* | --program-prefi=* \
515   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516     program_prefix=$ac_optarg ;;
518   -program-suffix | --program-suffix | --program-suffi | --program-suff \
519   | --program-suf | --program-su | --program-s)
520     ac_prev=program_suffix ;;
521   -program-suffix=* | --program-suffix=* | --program-suffi=* \
522   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523     program_suffix=$ac_optarg ;;
525   -program-transform-name | --program-transform-name \
526   | --program-transform-nam | --program-transform-na \
527   | --program-transform-n | --program-transform- \
528   | --program-transform | --program-transfor \
529   | --program-transfo | --program-transf \
530   | --program-trans | --program-tran \
531   | --progr-tra | --program-tr | --program-t)
532     ac_prev=program_transform_name ;;
533   -program-transform-name=* | --program-transform-name=* \
534   | --program-transform-nam=* | --program-transform-na=* \
535   | --program-transform-n=* | --program-transform-=* \
536   | --program-transform=* | --program-transfor=* \
537   | --program-transfo=* | --program-transf=* \
538   | --program-trans=* | --program-tran=* \
539   | --progr-tra=* | --program-tr=* | --program-t=*)
540     program_transform_name=$ac_optarg ;;
542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543   | -silent | --silent | --silen | --sile | --sil)
544     silent=yes ;;
546   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547     ac_prev=sbindir ;;
548   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549   | --sbi=* | --sb=*)
550     sbindir=$ac_optarg ;;
552   -sharedstatedir | --sharedstatedir | --sharedstatedi \
553   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554   | --sharedst | --shareds | --shared | --share | --shar \
555   | --sha | --sh)
556     ac_prev=sharedstatedir ;;
557   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560   | --sha=* | --sh=*)
561     sharedstatedir=$ac_optarg ;;
563   -site | --site | --sit)
564     ac_prev=site ;;
565   -site=* | --site=* | --sit=*)
566     site=$ac_optarg ;;
568   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569     ac_prev=srcdir ;;
570   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571     srcdir=$ac_optarg ;;
573   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574   | --syscon | --sysco | --sysc | --sys | --sy)
575     ac_prev=sysconfdir ;;
576   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578     sysconfdir=$ac_optarg ;;
580   -target | --target | --targe | --targ | --tar | --ta | --t)
581     ac_prev=target_alias ;;
582   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583     target_alias=$ac_optarg ;;
585   -v | -verbose | --verbose | --verbos | --verbo | --verb)
586     verbose=yes ;;
588   -version | --version | --versio | --versi | --vers | -V)
589     ac_init_version=: ;;
591   -with-* | --with-*)
592     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593     # Reject names that are not valid shell variable names.
594     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595       { echo "$as_me: error: invalid package name: $ac_package" >&2
596    { (exit 1); exit 1; }; }
597     ac_package=`echo $ac_package| sed 's/-/_/g'`
598     case $ac_option in
599       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600       *) ac_optarg=yes ;;
601     esac
602     eval "with_$ac_package='$ac_optarg'" ;;
604   -without-* | --without-*)
605     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606     # Reject names that are not valid shell variable names.
607     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608       { echo "$as_me: error: invalid package name: $ac_package" >&2
609    { (exit 1); exit 1; }; }
610     ac_package=`echo $ac_package | sed 's/-/_/g'`
611     eval "with_$ac_package=no" ;;
613   --x)
614     # Obsolete; use --with-x.
615     with_x=yes ;;
617   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618   | --x-incl | --x-inc | --x-in | --x-i)
619     ac_prev=x_includes ;;
620   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622     x_includes=$ac_optarg ;;
624   -x-libraries | --x-libraries | --x-librarie | --x-librari \
625   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626     ac_prev=x_libraries ;;
627   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629     x_libraries=$ac_optarg ;;
631   -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633    { (exit 1); exit 1; }; }
634     ;;
636   *=*)
637     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638     # Reject names that are not valid shell variable names.
639     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641    { (exit 1); exit 1; }; }
642     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643     eval "$ac_envvar='$ac_optarg'"
644     export $ac_envvar ;;
646   *)
647     # FIXME: should be removed in autoconf 3.0.
648     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652     ;;
654   esac
655 done
657 if test -n "$ac_prev"; then
658   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659   { echo "$as_me: error: missing argument to $ac_option" >&2
660    { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666   eval ac_val=$`echo $ac_var`
667   case $ac_val in
668     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670    { (exit 1); exit 1; }; };;
671   esac
672 done
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676               localstatedir libdir includedir oldincludedir infodir mandir
678   eval ac_val=$`echo $ac_var`
679   case $ac_val in
680     [\\/$]* | ?:[\\/]* ) ;;
681     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682    { (exit 1); exit 1; }; };;
683   esac
684 done
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695   if test "x$build_alias" = x; then
696     cross_compiling=maybe
697     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698     If a cross compiler is detected then cross compile mode will be used." >&2
699   elif test "x$build_alias" != "x$host_alias"; then
700     cross_compiling=yes
701   fi
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712   ac_srcdir_defaulted=yes
713   # Try the directory containing this script, then its parent.
714   ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716          X"$0" : 'X\(//\)[^/]' \| \
717          X"$0" : 'X\(//\)$' \| \
718          X"$0" : 'X\(/\)' \| \
719          .     : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723           /^X\(\/\/\)$/{ s//\1/; q; }
724           /^X\(\/\).*/{ s//\1/; q; }
725           s/.*/./; q'`
726   srcdir=$ac_confdir
727   if test ! -r $srcdir/$ac_unique_file; then
728     srcdir=..
729   fi
730 else
731   ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734   if test "$ac_srcdir_defaulted" = yes; then
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736    { (exit 1); exit 1; }; }
737   else
738     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739    { (exit 1); exit 1; }; }
740   fi
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744    { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
780 # Report the --help message.
782 if test "$ac_init_help" = "long"; then
783   # Omit some internal or obsolete options to make the list less imposing.
784   # This message is too long to be a string in the A/UX 3.1 sh.
785   cat <<_ACEOF
786 \`configure' configures libtar 1.2.11 to adapt to many kinds of systems.
788 Usage: $0 [OPTION]... [VAR=VALUE]...
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE.  See below for descriptions of some of the useful variables.
793 Defaults for the options are specified in brackets.
795 Configuration:
796   -h, --help              display this help and exit
797       --help=short        display options specific to this package
798       --help=recursive    display the short help of all the included packages
799   -V, --version           display version information and exit
800   -q, --quiet, --silent   do not print \`checking...' messages
801       --cache-file=FILE   cache test results in FILE [disabled]
802   -C, --config-cache      alias for \`--cache-file=config.cache'
803   -n, --no-create         do not create output files
804       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
806 _ACEOF
808   cat <<_ACEOF
809 Installation directories:
810   --prefix=PREFIX         install architecture-independent files in PREFIX
811                           [$ac_default_prefix]
812   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
813                           [PREFIX]
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
820 For better control, use the options below.
822 Fine tuning of the installation directories:
823   --bindir=DIR           user executables [EPREFIX/bin]
824   --sbindir=DIR          system admin executables [EPREFIX/sbin]
825   --libexecdir=DIR       program executables [EPREFIX/libexec]
826   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
827   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
828   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
829   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
830   --libdir=DIR           object code libraries [EPREFIX/lib]
831   --includedir=DIR       C header files [PREFIX/include]
832   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
833   --infodir=DIR          info documentation [PREFIX/info]
834   --mandir=DIR           man documentation [PREFIX/man]
835 _ACEOF
837   cat <<\_ACEOF
838 _ACEOF
841 if test -n "$ac_init_help"; then
842   case $ac_init_help in
843      short | recursive ) echo "Configuration of libtar 1.2.11:";;
844    esac
845   cat <<\_ACEOF
847 Optional Features:
848   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
849   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
850   --disable-encap         Do not configure as an Encap package
851   --disable-epkg-install  Do not run epkg during make install
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --without-zlib          Use external gzip binary instead of zlib
858 Some influential environment variables:
859   CC          C compiler command
860   CFLAGS      C compiler flags
861   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
862               nonstandard directory <lib dir>
863   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
864               headers in a nonstandard directory <include dir>
865   CPP         C preprocessor
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
870 _ACEOF
873 if test "$ac_init_help" = "recursive"; then
874   # If there are subdirs, report their specific --help.
875   ac_popdir=`pwd`
876   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877     test -d $ac_dir || continue
878     ac_builddir=.
880 if test "$ac_dir" != .; then
881   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882   # A "../" for each directory in $ac_dir_suffix.
883   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885   ac_dir_suffix= ac_top_builddir=
888 case $srcdir in
889   .)  # No --srcdir option.  We are building in place.
890     ac_srcdir=.
891     if test -z "$ac_top_builddir"; then
892        ac_top_srcdir=.
893     else
894        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895     fi ;;
896   [\\/]* | ?:[\\/]* )  # Absolute path.
897     ac_srcdir=$srcdir$ac_dir_suffix;
898     ac_top_srcdir=$srcdir ;;
899   *) # Relative path.
900     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901     ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 esac
903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904 # absolute.
905 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
910     cd $ac_dir
911     # Check for guested configure; otherwise get Cygnus style configure.
912     if test -f $ac_srcdir/configure.gnu; then
913       echo
914       $SHELL $ac_srcdir/configure.gnu  --help=recursive
915     elif test -f $ac_srcdir/configure; then
916       echo
917       $SHELL $ac_srcdir/configure  --help=recursive
918     elif test -f $ac_srcdir/configure.ac ||
919            test -f $ac_srcdir/configure.in; then
920       echo
921       $ac_configure --help
922     else
923       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924     fi
925     cd $ac_popdir
926   done
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
931   cat <<\_ACEOF
932 libtar configure 1.2.11
933 generated by GNU Autoconf 2.57
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
941 Copyright (c) 1998-2003 University of Illinois Board of Trustees
942 Copyright (c) 1998-2003 Mark D. Roth
943 All rights reserved.
945 _ACEOF
946   exit 0
948 exec 5>config.log
949 cat >&5 <<_ACEOF
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
953 It was created by libtar $as_me 1.2.11, which was
954 generated by GNU Autoconf 2.57.  Invocation command line was
956   $ $0 $@
958 _ACEOF
960 cat <<_ASUNAME
961 @%:@@%:@ --------- @%:@@%:@
962 @%:@@%:@ Platform. @%:@@%:@
963 @%:@@%:@ --------- @%:@@%:@
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
974 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
975 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
978 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
979 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
980 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
982 _ASUNAME
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 for as_dir in $PATH
987   IFS=$as_save_IFS
988   test -z "$as_dir" && as_dir=.
989   echo "PATH: $as_dir"
990 done
992 } >&5
994 cat >&5 <<_ACEOF
997 @%:@@%:@ ----------- @%:@@%:@
998 @%:@@%:@ Core tests. @%:@@%:@
999 @%:@@%:@ ----------- @%:@@%:@
1001 _ACEOF
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_configure_args=
1010 ac_configure_args0=
1011 ac_configure_args1=
1012 ac_sep=
1013 ac_must_keep_next=false
1014 for ac_pass in 1 2
1016   for ac_arg
1017   do
1018     case $ac_arg in
1019     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021     | -silent | --silent | --silen | --sile | --sil)
1022       continue ;;
1023     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025     esac
1026     case $ac_pass in
1027     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028     2)
1029       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030       if test $ac_must_keep_next = true; then
1031         ac_must_keep_next=false # Got value, back to normal.
1032       else
1033         case $ac_arg in
1034           *=* | --config-cache | -C | -disable-* | --disable-* \
1035           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037           | -with-* | --with-* | -without-* | --without-* | --x)
1038             case "$ac_configure_args0 " in
1039               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040             esac
1041             ;;
1042           -* ) ac_must_keep_next=true ;;
1043         esac
1044       fi
1045       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046       # Get rid of the leading space.
1047       ac_sep=" "
1048       ;;
1049     esac
1050   done
1051 done
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log.  We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061   # Save into config.log some information that might help in debugging.
1062   {
1063     echo
1065     cat <<\_ASBOX
1066 @%:@@%:@ ---------------- @%:@@%:@
1067 @%:@@%:@ Cache variables. @%:@@%:@
1068 @%:@@%:@ ---------------- @%:@@%:@
1069 _ASBOX
1070     echo
1071     # The following way of writing the cache mishandles newlines in values,
1073   (set) 2>&1 |
1074     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075     *ac_space=\ *)
1076       sed -n \
1077         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079       ;;
1080     *)
1081       sed -n \
1082         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083       ;;
1084     esac;
1086     echo
1088     cat <<\_ASBOX
1089 @%:@@%:@ ----------------- @%:@@%:@
1090 @%:@@%:@ Output variables. @%:@@%:@
1091 @%:@@%:@ ----------------- @%:@@%:@
1092 _ASBOX
1093     echo
1094     for ac_var in $ac_subst_vars
1095     do
1096       eval ac_val=$`echo $ac_var`
1097       echo "$ac_var='"'"'$ac_val'"'"'"
1098     done | sort
1099     echo
1101     if test -n "$ac_subst_files"; then
1102       cat <<\_ASBOX
1103 @%:@@%:@ ------------- @%:@@%:@
1104 @%:@@%:@ Output files. @%:@@%:@
1105 @%:@@%:@ ------------- @%:@@%:@
1106 _ASBOX
1107       echo
1108       for ac_var in $ac_subst_files
1109       do
1110         eval ac_val=$`echo $ac_var`
1111         echo "$ac_var='"'"'$ac_val'"'"'"
1112       done | sort
1113       echo
1114     fi
1116     if test -s confdefs.h; then
1117       cat <<\_ASBOX
1118 @%:@@%:@ ----------- @%:@@%:@
1119 @%:@@%:@ confdefs.h. @%:@@%:@
1120 @%:@@%:@ ----------- @%:@@%:@
1121 _ASBOX
1122       echo
1123       sed "/^$/d" confdefs.h | sort
1124       echo
1125     fi
1126     test "$ac_signal" != 0 &&
1127       echo "$as_me: caught signal $ac_signal"
1128     echo "$as_me: exit $exit_status"
1129   } >&5
1130   rm -f core core.* *.core &&
1131   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132     exit $exit_status
1133      ' 0
1134 for ac_signal in 1 2 13 15; do
1135   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136 done
1137 ac_signal=0
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 echo >confdefs.h
1144 # Predefined preprocessor variables.
1146 cat >>confdefs.h <<_ACEOF
1147 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1148 _ACEOF
1151 cat >>confdefs.h <<_ACEOF
1152 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153 _ACEOF
1156 cat >>confdefs.h <<_ACEOF
1157 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1158 _ACEOF
1161 cat >>confdefs.h <<_ACEOF
1162 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1163 _ACEOF
1166 cat >>confdefs.h <<_ACEOF
1167 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168 _ACEOF
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174   if test "x$prefix" != xNONE; then
1175     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176   else
1177     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178   fi
1180 for ac_site_file in $CONFIG_SITE; do
1181   if test -r "$ac_site_file"; then
1182     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184     sed 's/^/| /' "$ac_site_file" >&5
1185     . "$ac_site_file"
1186   fi
1187 done
1189 if test -r "$cache_file"; then
1190   # Some versions of bash will fail to source /dev/null (special
1191   # files actually), so we avoid doing that.
1192   if test -f "$cache_file"; then
1193     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1195     case $cache_file in
1196       [\\/]* | ?:[\\/]* ) . $cache_file;;
1197       *)                      . ./$cache_file;;
1198     esac
1199   fi
1200 else
1201   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1203   >$cache_file
1206 # Check that the precious variables saved in the cache have kept the same
1207 # value.
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212   eval ac_new_set=\$ac_env_${ac_var}_set
1213   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214   eval ac_new_val="\$ac_env_${ac_var}_value"
1215   case $ac_old_set,$ac_new_set in
1216     set,)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,set)
1221       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223       ac_cache_corrupted=: ;;
1224     ,);;
1225     *)
1226       if test "x$ac_old_val" != "x$ac_new_val"; then
1227         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1230 echo "$as_me:   former value:  $ac_old_val" >&2;}
1231         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1232 echo "$as_me:   current value: $ac_new_val" >&2;}
1233         ac_cache_corrupted=:
1234       fi;;
1235   esac
1236   # Pass precious variables to config.status.
1237   if test "$ac_new_set" = set; then
1238     case $ac_new_val in
1239     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241     *) ac_arg=$ac_var=$ac_new_val ;;
1242     esac
1243     case " $ac_configure_args " in
1244       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1245       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246     esac
1247   fi
1248 done
1249 if $ac_cache_corrupted; then
1250   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254    { (exit 1); exit 1; }; }
1257 ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290 ac_aux_dir=
1291 for ac_dir in autoconf $srcdir/autoconf; do
1292   if test -f $ac_dir/install-sh; then
1293     ac_aux_dir=$ac_dir
1294     ac_install_sh="$ac_aux_dir/install-sh -c"
1295     break
1296   elif test -f $ac_dir/install.sh; then
1297     ac_aux_dir=$ac_dir
1298     ac_install_sh="$ac_aux_dir/install.sh -c"
1299     break
1300   elif test -f $ac_dir/shtool; then
1301     ac_aux_dir=$ac_dir
1302     ac_install_sh="$ac_aux_dir/shtool install -c"
1303     break
1304   fi
1305 done
1306 if test -z "$ac_aux_dir"; then
1307   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1308 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1309    { (exit 1); exit 1; }; }
1311 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1312 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1313 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1315           ac_config_headers="$ac_config_headers config.h"
1320   MKENCAP_OPTS=;
1322   # allow user to disable Encap support
1323   # Check whether --enable-encap or --disable-encap was given.
1324 if test "${enable_encap+set}" = set; then
1325   enableval="$enable_encap"
1326   
1327 else
1328   enable_encap=default
1329 fi; 
1331   if test "$enable_encap" != "no"; then
1332     # look for epkg and mkencap
1333     # Extract the first word of "epkg", so it can be a program name with args.
1334 set dummy epkg; ac_word=$2
1335 echo "$as_me:$LINENO: checking for $ac_word" >&5
1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1337 if test "${ac_cv_path_EPKG+set}" = set; then
1338   echo $ECHO_N "(cached) $ECHO_C" >&6
1339 else
1340   case $EPKG in
1341   [\\/]* | ?:[\\/]*)
1342   ac_cv_path_EPKG="$EPKG" # Let the user override the test with a path.
1343   ;;
1344   *)
1345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346 for as_dir in $PATH
1348   IFS=$as_save_IFS
1349   test -z "$as_dir" && as_dir=.
1350   for ac_exec_ext in '' $ac_executable_extensions; do
1351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352     ac_cv_path_EPKG="$as_dir/$ac_word$ac_exec_ext"
1353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354     break 2
1355   fi
1356 done
1357 done
1359   ;;
1360 esac
1362 EPKG=$ac_cv_path_EPKG
1364 if test -n "$EPKG"; then
1365   echo "$as_me:$LINENO: result: $EPKG" >&5
1366 echo "${ECHO_T}$EPKG" >&6
1367 else
1368   echo "$as_me:$LINENO: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1372     # Extract the first word of "mkencap", so it can be a program name with args.
1373 set dummy mkencap; ac_word=$2
1374 echo "$as_me:$LINENO: checking for $ac_word" >&5
1375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376 if test "${ac_cv_path_MKENCAP+set}" = set; then
1377   echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379   case $MKENCAP in
1380   [\\/]* | ?:[\\/]*)
1381   ac_cv_path_MKENCAP="$MKENCAP" # Let the user override the test with a path.
1382   ;;
1383   *)
1384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1387   IFS=$as_save_IFS
1388   test -z "$as_dir" && as_dir=.
1389   for ac_exec_ext in '' $ac_executable_extensions; do
1390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391     ac_cv_path_MKENCAP="$as_dir/$ac_word$ac_exec_ext"
1392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393     break 2
1394   fi
1395 done
1396 done
1398   ;;
1399 esac
1401 MKENCAP=$ac_cv_path_MKENCAP
1403 if test -n "$MKENCAP"; then
1404   echo "$as_me:$LINENO: result: $MKENCAP" >&5
1405 echo "${ECHO_T}$MKENCAP" >&6
1406 else
1407   echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1412     # enable by default if epkg or mkencap are found
1413     if test "${EPKG:+set}" = "set" || test "${MKENCAP:+set}" = "set" && test "$enable_encap" = "default"; then
1414       enable_encap=yes;
1415     fi
1416   fi
1418   if test "$enable_encap" = "yes"; then
1419     # generate fallback values for ${ENCAP_SOURCE} and ${ENCAP_TARGET}
1420     # from the environment or the default prefix
1421     if test -z "${ENCAP_SOURCE}" && test -z "${ENCAP_TARGET}"; then
1422       ENCAP_SOURCE="${ac_default_prefix}/encap";
1423       ENCAP_TARGET="${ac_default_prefix}";
1424     elif test -z "${ENCAP_TARGET}"; then
1425       ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
1426     elif test -z "${ENCAP_SOURCE}"; then
1427       ENCAP_SOURCE="${ENCAP_TARGET}/encap";
1428     fi
1430     # if --prefix is specified:
1431     #   1) if its next-to-last component is "encap", assume that it
1432     #      points to the package directory
1433     #   2) otherwise, assume it points to the target directory
1434     if test "${prefix}" != "NONE"; then
1435       prefixdir="`dirname ${prefix}`";
1436       prefixbase="`basename ${prefix}`";
1437       if test "`basename ${prefixdir}`" = "encap"; then
1438         ENCAP_SOURCE="${prefixdir}";
1439         ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
1440       elif test "${prefixdir}" != "${ENCAP_SOURCE}"; then
1441         ENCAP_SOURCE="${prefix}/encap";
1442         ENCAP_TARGET="${prefix}";
1443       fi
1444       if ( test "`basename ${prefixdir}`" = "encap" || \
1445            test "${prefixdir}" = "${ENCAP_SOURCE}" ) && \
1446          test "${prefixbase}" != "${PACKAGE_NAME}-${PACKAGE_VERSION}"; then
1447         ENCAP_PKGSPEC="${prefixbase}";
1448       fi
1449     fi
1451     # display results
1452     echo "$as_me:$LINENO: checking for Encap source directory" >&5
1453 echo $ECHO_N "checking for Encap source directory... $ECHO_C" >&6
1454     echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}" >&5
1455 echo "${ECHO_T}${ENCAP_SOURCE}" >&6
1456     echo "$as_me:$LINENO: checking for Encap target directory" >&5
1457 echo $ECHO_N "checking for Encap target directory... $ECHO_C" >&6
1458     echo "$as_me:$LINENO: result: ${ENCAP_TARGET}" >&5
1459 echo "${ECHO_T}${ENCAP_TARGET}" >&6
1460     echo "$as_me:$LINENO: checking for Encap package directory" >&5
1461 echo $ECHO_N "checking for Encap package directory... $ECHO_C" >&6
1462     if test "${ENCAP_PKGSPEC:-unset}" = "unset"; then
1463       ENCAP_PKGSPEC='${PACKAGE_NAME}-${PACKAGE_VERSION}';
1464       echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&5
1465 echo "${ECHO_T}${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&6
1466     else
1467       echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&5
1468 echo "${ECHO_T}${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&6
1469     fi
1470     prefix='${ENCAP_SOURCE}/${ENCAP_PKGSPEC}';
1472     # override default sysconfdir and localstatedir
1473     if test "$sysconfdir" = '${prefix}/etc'; then
1474       sysconfdir='${ENCAP_TARGET}/etc';
1475     fi
1476     if test "$localstatedir" = '${prefix}/var'; then
1477       localstatedir='/var/lib/${PACKAGE_NAME}';
1478     fi
1480     # check for --disable-epkg-install
1481     # Check whether --enable-epkg-install or --disable-epkg-install was given.
1482 if test "${enable_epkg_install+set}" = set; then
1483   enableval="$enable_epkg_install"
1484   
1485 else
1486   enable_epkg_install=yes
1487 fi; 
1488     if test "$enable_epkg_install" = "no"; then
1489       EPKG=":";
1490     fi
1492     # generate Makefile variables
1494     ENCAP_DEFS="ENCAP_SOURCE = ${ENCAP_SOURCE}\\
1495 ENCAP_TARGET = ${ENCAP_TARGET}\\
1496 ENCAP_PKGSPEC = ${ENCAP_PKGSPEC}\\
1497 EPKG = ${EPKG:-:}\\
1498 MKENCAP = ${MKENCAP:-:}\\
1499 MKENCAP_OPTS = ${MKENCAP_OPTS}";
1500     
1502         ENCAP_INSTALL_RULES='if test -f ${top_srcdir}/COPYRIGHT; then \\\
1503                 ${INSTALL_DATA} ${top_srcdir}/COPYRIGHT ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}; \\\
1504         fi\
1505         ${MKENCAP} ${MKENCAP_OPTS} -s ${DESTDIR}${ENCAP_SOURCE} -e ${ENCAP_PKGSPEC};\
1506         if test -z \"${DESTDIR}\"; then \\\
1507                 ${EPKG} -s ${ENCAP_SOURCE} -t ${ENCAP_TARGET} ${ENCAP_PKGSPEC}; \\\
1508         fi';
1509     
1511     ENCAP_INSTALL_TARGET=postinstall-encap
1512   else
1513     ENCAP_INSTALL_TARGET=
1514   fi
1516   
1521     # COMPAT_VAR___PROGNAME
1522 # ---------------------
1523 # Check if libc defines the __progname variable.
1527 # COMPAT_FUNC_BASENAME
1528 # --------------------
1529 # Check for working basename() function.
1533 # COMPAT_FUNC_DIRNAME
1534 # -------------------
1535 # Check for working dirname() function.
1539 # COMPAT_FUNC_FNMATCH
1540 # -------------------
1541 # Check for working fnmatch() function.
1545 # COMPAT_FUNC_GLOB
1546 # ----------------
1547 # Check for working glob() function.
1551 # COMPAT_FUNC_MAKEDEV
1552 # -------------------
1553 # Check for number of arguments expected by makedev().
1557 # COMPAT_FUNC_SNPRINTF
1558 # --------------------
1559 # Check for working snprintf() function.
1563 # COMPAT_PROTO_MACRO(FUNCTION, HEADER, MACRO-LIST, [BODY])
1564 # --------------------------------------------------------
1565 # Determine which C preprocessor macro is needed to expose prototype of
1566 # FUNCTION in HEADER.  First, we try with nothing special defined; then we
1567 # try with each macro from MACRO-LIST.  We stop as soon as it's found
1568 # and adjust $CFLAGS appropriately.
1572 # COMPAT_FUNC_STRTOK_R
1573 # --------------------
1574 # Check for working strtok_r().
1578 # COMPAT_FUNC_GETPWUID_R
1579 # ----------------------
1580 # Check for POSIX-compliant getpwuid_r().
1584 # COMPAT_FUNC_GETHOSTBYNAME_R
1585 # ---------------------------
1586 # Check for gethostbyname_r().
1590 # COMPAT_FUNC_GETSERVBYNAME_R
1591 # ---------------------------
1592 # Check for getservbyname_r().
1596 # COMPAT_REPLACE_FUNC(function)
1597 # -----------------------------
1598 # Replacement for AC_REPLACE_FUNCS.
1602 # COMPAT_FUNC_GETHOSTNAME
1603 # -----------------------
1604 # Check for gethostname().
1608 # COMPAT_FUNC_INET_ATON
1609 # ---------------------
1610 # Check for inet_aton().
1614 # COMPAT_FUNC_STRDUP
1615 # ------------------
1616 # Check for strdup().
1620 # COMPAT_FUNC_STRLCAT
1621 # -------------------
1622 # Check for strlcat().
1626 # COMPAT_FUNC_STRLCPY
1627 # -------------------
1628 # Check for strlcpy().
1632 # COMPAT_FUNC_STRMODE
1633 # -------------------
1634 # Check for strmode().
1638 # COMPAT_FUNC_STRRSTR
1639 # -------------------
1640 # Check for strrstr().
1644 # COMPAT_FUNC_STRSEP
1645 # ------------------
1646 # Check for strsep().
1650     
1651 ac_ext=c
1652 ac_cpp='$CPP $CPPFLAGS'
1653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1656 if test -n "$ac_tool_prefix"; then
1657   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   if test -n "$CC"; then
1665   ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1670   IFS=$as_save_IFS
1671   test -z "$as_dir" && as_dir=.
1672   for ac_exec_ext in '' $ac_executable_extensions; do
1673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676     break 2
1677   fi
1678 done
1679 done
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685   echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1687 else
1688   echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1693 if test -z "$ac_cv_prog_CC"; then
1694   ac_ct_CC=$CC
1695   # Extract the first word of "gcc", so it can be a program name with args.
1696 set dummy gcc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$ac_ct_CC"; then
1703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_ac_ct_CC="gcc"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730   CC=$ac_ct_CC
1731 else
1732   CC="$ac_cv_prog_CC"
1735 if test -z "$CC"; then
1736   if test -n "$ac_tool_prefix"; then
1737   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}cc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$CC"; then
1745   ac_cv_prog_CC="$CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_CC="${ac_tool_prefix}cc"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1763 CC=$ac_cv_prog_CC
1764 if test -n "$CC"; then
1765   echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1774   ac_ct_CC=$CC
1775   # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$ac_ct_CC"; then
1783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   for ac_exec_ext in '' $ac_executable_extensions; do
1791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792     ac_cv_prog_ac_ct_CC="cc"
1793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794     break 2
1795   fi
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806   echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810   CC=$ac_ct_CC
1811 else
1812   CC="$ac_cv_prog_CC"
1816 if test -z "$CC"; then
1817   # Extract the first word of "cc", so it can be a program name with args.
1818 set dummy cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822   echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824   if test -n "$CC"; then
1825   ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827   ac_prog_rejected=no
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1831   IFS=$as_save_IFS
1832   test -z "$as_dir" && as_dir=.
1833   for ac_exec_ext in '' $ac_executable_extensions; do
1834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1836        ac_prog_rejected=yes
1837        continue
1838      fi
1839     ac_cv_prog_CC="cc"
1840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841     break 2
1842   fi
1843 done
1844 done
1846 if test $ac_prog_rejected = yes; then
1847   # We found a bogon in the path, so make sure we never use it.
1848   set dummy $ac_cv_prog_CC
1849   shift
1850   if test $@%:@ != 0; then
1851     # We chose a different compiler from the bogus one.
1852     # However, it has the same basename, so the bogon will be chosen
1853     # first if we set CC to just the basename; use the full file name.
1854     shift
1855     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1856   fi
1860 CC=$ac_cv_prog_CC
1861 if test -n "$CC"; then
1862   echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1864 else
1865   echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1870 if test -z "$CC"; then
1871   if test -n "$ac_tool_prefix"; then
1872   for ac_prog in cl
1873   do
1874     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$CC"; then
1882   ac_cv_prog_CC="$CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1900 CC=$ac_cv_prog_CC
1901 if test -n "$CC"; then
1902   echo "$as_me:$LINENO: result: $CC" >&5
1903 echo "${ECHO_T}$CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909     test -n "$CC" && break
1910   done
1912 if test -z "$CC"; then
1913   ac_ct_CC=$CC
1914   for ac_prog in cl
1916   # Extract the first word of "$ac_prog", so it can be a program name with args.
1917 set dummy $ac_prog; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$ac_ct_CC"; then
1924   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_ac_ct_CC="$ac_prog"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943 if test -n "$ac_ct_CC"; then
1944   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945 echo "${ECHO_T}$ac_ct_CC" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1951   test -n "$ac_ct_CC" && break
1952 done
1954   CC=$ac_ct_CC
1960 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1961 See \`config.log' for more details." >&5
1962 echo "$as_me: error: no acceptable C compiler found in \$PATH
1963 See \`config.log' for more details." >&2;}
1964    { (exit 1); exit 1; }; }
1966 # Provide some information about the compiler.
1967 echo "$as_me:$LINENO:" \
1968      "checking for C compiler version" >&5
1969 ac_compiler=`set X $ac_compile; echo $2`
1970 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1971   (eval $ac_compiler --version </dev/null >&5) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1976   (eval $ac_compiler -v </dev/null >&5) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }
1980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1981   (eval $ac_compiler -V </dev/null >&5) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }
1986 cat >conftest.$ac_ext <<_ACEOF
1987 #line $LINENO "configure"
1988 /* confdefs.h.  */
1989 _ACEOF
1990 cat confdefs.h >>conftest.$ac_ext
1991 cat >>conftest.$ac_ext <<_ACEOF
1992 /* end confdefs.h.  */
1995 main ()
1998   ;
1999   return 0;
2001 _ACEOF
2002 ac_clean_files_save=$ac_clean_files
2003 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2004 # Try to create an executable without -o first, disregard a.out.
2005 # It will help us diagnose broken compilers, and finding out an intuition
2006 # of exeext.
2007 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2008 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2009 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2010 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2011   (eval $ac_link_default) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }; then
2015   # Find the output, starting from the most likely.  This scheme is
2016 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2017 # resort.
2019 # Be careful to initialize this variable, since it used to be cached.
2020 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2021 ac_cv_exeext=
2022 # b.out is created by i960 compilers.
2023 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2025   test -f "$ac_file" || continue
2026   case $ac_file in
2027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2028         ;;
2029     conftest.$ac_ext )
2030         # This is the source file.
2031         ;;
2032     [ab].out )
2033         # We found the default executable, but exeext='' is most
2034         # certainly right.
2035         break;;
2036     *.* )
2037         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2038         # FIXME: I believe we export ac_cv_exeext for Libtool,
2039         # but it would be cool to find out if it's true.  Does anybody
2040         # maintain Libtool? --akim.
2041         export ac_cv_exeext
2042         break;;
2043     * )
2044         break;;
2045   esac
2046 done
2047 else
2048   echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2052 See \`config.log' for more details." >&5
2053 echo "$as_me: error: C compiler cannot create executables
2054 See \`config.log' for more details." >&2;}
2055    { (exit 77); exit 77; }; }
2058 ac_exeext=$ac_cv_exeext
2059 echo "$as_me:$LINENO: result: $ac_file" >&5
2060 echo "${ECHO_T}$ac_file" >&6
2062 # Check the compiler produces executables we can run.  If not, either
2063 # the compiler is broken, or we cross compile.
2064 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2065 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2066 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2067 # If not cross compiling, check that we can run a simple program.
2068 if test "$cross_compiling" != yes; then
2069   if { ac_try='./$ac_file'
2070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071   (eval $ac_try) 2>&5
2072   ac_status=$?
2073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074   (exit $ac_status); }; }; then
2075     cross_compiling=no
2076   else
2077     if test "$cross_compiling" = maybe; then
2078         cross_compiling=yes
2079     else
2080         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2081 If you meant to cross compile, use \`--host'.
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: cannot run C compiled programs.
2084 If you meant to cross compile, use \`--host'.
2085 See \`config.log' for more details." >&2;}
2086    { (exit 1); exit 1; }; }
2087     fi
2088   fi
2090 echo "$as_me:$LINENO: result: yes" >&5
2091 echo "${ECHO_T}yes" >&6
2093 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2094 ac_clean_files=$ac_clean_files_save
2095 # Check the compiler produces executables we can run.  If not, either
2096 # the compiler is broken, or we cross compile.
2097 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2098 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2099 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2100 echo "${ECHO_T}$cross_compiling" >&6
2102 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2103 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2105   (eval $ac_link) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; then
2109   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2110 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2111 # work properly (i.e., refer to `conftest.exe'), while it won't with
2112 # `rm'.
2113 for ac_file in conftest.exe conftest conftest.*; do
2114   test -f "$ac_file" || continue
2115   case $ac_file in
2116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2117     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118           export ac_cv_exeext
2119           break;;
2120     * ) break;;
2121   esac
2122 done
2123 else
2124   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2125 See \`config.log' for more details." >&5
2126 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2127 See \`config.log' for more details." >&2;}
2128    { (exit 1); exit 1; }; }
2131 rm -f conftest$ac_cv_exeext
2132 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2133 echo "${ECHO_T}$ac_cv_exeext" >&6
2135 rm -f conftest.$ac_ext
2136 EXEEXT=$ac_cv_exeext
2137 ac_exeext=$EXEEXT
2138 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2139 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2140 if test "${ac_cv_objext+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   cat >conftest.$ac_ext <<_ACEOF
2144 #line $LINENO "configure"
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2152 main ()
2155   ;
2156   return 0;
2158 _ACEOF
2159 rm -f conftest.o conftest.obj
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161   (eval $ac_compile) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; then
2165   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2166   case $ac_file in
2167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2168     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2169        break;;
2170   esac
2171 done
2172 else
2173   echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2179 See \`config.log' for more details." >&2;}
2180    { (exit 1); exit 1; }; }
2183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2186 echo "${ECHO_T}$ac_cv_objext" >&6
2187 OBJEXT=$ac_cv_objext
2188 ac_objext=$OBJEXT
2189 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   cat >conftest.$ac_ext <<_ACEOF
2195 #line $LINENO "configure"
2196 /* confdefs.h.  */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h.  */
2203 main ()
2205 #ifndef __GNUC__
2206        choke me
2207 #endif
2209   ;
2210   return 0;
2212 _ACEOF
2213 rm -f conftest.$ac_objext
2214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215   (eval $ac_compile) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); } &&
2219          { ac_try='test -s conftest.$ac_objext'
2220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221   (eval $ac_try) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; }; then
2225   ac_compiler_gnu=yes
2226 else
2227   echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2230 ac_compiler_gnu=no
2232 rm -f conftest.$ac_objext conftest.$ac_ext
2233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2236 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238 GCC=`test $ac_compiler_gnu = yes && echo yes`
2239 ac_test_CFLAGS=${CFLAGS+set}
2240 ac_save_CFLAGS=$CFLAGS
2241 CFLAGS="-g"
2242 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244 if test "${ac_cv_prog_cc_g+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   cat >conftest.$ac_ext <<_ACEOF
2248 #line $LINENO "configure"
2249 /* confdefs.h.  */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h.  */
2256 main ()
2259   ;
2260   return 0;
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265   (eval $ac_compile) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -s conftest.$ac_objext'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275   ac_cv_prog_cc_g=yes
2276 else
2277   echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 ac_cv_prog_cc_g=no
2282 rm -f conftest.$ac_objext conftest.$ac_ext
2284 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2286 if test "$ac_test_CFLAGS" = set; then
2287   CFLAGS=$ac_save_CFLAGS
2288 elif test $ac_cv_prog_cc_g = yes; then
2289   if test "$GCC" = yes; then
2290     CFLAGS="-g -O2"
2291   else
2292     CFLAGS="-g"
2293   fi
2294 else
2295   if test "$GCC" = yes; then
2296     CFLAGS="-O2"
2297   else
2298     CFLAGS=
2299   fi
2301 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2302 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2303 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   ac_cv_prog_cc_stdc=no
2307 ac_save_CC=$CC
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2310 /* confdefs.h.  */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h.  */
2315 #include <stdarg.h>
2316 #include <stdio.h>
2317 #include <sys/types.h>
2318 #include <sys/stat.h>
2319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2320 struct buf { int x; };
2321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2322 static char *e (p, i)
2323      char **p;
2324      int i;
2326   return p[i];
2328 static char *f (char * (*g) (char **, int), char **p, ...)
2330   char *s;
2331   va_list v;
2332   va_start (v,p);
2333   s = g (p, va_arg (v,int));
2334   va_end (v);
2335   return s;
2337 int test (int i, double x);
2338 struct s1 {int (*f) (int a);};
2339 struct s2 {int (*f) (double a);};
2340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2341 int argc;
2342 char **argv;
2344 main ()
2346 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2347   ;
2348   return 0;
2350 _ACEOF
2351 # Don't try gcc -ansi; that turns off useful extensions and
2352 # breaks some systems' header files.
2353 # AIX                   -qlanglvl=ansi
2354 # Ultrix and OSF/1      -std1
2355 # HP-UX 10.20 and later -Ae
2356 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2357 # SVR4                  -Xc -D__EXTENSIONS__
2358 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2360   CC="$ac_save_CC $ac_arg"
2361   rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363   (eval $ac_compile) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   ac_cv_prog_cc_stdc=$ac_arg
2374 break
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext 
2381 done
2382 rm -f conftest.$ac_ext conftest.$ac_objext
2383 CC=$ac_save_CC
2387 case "x$ac_cv_prog_cc_stdc" in
2388   x|xno)
2389     echo "$as_me:$LINENO: result: none needed" >&5
2390 echo "${ECHO_T}none needed" >&6 ;;
2391   *)
2392     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2393 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2394     CC="$CC $ac_cv_prog_cc_stdc" ;;
2395 esac
2397 # Some people use a C++ compiler to compile C.  Since we use `exit',
2398 # in C++ we need to declare it.  In case someone uses the same compiler
2399 # for both compiling C and C++ we need to have the C++ compiler decide
2400 # the declaration of exit, since it's the most demanding environment.
2401 cat >conftest.$ac_ext <<_ACEOF
2402 @%:@ifndef __cplusplus
2403   choke me
2404 @%:@endif
2405 _ACEOF
2406 rm -f conftest.$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408   (eval $ac_compile) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; }; then
2418   for ac_declaration in \
2419    ''\
2420    '#include <stdlib.h>' \
2421    'extern "C" void std::exit (int) throw (); using std::exit;' \
2422    'extern "C" void std::exit (int); using std::exit;' \
2423    'extern "C" void exit (int) throw ();' \
2424    'extern "C" void exit (int);' \
2425    'void exit (int);'
2427   cat >conftest.$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2429 /* confdefs.h.  */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h.  */
2434 @%:@include <stdlib.h>
2435 $ac_declaration
2437 main ()
2439 exit (42);
2440   ;
2441   return 0;
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446   (eval $ac_compile) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   :
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 continue
2463 rm -f conftest.$ac_objext conftest.$ac_ext
2464   cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471 $ac_declaration
2473 main ()
2475 exit (42);
2476   ;
2477   return 0;
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482   (eval $ac_compile) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); } &&
2486          { ac_try='test -s conftest.$ac_objext'
2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488   (eval $ac_try) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; }; then
2492   break
2493 else
2494   echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2498 rm -f conftest.$ac_objext conftest.$ac_ext
2499 done
2500 rm -f conftest*
2501 if test -n "$ac_declaration"; then
2502   echo '#ifdef __cplusplus' >>confdefs.h
2503   echo $ac_declaration      >>confdefs.h
2504   echo '#endif'             >>confdefs.h
2507 else
2508   echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521   
2522   
2523 cat >>confdefs.h <<\_ACEOF
2524 @%:@define NEED_STRLCPY 1
2525 _ACEOF
2527   echo "$as_me:$LINENO: checking for strlcpy" >&5
2528 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
2529 if test "${ac_cv_func_strlcpy+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   cat >conftest.$ac_ext <<_ACEOF
2533 #line $LINENO "configure"
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539 /* System header to define __stub macros and hopefully few prototypes,
2540     which can conflict with char strlcpy (); below.
2541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2542     <limits.h> exists even on freestanding compilers.  */
2543 #ifdef __STDC__
2544 # include <limits.h>
2545 #else
2546 # include <assert.h>
2547 #endif
2548 /* Override any gcc2 internal prototype to avoid an error.  */
2549 #ifdef __cplusplus
2550 extern "C"
2552 #endif
2553 /* We use char because int might match the return type of a gcc2
2554    builtin and then its argument prototype would still apply.  */
2555 char strlcpy ();
2556 /* The GNU C library defines this for functions which it implements
2557     to always fail with ENOSYS.  Some functions are actually named
2558     something starting with __ and the normal name is an alias.  */
2559 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
2560 choke me
2561 #else
2562 char (*f) () = strlcpy;
2563 #endif
2564 #ifdef __cplusplus
2566 #endif
2569 main ()
2571 return f != strlcpy;
2572   ;
2573   return 0;
2575 _ACEOF
2576 rm -f conftest.$ac_objext conftest$ac_exeext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2578   (eval $ac_link) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -s conftest$ac_exeext'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; }; then
2588   ac_cv_func_strlcpy=yes
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 ac_cv_func_strlcpy=no
2595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2597 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
2598 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
2599 if test $ac_cv_func_strlcpy = yes; then
2600   
2601 cat >>confdefs.h <<\_ACEOF
2602 @%:@define HAVE_STRLCPY 1
2603 _ACEOF
2605 else
2606   LIB@&t@OBJS="$LIB@&t@OBJS strlcpy.$ac_objext"
2607   
2613   
2614   
2615 cat >>confdefs.h <<\_ACEOF
2616 @%:@define NEED_STRSEP 1
2617 _ACEOF
2619   echo "$as_me:$LINENO: checking for strsep" >&5
2620 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
2621 if test "${ac_cv_func_strsep+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631 /* System header to define __stub macros and hopefully few prototypes,
2632     which can conflict with char strsep (); below.
2633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2634     <limits.h> exists even on freestanding compilers.  */
2635 #ifdef __STDC__
2636 # include <limits.h>
2637 #else
2638 # include <assert.h>
2639 #endif
2640 /* Override any gcc2 internal prototype to avoid an error.  */
2641 #ifdef __cplusplus
2642 extern "C"
2644 #endif
2645 /* We use char because int might match the return type of a gcc2
2646    builtin and then its argument prototype would still apply.  */
2647 char strsep ();
2648 /* The GNU C library defines this for functions which it implements
2649     to always fail with ENOSYS.  Some functions are actually named
2650     something starting with __ and the normal name is an alias.  */
2651 #if defined (__stub_strsep) || defined (__stub___strsep)
2652 choke me
2653 #else
2654 char (*f) () = strsep;
2655 #endif
2656 #ifdef __cplusplus
2658 #endif
2661 main ()
2663 return f != strsep;
2664   ;
2665   return 0;
2667 _ACEOF
2668 rm -f conftest.$ac_objext conftest$ac_exeext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670   (eval $ac_link) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -s conftest$ac_exeext'
2675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676   (eval $ac_try) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }; }; then
2680   ac_cv_func_strsep=yes
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 ac_cv_func_strsep=no
2687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2689 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
2690 echo "${ECHO_T}$ac_cv_func_strsep" >&6
2691 if test $ac_cv_func_strsep = yes; then
2692   
2693 cat >>confdefs.h <<\_ACEOF
2694 @%:@define HAVE_STRSEP 1
2695 _ACEOF
2697 else
2698   LIB@&t@OBJS="$LIB@&t@OBJS strsep.$ac_objext"
2699   
2705     
2707   
2708   
2709   
2711   if test -z "libtar"; then
2712     LISTHASH_PREFIX="${PACKAGE_NAME}";
2713   else
2714     LISTHASH_PREFIX="libtar";
2715   fi
2716   
2718   LISTHASH_DIR="listhash";
2719   
2721             ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in"
2723             ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in"
2725             ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in"
2727             ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in"
2729             ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in"
2731   
2734 if test -z "$CFLAGS"; then
2735   CFLAGS="-O"
2737 MKDIR="mkdir -p -m 755"
2741 ac_ext=c
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   if test -n "$CC"; then
2755   ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762   for ac_exec_ext in '' $ac_executable_extensions; do
2763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766     break 2
2767   fi
2768 done
2769 done
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775   echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6
2777 else
2778   echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2783 if test -z "$ac_cv_prog_CC"; then
2784   ac_ct_CC=$CC
2785   # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$ac_ct_CC"; then
2793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802     ac_cv_prog_ac_ct_CC="gcc"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 echo "${ECHO_T}$ac_ct_CC" >&6
2815 else
2816   echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2820   CC=$ac_ct_CC
2821 else
2822   CC="$ac_cv_prog_CC"
2825 if test -z "$CC"; then
2826   if test -n "$ac_tool_prefix"; then
2827   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}cc; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$CC"; then
2835   ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844     ac_cv_prog_CC="${ac_tool_prefix}cc"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855   echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2857 else
2858   echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2863 if test -z "$ac_cv_prog_CC"; then
2864   ac_ct_CC=$CC
2865   # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870   echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872   if test -n "$ac_ct_CC"; then
2873   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880   for ac_exec_ext in '' $ac_executable_extensions; do
2881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882     ac_cv_prog_ac_ct_CC="cc"
2883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884     break 2
2885   fi
2886 done
2887 done
2891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894 echo "${ECHO_T}$ac_ct_CC" >&6
2895 else
2896   echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2900   CC=$ac_ct_CC
2901 else
2902   CC="$ac_cv_prog_CC"
2906 if test -z "$CC"; then
2907   # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912   echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914   if test -n "$CC"; then
2915   ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917   ac_prog_rejected=no
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923   for ac_exec_ext in '' $ac_executable_extensions; do
2924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926        ac_prog_rejected=yes
2927        continue
2928      fi
2929     ac_cv_prog_CC="cc"
2930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934 done
2936 if test $ac_prog_rejected = yes; then
2937   # We found a bogon in the path, so make sure we never use it.
2938   set dummy $ac_cv_prog_CC
2939   shift
2940   if test $@%:@ != 0; then
2941     # We chose a different compiler from the bogus one.
2942     # However, it has the same basename, so the bogon will be chosen
2943     # first if we set CC to just the basename; use the full file name.
2944     shift
2945     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946   fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952   echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6
2954 else
2955   echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2960 if test -z "$CC"; then
2961   if test -n "$ac_tool_prefix"; then
2962   for ac_prog in cl
2963   do
2964     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   if test -n "$CC"; then
2972   ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979   for ac_exec_ext in '' $ac_executable_extensions; do
2980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983     break 2
2984   fi
2985 done
2986 done
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6
2994 else
2995   echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2999     test -n "$CC" && break
3000   done
3002 if test -z "$CC"; then
3003   ac_ct_CC=$CC
3004   for ac_prog in cl
3006   # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   if test -n "$ac_ct_CC"; then
3014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021   for ac_exec_ext in '' $ac_executable_extensions; do
3022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023     ac_cv_prog_ac_ct_CC="$ac_prog"
3024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028 done
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3036 else
3037   echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3041   test -n "$ac_ct_CC" && break
3042 done
3044   CC=$ac_ct_CC
3050 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details." >&2;}
3054    { (exit 1); exit 1; }; }
3056 # Provide some information about the compiler.
3057 echo "$as_me:$LINENO:" \
3058      "checking for C compiler version" >&5
3059 ac_compiler=`set X $ac_compile; echo $2`
3060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3061   (eval $ac_compiler --version </dev/null >&5) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }
3065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3066   (eval $ac_compiler -v </dev/null >&5) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }
3070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3071   (eval $ac_compiler -V </dev/null >&5) 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }
3076 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   cat >conftest.$ac_ext <<_ACEOF
3082 #line $LINENO "configure"
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3090 main ()
3092 #ifndef __GNUC__
3093        choke me
3094 #endif
3096   ;
3097   return 0;
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102   (eval $ac_compile) 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } &&
3106          { ac_try='test -s conftest.$ac_objext'
3107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108   (eval $ac_try) 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; }; then
3112   ac_compiler_gnu=yes
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 ac_compiler_gnu=no
3119 rm -f conftest.$ac_objext conftest.$ac_ext
3120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3125 GCC=`test $ac_compiler_gnu = yes && echo yes`
3126 ac_test_CFLAGS=${CFLAGS+set}
3127 ac_save_CFLAGS=$CFLAGS
3128 CFLAGS="-g"
3129 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3130 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3131 if test "${ac_cv_prog_cc_g+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3143 main ()
3146   ;
3147   return 0;
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152   (eval $ac_compile) 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158   (eval $ac_try) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; }; then
3162   ac_cv_prog_cc_g=yes
3163 else
3164   echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 ac_cv_prog_cc_g=no
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3173 if test "$ac_test_CFLAGS" = set; then
3174   CFLAGS=$ac_save_CFLAGS
3175 elif test $ac_cv_prog_cc_g = yes; then
3176   if test "$GCC" = yes; then
3177     CFLAGS="-g -O2"
3178   else
3179     CFLAGS="-g"
3180   fi
3181 else
3182   if test "$GCC" = yes; then
3183     CFLAGS="-O2"
3184   else
3185     CFLAGS=
3186   fi
3188 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3189 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3190 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   ac_cv_prog_cc_stdc=no
3194 ac_save_CC=$CC
3195 cat >conftest.$ac_ext <<_ACEOF
3196 #line $LINENO "configure"
3197 /* confdefs.h.  */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h.  */
3202 #include <stdarg.h>
3203 #include <stdio.h>
3204 #include <sys/types.h>
3205 #include <sys/stat.h>
3206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3207 struct buf { int x; };
3208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3209 static char *e (p, i)
3210      char **p;
3211      int i;
3213   return p[i];
3215 static char *f (char * (*g) (char **, int), char **p, ...)
3217   char *s;
3218   va_list v;
3219   va_start (v,p);
3220   s = g (p, va_arg (v,int));
3221   va_end (v);
3222   return s;
3224 int test (int i, double x);
3225 struct s1 {int (*f) (int a);};
3226 struct s2 {int (*f) (double a);};
3227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3228 int argc;
3229 char **argv;
3231 main ()
3233 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3234   ;
3235   return 0;
3237 _ACEOF
3238 # Don't try gcc -ansi; that turns off useful extensions and
3239 # breaks some systems' header files.
3240 # AIX                   -qlanglvl=ansi
3241 # Ultrix and OSF/1      -std1
3242 # HP-UX 10.20 and later -Ae
3243 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3244 # SVR4                  -Xc -D__EXTENSIONS__
3245 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3247   CC="$ac_save_CC $ac_arg"
3248   rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250   (eval $ac_compile) 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); } &&
3254          { ac_try='test -s conftest.$ac_objext'
3255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256   (eval $ac_try) 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }; }; then
3260   ac_cv_prog_cc_stdc=$ac_arg
3261 break
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3267 rm -f conftest.$ac_objext 
3268 done
3269 rm -f conftest.$ac_ext conftest.$ac_objext
3270 CC=$ac_save_CC
3274 case "x$ac_cv_prog_cc_stdc" in
3275   x|xno)
3276     echo "$as_me:$LINENO: result: none needed" >&5
3277 echo "${ECHO_T}none needed" >&6 ;;
3278   *)
3279     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3281     CC="$CC $ac_cv_prog_cc_stdc" ;;
3282 esac
3284 # Some people use a C++ compiler to compile C.  Since we use `exit',
3285 # in C++ we need to declare it.  In case someone uses the same compiler
3286 # for both compiling C and C++ we need to have the C++ compiler decide
3287 # the declaration of exit, since it's the most demanding environment.
3288 cat >conftest.$ac_ext <<_ACEOF
3289 @%:@ifndef __cplusplus
3290   choke me
3291 @%:@endif
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295   (eval $ac_compile) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } &&
3299          { ac_try='test -s conftest.$ac_objext'
3300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301   (eval $ac_try) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   for ac_declaration in \
3306    ''\
3307    '#include <stdlib.h>' \
3308    'extern "C" void std::exit (int) throw (); using std::exit;' \
3309    'extern "C" void std::exit (int); using std::exit;' \
3310    'extern "C" void exit (int) throw ();' \
3311    'extern "C" void exit (int);' \
3312    'void exit (int);'
3314   cat >conftest.$ac_ext <<_ACEOF
3315 #line $LINENO "configure"
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321 @%:@include <stdlib.h>
3322 $ac_declaration
3324 main ()
3326 exit (42);
3327   ;
3328   return 0;
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333   (eval $ac_compile) 2>&5
3334   ac_status=$?
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } &&
3337          { ac_try='test -s conftest.$ac_objext'
3338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339   (eval $ac_try) 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; }; then
3343   :
3344 else
3345   echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 continue
3350 rm -f conftest.$ac_objext conftest.$ac_ext
3351   cat >conftest.$ac_ext <<_ACEOF
3352 #line $LINENO "configure"
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 $ac_declaration
3360 main ()
3362 exit (42);
3363   ;
3364   return 0;
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369   (eval $ac_compile) 2>&5
3370   ac_status=$?
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } &&
3373          { ac_try='test -s conftest.$ac_objext'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; }; then
3379   break
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3385 rm -f conftest.$ac_objext conftest.$ac_ext
3386 done
3387 rm -f conftest*
3388 if test -n "$ac_declaration"; then
3389   echo '#ifdef __cplusplus' >>confdefs.h
3390   echo $ac_declaration      >>confdefs.h
3391   echo '#endif'             >>confdefs.h
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f conftest.$ac_objext conftest.$ac_ext
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 if test -n "$ac_tool_prefix"; then
3407   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_RANLIB+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   if test -n "$RANLIB"; then
3415   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420   IFS=$as_save_IFS
3421   test -z "$as_dir" && as_dir=.
3422   for ac_exec_ext in '' $ac_executable_extensions; do
3423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429 done
3433 RANLIB=$ac_cv_prog_RANLIB
3434 if test -n "$RANLIB"; then
3435   echo "$as_me:$LINENO: result: $RANLIB" >&5
3436 echo "${ECHO_T}$RANLIB" >&6
3437 else
3438   echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_RANLIB"; then
3444   ac_ct_RANLIB=$RANLIB
3445   # Extract the first word of "ranlib", so it can be a program name with args.
3446 set dummy ranlib; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$ac_ct_RANLIB"; then
3453   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_ac_ct_RANLIB="ranlib"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3469   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473 if test -n "$ac_ct_RANLIB"; then
3474   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3476 else
3477   echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481   RANLIB=$ac_ct_RANLIB
3482 else
3483   RANLIB="$ac_cv_prog_RANLIB"
3486 # Find a good install program.  We prefer a C program (faster),
3487 # so one script is as good as another.  But avoid the broken or
3488 # incompatible versions:
3489 # SysV /etc/install, /usr/sbin/install
3490 # SunOS /usr/etc/install
3491 # IRIX /sbin/install
3492 # AIX /bin/install
3493 # AmigaOS /C/install, which installs bootblocks on floppy discs
3494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497 # ./install, which can be erroneously created by make from ./install.sh.
3498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3500 if test -z "$INSTALL"; then
3501 if test "${ac_cv_path_install+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509   # Account for people who put trailing slashes in PATH elements.
3510 case $as_dir/ in
3511   ./ | .// | /cC/* | \
3512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3513   /usr/ucb/* ) ;;
3514   *)
3515     # OSF1 and SCO ODT 3.0 have their own names for install.
3516     # Don't use installbsd from OSF since it installs stuff as root
3517     # by default.
3518     for ac_prog in ginstall scoinst install; do
3519       for ac_exec_ext in '' $ac_executable_extensions; do
3520         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3521           if test $ac_prog = install &&
3522             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3523             # AIX install.  It has an incompatible calling convention.
3524             :
3525           elif test $ac_prog = install &&
3526             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527             # program-specific install script used by HP pwplus--don't use.
3528             :
3529           else
3530             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3531             break 3
3532           fi
3533         fi
3534       done
3535     done
3536     ;;
3537 esac
3538 done
3542   if test "${ac_cv_path_install+set}" = set; then
3543     INSTALL=$ac_cv_path_install
3544   else
3545     # As a last resort, use the slow shell script.  We don't cache a
3546     # path for INSTALL within a source directory, because that will
3547     # break other packages using the cache if that directory is
3548     # removed, or if the path is relative.
3549     INSTALL=$ac_install_sh
3550   fi
3552 echo "$as_me:$LINENO: result: $INSTALL" >&5
3553 echo "${ECHO_T}$INSTALL" >&6
3555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3556 # It thinks the first close brace ends the variable substitution.
3557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3563 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3564 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3565 LN_S=$as_ln_s
3566 if test "$LN_S" = "ln -s"; then
3567   echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3571 echo "${ECHO_T}no, using $LN_S" >&6
3574 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3575 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3576 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3577 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   cat >conftest.make <<\_ACEOF
3581 all:
3582         @echo 'ac_maketemp="$(MAKE)"'
3583 _ACEOF
3584 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3585 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3586 if test -n "$ac_maketemp"; then
3587   eval ac_cv_prog_make_${ac_make}_set=yes
3588 else
3589   eval ac_cv_prog_make_${ac_make}_set=no
3591 rm -f conftest.make
3593 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3594   echo "$as_me:$LINENO: result: yes" >&5
3595 echo "${ECHO_T}yes" >&6
3596   SET_MAKE=
3597 else
3598   echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3600   SET_MAKE="MAKE=${MAKE-make}"
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3611 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3612 # On Suns, sometimes $CPP names a directory.
3613 if test -n "$CPP" && test -d "$CPP"; then
3614   CPP=
3616 if test -z "$CPP"; then
3617   if test "${ac_cv_prog_CPP+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620       # Double quotes because CPP needs to be expanded
3621     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3622     do
3623       ac_preproc_ok=false
3624 for ac_c_preproc_warn_flag in '' yes
3626   # Use a header file that comes with gcc, so configuring glibc
3627   # with a fresh cross-compiler works.
3628   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629   # <limits.h> exists even on freestanding compilers.
3630   # On the NeXT, cc -E runs the code through the compiler's parser,
3631   # not just through cpp. "Syntax error" is here to catch this case.
3632   cat >conftest.$ac_ext <<_ACEOF
3633 #line $LINENO "configure"
3634 /* confdefs.h.  */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h.  */
3639 @%:@ifdef __STDC__
3640 @%:@ include <limits.h>
3641 @%:@else
3642 @%:@ include <assert.h>
3643 @%:@endif
3644                      Syntax error
3645 _ACEOF
3646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3648   ac_status=$?
3649   grep -v '^ *+' conftest.er1 >conftest.err
3650   rm -f conftest.er1
3651   cat conftest.err >&5
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); } >/dev/null; then
3654   if test -s conftest.err; then
3655     ac_cpp_err=$ac_c_preproc_warn_flag
3656   else
3657     ac_cpp_err=
3658   fi
3659 else
3660   ac_cpp_err=yes
3662 if test -z "$ac_cpp_err"; then
3663   :
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668   # Broken: fails on valid input.
3669 continue
3671 rm -f conftest.err conftest.$ac_ext
3673   # OK, works on sane cases.  Now check whether non-existent headers
3674   # can be detected and how.
3675   cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682 @%:@include <ac_nonexistent.h>
3683 _ACEOF
3684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3685   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3686   ac_status=$?
3687   grep -v '^ *+' conftest.er1 >conftest.err
3688   rm -f conftest.er1
3689   cat conftest.err >&5
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); } >/dev/null; then
3692   if test -s conftest.err; then
3693     ac_cpp_err=$ac_c_preproc_warn_flag
3694   else
3695     ac_cpp_err=
3696   fi
3697 else
3698   ac_cpp_err=yes
3700 if test -z "$ac_cpp_err"; then
3701   # Broken: success on invalid input.
3702 continue
3703 else
3704   echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707   # Passes both tests.
3708 ac_preproc_ok=:
3709 break
3711 rm -f conftest.err conftest.$ac_ext
3713 done
3714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715 rm -f conftest.err conftest.$ac_ext
3716 if $ac_preproc_ok; then
3717   break
3720     done
3721     ac_cv_prog_CPP=$CPP
3722   
3724   CPP=$ac_cv_prog_CPP
3725 else
3726   ac_cv_prog_CPP=$CPP
3728 echo "$as_me:$LINENO: result: $CPP" >&5
3729 echo "${ECHO_T}$CPP" >&6
3730 ac_preproc_ok=false
3731 for ac_c_preproc_warn_flag in '' yes
3733   # Use a header file that comes with gcc, so configuring glibc
3734   # with a fresh cross-compiler works.
3735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736   # <limits.h> exists even on freestanding compilers.
3737   # On the NeXT, cc -E runs the code through the compiler's parser,
3738   # not just through cpp. "Syntax error" is here to catch this case.
3739   cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3741 /* confdefs.h.  */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h.  */
3746 @%:@ifdef __STDC__
3747 @%:@ include <limits.h>
3748 @%:@else
3749 @%:@ include <assert.h>
3750 @%:@endif
3751                      Syntax error
3752 _ACEOF
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3755   ac_status=$?
3756   grep -v '^ *+' conftest.er1 >conftest.err
3757   rm -f conftest.er1
3758   cat conftest.err >&5
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } >/dev/null; then
3761   if test -s conftest.err; then
3762     ac_cpp_err=$ac_c_preproc_warn_flag
3763   else
3764     ac_cpp_err=
3765   fi
3766 else
3767   ac_cpp_err=yes
3769 if test -z "$ac_cpp_err"; then
3770   :
3771 else
3772   echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775   # Broken: fails on valid input.
3776 continue
3778 rm -f conftest.err conftest.$ac_ext
3780   # OK, works on sane cases.  Now check whether non-existent headers
3781   # can be detected and how.
3782   cat >conftest.$ac_ext <<_ACEOF
3783 #line $LINENO "configure"
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789 @%:@include <ac_nonexistent.h>
3790 _ACEOF
3791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } >/dev/null; then
3799   if test -s conftest.err; then
3800     ac_cpp_err=$ac_c_preproc_warn_flag
3801   else
3802     ac_cpp_err=
3803   fi
3804 else
3805   ac_cpp_err=yes
3807 if test -z "$ac_cpp_err"; then
3808   # Broken: success on invalid input.
3809 continue
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814   # Passes both tests.
3815 ac_preproc_ok=:
3816 break
3818 rm -f conftest.err conftest.$ac_ext
3820 done
3821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3822 rm -f conftest.err conftest.$ac_ext
3823 if $ac_preproc_ok; then
3824   :
3825 else
3826   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3829 See \`config.log' for more details." >&2;}
3830    { (exit 1); exit 1; }; }
3833 ac_ext=c
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 echo "$as_me:$LINENO: checking for egrep" >&5
3841 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3842 if test "${ac_cv_prog_egrep+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3846     then ac_cv_prog_egrep='grep -E'
3847     else ac_cv_prog_egrep='egrep'
3848     fi
3850 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3851 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3852  EGREP=$ac_cv_prog_egrep
3856 echo "$as_me:$LINENO: checking for AIX" >&5
3857 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3860 /* confdefs.h.  */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h.  */
3865 #ifdef _AIX
3866   yes
3867 #endif
3869 _ACEOF
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871   $EGREP "yes" >/dev/null 2>&1; then
3872   echo "$as_me:$LINENO: result: yes" >&5
3873 echo "${ECHO_T}yes" >&6
3874 cat >>confdefs.h <<\_ACEOF
3875 @%:@define _ALL_SOURCE 1
3876 _ACEOF
3878 else
3879   echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3882 rm -f conftest*
3885 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3887 if test "${ac_cv_c_const+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   cat >conftest.$ac_ext <<_ACEOF
3891 #line $LINENO "configure"
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3899 main ()
3901 /* FIXME: Include the comments suggested by Paul. */
3902 #ifndef __cplusplus
3903   /* Ultrix mips cc rejects this.  */
3904   typedef int charset[2];
3905   const charset x;
3906   /* SunOS 4.1.1 cc rejects this.  */
3907   char const *const *ccp;
3908   char **p;
3909   /* NEC SVR4.0.2 mips cc rejects this.  */
3910   struct point {int x, y;};
3911   static struct point const zero = {0,0};
3912   /* AIX XL C 1.02.0.0 rejects this.
3913      It does not let you subtract one const X* pointer from another in
3914      an arm of an if-expression whose if-part is not a constant
3915      expression */
3916   const char *g = "string";
3917   ccp = &g + (g ? g-g : 0);
3918   /* HPUX 7.0 cc rejects these. */
3919   ++ccp;
3920   p = (char**) ccp;
3921   ccp = (char const *const *) p;
3922   { /* SCO 3.2v4 cc rejects this.  */
3923     char *t;
3924     char const *s = 0 ? (char *) 0 : (char const *) 0;
3926     *t++ = 0;
3927   }
3928   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3929     int x[] = {25, 17};
3930     const int *foo = &x[0];
3931     ++foo;
3932   }
3933   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3934     typedef const int *iptr;
3935     iptr p = 0;
3936     ++p;
3937   }
3938   { /* AIX XL C 1.02.0.0 rejects this saying
3939        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3940     struct s { int j; const int *ap[3]; };
3941     struct s *b; b->j = 5;
3942   }
3943   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3944     const int foo = 10;
3945   }
3946 #endif
3948   ;
3949   return 0;
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954   (eval $ac_compile) 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } &&
3958          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3964   ac_cv_c_const=yes
3965 else
3966   echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_cv_c_const=no
3971 rm -f conftest.$ac_objext conftest.$ac_ext
3973 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3974 echo "${ECHO_T}$ac_cv_c_const" >&6
3975 if test $ac_cv_c_const = no; then
3976   
3977 cat >>confdefs.h <<\_ACEOF
3978 @%:@define const 
3979 _ACEOF
3985 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3986 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3987 if test "${ac_cv_header_stdc+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   cat >conftest.$ac_ext <<_ACEOF
3991 #line $LINENO "configure"
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997 #include <stdlib.h>
3998 #include <stdarg.h>
3999 #include <string.h>
4000 #include <float.h>
4003 main ()
4006   ;
4007   return 0;
4009 _ACEOF
4010 rm -f conftest.$ac_objext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012   (eval $ac_compile) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } &&
4016          { ac_try='test -s conftest.$ac_objext'
4017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018   (eval $ac_try) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; }; then
4022   ac_cv_header_stdc=yes
4023 else
4024   echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_header_stdc=no
4029 rm -f conftest.$ac_objext conftest.$ac_ext
4031 if test $ac_cv_header_stdc = yes; then
4032   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4033   cat >conftest.$ac_ext <<_ACEOF
4034 #line $LINENO "configure"
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #include <string.h>
4042 _ACEOF
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044   $EGREP "memchr" >/dev/null 2>&1; then
4045   :
4046 else
4047   ac_cv_header_stdc=no
4049 rm -f conftest*
4053 if test $ac_cv_header_stdc = yes; then
4054   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4055   cat >conftest.$ac_ext <<_ACEOF
4056 #line $LINENO "configure"
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062 #include <stdlib.h>
4064 _ACEOF
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066   $EGREP "free" >/dev/null 2>&1; then
4067   :
4068 else
4069   ac_cv_header_stdc=no
4071 rm -f conftest*
4075 if test $ac_cv_header_stdc = yes; then
4076   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4077   if test "$cross_compiling" = yes; then
4078   :
4079 else
4080   cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4082 /* confdefs.h.  */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h.  */
4087 #include <ctype.h>
4088 #if ((' ' & 0x0FF) == 0x020)
4089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4091 #else
4092 # define ISLOWER(c) \
4093                    (('a' <= (c) && (c) <= 'i') \
4094                      || ('j' <= (c) && (c) <= 'r') \
4095                      || ('s' <= (c) && (c) <= 'z'))
4096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4097 #endif
4099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4101 main ()
4103   int i;
4104   for (i = 0; i < 256; i++)
4105     if (XOR (islower (i), ISLOWER (i))
4106         || toupper (i) != TOUPPER (i))
4107       exit(2);
4108   exit (0);
4110 _ACEOF
4111 rm -f conftest$ac_exeext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113   (eval $ac_link) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   :
4123 else
4124   echo "$as_me: program exited with status $ac_status" >&5
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 ( exit $ac_status )
4129 ac_cv_header_stdc=no
4131 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4135 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4136 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4137 if test $ac_cv_header_stdc = yes; then
4138   
4139 cat >>confdefs.h <<\_ACEOF
4140 @%:@define STDC_HEADERS 1
4141 _ACEOF
4145 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4155 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4156                   inttypes.h stdint.h unistd.h
4158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4159 echo "$as_me:$LINENO: checking for $ac_header" >&5
4160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   cat >conftest.$ac_ext <<_ACEOF
4165 #line $LINENO "configure"
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 $ac_includes_default
4173 @%:@include <$ac_header>
4174 _ACEOF
4175 rm -f conftest.$ac_objext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177   (eval $ac_compile) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183   (eval $ac_try) 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; }; then
4187   eval "$as_ac_Header=yes"
4188 else
4189   echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 eval "$as_ac_Header=no"
4194 rm -f conftest.$ac_objext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4199   cat >>confdefs.h <<_ACEOF
4200 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4201 _ACEOF
4205 done
4209 for ac_header in unistd.h
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213   echo "$as_me:$LINENO: checking for $ac_header" >&5
4214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4220 else
4221   # Is the header compilable?
4222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 $ac_includes_default
4232 @%:@include <$ac_header>
4233 _ACEOF
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236   (eval $ac_compile) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_header_compiler=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_header_compiler=no
4253 rm -f conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255 echo "${ECHO_T}$ac_header_compiler" >&6
4257 # Is the header present?
4258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line $LINENO "configure"
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 @%:@include <$ac_header>
4268 _ACEOF
4269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } >/dev/null; then
4277   if test -s conftest.err; then
4278     ac_cpp_err=$ac_c_preproc_warn_flag
4279   else
4280     ac_cpp_err=
4281   fi
4282 else
4283   ac_cpp_err=yes
4285 if test -z "$ac_cpp_err"; then
4286   ac_header_preproc=yes
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291   ac_header_preproc=no
4293 rm -f conftest.err conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4295 echo "${ECHO_T}$ac_header_preproc" >&6
4297 # So?  What about this header?
4298 case $ac_header_compiler:$ac_header_preproc in
4299   yes:no )
4300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4304     (
4305       cat <<\_ASBOX
4306 @%:@@%:@ ------------------------------------ @%:@@%:@
4307 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4308 @%:@@%:@ ------------------------------------ @%:@@%:@
4309 _ASBOX
4310     ) |
4311       sed "s/^/$as_me: WARNING:     /" >&2
4312     ;;
4313   no:yes )
4314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4316     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4320     (
4321       cat <<\_ASBOX
4322 @%:@@%:@ ------------------------------------ @%:@@%:@
4323 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4324 @%:@@%:@ ------------------------------------ @%:@@%:@
4325 _ASBOX
4326     ) |
4327       sed "s/^/$as_me: WARNING:     /" >&2
4328     ;;
4329 esac
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   eval "$as_ac_Header=$ac_header_preproc"
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342   cat >>confdefs.h <<_ACEOF
4343 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344 _ACEOF
4348 done
4350 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4351 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4352 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   cat >conftest.$ac_ext <<_ACEOF
4356 #line $LINENO "configure"
4357 /* confdefs.h.  */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h.  */
4362 @%:@include <sys/types.h>
4364 main ()
4366 return makedev(0, 0);
4367   ;
4368   return 0;
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373   (eval $ac_link) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } &&
4377          { ac_try='test -s conftest$ac_exeext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_cv_header_sys_types_h_makedev=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_header_sys_types_h_makedev=no
4390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4394 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4396 if test $ac_cv_header_sys_types_h_makedev = no; then
4397 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4398   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4399 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4400 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4404 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4405 else
4406   # Is the header compilable?
4407 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4408 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416 $ac_includes_default
4417 @%:@include <sys/mkdev.h>
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421   (eval $ac_compile) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } &&
4425          { ac_try='test -s conftest.$ac_objext'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   ac_header_compiler=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_header_compiler=no
4438 rm -f conftest.$ac_objext conftest.$ac_ext
4439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6
4442 # Is the header present?
4443 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4444 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4447 /* confdefs.h.  */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h.  */
4452 @%:@include <sys/mkdev.h>
4453 _ACEOF
4454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } >/dev/null; then
4462   if test -s conftest.err; then
4463     ac_cpp_err=$ac_c_preproc_warn_flag
4464   else
4465     ac_cpp_err=
4466   fi
4467 else
4468   ac_cpp_err=yes
4470 if test -z "$ac_cpp_err"; then
4471   ac_header_preproc=yes
4472 else
4473   echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476   ac_header_preproc=no
4478 rm -f conftest.err conftest.$ac_ext
4479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4480 echo "${ECHO_T}$ac_header_preproc" >&6
4482 # So?  What about this header?
4483 case $ac_header_compiler:$ac_header_preproc in
4484   yes:no )
4485     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4486 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4487     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4488 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4489     (
4490       cat <<\_ASBOX
4491 @%:@@%:@ ------------------------------------ @%:@@%:@
4492 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4493 @%:@@%:@ ------------------------------------ @%:@@%:@
4494 _ASBOX
4495     ) |
4496       sed "s/^/$as_me: WARNING:     /" >&2
4497     ;;
4498   no:yes )
4499     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4500 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4501     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4502 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4503     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4504 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4505     (
4506       cat <<\_ASBOX
4507 @%:@@%:@ ------------------------------------ @%:@@%:@
4508 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4509 @%:@@%:@ ------------------------------------ @%:@@%:@
4510 _ASBOX
4511     ) |
4512       sed "s/^/$as_me: WARNING:     /" >&2
4513     ;;
4514 esac
4515 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4516 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4517 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4518   echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520   ac_cv_header_sys_mkdev_h=$ac_header_preproc
4522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4523 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4526 if test $ac_cv_header_sys_mkdev_h = yes; then
4527   
4528 cat >>confdefs.h <<\_ACEOF
4529 @%:@define MAJOR_IN_MKDEV 1
4530 _ACEOF
4536   if test $ac_cv_header_sys_mkdev_h = no; then
4537     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4538   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4539 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4540 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4541   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4544 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4545 else
4546   # Is the header compilable?
4547 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4548 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4549 cat >conftest.$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4551 /* confdefs.h.  */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h.  */
4556 $ac_includes_default
4557 @%:@include <sys/sysmacros.h>
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561   (eval $ac_compile) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -s conftest.$ac_objext'
4566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567   (eval $ac_try) 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); }; }; then
4571   ac_header_compiler=yes
4572 else
4573   echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 ac_header_compiler=no
4578 rm -f conftest.$ac_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4580 echo "${ECHO_T}$ac_header_compiler" >&6
4582 # Is the header present?
4583 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4584 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 @%:@include <sys/sysmacros.h>
4593 _ACEOF
4594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596   ac_status=$?
4597   grep -v '^ *+' conftest.er1 >conftest.err
4598   rm -f conftest.er1
4599   cat conftest.err >&5
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } >/dev/null; then
4602   if test -s conftest.err; then
4603     ac_cpp_err=$ac_c_preproc_warn_flag
4604   else
4605     ac_cpp_err=
4606   fi
4607 else
4608   ac_cpp_err=yes
4610 if test -z "$ac_cpp_err"; then
4611   ac_header_preproc=yes
4612 else
4613   echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616   ac_header_preproc=no
4618 rm -f conftest.err conftest.$ac_ext
4619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4620 echo "${ECHO_T}$ac_header_preproc" >&6
4622 # So?  What about this header?
4623 case $ac_header_compiler:$ac_header_preproc in
4624   yes:no )
4625     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4626 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4627     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4628 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4629     (
4630       cat <<\_ASBOX
4631 @%:@@%:@ ------------------------------------ @%:@@%:@
4632 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4633 @%:@@%:@ ------------------------------------ @%:@@%:@
4634 _ASBOX
4635     ) |
4636       sed "s/^/$as_me: WARNING:     /" >&2
4637     ;;
4638   no:yes )
4639     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4640 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4641     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4642 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4643     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4644 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4645     (
4646       cat <<\_ASBOX
4647 @%:@@%:@ ------------------------------------ @%:@@%:@
4648 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4649 @%:@@%:@ ------------------------------------ @%:@@%:@
4650 _ASBOX
4651     ) |
4652       sed "s/^/$as_me: WARNING:     /" >&2
4653     ;;
4654 esac
4655 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4656 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4657 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4662 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4663 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4666 if test $ac_cv_header_sys_sysmacros_h = yes; then
4667   
4668 cat >>confdefs.h <<\_ACEOF
4669 @%:@define MAJOR_IN_SYSMACROS 1
4670 _ACEOF
4675   fi
4678 echo "$as_me:$LINENO: checking for major_t" >&5
4679 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
4680 if test "${ac_cv_type_major_t+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4685 /* confdefs.h.  */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h.  */
4690 #include <sys/types.h>
4691   #ifdef MAJOR_IN_MKDEV
4692   # include <sys/mkdev.h>
4693   #else
4694   # ifdef MAJOR_IN_SYSMACROS
4695   #  include <sys/sysmacros.h>
4696   # endif
4697   #endif
4699   
4702 main ()
4704 if ((major_t *) 0)
4705   return 0;
4706 if (sizeof (major_t))
4707   return 0;
4708   ;
4709   return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714   (eval $ac_compile) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } &&
4718          { ac_try='test -s conftest.$ac_objext'
4719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720   (eval $ac_try) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }; }; then
4724   ac_cv_type_major_t=yes
4725 else
4726   echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_cv_type_major_t=no
4731 rm -f conftest.$ac_objext conftest.$ac_ext
4733 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
4734 echo "${ECHO_T}$ac_cv_type_major_t" >&6
4735 if test $ac_cv_type_major_t = yes; then
4736   
4737 cat >>confdefs.h <<_ACEOF
4738 @%:@define HAVE_MAJOR_T 1
4739 _ACEOF
4742 else
4743   
4744 cat >>confdefs.h <<\_ACEOF
4745 @%:@define major_t unsigned int
4746 _ACEOF
4751 echo "$as_me:$LINENO: checking for minor_t" >&5
4752 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
4753 if test "${ac_cv_type_minor_t+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756   cat >conftest.$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763 #include <sys/types.h>
4764   #ifdef MAJOR_IN_MKDEV
4765   # include <sys/mkdev.h>
4766   #else
4767   # ifdef MAJOR_IN_SYSMACROS
4768   #  include <sys/sysmacros.h>
4769   # endif
4770   #endif
4772   
4775 main ()
4777 if ((minor_t *) 0)
4778   return 0;
4779 if (sizeof (minor_t))
4780   return 0;
4781   ;
4782   return 0;
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787   (eval $ac_compile) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -s conftest.$ac_objext'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; }; then
4797   ac_cv_type_minor_t=yes
4798 else
4799   echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 ac_cv_type_minor_t=no
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
4807 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
4808 if test $ac_cv_type_minor_t = yes; then
4809   
4810 cat >>confdefs.h <<_ACEOF
4811 @%:@define HAVE_MINOR_T 1
4812 _ACEOF
4815 else
4816   
4817 cat >>confdefs.h <<\_ACEOF
4818 @%:@define minor_t unsigned int
4819 _ACEOF
4824 echo "$as_me:$LINENO: checking for dev_t" >&5
4825 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
4826 if test "${ac_cv_type_dev_t+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   cat >conftest.$ac_ext <<_ACEOF
4830 #line $LINENO "configure"
4831 /* confdefs.h.  */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h.  */
4836 #include <sys/types.h>
4837   #ifdef MAJOR_IN_MKDEV
4838   # include <sys/mkdev.h>
4839   #else
4840   # ifdef MAJOR_IN_SYSMACROS
4841   #  include <sys/sysmacros.h>
4842   # endif
4843   #endif
4845   
4848 main ()
4850 if ((dev_t *) 0)
4851   return 0;
4852 if (sizeof (dev_t))
4853   return 0;
4854   ;
4855   return 0;
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860   (eval $ac_compile) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -s conftest.$ac_objext'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; }; then
4870   ac_cv_type_dev_t=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_type_dev_t=no
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4879 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
4880 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
4881 if test $ac_cv_type_dev_t = yes; then
4882   
4883 cat >>confdefs.h <<_ACEOF
4884 @%:@define HAVE_DEV_T 1
4885 _ACEOF
4888 else
4889   
4890 cat >>confdefs.h <<\_ACEOF
4891 @%:@define dev_t unsigned long
4892 _ACEOF
4897 echo "$as_me:$LINENO: checking for socklen_t" >&5
4898 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4899 if test "${ac_cv_type_socklen_t+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   cat >conftest.$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 #include <sys/types.h>
4910   #include <sys/socket.h>
4912   
4915 main ()
4917 if ((socklen_t *) 0)
4918   return 0;
4919 if (sizeof (socklen_t))
4920   return 0;
4921   ;
4922   return 0;
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927   (eval $ac_compile) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); } &&
4931          { ac_try='test -s conftest.$ac_objext'
4932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933   (eval $ac_try) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; }; then
4937   ac_cv_type_socklen_t=yes
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 ac_cv_type_socklen_t=no
4944 rm -f conftest.$ac_objext conftest.$ac_ext
4946 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4947 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4948 if test $ac_cv_type_socklen_t = yes; then
4949   
4950 cat >>confdefs.h <<_ACEOF
4951 @%:@define HAVE_SOCKLEN_T 1
4952 _ACEOF
4955 else
4956   
4957 cat >>confdefs.h <<\_ACEOF
4958 @%:@define socklen_t unsigned long
4959 _ACEOF
4964 echo "$as_me:$LINENO: checking for uint64_t" >&5
4965 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4966 if test "${ac_cv_type_uint64_t+set}" = set; then
4967   echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969   cat >conftest.$ac_ext <<_ACEOF
4970 #line $LINENO "configure"
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976 $ac_includes_default
4978 main ()
4980 if ((uint64_t *) 0)
4981   return 0;
4982 if (sizeof (uint64_t))
4983   return 0;
4984   ;
4985   return 0;
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990   (eval $ac_compile) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   ac_cv_type_uint64_t=yes
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_type_uint64_t=no
5007 rm -f conftest.$ac_objext conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5010 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5011 if test $ac_cv_type_uint64_t = yes; then
5012   
5013 cat >>confdefs.h <<_ACEOF
5014 @%:@define HAVE_UINT64_T 1
5015 _ACEOF
5018 else
5019   
5020 cat >>confdefs.h <<\_ACEOF
5021 @%:@define uint64_t long long
5022 _ACEOF
5027 echo "$as_me:$LINENO: checking for mode_t" >&5
5028 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5029 if test "${ac_cv_type_mode_t+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 $ac_includes_default
5041 main ()
5043 if ((mode_t *) 0)
5044   return 0;
5045 if (sizeof (mode_t))
5046   return 0;
5047   ;
5048   return 0;
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053   (eval $ac_compile) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } &&
5057          { ac_try='test -s conftest.$ac_objext'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; }; then
5063   ac_cv_type_mode_t=yes
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 ac_cv_type_mode_t=no
5070 rm -f conftest.$ac_objext conftest.$ac_ext
5072 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5073 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5074 if test $ac_cv_type_mode_t = yes; then
5075   :
5076 else
5077   
5078 cat >>confdefs.h <<_ACEOF
5079 @%:@define mode_t int
5080 _ACEOF
5084 echo "$as_me:$LINENO: checking for off_t" >&5
5085 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5086 if test "${ac_cv_type_off_t+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 $ac_includes_default
5098 main ()
5100 if ((off_t *) 0)
5101   return 0;
5102 if (sizeof (off_t))
5103   return 0;
5104   ;
5105   return 0;
5107 _ACEOF
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110   (eval $ac_compile) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } &&
5114          { ac_try='test -s conftest.$ac_objext'
5115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116   (eval $ac_try) 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); }; }; then
5120   ac_cv_type_off_t=yes
5121 else
5122   echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 ac_cv_type_off_t=no
5127 rm -f conftest.$ac_objext conftest.$ac_ext
5129 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5130 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5131 if test $ac_cv_type_off_t = yes; then
5132   :
5133 else
5134   
5135 cat >>confdefs.h <<_ACEOF
5136 @%:@define off_t long
5137 _ACEOF
5141 echo "$as_me:$LINENO: checking for size_t" >&5
5142 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5143 if test "${ac_cv_type_size_t+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 $ac_includes_default
5155 main ()
5157 if ((size_t *) 0)
5158   return 0;
5159 if (sizeof (size_t))
5160   return 0;
5161   ;
5162   return 0;
5164 _ACEOF
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167   (eval $ac_compile) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } &&
5171          { ac_try='test -s conftest.$ac_objext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_type_size_t=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_type_size_t=no
5184 rm -f conftest.$ac_objext conftest.$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5187 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5188 if test $ac_cv_type_size_t = yes; then
5189   :
5190 else
5191   
5192 cat >>confdefs.h <<_ACEOF
5193 @%:@define size_t unsigned
5194 _ACEOF
5198 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5199 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5200 if test "${ac_cv_type_uid_t+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   cat >conftest.$ac_ext <<_ACEOF
5204 #line $LINENO "configure"
5205 /* confdefs.h.  */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h.  */
5210 #include <sys/types.h>
5212 _ACEOF
5213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5214   $EGREP "uid_t" >/dev/null 2>&1; then
5215   ac_cv_type_uid_t=yes
5216 else
5217   ac_cv_type_uid_t=no
5219 rm -f conftest*
5222 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5223 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5224 if test $ac_cv_type_uid_t = no; then
5225   
5226 cat >>confdefs.h <<\_ACEOF
5227 @%:@define uid_t int
5228 _ACEOF
5230   
5231 cat >>confdefs.h <<\_ACEOF
5232 @%:@define gid_t int
5233 _ACEOF
5237 echo "$as_me:$LINENO: checking for nlink_t" >&5
5238 echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6
5239 if test "${ac_cv_type_nlink_t+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   cat >conftest.$ac_ext <<_ACEOF
5243 #line $LINENO "configure"
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249 $ac_includes_default
5251 main ()
5253 if ((nlink_t *) 0)
5254   return 0;
5255 if (sizeof (nlink_t))
5256   return 0;
5257   ;
5258   return 0;
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263   (eval $ac_compile) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); } &&
5267          { ac_try='test -s conftest.$ac_objext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   ac_cv_type_nlink_t=yes
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 ac_cv_type_nlink_t=no
5280 rm -f conftest.$ac_objext conftest.$ac_ext
5282 echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
5283 echo "${ECHO_T}$ac_cv_type_nlink_t" >&6
5284 if test $ac_cv_type_nlink_t = yes; then
5285   
5286 cat >>confdefs.h <<_ACEOF
5287 @%:@define HAVE_NLINK_T 1
5288 _ACEOF
5291 else
5292   
5293 cat >>confdefs.h <<\_ACEOF
5294 @%:@define nlink_t unsigned short
5295 _ACEOF
5303   
5304 cat >>confdefs.h <<\_ACEOF
5305 @%:@define NEED_BASENAME 1
5306 _ACEOF
5308   
5309 for ac_header in libgen.h
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313   echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5320 else
5321   # Is the header compilable?
5322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 #line $LINENO "configure"
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 $ac_includes_default
5332 @%:@include <$ac_header>
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336   (eval $ac_compile) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -s conftest.$ac_objext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_header_compiler=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_compiler=no
5353 rm -f conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 @%:@include <$ac_header>
5368 _ACEOF
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } >/dev/null; then
5377   if test -s conftest.err; then
5378     ac_cpp_err=$ac_c_preproc_warn_flag
5379   else
5380     ac_cpp_err=
5381   fi
5382 else
5383   ac_cpp_err=yes
5385 if test -z "$ac_cpp_err"; then
5386   ac_header_preproc=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391   ac_header_preproc=no
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5397 # So?  What about this header?
5398 case $ac_header_compiler:$ac_header_preproc in
5399   yes:no )
5400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5404     (
5405       cat <<\_ASBOX
5406 @%:@@%:@ ------------------------------------ @%:@@%:@
5407 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5408 @%:@@%:@ ------------------------------------ @%:@@%:@
5409 _ASBOX
5410     ) |
5411       sed "s/^/$as_me: WARNING:     /" >&2
5412     ;;
5413   no:yes )
5414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420     (
5421       cat <<\_ASBOX
5422 @%:@@%:@ ------------------------------------ @%:@@%:@
5423 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5424 @%:@@%:@ ------------------------------------ @%:@@%:@
5425 _ASBOX
5426     ) |
5427       sed "s/^/$as_me: WARNING:     /" >&2
5428     ;;
5429 esac
5430 echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   eval "$as_ac_Header=$ac_header_preproc"
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442   cat >>confdefs.h <<_ACEOF
5443 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5444 _ACEOF
5448 done
5450   echo "$as_me:$LINENO: checking for working basename" >&5
5451 echo $ECHO_N "checking for working basename... $ECHO_C" >&6
5452 if test "${compat_cv_func_basename_works+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   if test "$cross_compiling" = yes; then
5456   compat_cv_func_basename_works=no
5457     
5458 else
5459   cat >conftest.$ac_ext <<_ACEOF
5460 #line $LINENO "configure"
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5467 #include <stdio.h>
5468 #ifdef HAVE_LIBGEN_H
5469 # include <libgen.h>
5470 #endif
5472 typedef struct {
5473   char *test;
5474   char *result;
5475 } test_t;
5477 const test_t tests[] = {
5478   { "/usr/local/foo", "foo" },
5479   { "/usr/local/foo/", "foo" },
5480   { NULL, NULL }
5483 int main() {
5484   char test1[1024];
5485   int i;
5487   for (i = 0; tests[i].test; i++) {
5488     strcpy(test1, tests[i].test);
5489     if (strcmp(basename(test1), tests[i].result) ||
5490         strcmp(test1, tests[i].test))
5491       exit(1);
5492   }
5494   exit(0);
5497 _ACEOF
5498 rm -f conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500   (eval $ac_link) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505   (eval $ac_try) 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }; }; then
5509   compat_cv_func_basename_works=yes
5510 else
5511   echo "$as_me: program exited with status $ac_status" >&5
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ( exit $ac_status )
5516 compat_cv_func_basename_works=no
5518 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5520   
5522 echo "$as_me:$LINENO: result: $compat_cv_func_basename_works" >&5
5523 echo "${ECHO_T}$compat_cv_func_basename_works" >&6
5524   if test "$compat_cv_func_basename_works" = "yes"; then
5525     
5526 cat >>confdefs.h <<\_ACEOF
5527 @%:@define HAVE_BASENAME 1
5528 _ACEOF
5530   else
5531     LIB@&t@OBJS="$LIB@&t@OBJS basename.$ac_objext"
5532   fi
5535   
5536 cat >>confdefs.h <<\_ACEOF
5537 @%:@define NEED_DIRNAME 1
5538 _ACEOF
5540   
5541 for ac_header in libgen.h
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5545   echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5552 else
5553   # Is the header compilable?
5554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5556 cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 $ac_includes_default
5564 @%:@include <$ac_header>
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568   (eval $ac_compile) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } &&
5572          { ac_try='test -s conftest.$ac_objext'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; }; then
5578   ac_header_compiler=yes
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_header_compiler=no
5585 rm -f conftest.$ac_objext conftest.$ac_ext
5586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5587 echo "${ECHO_T}$ac_header_compiler" >&6
5589 # Is the header present?
5590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 /* confdefs.h.  */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h.  */
5599 @%:@include <$ac_header>
5600 _ACEOF
5601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } >/dev/null; then
5609   if test -s conftest.err; then
5610     ac_cpp_err=$ac_c_preproc_warn_flag
5611   else
5612     ac_cpp_err=
5613   fi
5614 else
5615   ac_cpp_err=yes
5617 if test -z "$ac_cpp_err"; then
5618   ac_header_preproc=yes
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623   ac_header_preproc=no
5625 rm -f conftest.err conftest.$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5627 echo "${ECHO_T}$ac_header_preproc" >&6
5629 # So?  What about this header?
5630 case $ac_header_compiler:$ac_header_preproc in
5631   yes:no )
5632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5636     (
5637       cat <<\_ASBOX
5638 @%:@@%:@ ------------------------------------ @%:@@%:@
5639 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5640 @%:@@%:@ ------------------------------------ @%:@@%:@
5641 _ASBOX
5642     ) |
5643       sed "s/^/$as_me: WARNING:     /" >&2
5644     ;;
5645   no:yes )
5646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5648     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5652     (
5653       cat <<\_ASBOX
5654 @%:@@%:@ ------------------------------------ @%:@@%:@
5655 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5656 @%:@@%:@ ------------------------------------ @%:@@%:@
5657 _ASBOX
5658     ) |
5659       sed "s/^/$as_me: WARNING:     /" >&2
5660     ;;
5661 esac
5662 echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   eval "$as_ac_Header=$ac_header_preproc"
5669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5674   cat >>confdefs.h <<_ACEOF
5675 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5676 _ACEOF
5680 done
5682   echo "$as_me:$LINENO: checking for working dirname" >&5
5683 echo $ECHO_N "checking for working dirname... $ECHO_C" >&6
5684 if test "${compat_cv_func_dirname_works+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   if test "$cross_compiling" = yes; then
5688   compat_cv_func_dirname_works=no
5689     
5690 else
5691   cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5699 #include <stdio.h>
5700 #ifdef HAVE_LIBGEN_H
5701 # include <libgen.h>
5702 #endif
5704 typedef struct {
5705   char *test;
5706   char *result;
5707 } test_t;
5709 const test_t tests[] = {
5710   { "foobar", "." },
5711   { "/usr/local/foo", "/usr/local" },
5712   { "/usr/local/foo/", "/usr/local" },
5713   { "/", "/" },
5714   { "", "." },
5715   { NULL, NULL }
5718 int main() {
5719   char test1[1024];
5720   int i;
5722   for (i = 0; tests[i].test; i++) {
5723     strcpy(test1, tests[i].test);
5724     if (strcmp(dirname(test1), tests[i].result) ||
5725         strcmp(test1, tests[i].test))
5726       exit(1);
5727   }
5729   exit(0);
5732 _ACEOF
5733 rm -f conftest$ac_exeext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735   (eval $ac_link) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   compat_cv_func_dirname_works=yes
5745 else
5746   echo "$as_me: program exited with status $ac_status" >&5
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 ( exit $ac_status )
5751 compat_cv_func_dirname_works=no
5753 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5755   
5757 echo "$as_me:$LINENO: result: $compat_cv_func_dirname_works" >&5
5758 echo "${ECHO_T}$compat_cv_func_dirname_works" >&6
5759   if test "$compat_cv_func_dirname_works" = "yes"; then
5760     
5761 cat >>confdefs.h <<\_ACEOF
5762 @%:@define HAVE_DIRNAME 1
5763 _ACEOF
5765   else
5766     LIB@&t@OBJS="$LIB@&t@OBJS dirname.$ac_objext"
5767   fi
5770   
5771 cat >>confdefs.h <<\_ACEOF
5772 @%:@define NEED_FNMATCH 1
5773 _ACEOF
5775   
5776 for ac_header in fnmatch.h
5778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780   echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5787 else
5788   # Is the header compilable?
5789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798 $ac_includes_default
5799 @%:@include <$ac_header>
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803   (eval $ac_compile) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   ac_header_compiler=yes
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_header_compiler=no
5820 rm -f conftest.$ac_objext conftest.$ac_ext
5821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5822 echo "${ECHO_T}$ac_header_compiler" >&6
5824 # Is the header present?
5825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 /* confdefs.h.  */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h.  */
5834 @%:@include <$ac_header>
5835 _ACEOF
5836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } >/dev/null; then
5844   if test -s conftest.err; then
5845     ac_cpp_err=$ac_c_preproc_warn_flag
5846   else
5847     ac_cpp_err=
5848   fi
5849 else
5850   ac_cpp_err=yes
5852 if test -z "$ac_cpp_err"; then
5853   ac_header_preproc=yes
5854 else
5855   echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858   ac_header_preproc=no
5860 rm -f conftest.err conftest.$ac_ext
5861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5862 echo "${ECHO_T}$ac_header_preproc" >&6
5864 # So?  What about this header?
5865 case $ac_header_compiler:$ac_header_preproc in
5866   yes:no )
5867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5871     (
5872       cat <<\_ASBOX
5873 @%:@@%:@ ------------------------------------ @%:@@%:@
5874 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5875 @%:@@%:@ ------------------------------------ @%:@@%:@
5876 _ASBOX
5877     ) |
5878       sed "s/^/$as_me: WARNING:     /" >&2
5879     ;;
5880   no:yes )
5881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5883     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5887     (
5888       cat <<\_ASBOX
5889 @%:@@%:@ ------------------------------------ @%:@@%:@
5890 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5891 @%:@@%:@ ------------------------------------ @%:@@%:@
5892 _ASBOX
5893     ) |
5894       sed "s/^/$as_me: WARNING:     /" >&2
5895     ;;
5896 esac
5897 echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   eval "$as_ac_Header=$ac_header_preproc"
5904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5909   cat >>confdefs.h <<_ACEOF
5910 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911 _ACEOF
5915 done
5917   if test "$ac_cv_header_fnmatch_h" = "yes"; then
5918     echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
5919 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
5920 if test "${ac_cv_func_fnmatch_works+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   # Some versions of Solaris, SCO, and the GNU C Library
5924    # have a broken or incompatible fnmatch.
5925    # So we run a test program.  If we are cross-compiling, take no chance.
5926    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
5927    if test "$cross_compiling" = yes; then
5928   ac_cv_func_fnmatch_works=cross
5929 else
5930   cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937 #include <fnmatch.h>
5938 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
5939 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
5940          
5942 main ()
5944 exit
5945            (!(y ("a*", "abc", 0)
5946               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
5947               && y ("a\\\\bc", "abc", 0)
5948               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
5949               && y ("*x", ".x", 0)
5950               && n ("*x", ".x", FNM_PERIOD)
5951               && 1));
5952   ;
5953   return 0;
5955 _ACEOF
5956 rm -f conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958   (eval $ac_link) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963   (eval $ac_try) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; }; then
5967   ac_cv_func_fnmatch_works=yes
5968 else
5969   echo "$as_me: program exited with status $ac_status" >&5
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ( exit $ac_status )
5974 ac_cv_func_fnmatch_works=no
5976 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5979 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
5980 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
5981 if test $ac_cv_func_fnmatch_works = yes; then
5982   
5983 cat >>confdefs.h <<\_ACEOF
5984 @%:@define HAVE_FNMATCH 1
5985 _ACEOF
5991   fi
5992   if test "$ac_cv_func_fnmatch_works" != "yes"; then
5993     
5994 for ac_header in ctype.h
5996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5998   echo "$as_me:$LINENO: checking for $ac_header" >&5
5999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6005 else
6006   # Is the header compilable?
6007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6009 cat >conftest.$ac_ext <<_ACEOF
6010 #line $LINENO "configure"
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 $ac_includes_default
6017 @%:@include <$ac_header>
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021   (eval $ac_compile) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } &&
6025          { ac_try='test -s conftest.$ac_objext'
6026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027   (eval $ac_try) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }; }; then
6031   ac_header_compiler=yes
6032 else
6033   echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_header_compiler=no
6038 rm -f conftest.$ac_objext conftest.$ac_ext
6039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6040 echo "${ECHO_T}$ac_header_compiler" >&6
6042 # Is the header present?
6043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052 @%:@include <$ac_header>
6053 _ACEOF
6054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6056   ac_status=$?
6057   grep -v '^ *+' conftest.er1 >conftest.err
6058   rm -f conftest.er1
6059   cat conftest.err >&5
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } >/dev/null; then
6062   if test -s conftest.err; then
6063     ac_cpp_err=$ac_c_preproc_warn_flag
6064   else
6065     ac_cpp_err=
6066   fi
6067 else
6068   ac_cpp_err=yes
6070 if test -z "$ac_cpp_err"; then
6071   ac_header_preproc=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076   ac_header_preproc=no
6078 rm -f conftest.err conftest.$ac_ext
6079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6080 echo "${ECHO_T}$ac_header_preproc" >&6
6082 # So?  What about this header?
6083 case $ac_header_compiler:$ac_header_preproc in
6084   yes:no )
6085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6089     (
6090       cat <<\_ASBOX
6091 @%:@@%:@ ------------------------------------ @%:@@%:@
6092 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6093 @%:@@%:@ ------------------------------------ @%:@@%:@
6094 _ASBOX
6095     ) |
6096       sed "s/^/$as_me: WARNING:     /" >&2
6097     ;;
6098   no:yes )
6099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6101     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6105     (
6106       cat <<\_ASBOX
6107 @%:@@%:@ ------------------------------------ @%:@@%:@
6108 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6109 @%:@@%:@ ------------------------------------ @%:@@%:@
6110 _ASBOX
6111     ) |
6112       sed "s/^/$as_me: WARNING:     /" >&2
6113     ;;
6114 esac
6115 echo "$as_me:$LINENO: checking for $ac_header" >&5
6116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   eval "$as_ac_Header=$ac_header_preproc"
6122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6127   cat >>confdefs.h <<_ACEOF
6128 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6129 _ACEOF
6133 done
6135     LIB@&t@OBJS="$LIB@&t@OBJS fnmatch.$ac_objext"
6136   fi
6139 for ac_func in lchown
6141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6142 echo "$as_me:$LINENO: checking for $ac_func" >&5
6143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6144 if eval "test \"\${$as_ac_var+set}\" = set"; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154 /* System header to define __stub macros and hopefully few prototypes,
6155     which can conflict with char $ac_func (); below.
6156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157     <limits.h> exists even on freestanding compilers.  */
6158 #ifdef __STDC__
6159 # include <limits.h>
6160 #else
6161 # include <assert.h>
6162 #endif
6163 /* Override any gcc2 internal prototype to avoid an error.  */
6164 #ifdef __cplusplus
6165 extern "C"
6167 #endif
6168 /* We use char because int might match the return type of a gcc2
6169    builtin and then its argument prototype would still apply.  */
6170 char $ac_func ();
6171 /* The GNU C library defines this for functions which it implements
6172     to always fail with ENOSYS.  Some functions are actually named
6173     something starting with __ and the normal name is an alias.  */
6174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6175 choke me
6176 #else
6177 char (*f) () = $ac_func;
6178 #endif
6179 #ifdef __cplusplus
6181 #endif
6184 main ()
6186 return f != $ac_func;
6187   ;
6188   return 0;
6190 _ACEOF
6191 rm -f conftest.$ac_objext conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193   (eval $ac_link) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } &&
6197          { ac_try='test -s conftest$ac_exeext'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; }; then
6203   eval "$as_ac_var=yes"
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 eval "$as_ac_var=no"
6210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6214 if test `eval echo '${'$as_ac_var'}'` = yes; then
6215   cat >>confdefs.h <<_ACEOF
6216 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6217 _ACEOF
6220 done
6223   
6224   
6225 cat >>confdefs.h <<\_ACEOF
6226 @%:@define NEED_MAKEDEV 1
6227 _ACEOF
6229   echo "$as_me:$LINENO: checking whether makedev expects three arguments" >&5
6230 echo $ECHO_N "checking whether makedev expects three arguments... $ECHO_C" >&6
6231 if test "${compat_cv_func_makedev_three_args+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   if test "$cross_compiling" = yes; then
6235   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6236 See \`config.log' for more details." >&5
6237 echo "$as_me: error: cannot run test program while cross compiling
6238 See \`config.log' for more details." >&2;}
6239    { (exit 1); exit 1; }; }
6240 else
6241   cat >conftest.$ac_ext <<_ACEOF
6243       #line $LINENO "configure"
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6250 #include <sys/types.h>
6251 #ifdef MAJOR_IN_MKDEV
6252 # include <sys/mkdev.h>
6253 #else
6254 # ifdef MAJOR_IN_SYSMACROS
6255 #  include <sys/sysmacros.h>
6256 # endif
6257 #endif
6260 main ()
6263 dev_t dev;
6264 major_t maj = 5;
6265 minor_t min = 7;
6267 dev = makedev(0, maj, min);
6268 if (major(dev) != maj
6269     || minor(dev) != min)
6270   exit(1);
6271 exit(0);
6273   ;
6274   return 0;
6276 _ACEOF
6277 rm -f conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279   (eval $ac_link) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284   (eval $ac_try) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; }; then
6288   compat_cv_func_makedev_three_args=yes
6289 else
6290   echo "$as_me: program exited with status $ac_status" >&5
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 ( exit $ac_status )
6295 compat_cv_func_makedev_three_args=no
6296     
6298 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300   
6302 echo "$as_me:$LINENO: result: $compat_cv_func_makedev_three_args" >&5
6303 echo "${ECHO_T}$compat_cv_func_makedev_three_args" >&6
6304   if test "$compat_cv_func_makedev_three_args" = "yes"; then
6305     
6306 cat >>confdefs.h <<\_ACEOF
6307 @%:@define MAKEDEV_THREE_ARGS 1
6308 _ACEOF
6310   fi
6313   
6314 cat >>confdefs.h <<\_ACEOF
6315 @%:@define NEED_SNPRINTF 1
6316 _ACEOF
6318   echo "$as_me:$LINENO: checking for working snprintf" >&5
6319 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
6320 if test "${compat_cv_func_snprintf_works+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   if test "$cross_compiling" = yes; then
6324   compat_cv_func_snprintf_works=no
6325     
6326 else
6327   cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6335 #include <stdio.h>
6337 typedef struct {
6338   int length;
6339   char *test;
6340   int retval;
6341   char *result;
6342 } test_t;
6344 const test_t tests[] = {
6345   { 10, "12345678901234567890", 20, "123456789" },
6346 #if 0
6347   { 0, "12345678901234567890", 20, NULL },
6348   { -1, "12345678901234567890", -1, NULL },
6349 #endif
6350   { 0, NULL, 0, NULL }
6353 int main() {
6354   char test1[1024];
6355   int i;
6357   for (i = 0; tests[i].test; i++) {
6358     memset(test1, 'X', sizeof(test1));
6359     if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
6360          != tests[i].retval) ||
6361         (tests[i].result && strcmp(tests[i].result, test1)))
6362       exit(1);
6363   }
6365   exit(0);
6368 _ACEOF
6369 rm -f conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371   (eval $ac_link) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376   (eval $ac_try) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   compat_cv_func_snprintf_works=yes
6381 else
6382   echo "$as_me: program exited with status $ac_status" >&5
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ( exit $ac_status )
6387 compat_cv_func_snprintf_works=no
6389 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6391   
6393 echo "$as_me:$LINENO: result: $compat_cv_func_snprintf_works" >&5
6394 echo "${ECHO_T}$compat_cv_func_snprintf_works" >&6
6395   if test "$compat_cv_func_snprintf_works" = "yes"; then
6396     
6397 cat >>confdefs.h <<\_ACEOF
6398 @%:@define HAVE_SNPRINTF 1
6399 _ACEOF
6401   else
6402     LIB@&t@OBJS="$LIB@&t@OBJS snprintf.$ac_objext"
6403   fi
6406   
6407   
6408 cat >>confdefs.h <<\_ACEOF
6409 @%:@define NEED_STRDUP 1
6410 _ACEOF
6412   echo "$as_me:$LINENO: checking for strdup" >&5
6413 echo $ECHO_N "checking for strdup... $ECHO_C" >&6
6414 if test "${ac_cv_func_strdup+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   cat >conftest.$ac_ext <<_ACEOF
6418 #line $LINENO "configure"
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 /* System header to define __stub macros and hopefully few prototypes,
6425     which can conflict with char strdup (); below.
6426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6427     <limits.h> exists even on freestanding compilers.  */
6428 #ifdef __STDC__
6429 # include <limits.h>
6430 #else
6431 # include <assert.h>
6432 #endif
6433 /* Override any gcc2 internal prototype to avoid an error.  */
6434 #ifdef __cplusplus
6435 extern "C"
6437 #endif
6438 /* We use char because int might match the return type of a gcc2
6439    builtin and then its argument prototype would still apply.  */
6440 char strdup ();
6441 /* The GNU C library defines this for functions which it implements
6442     to always fail with ENOSYS.  Some functions are actually named
6443     something starting with __ and the normal name is an alias.  */
6444 #if defined (__stub_strdup) || defined (__stub___strdup)
6445 choke me
6446 #else
6447 char (*f) () = strdup;
6448 #endif
6449 #ifdef __cplusplus
6451 #endif
6454 main ()
6456 return f != strdup;
6457   ;
6458   return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463   (eval $ac_link) 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -s conftest$ac_exeext'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; }; then
6473   ac_cv_func_strdup=yes
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_cv_func_strdup=no
6480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
6483 echo "${ECHO_T}$ac_cv_func_strdup" >&6
6484 if test $ac_cv_func_strdup = yes; then
6485   
6486 cat >>confdefs.h <<\_ACEOF
6487 @%:@define HAVE_STRDUP 1
6488 _ACEOF
6490 else
6491   LIB@&t@OBJS="$LIB@&t@OBJS strdup.$ac_objext"
6492   
6498 for ac_func in strftime
6500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6501 echo "$as_me:$LINENO: checking for $ac_func" >&5
6502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6503 if eval "test \"\${$as_ac_var+set}\" = set"; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 /* System header to define __stub macros and hopefully few prototypes,
6514     which can conflict with char $ac_func (); below.
6515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6516     <limits.h> exists even on freestanding compilers.  */
6517 #ifdef __STDC__
6518 # include <limits.h>
6519 #else
6520 # include <assert.h>
6521 #endif
6522 /* Override any gcc2 internal prototype to avoid an error.  */
6523 #ifdef __cplusplus
6524 extern "C"
6526 #endif
6527 /* We use char because int might match the return type of a gcc2
6528    builtin and then its argument prototype would still apply.  */
6529 char $ac_func ();
6530 /* The GNU C library defines this for functions which it implements
6531     to always fail with ENOSYS.  Some functions are actually named
6532     something starting with __ and the normal name is an alias.  */
6533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6534 choke me
6535 #else
6536 char (*f) () = $ac_func;
6537 #endif
6538 #ifdef __cplusplus
6540 #endif
6543 main ()
6545 return f != $ac_func;
6546   ;
6547   return 0;
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552   (eval $ac_link) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); } &&
6556          { ac_try='test -s conftest$ac_exeext'
6557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558   (eval $ac_try) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   eval "$as_ac_var=yes"
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 eval "$as_ac_var=no"
6569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6573 if test `eval echo '${'$as_ac_var'}'` = yes; then
6574   cat >>confdefs.h <<_ACEOF
6575 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6576 _ACEOF
6578 else
6579   # strftime is in -lintl on SCO UNIX.
6580 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6581 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6582 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   ac_check_lib_save_LIBS=$LIBS
6586 LIBS="-lintl  $LIBS"
6587 cat >conftest.$ac_ext <<_ACEOF
6588 #line $LINENO "configure"
6589 /* confdefs.h.  */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h.  */
6595 /* Override any gcc2 internal prototype to avoid an error.  */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 /* We use char because int might match the return type of a gcc2
6600    builtin and then its argument prototype would still apply.  */
6601 char strftime ();
6603 main ()
6605 strftime ();
6606   ;
6607   return 0;
6609 _ACEOF
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612   (eval $ac_link) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -s conftest$ac_exeext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   ac_cv_lib_intl_strftime=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_cv_lib_intl_strftime=no
6629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630 LIBS=$ac_check_lib_save_LIBS
6632 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6633 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6634 if test $ac_cv_lib_intl_strftime = yes; then
6635   cat >>confdefs.h <<\_ACEOF
6636 @%:@define HAVE_STRFTIME 1
6637 _ACEOF
6639 LIBS="-lintl $LIBS"
6643 done
6646   
6647   
6648 cat >>confdefs.h <<\_ACEOF
6649 @%:@define NEED_STRLCPY 1
6650 _ACEOF
6652   echo "$as_me:$LINENO: checking for strlcpy" >&5
6653 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
6654 if test "${ac_cv_func_strlcpy+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   cat >conftest.$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664 /* System header to define __stub macros and hopefully few prototypes,
6665     which can conflict with char strlcpy (); below.
6666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667     <limits.h> exists even on freestanding compilers.  */
6668 #ifdef __STDC__
6669 # include <limits.h>
6670 #else
6671 # include <assert.h>
6672 #endif
6673 /* Override any gcc2 internal prototype to avoid an error.  */
6674 #ifdef __cplusplus
6675 extern "C"
6677 #endif
6678 /* We use char because int might match the return type of a gcc2
6679    builtin and then its argument prototype would still apply.  */
6680 char strlcpy ();
6681 /* The GNU C library defines this for functions which it implements
6682     to always fail with ENOSYS.  Some functions are actually named
6683     something starting with __ and the normal name is an alias.  */
6684 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
6685 choke me
6686 #else
6687 char (*f) () = strlcpy;
6688 #endif
6689 #ifdef __cplusplus
6691 #endif
6694 main ()
6696 return f != strlcpy;
6697   ;
6698   return 0;
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -s conftest$ac_exeext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713   ac_cv_func_strlcpy=yes
6714 else
6715   echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cv_func_strlcpy=no
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
6723 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
6724 if test $ac_cv_func_strlcpy = yes; then
6725   
6726 cat >>confdefs.h <<\_ACEOF
6727 @%:@define HAVE_STRLCPY 1
6728 _ACEOF
6730 else
6731   LIB@&t@OBJS="$LIB@&t@OBJS strlcpy.$ac_objext"
6732   
6738   
6739   
6740 cat >>confdefs.h <<\_ACEOF
6741 @%:@define NEED_STRMODE 1
6742 _ACEOF
6744   echo "$as_me:$LINENO: checking for strmode" >&5
6745 echo $ECHO_N "checking for strmode... $ECHO_C" >&6
6746 if test "${ac_cv_func_strmode+set}" = set; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749   cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 /* confdefs.h.  */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h.  */
6756 /* System header to define __stub macros and hopefully few prototypes,
6757     which can conflict with char strmode (); below.
6758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759     <limits.h> exists even on freestanding compilers.  */
6760 #ifdef __STDC__
6761 # include <limits.h>
6762 #else
6763 # include <assert.h>
6764 #endif
6765 /* Override any gcc2 internal prototype to avoid an error.  */
6766 #ifdef __cplusplus
6767 extern "C"
6769 #endif
6770 /* We use char because int might match the return type of a gcc2
6771    builtin and then its argument prototype would still apply.  */
6772 char strmode ();
6773 /* The GNU C library defines this for functions which it implements
6774     to always fail with ENOSYS.  Some functions are actually named
6775     something starting with __ and the normal name is an alias.  */
6776 #if defined (__stub_strmode) || defined (__stub___strmode)
6777 choke me
6778 #else
6779 char (*f) () = strmode;
6780 #endif
6781 #ifdef __cplusplus
6783 #endif
6786 main ()
6788 return f != strmode;
6789   ;
6790   return 0;
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795   (eval $ac_link) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -s conftest$ac_exeext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_func_strmode=yes
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_func_strmode=no
6812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_cv_func_strmode" >&5
6815 echo "${ECHO_T}$ac_cv_func_strmode" >&6
6816 if test $ac_cv_func_strmode = yes; then
6817   
6818 cat >>confdefs.h <<\_ACEOF
6819 @%:@define HAVE_STRMODE 1
6820 _ACEOF
6822 else
6823   LIB@&t@OBJS="$LIB@&t@OBJS strmode.$ac_objext"
6824   
6830   
6831   
6832 cat >>confdefs.h <<\_ACEOF
6833 @%:@define NEED_STRSEP 1
6834 _ACEOF
6836   echo "$as_me:$LINENO: checking for strsep" >&5
6837 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
6838 if test "${ac_cv_func_strsep+set}" = set; then
6839   echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841   cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848 /* System header to define __stub macros and hopefully few prototypes,
6849     which can conflict with char strsep (); below.
6850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851     <limits.h> exists even on freestanding compilers.  */
6852 #ifdef __STDC__
6853 # include <limits.h>
6854 #else
6855 # include <assert.h>
6856 #endif
6857 /* Override any gcc2 internal prototype to avoid an error.  */
6858 #ifdef __cplusplus
6859 extern "C"
6861 #endif
6862 /* We use char because int might match the return type of a gcc2
6863    builtin and then its argument prototype would still apply.  */
6864 char strsep ();
6865 /* The GNU C library defines this for functions which it implements
6866     to always fail with ENOSYS.  Some functions are actually named
6867     something starting with __ and the normal name is an alias.  */
6868 #if defined (__stub_strsep) || defined (__stub___strsep)
6869 choke me
6870 #else
6871 char (*f) () = strsep;
6872 #endif
6873 #ifdef __cplusplus
6875 #endif
6878 main ()
6880 return f != strsep;
6881   ;
6882   return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887   (eval $ac_link) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); } &&
6891          { ac_try='test -s conftest$ac_exeext'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   ac_cv_func_strsep=yes
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 ac_cv_func_strsep=no
6904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
6907 echo "${ECHO_T}$ac_cv_func_strsep" >&6
6908 if test $ac_cv_func_strsep = yes; then
6909   
6910 cat >>confdefs.h <<\_ACEOF
6911 @%:@define HAVE_STRSEP 1
6912 _ACEOF
6914 else
6915   LIB@&t@OBJS="$LIB@&t@OBJS strsep.$ac_objext"
6916   
6924 # Check whether --with-zlib or --without-zlib was given.
6925 if test "${with_zlib+set}" = set; then
6926   withval="$with_zlib"
6927   
6928 else
6929   with_zlib=yes
6930 fi; 
6931 if test "$with_zlib" = "yes"; then
6932   
6933 echo "$as_me:$LINENO: checking for gzread in -lz" >&5
6934 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
6935 if test "${ac_cv_lib_z_gzread+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   ac_check_lib_save_LIBS=$LIBS
6939 LIBS="-lz  $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6948 /* Override any gcc2 internal prototype to avoid an error.  */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 /* We use char because int might match the return type of a gcc2
6953    builtin and then its argument prototype would still apply.  */
6954 char gzread ();
6956 main ()
6958 gzread ();
6959   ;
6960   return 0;
6962 _ACEOF
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965   (eval $ac_link) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } &&
6969          { ac_try='test -s conftest$ac_exeext'
6970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971   (eval $ac_try) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); }; }; then
6975   ac_cv_lib_z_gzread=yes
6976 else
6977   echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 ac_cv_lib_z_gzread=no
6982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 LIBS=$ac_check_lib_save_LIBS
6985 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
6986 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
6987 if test $ac_cv_lib_z_gzread = yes; then
6988   cat >>confdefs.h <<_ACEOF
6989 @%:@define HAVE_LIBZ 1
6990 _ACEOF
6992   LIBS="-lz $LIBS"
6999                                         ac_config_files="$ac_config_files Makefile lib/Makefile libtar/Makefile doc/Makefile"
7001 cat >confcache <<\_ACEOF
7002 # This file is a shell script that caches the results of configure
7003 # tests run on this system so they can be shared between configure
7004 # scripts and configure runs, see configure's option --config-cache.
7005 # It is not useful on other systems.  If it contains results you don't
7006 # want to keep, you may remove or edit it.
7008 # config.status only pays attention to the cache file if you give it
7009 # the --recheck option to rerun configure.
7011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7013 # following values.
7015 _ACEOF
7017 # The following way of writing the cache mishandles newlines in values,
7018 # but we know of no workaround that is simple, portable, and efficient.
7019 # So, don't put newlines in cache variables' values.
7020 # Ultrix sh set writes to stderr and can't be redirected directly,
7021 # and sets the high bit in the cache file unless we assign to the vars.
7023   (set) 2>&1 |
7024     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7025     *ac_space=\ *)
7026       # `set' does not quote correctly, so add quotes (double-quote
7027       # substitution turns \\\\ into \\, and sed turns \\ into \).
7028       sed -n \
7029         "s/'/'\\\\''/g;
7030           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7031       ;;
7032     *)
7033       # `set' quotes correctly as required by POSIX, so do not add quotes.
7034       sed -n \
7035         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7036       ;;
7037     esac;
7038 } |
7039   sed '
7040      t clear
7041      : clear
7042      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7043      t end
7044      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7045      : end' >>confcache
7046 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7047   if test -w $cache_file; then
7048     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7049     cat confcache >$cache_file
7050   else
7051     echo "not updating unwritable cache $cache_file"
7052   fi
7054 rm -f confcache
7056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7057 # Let make expand exec_prefix.
7058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7062 # trailing colons and then remove the whole line if VPATH becomes empty
7063 # (actually we leave an empty line to preserve line numbers).
7064 if test "x$srcdir" = x.; then
7065   ac_vpsub='/^[         ]*VPATH[        ]*=/{
7066 s/:*\$(srcdir):*/:/;
7067 s/:*\${srcdir}:*/:/;
7068 s/:*@srcdir@:*/:/;
7069 s/^\([^=]*=[    ]*\):*/\1/;
7070 s/:*$//;
7071 s/^[^=]*=[      ]*$//;
7075 DEFS=-DHAVE_CONFIG_H
7077 ac_libobjs=
7078 ac_ltlibobjs=
7079 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
7080   # 1. Remove the extension, and $U if already installed.
7081   ac_i=`echo "$ac_i" |
7082          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7083   # 2. Add them.
7084   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7085   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7086 done
7087 LIB@&t@OBJS=$ac_libobjs
7089 LTLIBOBJS=$ac_ltlibobjs
7093 : ${CONFIG_STATUS=./config.status}
7094 ac_clean_files_save=$ac_clean_files
7095 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7096 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7097 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7098 cat >$CONFIG_STATUS <<_ACEOF
7099 #! $SHELL
7100 # Generated by $as_me.
7101 # Run this file to recreate the current configuration.
7102 # Compiler output produced by configure, useful for debugging
7103 # configure, is in config.log if it exists.
7105 debug=false
7106 ac_cs_recheck=false
7107 ac_cs_silent=false
7108 SHELL=\${CONFIG_SHELL-$SHELL}
7109 _ACEOF
7111 cat >>$CONFIG_STATUS <<\_ACEOF
7112 ## --------------------- ##
7113 ## M4sh Initialization.  ##
7114 ## --------------------- ##
7116 # Be Bourne compatible
7117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7118   emulate sh
7119   NULLCMD=:
7120   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7121   # is contrary to our usage.  Disable this feature.
7122   alias -g '${1+"$@"}'='"$@"'
7123 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7124   set -o posix
7127 # Support unset when possible.
7128 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7129   as_unset=unset
7130 else
7131   as_unset=false
7135 # Work around bugs in pre-3.0 UWIN ksh.
7136 $as_unset ENV MAIL MAILPATH
7137 PS1='$ '
7138 PS2='> '
7139 PS4='+ '
7141 # NLS nuisances.
7142 for as_var in \
7143   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7144   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7145   LC_TELEPHONE LC_TIME
7147   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7148     eval $as_var=C; export $as_var
7149   else
7150     $as_unset $as_var
7151   fi
7152 done
7154 # Required to use basename.
7155 if expr a : '\(a\)' >/dev/null 2>&1; then
7156   as_expr=expr
7157 else
7158   as_expr=false
7161 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7162   as_basename=basename
7163 else
7164   as_basename=false
7168 # Name of the executable.
7169 as_me=`$as_basename "$0" ||
7170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7171          X"$0" : 'X\(//\)$' \| \
7172          X"$0" : 'X\(/\)$' \| \
7173          .     : '\(.\)' 2>/dev/null ||
7174 echo X/"$0" |
7175     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7176           /^X\/\(\/\/\)$/{ s//\1/; q; }
7177           /^X\/\(\/\).*/{ s//\1/; q; }
7178           s/.*/./; q'`
7181 # PATH needs CR, and LINENO needs CR and PATH.
7182 # Avoid depending upon Character Ranges.
7183 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7184 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7185 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7186 as_cr_digits='0123456789'
7187 as_cr_alnum=$as_cr_Letters$as_cr_digits
7189 # The user is always right.
7190 if test "${PATH_SEPARATOR+set}" != set; then
7191   echo "#! /bin/sh" >conf$$.sh
7192   echo  "exit 0"   >>conf$$.sh
7193   chmod +x conf$$.sh
7194   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7195     PATH_SEPARATOR=';'
7196   else
7197     PATH_SEPARATOR=:
7198   fi
7199   rm -f conf$$.sh
7203   as_lineno_1=$LINENO
7204   as_lineno_2=$LINENO
7205   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7206   test "x$as_lineno_1" != "x$as_lineno_2" &&
7207   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7208   # Find who we are.  Look in the path if we contain no path at all
7209   # relative or not.
7210   case $0 in
7211     *[\\/]* ) as_myself=$0 ;;
7212     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7218 done
7220        ;;
7221   esac
7222   # We did not find ourselves, most probably we were run as `sh COMMAND'
7223   # in which case we are not to be found in the path.
7224   if test "x$as_myself" = x; then
7225     as_myself=$0
7226   fi
7227   if test ! -f "$as_myself"; then
7228     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7229 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7230    { (exit 1); exit 1; }; }
7231   fi
7232   case $CONFIG_SHELL in
7233   '')
7234     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for as_base in sh bash ksh sh5; do
7240          case $as_dir in
7241          /*)
7242            if ("$as_dir/$as_base" -c '
7243   as_lineno_1=$LINENO
7244   as_lineno_2=$LINENO
7245   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7246   test "x$as_lineno_1" != "x$as_lineno_2" &&
7247   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7248              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7249              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7250              CONFIG_SHELL=$as_dir/$as_base
7251              export CONFIG_SHELL
7252              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7253            fi;;
7254          esac
7255        done
7256 done
7258   esac
7260   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7261   # uniformly replaced by the line number.  The first 'sed' inserts a
7262   # line-number line before each line; the second 'sed' does the real
7263   # work.  The second script uses 'N' to pair each line-number line
7264   # with the numbered line, and appends trailing '-' during
7265   # substitution so that $LINENO is not a special case at line end.
7266   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7267   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7268   sed '=' <$as_myself |
7269     sed '
7270       N
7271       s,$,-,
7272       : loop
7273       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7274       t loop
7275       s,-$,,
7276       s,^['$as_cr_digits']*\n,,
7277     ' >$as_me.lineno &&
7278   chmod +x $as_me.lineno ||
7279     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7280 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7281    { (exit 1); exit 1; }; }
7283   # Don't try to exec as it changes $[0], causing all sort of problems
7284   # (the dirname of $[0] is not the place where we might find the
7285   # original and so on.  Autoconf is especially sensible to this).
7286   . ./$as_me.lineno
7287   # Exit status is that of the last command.
7288   exit
7292 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7293   *c*,-n*) ECHO_N= ECHO_C='
7294 ' ECHO_T='      ' ;;
7295   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7296   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7297 esac
7299 if expr a : '\(a\)' >/dev/null 2>&1; then
7300   as_expr=expr
7301 else
7302   as_expr=false
7305 rm -f conf$$ conf$$.exe conf$$.file
7306 echo >conf$$.file
7307 if ln -s conf$$.file conf$$ 2>/dev/null; then
7308   # We could just check for DJGPP; but this test a) works b) is more generic
7309   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7310   if test -f conf$$.exe; then
7311     # Don't use ln at all; we don't have any links
7312     as_ln_s='cp -p'
7313   else
7314     as_ln_s='ln -s'
7315   fi
7316 elif ln conf$$.file conf$$ 2>/dev/null; then
7317   as_ln_s=ln
7318 else
7319   as_ln_s='cp -p'
7321 rm -f conf$$ conf$$.exe conf$$.file
7323 if mkdir -p . 2>/dev/null; then
7324   as_mkdir_p=:
7325 else
7326   as_mkdir_p=false
7329 as_executable_p="test -f"
7331 # Sed expression to map a string onto a valid CPP name.
7332 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7334 # Sed expression to map a string onto a valid variable name.
7335 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7338 # IFS
7339 # We need space, tab and new line, in precisely that order.
7340 as_nl='
7342 IFS="   $as_nl"
7344 # CDPATH.
7345 $as_unset CDPATH
7347 exec 6>&1
7349 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7350 # report actual input values of CONFIG_FILES etc. instead of their
7351 # values after options handling.  Logging --version etc. is OK.
7352 exec 5>>config.log
7354   echo
7355   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
7356 @%:@@%:@ Running $as_me. @%:@@%:@
7357 _ASBOX
7358 } >&5
7359 cat >&5 <<_CSEOF
7361 This file was extended by libtar $as_me 1.2.11, which was
7362 generated by GNU Autoconf 2.57.  Invocation command line was
7364   CONFIG_FILES    = $CONFIG_FILES
7365   CONFIG_HEADERS  = $CONFIG_HEADERS
7366   CONFIG_LINKS    = $CONFIG_LINKS
7367   CONFIG_COMMANDS = $CONFIG_COMMANDS
7368   $ $0 $@
7370 _CSEOF
7371 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7372 echo >&5
7373 _ACEOF
7375 # Files that config.status was made for.
7376 if test -n "$ac_config_files"; then
7377   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7380 if test -n "$ac_config_headers"; then
7381   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7384 if test -n "$ac_config_links"; then
7385   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7388 if test -n "$ac_config_commands"; then
7389   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7392 cat >>$CONFIG_STATUS <<\_ACEOF
7394 ac_cs_usage="\
7395 \`$as_me' instantiates files from templates according to the
7396 current configuration.
7398 Usage: $0 [OPTIONS] [FILE]...
7400   -h, --help       print this help, then exit
7401   -V, --version    print version number, then exit
7402   -q, --quiet      do not print progress messages
7403   -d, --debug      don't remove temporary files
7404       --recheck    update $as_me by reconfiguring in the same conditions
7405   --file=FILE[:TEMPLATE]
7406                    instantiate the configuration file FILE
7407   --header=FILE[:TEMPLATE]
7408                    instantiate the configuration header FILE
7410 Configuration files:
7411 $config_files
7413 Configuration headers:
7414 $config_headers
7416 Report bugs to <bug-autoconf@gnu.org>."
7417 _ACEOF
7419 cat >>$CONFIG_STATUS <<_ACEOF
7420 ac_cs_version="\\
7421 libtar config.status 1.2.11
7422 configured by $0, generated by GNU Autoconf 2.57,
7423   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7425 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7426 Free Software Foundation, Inc.
7427 This config.status script is free software; the Free Software Foundation
7428 gives unlimited permission to copy, distribute and modify it."
7429 srcdir=$srcdir
7430 INSTALL="$INSTALL"
7431 _ACEOF
7433 cat >>$CONFIG_STATUS <<\_ACEOF
7434 # If no file are specified by the user, then we need to provide default
7435 # value.  By we need to know if files were specified by the user.
7436 ac_need_defaults=:
7437 while test $# != 0
7439   case $1 in
7440   --*=*)
7441     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7442     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7443     ac_shift=:
7444     ;;
7445   -*)
7446     ac_option=$1
7447     ac_optarg=$2
7448     ac_shift=shift
7449     ;;
7450   *) # This is not an option, so the user has probably given explicit
7451      # arguments.
7452      ac_option=$1
7453      ac_need_defaults=false;;
7454   esac
7456   case $ac_option in
7457   # Handling of the options.
7458 _ACEOF
7459 cat >>$CONFIG_STATUS <<\_ACEOF
7460   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7461     ac_cs_recheck=: ;;
7462   --version | --vers* | -V )
7463     echo "$ac_cs_version"; exit 0 ;;
7464   --he | --h)
7465     # Conflict between --help and --header
7466     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7467 Try \`$0 --help' for more information." >&5
7468 echo "$as_me: error: ambiguous option: $1
7469 Try \`$0 --help' for more information." >&2;}
7470    { (exit 1); exit 1; }; };;
7471   --help | --hel | -h )
7472     echo "$ac_cs_usage"; exit 0 ;;
7473   --debug | --d* | -d )
7474     debug=: ;;
7475   --file | --fil | --fi | --f )
7476     $ac_shift
7477     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7478     ac_need_defaults=false;;
7479   --header | --heade | --head | --hea )
7480     $ac_shift
7481     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7482     ac_need_defaults=false;;
7483   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7484   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7485     ac_cs_silent=: ;;
7487   # This is an error.
7488   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7489 Try \`$0 --help' for more information." >&5
7490 echo "$as_me: error: unrecognized option: $1
7491 Try \`$0 --help' for more information." >&2;}
7492    { (exit 1); exit 1; }; } ;;
7494   *) ac_config_targets="$ac_config_targets $1" ;;
7496   esac
7497   shift
7498 done
7500 ac_configure_extra_args=
7502 if $ac_cs_silent; then
7503   exec 6>/dev/null
7504   ac_configure_extra_args="$ac_configure_extra_args --silent"
7507 _ACEOF
7508 cat >>$CONFIG_STATUS <<_ACEOF
7509 if \$ac_cs_recheck; then
7510   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7511   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7514 _ACEOF
7520 cat >>$CONFIG_STATUS <<\_ACEOF
7521 for ac_config_target in $ac_config_targets
7523   case "$ac_config_target" in
7524   # Handling of arguments.
7525   "listhash/${LISTHASH_PREFIX}_listhash.h" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in" ;;
7526   "listhash/${LISTHASH_PREFIX}_list.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in" ;;
7527   "listhash/${LISTHASH_PREFIX}_hash.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in" ;;
7528   "listhash/${LISTHASH_PREFIX}_list_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in" ;;
7529   "listhash/${LISTHASH_PREFIX}_hash_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in" ;;
7530   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7531   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7532   "libtar/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtar/Makefile" ;;
7533   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7534   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7535   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7537    { (exit 1); exit 1; }; };;
7538   esac
7539 done
7541 # If the user did not use the arguments to specify the items to instantiate,
7542 # then the envvar interface is used.  Set only those that are not.
7543 # We use the long form for the default assignment because of an extremely
7544 # bizarre bug on SunOS 4.1.3.
7545 if $ac_need_defaults; then
7546   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7547   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7550 # Have a temporary directory for convenience.  Make it in the build tree
7551 # simply because there is no reason to put it here, and in addition,
7552 # creating and moving files from /tmp can sometimes cause problems.
7553 # Create a temporary directory, and hook for its removal unless debugging.
7554 $debug ||
7556   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7557   trap '{ (exit 1); exit 1; }' 1 2 13 15
7560 # Create a (secure) tmp directory for tmp files.
7563   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7564   test -n "$tmp" && test -d "$tmp"
7565 }  ||
7567   tmp=./confstat$$-$RANDOM
7568   (umask 077 && mkdir $tmp)
7569 } ||
7571    echo "$me: cannot create a temporary directory in ." >&2
7572    { (exit 1); exit 1; }
7575 _ACEOF
7577 cat >>$CONFIG_STATUS <<_ACEOF
7580 # CONFIG_FILES section.
7583 # No need to generate the scripts if there are no CONFIG_FILES.
7584 # This happens for instance when ./config.status config.h
7585 if test -n "\$CONFIG_FILES"; then
7586   # Protect against being on the right side of a sed subst in config.status.
7587   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7588    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7589 s,@SHELL@,$SHELL,;t t
7590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7596 s,@exec_prefix@,$exec_prefix,;t t
7597 s,@prefix@,$prefix,;t t
7598 s,@program_transform_name@,$program_transform_name,;t t
7599 s,@bindir@,$bindir,;t t
7600 s,@sbindir@,$sbindir,;t t
7601 s,@libexecdir@,$libexecdir,;t t
7602 s,@datadir@,$datadir,;t t
7603 s,@sysconfdir@,$sysconfdir,;t t
7604 s,@sharedstatedir@,$sharedstatedir,;t t
7605 s,@localstatedir@,$localstatedir,;t t
7606 s,@libdir@,$libdir,;t t
7607 s,@includedir@,$includedir,;t t
7608 s,@oldincludedir@,$oldincludedir,;t t
7609 s,@infodir@,$infodir,;t t
7610 s,@mandir@,$mandir,;t t
7611 s,@build_alias@,$build_alias,;t t
7612 s,@host_alias@,$host_alias,;t t
7613 s,@target_alias@,$target_alias,;t t
7614 s,@DEFS@,$DEFS,;t t
7615 s,@ECHO_C@,$ECHO_C,;t t
7616 s,@ECHO_N@,$ECHO_N,;t t
7617 s,@ECHO_T@,$ECHO_T,;t t
7618 s,@LIBS@,$LIBS,;t t
7619 s,@EPKG@,$EPKG,;t t
7620 s,@MKENCAP@,$MKENCAP,;t t
7621 s,@ENCAP_DEFS@,$ENCAP_DEFS,;t t
7622 s,@ENCAP_INSTALL_RULES@,$ENCAP_INSTALL_RULES,;t t
7623 s,@ENCAP_INSTALL_TARGET@,$ENCAP_INSTALL_TARGET,;t t
7624 s,@CC@,$CC,;t t
7625 s,@CFLAGS@,$CFLAGS,;t t
7626 s,@LDFLAGS@,$LDFLAGS,;t t
7627 s,@CPPFLAGS@,$CPPFLAGS,;t t
7628 s,@ac_ct_CC@,$ac_ct_CC,;t t
7629 s,@EXEEXT@,$EXEEXT,;t t
7630 s,@OBJEXT@,$OBJEXT,;t t
7631 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
7632 s,@LISTHASH_PREFIX@,$LISTHASH_PREFIX,;t t
7633 s,@LISTHASH_DIR@,$LISTHASH_DIR,;t t
7634 s,@MKDIR@,$MKDIR,;t t
7635 s,@RANLIB@,$RANLIB,;t t
7636 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7638 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7639 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7640 s,@LN_S@,$LN_S,;t t
7641 s,@SET_MAKE@,$SET_MAKE,;t t
7642 s,@CPP@,$CPP,;t t
7643 s,@EGREP@,$EGREP,;t t
7644 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7645 CEOF
7647 _ACEOF
7649   cat >>$CONFIG_STATUS <<\_ACEOF
7650   # Split the substitutions into bite-sized pieces for seds with
7651   # small command number limits, like on Digital OSF/1 and HP-UX.
7652   ac_max_sed_lines=48
7653   ac_sed_frag=1 # Number of current file.
7654   ac_beg=1 # First line for current file.
7655   ac_end=$ac_max_sed_lines # Line after last line for current file.
7656   ac_more_lines=:
7657   ac_sed_cmds=
7658   while $ac_more_lines; do
7659     if test $ac_beg -gt 1; then
7660       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7661     else
7662       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7663     fi
7664     if test ! -s $tmp/subs.frag; then
7665       ac_more_lines=false
7666     else
7667       # The purpose of the label and of the branching condition is to
7668       # speed up the sed processing (if there are no `@' at all, there
7669       # is no need to browse any of the substitutions).
7670       # These are the two extra sed commands mentioned above.
7671       (echo ':t
7672   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7673       if test -z "$ac_sed_cmds"; then
7674         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7675       else
7676         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7677       fi
7678       ac_sed_frag=`expr $ac_sed_frag + 1`
7679       ac_beg=$ac_end
7680       ac_end=`expr $ac_end + $ac_max_sed_lines`
7681     fi
7682   done
7683   if test -z "$ac_sed_cmds"; then
7684     ac_sed_cmds=cat
7685   fi
7686 fi # test -n "$CONFIG_FILES"
7688 _ACEOF
7689 cat >>$CONFIG_STATUS <<\_ACEOF
7690 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7691   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7692   case $ac_file in
7693   - | *:- | *:-:* ) # input from stdin
7694         cat >$tmp/stdin
7695         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7696         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7697   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7698         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7699   * )   ac_file_in=$ac_file.in ;;
7700   esac
7702   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7703   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7705          X"$ac_file" : 'X\(//\)[^/]' \| \
7706          X"$ac_file" : 'X\(//\)$' \| \
7707          X"$ac_file" : 'X\(/\)' \| \
7708          .     : '\(.\)' 2>/dev/null ||
7709 echo X"$ac_file" |
7710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7711           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7712           /^X\(\/\/\)$/{ s//\1/; q; }
7713           /^X\(\/\).*/{ s//\1/; q; }
7714           s/.*/./; q'`
7715   { if $as_mkdir_p; then
7716     mkdir -p "$ac_dir"
7717   else
7718     as_dir="$ac_dir"
7719     as_dirs=
7720     while test ! -d "$as_dir"; do
7721       as_dirs="$as_dir $as_dirs"
7722       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7724          X"$as_dir" : 'X\(//\)[^/]' \| \
7725          X"$as_dir" : 'X\(//\)$' \| \
7726          X"$as_dir" : 'X\(/\)' \| \
7727          .     : '\(.\)' 2>/dev/null ||
7728 echo X"$as_dir" |
7729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7730           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7731           /^X\(\/\/\)$/{ s//\1/; q; }
7732           /^X\(\/\).*/{ s//\1/; q; }
7733           s/.*/./; q'`
7734     done
7735     test ! -n "$as_dirs" || mkdir $as_dirs
7736   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7738    { (exit 1); exit 1; }; }; }
7740   ac_builddir=.
7742 if test "$ac_dir" != .; then
7743   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7744   # A "../" for each directory in $ac_dir_suffix.
7745   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7746 else
7747   ac_dir_suffix= ac_top_builddir=
7750 case $srcdir in
7751   .)  # No --srcdir option.  We are building in place.
7752     ac_srcdir=.
7753     if test -z "$ac_top_builddir"; then
7754        ac_top_srcdir=.
7755     else
7756        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7757     fi ;;
7758   [\\/]* | ?:[\\/]* )  # Absolute path.
7759     ac_srcdir=$srcdir$ac_dir_suffix;
7760     ac_top_srcdir=$srcdir ;;
7761   *) # Relative path.
7762     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7763     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7764 esac
7765 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7766 # absolute.
7767 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7768 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7769 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7770 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7773   case $INSTALL in
7774   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7775   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7776   esac
7778   if test x"$ac_file" != x-; then
7779     { echo "$as_me:$LINENO: creating $ac_file" >&5
7780 echo "$as_me: creating $ac_file" >&6;}
7781     rm -f "$ac_file"
7782   fi
7783   # Let's still pretend it is `configure' which instantiates (i.e., don't
7784   # use $as_me), people would be surprised to read:
7785   #    /* config.h.  Generated by config.status.  */
7786   if test x"$ac_file" = x-; then
7787     configure_input=
7788   else
7789     configure_input="$ac_file.  "
7790   fi
7791   configure_input=$configure_input"Generated from `echo $ac_file_in |
7792                                      sed 's,.*/,,'` by configure."
7794   # First look for the input files in the build tree, otherwise in the
7795   # src tree.
7796   ac_file_inputs=`IFS=:
7797     for f in $ac_file_in; do
7798       case $f in
7799       -) echo $tmp/stdin ;;
7800       [\\/$]*)
7801          # Absolute (can't be DOS-style, as IFS=:)
7802          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7803 echo "$as_me: error: cannot find input file: $f" >&2;}
7804    { (exit 1); exit 1; }; }
7805          echo $f;;
7806       *) # Relative
7807          if test -f "$f"; then
7808            # Build tree
7809            echo $f
7810          elif test -f "$srcdir/$f"; then
7811            # Source tree
7812            echo $srcdir/$f
7813          else
7814            # /dev/null tree
7815            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7816 echo "$as_me: error: cannot find input file: $f" >&2;}
7817    { (exit 1); exit 1; }; }
7818          fi;;
7819       esac
7820     done` || { (exit 1); exit 1; }
7821 _ACEOF
7822 cat >>$CONFIG_STATUS <<_ACEOF
7823   sed "$ac_vpsub
7824 $extrasub
7825 _ACEOF
7826 cat >>$CONFIG_STATUS <<\_ACEOF
7828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7829 s,@configure_input@,$configure_input,;t t
7830 s,@srcdir@,$ac_srcdir,;t t
7831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7832 s,@top_srcdir@,$ac_top_srcdir,;t t
7833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7834 s,@builddir@,$ac_builddir,;t t
7835 s,@abs_builddir@,$ac_abs_builddir,;t t
7836 s,@top_builddir@,$ac_top_builddir,;t t
7837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7838 s,@INSTALL@,$ac_INSTALL,;t t
7839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7840   rm -f $tmp/stdin
7841   if test x"$ac_file" != x-; then
7842     mv $tmp/out $ac_file
7843   else
7844     cat $tmp/out
7845     rm -f $tmp/out
7846   fi
7848 done
7849 _ACEOF
7850 cat >>$CONFIG_STATUS <<\_ACEOF
7853 # CONFIG_HEADER section.
7856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7859 # ac_d sets the value in "#define NAME VALUE" lines.
7860 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7861 ac_dB='[        ].*$,\1#\2'
7862 ac_dC=' '
7863 ac_dD=',;t'
7864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7865 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7866 ac_uB='$,\1#\2define\3'
7867 ac_uC=' '
7868 ac_uD=',;t'
7870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7871   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7872   case $ac_file in
7873   - | *:- | *:-:* ) # input from stdin
7874         cat >$tmp/stdin
7875         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7876         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7877   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7878         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7879   * )   ac_file_in=$ac_file.in ;;
7880   esac
7882   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7883 echo "$as_me: creating $ac_file" >&6;}
7885   # First look for the input files in the build tree, otherwise in the
7886   # src tree.
7887   ac_file_inputs=`IFS=:
7888     for f in $ac_file_in; do
7889       case $f in
7890       -) echo $tmp/stdin ;;
7891       [\\/$]*)
7892          # Absolute (can't be DOS-style, as IFS=:)
7893          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7894 echo "$as_me: error: cannot find input file: $f" >&2;}
7895    { (exit 1); exit 1; }; }
7896          echo $f;;
7897       *) # Relative
7898          if test -f "$f"; then
7899            # Build tree
7900            echo $f
7901          elif test -f "$srcdir/$f"; then
7902            # Source tree
7903            echo $srcdir/$f
7904          else
7905            # /dev/null tree
7906            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7907 echo "$as_me: error: cannot find input file: $f" >&2;}
7908    { (exit 1); exit 1; }; }
7909          fi;;
7910       esac
7911     done` || { (exit 1); exit 1; }
7912   # Remove the trailing spaces.
7913   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7915 _ACEOF
7917 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7918 # `conftest.undefs', that substitutes the proper values into
7919 # config.h.in to produce config.h.  The first handles `#define'
7920 # templates, and the second `#undef' templates.
7921 # And first: Protect against being on the right side of a sed subst in
7922 # config.status.  Protect against being in an unquoted here document
7923 # in config.status.
7924 rm -f conftest.defines conftest.undefs
7925 # Using a here document instead of a string reduces the quoting nightmare.
7926 # Putting comments in sed scripts is not portable.
7928 # `end' is used to avoid that the second main sed command (meant for
7929 # 0-ary CPP macros) applies to n-ary macro definitions.
7930 # See the Autoconf documentation for `clear'.
7931 cat >confdef2sed.sed <<\_ACEOF
7932 s/[\\&,]/\\&/g
7933 s,[\\$`],\\&,g
7934 t clear
7935 : clear
7936 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7937 t end
7938 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7939 : end
7940 _ACEOF
7941 # If some macros were called several times there might be several times
7942 # the same #defines, which is useless.  Nevertheless, we may not want to
7943 # sort them, since we want the *last* AC-DEFINE to be honored.
7944 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7945 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7946 rm -f confdef2sed.sed
7948 # This sed command replaces #undef with comments.  This is necessary, for
7949 # example, in the case of _POSIX_SOURCE, which is predefined and required
7950 # on some systems where configure will not decide to define it.
7951 cat >>conftest.undefs <<\_ACEOF
7952 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7953 _ACEOF
7955 # Break up conftest.defines because some shells have a limit on the size
7956 # of here documents, and old seds have small limits too (100 cmds).
7957 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7958 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7959 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7960 echo '  :' >>$CONFIG_STATUS
7961 rm -f conftest.tail
7962 while grep . conftest.defines >/dev/null
7964   # Write a limited-size here document to $tmp/defines.sed.
7965   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7966   # Speed up: don't consider the non `#define' lines.
7967   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7968   # Work around the forget-to-reset-the-flag bug.
7969   echo 't clr' >>$CONFIG_STATUS
7970   echo ': clr' >>$CONFIG_STATUS
7971   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7972   echo 'CEOF
7973   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7974   rm -f $tmp/in
7975   mv $tmp/out $tmp/in
7976 ' >>$CONFIG_STATUS
7977   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7978   rm -f conftest.defines
7979   mv conftest.tail conftest.defines
7980 done
7981 rm -f conftest.defines
7982 echo '  fi # grep' >>$CONFIG_STATUS
7983 echo >>$CONFIG_STATUS
7985 # Break up conftest.undefs because some shells have a limit on the size
7986 # of here documents, and old seds have small limits too (100 cmds).
7987 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7988 rm -f conftest.tail
7989 while grep . conftest.undefs >/dev/null
7991   # Write a limited-size here document to $tmp/undefs.sed.
7992   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7993   # Speed up: don't consider the non `#undef'
7994   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7995   # Work around the forget-to-reset-the-flag bug.
7996   echo 't clr' >>$CONFIG_STATUS
7997   echo ': clr' >>$CONFIG_STATUS
7998   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7999   echo 'CEOF
8000   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8001   rm -f $tmp/in
8002   mv $tmp/out $tmp/in
8003 ' >>$CONFIG_STATUS
8004   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8005   rm -f conftest.undefs
8006   mv conftest.tail conftest.undefs
8007 done
8008 rm -f conftest.undefs
8010 cat >>$CONFIG_STATUS <<\_ACEOF
8011   # Let's still pretend it is `configure' which instantiates (i.e., don't
8012   # use $as_me), people would be surprised to read:
8013   #    /* config.h.  Generated by config.status.  */
8014   if test x"$ac_file" = x-; then
8015     echo "/* Generated by configure.  */" >$tmp/config.h
8016   else
8017     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8018   fi
8019   cat $tmp/in >>$tmp/config.h
8020   rm -f $tmp/in
8021   if test x"$ac_file" != x-; then
8022     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8023       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8024 echo "$as_me: $ac_file is unchanged" >&6;}
8025     else
8026       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8028          X"$ac_file" : 'X\(//\)[^/]' \| \
8029          X"$ac_file" : 'X\(//\)$' \| \
8030          X"$ac_file" : 'X\(/\)' \| \
8031          .     : '\(.\)' 2>/dev/null ||
8032 echo X"$ac_file" |
8033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8034           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8035           /^X\(\/\/\)$/{ s//\1/; q; }
8036           /^X\(\/\).*/{ s//\1/; q; }
8037           s/.*/./; q'`
8038       { if $as_mkdir_p; then
8039     mkdir -p "$ac_dir"
8040   else
8041     as_dir="$ac_dir"
8042     as_dirs=
8043     while test ! -d "$as_dir"; do
8044       as_dirs="$as_dir $as_dirs"
8045       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8047          X"$as_dir" : 'X\(//\)[^/]' \| \
8048          X"$as_dir" : 'X\(//\)$' \| \
8049          X"$as_dir" : 'X\(/\)' \| \
8050          .     : '\(.\)' 2>/dev/null ||
8051 echo X"$as_dir" |
8052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8053           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8054           /^X\(\/\/\)$/{ s//\1/; q; }
8055           /^X\(\/\).*/{ s//\1/; q; }
8056           s/.*/./; q'`
8057     done
8058     test ! -n "$as_dirs" || mkdir $as_dirs
8059   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8060 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8061    { (exit 1); exit 1; }; }; }
8063       rm -f $ac_file
8064       mv $tmp/config.h $ac_file
8065     fi
8066   else
8067     cat $tmp/config.h
8068     rm -f $tmp/config.h
8069   fi
8070 done
8071 _ACEOF
8073 cat >>$CONFIG_STATUS <<\_ACEOF
8075 { (exit 0); exit 0; }
8076 _ACEOF
8077 chmod +x $CONFIG_STATUS
8078 ac_clean_files=$ac_clean_files_save
8081 # configure is writing to config.log, and then calls config.status.
8082 # config.status does its own redirection, appending to config.log.
8083 # Unfortunately, on DOS this fails, as config.log is still kept open
8084 # by configure, so config.status won't be able to write to it; its
8085 # output is simply discarded.  So we exec the FD to /dev/null,
8086 # effectively closing config.log, so it can be properly (re)opened and
8087 # appended to by config.status.  When coming back to configure, we
8088 # need to make the FD available again.
8089 if test "$no_create" != yes; then
8090   ac_cs_success=:
8091   ac_config_status_args=
8092   test "$silent" = yes &&
8093     ac_config_status_args="$ac_config_status_args --quiet"
8094   exec 5>/dev/null
8095   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8096   exec 5>>config.log
8097   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8098   # would make configure fail if this is the last instruction.
8099   $ac_cs_success || { (exit 1); exit 1; }