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