OSDN Git Service

* c-decl.c (delete_block): Remove.
[pf3gnuchains/gcc-fork.git] / fastjar / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-system-zlib      use installed libz"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 sitefile=
34 srcdir=
35 target=NONE
36 verbose=
37 x_includes=NONE
38 x_libraries=NONE
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
51
52 # Initialize some other variables.
53 subdirs=
54 MFLAGS= MAKEFLAGS=
55 SHELL=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
57 ac_max_here_lines=12
58
59 ac_prev=
60 for ac_option
61 do
62
63   # If the previous option needs an argument, assign it.
64   if test -n "$ac_prev"; then
65     eval "$ac_prev=\$ac_option"
66     ac_prev=
67     continue
68   fi
69
70   case "$ac_option" in
71   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72   *) ac_optarg= ;;
73   esac
74
75   # Accept the important Cygnus configure options, so we can diagnose typos.
76
77   case "$ac_option" in
78
79   -bindir | --bindir | --bindi | --bind | --bin | --bi)
80     ac_prev=bindir ;;
81   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82     bindir="$ac_optarg" ;;
83
84   -build | --build | --buil | --bui | --bu)
85     ac_prev=build ;;
86   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87     build="$ac_optarg" ;;
88
89   -cache-file | --cache-file | --cache-fil | --cache-fi \
90   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91     ac_prev=cache_file ;;
92   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94     cache_file="$ac_optarg" ;;
95
96   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97     ac_prev=datadir ;;
98   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99   | --da=*)
100     datadir="$ac_optarg" ;;
101
102   -disable-* | --disable-*)
103     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104     # Reject names that are not valid shell variable names.
105     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107     fi
108     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109     eval "enable_${ac_feature}=no" ;;
110
111   -enable-* | --enable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     case "$ac_option" in
119       *=*) ;;
120       *) ac_optarg=yes ;;
121     esac
122     eval "enable_${ac_feature}='$ac_optarg'" ;;
123
124   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126   | --exec | --exe | --ex)
127     ac_prev=exec_prefix ;;
128   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130   | --exec=* | --exe=* | --ex=*)
131     exec_prefix="$ac_optarg" ;;
132
133   -gas | --gas | --ga | --g)
134     # Obsolete; use --with-gas.
135     with_gas=yes ;;
136
137   -help | --help | --hel | --he)
138     # Omit some internal or obsolete options to make the list less imposing.
139     # This message is too long to be a string in the A/UX 3.1 sh.
140     cat << EOF
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
143 Configuration:
144   --cache-file=FILE       cache test results in FILE
145   --help                  print this message
146   --no-create             do not create output files
147   --quiet, --silent       do not print \`checking...' messages
148   --site-file=FILE        use FILE as the site file
149   --version               print the version of autoconf that created configure
150 Directory and file names:
151   --prefix=PREFIX         install architecture-independent files in PREFIX
152                           [$ac_default_prefix]
153   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
154                           [same as prefix]
155   --bindir=DIR            user executables in DIR [EPREFIX/bin]
156   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
157   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
158   --datadir=DIR           read-only architecture-independent data in DIR
159                           [PREFIX/share]
160   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
161   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
162                           [PREFIX/com]
163   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
164   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
165   --includedir=DIR        C header files in DIR [PREFIX/include]
166   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
167   --infodir=DIR           info documentation in DIR [PREFIX/info]
168   --mandir=DIR            man documentation in DIR [PREFIX/man]
169   --srcdir=DIR            find the sources in DIR [configure dir or ..]
170   --program-prefix=PREFIX prepend PREFIX to installed program names
171   --program-suffix=SUFFIX append SUFFIX to installed program names
172   --program-transform-name=PROGRAM
173                           run sed PROGRAM on installed program names
174 EOF
175     cat << EOF
176 Host type:
177   --build=BUILD           configure for building on BUILD [BUILD=HOST]
178   --host=HOST             configure for HOST [guessed]
179   --target=TARGET         configure for TARGET [TARGET=HOST]
180 Features and packages:
181   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
182   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
183   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
184   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
185   --x-includes=DIR        X include files are in DIR
186   --x-libraries=DIR       X library files are in DIR
187 EOF
188     if test -n "$ac_help"; then
189       echo "--enable and --with options recognized:$ac_help"
190     fi
191     exit 0 ;;
192
193   -host | --host | --hos | --ho)
194     ac_prev=host ;;
195   -host=* | --host=* | --hos=* | --ho=*)
196     host="$ac_optarg" ;;
197
198   -includedir | --includedir | --includedi | --included | --include \
199   | --includ | --inclu | --incl | --inc)
200     ac_prev=includedir ;;
201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202   | --includ=* | --inclu=* | --incl=* | --inc=*)
203     includedir="$ac_optarg" ;;
204
205   -infodir | --infodir | --infodi | --infod | --info | --inf)
206     ac_prev=infodir ;;
207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208     infodir="$ac_optarg" ;;
209
210   -libdir | --libdir | --libdi | --libd)
211     ac_prev=libdir ;;
212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
213     libdir="$ac_optarg" ;;
214
215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216   | --libexe | --libex | --libe)
217     ac_prev=libexecdir ;;
218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219   | --libexe=* | --libex=* | --libe=*)
220     libexecdir="$ac_optarg" ;;
221
222   -localstatedir | --localstatedir | --localstatedi | --localstated \
223   | --localstate | --localstat | --localsta | --localst \
224   | --locals | --local | --loca | --loc | --lo)
225     ac_prev=localstatedir ;;
226   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229     localstatedir="$ac_optarg" ;;
230
231   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232     ac_prev=mandir ;;
233   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234     mandir="$ac_optarg" ;;
235
236   -nfp | --nfp | --nf)
237     # Obsolete; use --without-fp.
238     with_fp=no ;;
239
240   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241   | --no-cr | --no-c)
242     no_create=yes ;;
243
244   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246     no_recursion=yes ;;
247
248   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250   | --oldin | --oldi | --old | --ol | --o)
251     ac_prev=oldincludedir ;;
252   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255     oldincludedir="$ac_optarg" ;;
256
257   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258     ac_prev=prefix ;;
259   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260     prefix="$ac_optarg" ;;
261
262   -program-prefix | --program-prefix | --program-prefi | --program-pref \
263   | --program-pre | --program-pr | --program-p)
264     ac_prev=program_prefix ;;
265   -program-prefix=* | --program-prefix=* | --program-prefi=* \
266   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267     program_prefix="$ac_optarg" ;;
268
269   -program-suffix | --program-suffix | --program-suffi | --program-suff \
270   | --program-suf | --program-su | --program-s)
271     ac_prev=program_suffix ;;
272   -program-suffix=* | --program-suffix=* | --program-suffi=* \
273   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274     program_suffix="$ac_optarg" ;;
275
276   -program-transform-name | --program-transform-name \
277   | --program-transform-nam | --program-transform-na \
278   | --program-transform-n | --program-transform- \
279   | --program-transform | --program-transfor \
280   | --program-transfo | --program-transf \
281   | --program-trans | --program-tran \
282   | --progr-tra | --program-tr | --program-t)
283     ac_prev=program_transform_name ;;
284   -program-transform-name=* | --program-transform-name=* \
285   | --program-transform-nam=* | --program-transform-na=* \
286   | --program-transform-n=* | --program-transform-=* \
287   | --program-transform=* | --program-transfor=* \
288   | --program-transfo=* | --program-transf=* \
289   | --program-trans=* | --program-tran=* \
290   | --progr-tra=* | --program-tr=* | --program-t=*)
291     program_transform_name="$ac_optarg" ;;
292
293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294   | -silent | --silent | --silen | --sile | --sil)
295     silent=yes ;;
296
297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298     ac_prev=sbindir ;;
299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300   | --sbi=* | --sb=*)
301     sbindir="$ac_optarg" ;;
302
303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305   | --sharedst | --shareds | --shared | --share | --shar \
306   | --sha | --sh)
307     ac_prev=sharedstatedir ;;
308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311   | --sha=* | --sh=*)
312     sharedstatedir="$ac_optarg" ;;
313
314   -site | --site | --sit)
315     ac_prev=site ;;
316   -site=* | --site=* | --sit=*)
317     site="$ac_optarg" ;;
318
319   -site-file | --site-file | --site-fil | --site-fi | --site-f)
320     ac_prev=sitefile ;;
321   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
322     sitefile="$ac_optarg" ;;
323
324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325     ac_prev=srcdir ;;
326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327     srcdir="$ac_optarg" ;;
328
329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330   | --syscon | --sysco | --sysc | --sys | --sy)
331     ac_prev=sysconfdir ;;
332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334     sysconfdir="$ac_optarg" ;;
335
336   -target | --target | --targe | --targ | --tar | --ta | --t)
337     ac_prev=target ;;
338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339     target="$ac_optarg" ;;
340
341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
342     verbose=yes ;;
343
344   -version | --version | --versio | --versi | --vers)
345     echo "configure generated by autoconf version 2.13"
346     exit 0 ;;
347
348   -with-* | --with-*)
349     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350     # Reject names that are not valid shell variable names.
351     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353     fi
354     ac_package=`echo $ac_package| sed 's/-/_/g'`
355     case "$ac_option" in
356       *=*) ;;
357       *) ac_optarg=yes ;;
358     esac
359     eval "with_${ac_package}='$ac_optarg'" ;;
360
361   -without-* | --without-*)
362     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     eval "with_${ac_package}=no" ;;
369
370   --x)
371     # Obsolete; use --with-x.
372     with_x=yes ;;
373
374   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375   | --x-incl | --x-inc | --x-in | --x-i)
376     ac_prev=x_includes ;;
377   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379     x_includes="$ac_optarg" ;;
380
381   -x-libraries | --x-libraries | --x-librarie | --x-librari \
382   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383     ac_prev=x_libraries ;;
384   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386     x_libraries="$ac_optarg" ;;
387
388   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389     ;;
390
391   *)
392     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393       echo "configure: warning: $ac_option: invalid host type" 1>&2
394     fi
395     if test "x$nonopt" != xNONE; then
396       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397     fi
398     nonopt="$ac_option"
399     ;;
400
401   esac
402 done
403
404 if test -n "$ac_prev"; then
405   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 fi
407
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419   exec 6>/dev/null
420 else
421   exec 6>&1
422 fi
423 exec 5>./config.log
424
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
429
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
434 do
435   case "$ac_arg" in
436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437   | --no-cr | --no-c) ;;
438   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443   esac
444 done
445
446 # NLS nuisances.
447 # Only set these to C if already set.  These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
455
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
460
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=jartool.h
464
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467   ac_srcdir_defaulted=yes
468   # Try the directory containing this script, then its parent.
469   ac_prog=$0
470   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472   srcdir=$ac_confdir
473   if test ! -r $srcdir/$ac_unique_file; then
474     srcdir=..
475   fi
476 else
477   ac_srcdir_defaulted=no
478 fi
479 if test ! -r $srcdir/$ac_unique_file; then
480   if test "$ac_srcdir_defaulted" = yes; then
481     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482   else
483     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484   fi
485 fi
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$sitefile"; then
490   if test -z "$CONFIG_SITE"; then
491     if test "x$prefix" != xNONE; then
492       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493     else
494       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495     fi
496   fi
497 else
498   CONFIG_SITE="$sitefile"
499 fi
500 for ac_site_file in $CONFIG_SITE; do
501   if test -r "$ac_site_file"; then
502     echo "loading site script $ac_site_file"
503     . "$ac_site_file"
504   fi
505 done
506
507 if test -r "$cache_file"; then
508   echo "loading cache $cache_file"
509   . $cache_file
510 else
511   echo "creating cache $cache_file"
512   > $cache_file
513 fi
514
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
521
522 ac_exeext=
523 ac_objext=o
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527     ac_n= ac_c='
528 ' ac_t='        '
529   else
530     ac_n=-n ac_c= ac_t=
531   fi
532 else
533   ac_n= ac_c='\c' ac_t=
534 fi
535
536
537 ac_aux_dir=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539   if test -f $ac_dir/install-sh; then
540     ac_aux_dir=$ac_dir
541     ac_install_sh="$ac_aux_dir/install-sh -c"
542     break
543   elif test -f $ac_dir/install.sh; then
544     ac_aux_dir=$ac_dir
545     ac_install_sh="$ac_aux_dir/install.sh -c"
546     break
547   fi
548 done
549 if test -z "$ac_aux_dir"; then
550   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 fi
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
556 # Find a good install program.  We prefer a C program (faster),
557 # so one script is as good as another.  But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
561 # IRIX /sbin/install
562 # AIX /bin/install
563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
566 # ./install, which can be erroneously created by make from ./install.sh.
567 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
568 echo "configure:569: checking for a BSD compatible install" >&5
569 if test -z "$INSTALL"; then
570 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
571   echo $ac_n "(cached) $ac_c" 1>&6
572 else
573     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
574   for ac_dir in $PATH; do
575     # Account for people who put trailing slashes in PATH elements.
576     case "$ac_dir/" in
577     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
578     *)
579       # OSF1 and SCO ODT 3.0 have their own names for install.
580       # Don't use installbsd from OSF since it installs stuff as root
581       # by default.
582       for ac_prog in ginstall scoinst install; do
583         if test -f $ac_dir/$ac_prog; then
584           if test $ac_prog = install &&
585             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
586             # AIX install.  It has an incompatible calling convention.
587             :
588           else
589             ac_cv_path_install="$ac_dir/$ac_prog -c"
590             break 2
591           fi
592         fi
593       done
594       ;;
595     esac
596   done
597   IFS="$ac_save_IFS"
598
599 fi
600   if test "${ac_cv_path_install+set}" = set; then
601     INSTALL="$ac_cv_path_install"
602   else
603     # As a last resort, use the slow shell script.  We don't cache a
604     # path for INSTALL within a source directory, because that will
605     # break other packages using the cache if that directory is
606     # removed, or if the path is relative.
607     INSTALL="$ac_install_sh"
608   fi
609 fi
610 echo "$ac_t""$INSTALL" 1>&6
611
612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
613 # It thinks the first close brace ends the variable substitution.
614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
615
616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
617
618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
619
620 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
621 echo "configure:622: checking whether build environment is sane" >&5
622 # Just in case
623 sleep 1
624 echo timestamp > conftestfile
625 # Do `set' in a subshell so we don't clobber the current shell's
626 # arguments.  Must try -L first in case configure is actually a
627 # symlink; some systems play weird games with the mod time of symlinks
628 # (eg FreeBSD returns the mod time of the symlink's containing
629 # directory).
630 if (
631    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
632    if test "$*" = "X"; then
633       # -L didn't work.
634       set X `ls -t $srcdir/configure conftestfile`
635    fi
636    if test "$*" != "X $srcdir/configure conftestfile" \
637       && test "$*" != "X conftestfile $srcdir/configure"; then
638
639       # If neither matched, then we have a broken ls.  This can happen
640       # if, for instance, CONFIG_SHELL is bash and it inherits a
641       # broken ls alias from the environment.  This has actually
642       # happened.  Such a system could not be considered "sane".
643       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
644 alias in your environment" 1>&2; exit 1; }
645    fi
646
647    test "$2" = conftestfile
648    )
649 then
650    # Ok.
651    :
652 else
653    { echo "configure: error: newly created file is older than distributed files!
654 Check your system clock" 1>&2; exit 1; }
655 fi
656 rm -f conftest*
657 echo "$ac_t""yes" 1>&6
658 if test "$program_transform_name" = s,x,x,; then
659   program_transform_name=
660 else
661   # Double any \ or $.  echo might interpret backslashes.
662   cat <<\EOF_SED > conftestsed
663 s,\\,\\\\,g; s,\$,$$,g
664 EOF_SED
665   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
666   rm -f conftestsed
667 fi
668 test "$program_prefix" != NONE &&
669   program_transform_name="s,^,${program_prefix},; $program_transform_name"
670 # Use a double $ so make ignores it.
671 test "$program_suffix" != NONE &&
672   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
673
674 # sed with no file args requires a program.
675 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
676
677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
681   echo $ac_n "(cached) $ac_c" 1>&6
682 else
683   cat > conftestmake <<\EOF
684 all:
685         @echo 'ac_maketemp="${MAKE}"'
686 EOF
687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
688 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
689 if test -n "$ac_maketemp"; then
690   eval ac_cv_prog_make_${ac_make}_set=yes
691 else
692   eval ac_cv_prog_make_${ac_make}_set=no
693 fi
694 rm -f conftestmake
695 fi
696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
697   echo "$ac_t""yes" 1>&6
698   SET_MAKE=
699 else
700   echo "$ac_t""no" 1>&6
701   SET_MAKE="MAKE=${MAKE-make}"
702 fi
703
704
705 PACKAGE=fastar
706
707 VERSION=0.92-gcc
708
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
710   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
711 fi
712 cat >> confdefs.h <<EOF
713 #define PACKAGE "$PACKAGE"
714 EOF
715
716 cat >> confdefs.h <<EOF
717 #define VERSION "$VERSION"
718 EOF
719
720
721
722 missing_dir=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf.  Sigh.
728 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729    ACLOCAL=aclocal
730    echo "$ac_t""found" 1>&6
731 else
732    ACLOCAL="$missing_dir/missing aclocal"
733    echo "$ac_t""missing" 1>&6
734 fi
735
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf.  Sigh.
741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742    AUTOCONF=autoconf
743    echo "$ac_t""found" 1>&6
744 else
745    AUTOCONF="$missing_dir/missing autoconf"
746    echo "$ac_t""missing" 1>&6
747 fi
748
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf.  Sigh.
754 if (automake --version) < /dev/null > /dev/null 2>&1; then
755    AUTOMAKE=automake
756    echo "$ac_t""found" 1>&6
757 else
758    AUTOMAKE="$missing_dir/missing automake"
759    echo "$ac_t""missing" 1>&6
760 fi
761
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf.  Sigh.
767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
768    AUTOHEADER=autoheader
769    echo "$ac_t""found" 1>&6
770 else
771    AUTOHEADER="$missing_dir/missing autoheader"
772    echo "$ac_t""missing" 1>&6
773 fi
774
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf.  Sigh.
780 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781    MAKEINFO=makeinfo
782    echo "$ac_t""found" 1>&6
783 else
784    MAKEINFO="$missing_dir/missing makeinfo"
785    echo "$ac_t""missing" 1>&6
786 fi
787
788
789
790
791
792
793 # Extract the first word of "gcc", so it can be a program name with args.
794 set dummy gcc; ac_word=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
798   echo $ac_n "(cached) $ac_c" 1>&6
799 else
800   if test -n "$CC"; then
801   ac_cv_prog_CC="$CC" # Let the user override the test.
802 else
803   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
804   ac_dummy="$PATH"
805   for ac_dir in $ac_dummy; do
806     test -z "$ac_dir" && ac_dir=.
807     if test -f $ac_dir/$ac_word; then
808       ac_cv_prog_CC="gcc"
809       break
810     fi
811   done
812   IFS="$ac_save_ifs"
813 fi
814 fi
815 CC="$ac_cv_prog_CC"
816 if test -n "$CC"; then
817   echo "$ac_t""$CC" 1>&6
818 else
819   echo "$ac_t""no" 1>&6
820 fi
821
822 if test -z "$CC"; then
823   # Extract the first word of "cc", so it can be a program name with args.
824 set dummy cc; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828   echo $ac_n "(cached) $ac_c" 1>&6
829 else
830   if test -n "$CC"; then
831   ac_cv_prog_CC="$CC" # Let the user override the test.
832 else
833   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
834   ac_prog_rejected=no
835   ac_dummy="$PATH"
836   for ac_dir in $ac_dummy; do
837     test -z "$ac_dir" && ac_dir=.
838     if test -f $ac_dir/$ac_word; then
839       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
840         ac_prog_rejected=yes
841         continue
842       fi
843       ac_cv_prog_CC="cc"
844       break
845     fi
846   done
847   IFS="$ac_save_ifs"
848 if test $ac_prog_rejected = yes; then
849   # We found a bogon in the path, so make sure we never use it.
850   set dummy $ac_cv_prog_CC
851   shift
852   if test $# -gt 0; then
853     # We chose a different compiler from the bogus one.
854     # However, it has the same basename, so the bogon will be chosen
855     # first if we set CC to just the basename; use the full file name.
856     shift
857     set dummy "$ac_dir/$ac_word" "$@"
858     shift
859     ac_cv_prog_CC="$@"
860   fi
861 fi
862 fi
863 fi
864 CC="$ac_cv_prog_CC"
865 if test -n "$CC"; then
866   echo "$ac_t""$CC" 1>&6
867 else
868   echo "$ac_t""no" 1>&6
869 fi
870
871   if test -z "$CC"; then
872     case "`uname -s`" in
873     *win32* | *WIN32*)
874       # Extract the first word of "cl", so it can be a program name with args.
875 set dummy cl; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879   echo $ac_n "(cached) $ac_c" 1>&6
880 else
881   if test -n "$CC"; then
882   ac_cv_prog_CC="$CC" # Let the user override the test.
883 else
884   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
885   ac_dummy="$PATH"
886   for ac_dir in $ac_dummy; do
887     test -z "$ac_dir" && ac_dir=.
888     if test -f $ac_dir/$ac_word; then
889       ac_cv_prog_CC="cl"
890       break
891     fi
892   done
893   IFS="$ac_save_ifs"
894 fi
895 fi
896 CC="$ac_cv_prog_CC"
897 if test -n "$CC"; then
898   echo "$ac_t""$CC" 1>&6
899 else
900   echo "$ac_t""no" 1>&6
901 fi
902  ;;
903     esac
904   fi
905   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
906 fi
907
908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
909 echo "configure:910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
910
911 ac_ext=c
912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
913 ac_cpp='$CPP $CPPFLAGS'
914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
916 cross_compiling=$ac_cv_prog_cc_cross
917
918 cat > conftest.$ac_ext << EOF
919
920 #line 921 "configure"
921 #include "confdefs.h"
922
923 main(){return(0);}
924 EOF
925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
926   ac_cv_prog_cc_works=yes
927   # If we can't run a trivial program, we are probably using a cross compiler.
928   if (./conftest; exit) 2>/dev/null; then
929     ac_cv_prog_cc_cross=no
930   else
931     ac_cv_prog_cc_cross=yes
932   fi
933 else
934   echo "configure: failed program was:" >&5
935   cat conftest.$ac_ext >&5
936   ac_cv_prog_cc_works=no
937 fi
938 rm -fr conftest*
939 ac_ext=c
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling=$ac_cv_prog_cc_cross
945
946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
947 if test $ac_cv_prog_cc_works = no; then
948   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
949 fi
950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
951 echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
953 cross_compiling=$ac_cv_prog_cc_cross
954
955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
956 echo "configure:957: checking whether we are using GNU C" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
958   echo $ac_n "(cached) $ac_c" 1>&6
959 else
960   cat > conftest.c <<EOF
961 #ifdef __GNUC__
962   yes;
963 #endif
964 EOF
965 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
966   ac_cv_prog_gcc=yes
967 else
968   ac_cv_prog_gcc=no
969 fi
970 fi
971
972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
973
974 if test $ac_cv_prog_gcc = yes; then
975   GCC=yes
976 else
977   GCC=
978 fi
979
980 ac_test_CFLAGS="${CFLAGS+set}"
981 ac_save_CFLAGS="$CFLAGS"
982 CFLAGS=
983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
984 echo "configure:985: checking whether ${CC-cc} accepts -g" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
986   echo $ac_n "(cached) $ac_c" 1>&6
987 else
988   echo 'void f(){}' > conftest.c
989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
990   ac_cv_prog_cc_g=yes
991 else
992   ac_cv_prog_cc_g=no
993 fi
994 rm -f conftest*
995
996 fi
997
998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
999 if test "$ac_test_CFLAGS" = set; then
1000   CFLAGS="$ac_save_CFLAGS"
1001 elif test $ac_cv_prog_cc_g = yes; then
1002   if test "$GCC" = yes; then
1003     CFLAGS="-g -O2"
1004   else
1005     CFLAGS="-g"
1006   fi
1007 else
1008   if test "$GCC" = yes; then
1009     CFLAGS="-O2"
1010   else
1011     CFLAGS=
1012   fi
1013 fi
1014
1015 # Find a good install program.  We prefer a C program (faster),
1016 # so one script is as good as another.  But avoid the broken or
1017 # incompatible versions:
1018 # SysV /etc/install, /usr/sbin/install
1019 # SunOS /usr/etc/install
1020 # IRIX /sbin/install
1021 # AIX /bin/install
1022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1025 # ./install, which can be erroneously created by make from ./install.sh.
1026 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1027 echo "configure:1028: checking for a BSD compatible install" >&5
1028 if test -z "$INSTALL"; then
1029 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1030   echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1033   for ac_dir in $PATH; do
1034     # Account for people who put trailing slashes in PATH elements.
1035     case "$ac_dir/" in
1036     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1037     *)
1038       # OSF1 and SCO ODT 3.0 have their own names for install.
1039       # Don't use installbsd from OSF since it installs stuff as root
1040       # by default.
1041       for ac_prog in ginstall scoinst install; do
1042         if test -f $ac_dir/$ac_prog; then
1043           if test $ac_prog = install &&
1044             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1045             # AIX install.  It has an incompatible calling convention.
1046             :
1047           else
1048             ac_cv_path_install="$ac_dir/$ac_prog -c"
1049             break 2
1050           fi
1051         fi
1052       done
1053       ;;
1054     esac
1055   done
1056   IFS="$ac_save_IFS"
1057
1058 fi
1059   if test "${ac_cv_path_install+set}" = set; then
1060     INSTALL="$ac_cv_path_install"
1061   else
1062     # As a last resort, use the slow shell script.  We don't cache a
1063     # path for INSTALL within a source directory, because that will
1064     # break other packages using the cache if that directory is
1065     # removed, or if the path is relative.
1066     INSTALL="$ac_install_sh"
1067   fi
1068 fi
1069 echo "$ac_t""$INSTALL" 1>&6
1070
1071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1072 # It thinks the first close brace ends the variable substitution.
1073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1074
1075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1076
1077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1078
1079 # Extract the first word of "rm", so it can be a program name with args.
1080 set dummy rm; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1084   echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086   case "$RM" in
1087   /*)
1088   ac_cv_path_RM="$RM" # Let the user override the test with a path.
1089   ;;
1090   ?:/*)                  
1091   ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1092   ;;
1093   *)
1094   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1095   ac_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
1096   for ac_dir in $ac_dummy; do 
1097     test -z "$ac_dir" && ac_dir=.
1098     if test -f $ac_dir/$ac_word; then
1099       ac_cv_path_RM="$ac_dir/$ac_word"
1100       break
1101     fi
1102   done
1103   IFS="$ac_save_ifs"
1104   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1105   ;;
1106 esac
1107 fi
1108 RM="$ac_cv_path_RM"
1109 if test -n "$RM"; then
1110   echo "$ac_t""$RM" 1>&6
1111 else
1112   echo "$ac_t""no" 1>&6
1113 fi
1114
1115 # Extract the first word of "cp", so it can be a program name with args.
1116 set dummy cp; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1120   echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122   case "$CP" in
1123   /*)
1124   ac_cv_path_CP="$CP" # Let the user override the test with a path.
1125   ;;
1126   ?:/*)                  
1127   ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1128   ;;
1129   *)
1130   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1131   ac_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
1132   for ac_dir in $ac_dummy; do 
1133     test -z "$ac_dir" && ac_dir=.
1134     if test -f $ac_dir/$ac_word; then
1135       ac_cv_path_CP="$ac_dir/$ac_word"
1136       break
1137     fi
1138   done
1139   IFS="$ac_save_ifs"
1140   test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
1141   ;;
1142 esac
1143 fi
1144 CP="$ac_cv_path_CP"
1145 if test -n "$CP"; then
1146   echo "$ac_t""$CP" 1>&6
1147 else
1148   echo "$ac_t""no" 1>&6
1149 fi
1150
1151 # Extract the first word of "strip", so it can be a program name with args.
1152 set dummy strip; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
1156   echo $ac_n "(cached) $ac_c" 1>&6
1157 else
1158   case "$STRIP" in
1159   /*)
1160   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
1161   ;;
1162   ?:/*)                  
1163   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path.
1164   ;;
1165   *)
1166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1167   ac_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
1168   for ac_dir in $ac_dummy; do 
1169     test -z "$ac_dir" && ac_dir=.
1170     if test -f $ac_dir/$ac_word; then
1171       ac_cv_path_STRIP="$ac_dir/$ac_word"
1172       break
1173     fi
1174   done
1175   IFS="$ac_save_ifs"
1176   test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="/usr/bin/strip"
1177   ;;
1178 esac
1179 fi
1180 STRIP="$ac_cv_path_STRIP"
1181 if test -n "$STRIP"; then
1182   echo "$ac_t""$STRIP" 1>&6
1183 else
1184   echo "$ac_t""no" 1>&6
1185 fi
1186
1187 # Extract the first word of "chmod", so it can be a program name with args.
1188 set dummy chmod; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1192   echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194   case "$CHMOD" in
1195   /*)
1196   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1197   ;;
1198   ?:/*)                  
1199   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1200   ;;
1201   *)
1202   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1203   ac_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
1204   for ac_dir in $ac_dummy; do 
1205     test -z "$ac_dir" && ac_dir=.
1206     if test -f $ac_dir/$ac_word; then
1207       ac_cv_path_CHMOD="$ac_dir/$ac_word"
1208       break
1209     fi
1210   done
1211   IFS="$ac_save_ifs"
1212   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="/bin/chmod"
1213   ;;
1214 esac
1215 fi
1216 CHMOD="$ac_cv_path_CHMOD"
1217 if test -n "$CHMOD"; then
1218   echo "$ac_t""$CHMOD" 1>&6
1219 else
1220   echo "$ac_t""no" 1>&6
1221 fi
1222
1223 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1224 echo "configure:1225: checking for Cygwin environment" >&5
1225 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1226   echo $ac_n "(cached) $ac_c" 1>&6
1227 else
1228   cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1231
1232 int main() {
1233
1234 #ifndef __CYGWIN__
1235 #define __CYGWIN__ __CYGWIN32__
1236 #endif
1237 return __CYGWIN__;
1238 ; return 0; }
1239 EOF
1240 if { (eval echo configure:1241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1241   rm -rf conftest*
1242   ac_cv_cygwin=yes
1243 else
1244   echo "configure: failed program was:" >&5
1245   cat conftest.$ac_ext >&5
1246   rm -rf conftest*
1247   ac_cv_cygwin=no
1248 fi
1249 rm -f conftest*
1250 rm -f conftest*
1251 fi
1252
1253 echo "$ac_t""$ac_cv_cygwin" 1>&6
1254 CYGWIN=
1255 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1256 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1257 echo "configure:1258: checking for mingw32 environment" >&5
1258 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1259   echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1261   cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1264
1265 int main() {
1266 return __MINGW32__;
1267 ; return 0; }
1268 EOF
1269 if { (eval echo configure:1270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1270   rm -rf conftest*
1271   ac_cv_mingw32=yes
1272 else
1273   echo "configure: failed program was:" >&5
1274   cat conftest.$ac_ext >&5
1275   rm -rf conftest*
1276   ac_cv_mingw32=no
1277 fi
1278 rm -f conftest*
1279 rm -f conftest*
1280 fi
1281
1282 echo "$ac_t""$ac_cv_mingw32" 1>&6
1283 MINGW32=
1284 test "$ac_cv_mingw32" = yes && MINGW32=yes
1285
1286
1287 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1288 echo "configure:1289: checking for executable suffix" >&5
1289 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1290   echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1293   ac_cv_exeext=.exe
1294 else
1295   rm -f conftest*
1296   echo 'int main () { return 0; }' > conftest.$ac_ext
1297   ac_cv_exeext=
1298   if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1299     for file in conftest.*; do
1300       case $file in
1301       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1302       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1303       esac
1304     done
1305   else
1306     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1307   fi
1308   rm -f conftest*
1309   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1310 fi
1311 fi
1312
1313 EXEEXT=""
1314 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1315 echo "$ac_t""${ac_cv_exeext}" 1>&6
1316 ac_exeext=$EXEEXT
1317
1318
1319 if test "$GCC" = yes; then
1320   fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
1321 fi
1322
1323
1324 ac_header_dirent=no
1325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1326 do
1327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1328 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_hdr that defines DIR" >&5
1330 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1331   echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333   cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 #include <sys/types.h>
1337 #include <$ac_hdr>
1338 int main() {
1339 DIR *dirp = 0;
1340 ; return 0; }
1341 EOF
1342 if { (eval echo configure:1343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1343   rm -rf conftest*
1344   eval "ac_cv_header_dirent_$ac_safe=yes"
1345 else
1346   echo "configure: failed program was:" >&5
1347   cat conftest.$ac_ext >&5
1348   rm -rf conftest*
1349   eval "ac_cv_header_dirent_$ac_safe=no"
1350 fi
1351 rm -f conftest*
1352 fi
1353 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1354   echo "$ac_t""yes" 1>&6
1355     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1356   cat >> confdefs.h <<EOF
1357 #define $ac_tr_hdr 1
1358 EOF
1359  ac_header_dirent=$ac_hdr; break
1360 else
1361   echo "$ac_t""no" 1>&6
1362 fi
1363 done
1364 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1365 if test $ac_header_dirent = dirent.h; then
1366 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1367 echo "configure:1368: checking for opendir in -ldir" >&5
1368 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1370   echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372   ac_save_LIBS="$LIBS"
1373 LIBS="-ldir  $LIBS"
1374 cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* Override any gcc2 internal prototype to avoid an error.  */
1378 /* We use char because int might match the return type of a gcc2
1379     builtin and then its argument prototype would still apply.  */
1380 char opendir();
1381
1382 int main() {
1383 opendir()
1384 ; return 0; }
1385 EOF
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387   rm -rf conftest*
1388   eval "ac_cv_lib_$ac_lib_var=yes"
1389 else
1390   echo "configure: failed program was:" >&5
1391   cat conftest.$ac_ext >&5
1392   rm -rf conftest*
1393   eval "ac_cv_lib_$ac_lib_var=no"
1394 fi
1395 rm -f conftest*
1396 LIBS="$ac_save_LIBS"
1397
1398 fi
1399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1400   echo "$ac_t""yes" 1>&6
1401   LIBS="$LIBS -ldir"
1402 else
1403   echo "$ac_t""no" 1>&6
1404 fi
1405
1406 else
1407 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1408 echo "configure:1409: checking for opendir in -lx" >&5
1409 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1411   echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413   ac_save_LIBS="$LIBS"
1414 LIBS="-lx  $LIBS"
1415 cat > conftest.$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1418 /* Override any gcc2 internal prototype to avoid an error.  */
1419 /* We use char because int might match the return type of a gcc2
1420     builtin and then its argument prototype would still apply.  */
1421 char opendir();
1422
1423 int main() {
1424 opendir()
1425 ; return 0; }
1426 EOF
1427 if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428   rm -rf conftest*
1429   eval "ac_cv_lib_$ac_lib_var=yes"
1430 else
1431   echo "configure: failed program was:" >&5
1432   cat conftest.$ac_ext >&5
1433   rm -rf conftest*
1434   eval "ac_cv_lib_$ac_lib_var=no"
1435 fi
1436 rm -f conftest*
1437 LIBS="$ac_save_LIBS"
1438
1439 fi
1440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1441   echo "$ac_t""yes" 1>&6
1442   LIBS="$LIBS -lx"
1443 else
1444   echo "$ac_t""no" 1>&6
1445 fi
1446
1447 fi
1448
1449 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1450 echo "configure:1451: checking how to run the C preprocessor" >&5
1451 # On Suns, sometimes $CPP names a directory.
1452 if test -n "$CPP" && test -d "$CPP"; then
1453   CPP=
1454 fi
1455 if test -z "$CPP"; then
1456 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459     # This must be in double quotes, not single quotes, because CPP may get
1460   # substituted into the Makefile and "${CC-cc}" will confuse make.
1461   CPP="${CC-cc} -E"
1462   # On the NeXT, cc -E runs the code through the compiler's parser,
1463   # not just through cpp.
1464   cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <assert.h>
1468 Syntax Error
1469 EOF
1470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1471 { (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1473 if test -z "$ac_err"; then
1474   :
1475 else
1476   echo "$ac_err" >&5
1477   echo "configure: failed program was:" >&5
1478   cat conftest.$ac_ext >&5
1479   rm -rf conftest*
1480   CPP="${CC-cc} -E -traditional-cpp"
1481   cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 #include <assert.h>
1485 Syntax Error
1486 EOF
1487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1488 { (eval echo configure:1489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1490 if test -z "$ac_err"; then
1491   :
1492 else
1493   echo "$ac_err" >&5
1494   echo "configure: failed program was:" >&5
1495   cat conftest.$ac_ext >&5
1496   rm -rf conftest*
1497   CPP="${CC-cc} -nologo -E"
1498   cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 #include <assert.h>
1502 Syntax Error
1503 EOF
1504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1505 { (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1507 if test -z "$ac_err"; then
1508   :
1509 else
1510   echo "$ac_err" >&5
1511   echo "configure: failed program was:" >&5
1512   cat conftest.$ac_ext >&5
1513   rm -rf conftest*
1514   CPP=/lib/cpp
1515 fi
1516 rm -f conftest*
1517 fi
1518 rm -f conftest*
1519 fi
1520 rm -f conftest*
1521   ac_cv_prog_CPP="$CPP"
1522 fi
1523   CPP="$ac_cv_prog_CPP"
1524 else
1525   ac_cv_prog_CPP="$CPP"
1526 fi
1527 echo "$ac_t""$CPP" 1>&6
1528
1529 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1530 echo "configure:1531: checking for ANSI C header files" >&5
1531 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1532   echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534   cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 #include <stdlib.h>
1538 #include <stdarg.h>
1539 #include <string.h>
1540 #include <float.h>
1541 EOF
1542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1545 if test -z "$ac_err"; then
1546   rm -rf conftest*
1547   ac_cv_header_stdc=yes
1548 else
1549   echo "$ac_err" >&5
1550   echo "configure: failed program was:" >&5
1551   cat conftest.$ac_ext >&5
1552   rm -rf conftest*
1553   ac_cv_header_stdc=no
1554 fi
1555 rm -f conftest*
1556
1557 if test $ac_cv_header_stdc = yes; then
1558   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 #include <string.h>
1563 EOF
1564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1565   egrep "memchr" >/dev/null 2>&1; then
1566   :
1567 else
1568   rm -rf conftest*
1569   ac_cv_header_stdc=no
1570 fi
1571 rm -f conftest*
1572
1573 fi
1574
1575 if test $ac_cv_header_stdc = yes; then
1576   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1577 cat > conftest.$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1580 #include <stdlib.h>
1581 EOF
1582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1583   egrep "free" >/dev/null 2>&1; then
1584   :
1585 else
1586   rm -rf conftest*
1587   ac_cv_header_stdc=no
1588 fi
1589 rm -f conftest*
1590
1591 fi
1592
1593 if test $ac_cv_header_stdc = yes; then
1594   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1595 if test "$cross_compiling" = yes; then
1596   :
1597 else
1598   cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601 #include <ctype.h>
1602 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1603 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1605 int main () { int i; for (i = 0; i < 256; i++)
1606 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1607 exit (0); }
1608
1609 EOF
1610 if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1611 then
1612   :
1613 else
1614   echo "configure: failed program was:" >&5
1615   cat conftest.$ac_ext >&5
1616   rm -fr conftest*
1617   ac_cv_header_stdc=no
1618 fi
1619 rm -fr conftest*
1620 fi
1621
1622 fi
1623 fi
1624
1625 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1626 if test $ac_cv_header_stdc = yes; then
1627   cat >> confdefs.h <<\EOF
1628 #define STDC_HEADERS 1
1629 EOF
1630
1631 fi
1632
1633 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether struct tm is in sys/time.h or time.h" >&5
1635 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1636   echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638   cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <sys/types.h>
1642 #include <time.h>
1643 int main() {
1644 struct tm *tp; tp->tm_sec;
1645 ; return 0; }
1646 EOF
1647 if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648   rm -rf conftest*
1649   ac_cv_struct_tm=time.h
1650 else
1651   echo "configure: failed program was:" >&5
1652   cat conftest.$ac_ext >&5
1653   rm -rf conftest*
1654   ac_cv_struct_tm=sys/time.h
1655 fi
1656 rm -f conftest*
1657 fi
1658
1659 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1660 if test $ac_cv_struct_tm = sys/time.h; then
1661   cat >> confdefs.h <<\EOF
1662 #define TM_IN_SYS_TIME 1
1663 EOF
1664
1665 fi
1666
1667 for ac_hdr in fcntl.h unistd.h sys/param.h getopt.h
1668 do
1669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_hdr" >&5
1672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1673   echo $ac_n "(cached) $ac_c" 1>&6
1674 else
1675   cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1678 #include <$ac_hdr>
1679 EOF
1680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1683 if test -z "$ac_err"; then
1684   rm -rf conftest*
1685   eval "ac_cv_header_$ac_safe=yes"
1686 else
1687   echo "$ac_err" >&5
1688   echo "configure: failed program was:" >&5
1689   cat conftest.$ac_ext >&5
1690   rm -rf conftest*
1691   eval "ac_cv_header_$ac_safe=no"
1692 fi
1693 rm -f conftest*
1694 fi
1695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1696   echo "$ac_t""yes" 1>&6
1697     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1698   cat >> confdefs.h <<EOF
1699 #define $ac_tr_hdr 1
1700 EOF
1701  
1702 else
1703   echo "$ac_t""no" 1>&6
1704 fi
1705 done
1706
1707
1708 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1709 echo "configure:1710: checking for off_t" >&5
1710 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1711   echo $ac_n "(cached) $ac_c" 1>&6
1712 else
1713   cat > conftest.$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 #include <sys/types.h>
1717 #if STDC_HEADERS
1718 #include <stdlib.h>
1719 #include <stddef.h>
1720 #endif
1721 EOF
1722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1723   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1724   rm -rf conftest*
1725   ac_cv_type_off_t=yes
1726 else
1727   rm -rf conftest*
1728   ac_cv_type_off_t=no
1729 fi
1730 rm -f conftest*
1731
1732 fi
1733 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1734 if test $ac_cv_type_off_t = no; then
1735   cat >> confdefs.h <<\EOF
1736 #define off_t long
1737 EOF
1738
1739 fi
1740
1741 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1742 echo "configure:1743: checking whether struct tm is in sys/time.h or time.h" >&5
1743 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1744   echo $ac_n "(cached) $ac_c" 1>&6
1745 else
1746   cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 #include <sys/types.h>
1750 #include <time.h>
1751 int main() {
1752 struct tm *tp; tp->tm_sec;
1753 ; return 0; }
1754 EOF
1755 if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1756   rm -rf conftest*
1757   ac_cv_struct_tm=time.h
1758 else
1759   echo "configure: failed program was:" >&5
1760   cat conftest.$ac_ext >&5
1761   rm -rf conftest*
1762   ac_cv_struct_tm=sys/time.h
1763 fi
1764 rm -f conftest*
1765 fi
1766
1767 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1768 if test $ac_cv_struct_tm = sys/time.h; then
1769   cat >> confdefs.h <<\EOF
1770 #define TM_IN_SYS_TIME 1
1771 EOF
1772
1773 fi
1774
1775
1776 echo $ac_n "checking size of char""... $ac_c" 1>&6
1777 echo "configure:1778: checking size of char" >&5
1778 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1779   echo $ac_n "(cached) $ac_c" 1>&6
1780 else
1781   if test "$cross_compiling" = yes; then
1782     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1783 else
1784   cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 #include <stdio.h>
1788 main()
1789 {
1790   FILE *f=fopen("conftestval", "w");
1791   if (!f) exit(1);
1792   fprintf(f, "%d\n", sizeof(char));
1793   exit(0);
1794 }
1795 EOF
1796 if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1797 then
1798   ac_cv_sizeof_char=`cat conftestval`
1799 else
1800   echo "configure: failed program was:" >&5
1801   cat conftest.$ac_ext >&5
1802   rm -fr conftest*
1803   ac_cv_sizeof_char=0
1804 fi
1805 rm -fr conftest*
1806 fi
1807
1808 fi
1809 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1810 cat >> confdefs.h <<EOF
1811 #define SIZEOF_CHAR $ac_cv_sizeof_char
1812 EOF
1813
1814
1815 echo $ac_n "checking size of short""... $ac_c" 1>&6
1816 echo "configure:1817: checking size of short" >&5
1817 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1818   echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820   if test "$cross_compiling" = yes; then
1821     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1822 else
1823   cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <stdio.h>
1827 main()
1828 {
1829   FILE *f=fopen("conftestval", "w");
1830   if (!f) exit(1);
1831   fprintf(f, "%d\n", sizeof(short));
1832   exit(0);
1833 }
1834 EOF
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1836 then
1837   ac_cv_sizeof_short=`cat conftestval`
1838 else
1839   echo "configure: failed program was:" >&5
1840   cat conftest.$ac_ext >&5
1841   rm -fr conftest*
1842   ac_cv_sizeof_short=0
1843 fi
1844 rm -fr conftest*
1845 fi
1846
1847 fi
1848 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1849 cat >> confdefs.h <<EOF
1850 #define SIZEOF_SHORT $ac_cv_sizeof_short
1851 EOF
1852
1853
1854 echo $ac_n "checking size of int""... $ac_c" 1>&6
1855 echo "configure:1856: checking size of int" >&5
1856 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1857   echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859   if test "$cross_compiling" = yes; then
1860     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1861 else
1862   cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 #include <stdio.h>
1866 main()
1867 {
1868   FILE *f=fopen("conftestval", "w");
1869   if (!f) exit(1);
1870   fprintf(f, "%d\n", sizeof(int));
1871   exit(0);
1872 }
1873 EOF
1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1875 then
1876   ac_cv_sizeof_int=`cat conftestval`
1877 else
1878   echo "configure: failed program was:" >&5
1879   cat conftest.$ac_ext >&5
1880   rm -fr conftest*
1881   ac_cv_sizeof_int=0
1882 fi
1883 rm -fr conftest*
1884 fi
1885
1886 fi
1887 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1888 cat >> confdefs.h <<EOF
1889 #define SIZEOF_INT $ac_cv_sizeof_int
1890 EOF
1891
1892
1893 echo $ac_n "checking size of long""... $ac_c" 1>&6
1894 echo "configure:1895: checking size of long" >&5
1895 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1896   echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898   if test "$cross_compiling" = yes; then
1899     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1900 else
1901   cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <stdio.h>
1905 main()
1906 {
1907   FILE *f=fopen("conftestval", "w");
1908   if (!f) exit(1);
1909   fprintf(f, "%d\n", sizeof(long));
1910   exit(0);
1911 }
1912 EOF
1913 if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1914 then
1915   ac_cv_sizeof_long=`cat conftestval`
1916 else
1917   echo "configure: failed program was:" >&5
1918   cat conftest.$ac_ext >&5
1919   rm -fr conftest*
1920   ac_cv_sizeof_long=0
1921 fi
1922 rm -fr conftest*
1923 fi
1924
1925 fi
1926 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1927 cat >> confdefs.h <<EOF
1928 #define SIZEOF_LONG $ac_cv_sizeof_long
1929 EOF
1930
1931
1932 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1933 echo "configure:1934: checking size of long long" >&5
1934 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1935   echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937   if test "$cross_compiling" = yes; then
1938     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1939 else
1940   cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1943 #include <stdio.h>
1944 main()
1945 {
1946   FILE *f=fopen("conftestval", "w");
1947   if (!f) exit(1);
1948   fprintf(f, "%d\n", sizeof(long long));
1949   exit(0);
1950 }
1951 EOF
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1953 then
1954   ac_cv_sizeof_long_long=`cat conftestval`
1955 else
1956   echo "configure: failed program was:" >&5
1957   cat conftest.$ac_ext >&5
1958   rm -fr conftest*
1959   ac_cv_sizeof_long_long=0
1960 fi
1961 rm -fr conftest*
1962 fi
1963
1964 fi
1965 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1966 cat >> confdefs.h <<EOF
1967 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1968 EOF
1969
1970
1971
1972 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether byte ordering is bigendian" >&5
1974 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1975   echo $ac_n "(cached) $ac_c" 1>&6
1976 else
1977   ac_cv_c_bigendian=unknown
1978 # See if sys/param.h defines the BYTE_ORDER macro.
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 #include <sys/types.h>
1983 #include <sys/param.h>
1984 int main() {
1985
1986 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1987  bogus endian macros
1988 #endif
1989 ; return 0; }
1990 EOF
1991 if { (eval echo configure:1992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1992   rm -rf conftest*
1993   # It does; now see whether it defined to BIG_ENDIAN or not.
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 #include <sys/types.h>
1998 #include <sys/param.h>
1999 int main() {
2000
2001 #if BYTE_ORDER != BIG_ENDIAN
2002  not big endian
2003 #endif
2004 ; return 0; }
2005 EOF
2006 if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007   rm -rf conftest*
2008   ac_cv_c_bigendian=yes
2009 else
2010   echo "configure: failed program was:" >&5
2011   cat conftest.$ac_ext >&5
2012   rm -rf conftest*
2013   ac_cv_c_bigendian=no
2014 fi
2015 rm -f conftest*
2016 else
2017   echo "configure: failed program was:" >&5
2018   cat conftest.$ac_ext >&5
2019 fi
2020 rm -f conftest*
2021 if test $ac_cv_c_bigendian = unknown; then
2022 if test "$cross_compiling" = yes; then
2023     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2024 else
2025   cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 main () {
2029   /* Are we little or big endian?  From Harbison&Steele.  */
2030   union
2031   {
2032     long l;
2033     char c[sizeof (long)];
2034   } u;
2035   u.l = 1;
2036   exit (u.c[sizeof (long) - 1] == 1);
2037 }
2038 EOF
2039 if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2040 then
2041   ac_cv_c_bigendian=no
2042 else
2043   echo "configure: failed program was:" >&5
2044   cat conftest.$ac_ext >&5
2045   rm -fr conftest*
2046   ac_cv_c_bigendian=yes
2047 fi
2048 rm -fr conftest*
2049 fi
2050
2051 fi
2052 fi
2053
2054 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2055 if test $ac_cv_c_bigendian = yes; then
2056   cat >> confdefs.h <<\EOF
2057 #define WORDS_BIGENDIAN 1
2058 EOF
2059
2060 fi
2061
2062
2063 # Check whether --with-system-zlib or --without-system-zlib was given.
2064 if test "${with_system_zlib+set}" = set; then
2065   withval="$with_system_zlib"
2066   :
2067 fi
2068
2069
2070 ZLIBS=
2071 ZDEPS=
2072 ZINCS=
2073 use_zlib=maybe
2074 if test "$with_system_zlib" = yes; then
2075    echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2076 echo "configure:2077: checking for deflate in -lz" >&5
2077 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079   echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081   ac_save_LIBS="$LIBS"
2082 LIBS="-lz  $LIBS"
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* Override any gcc2 internal prototype to avoid an error.  */
2087 /* We use char because int might match the return type of a gcc2
2088     builtin and then its argument prototype would still apply.  */
2089 char deflate();
2090
2091 int main() {
2092 deflate()
2093 ; return 0; }
2094 EOF
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2096   rm -rf conftest*
2097   eval "ac_cv_lib_$ac_lib_var=yes"
2098 else
2099   echo "configure: failed program was:" >&5
2100   cat conftest.$ac_ext >&5
2101   rm -rf conftest*
2102   eval "ac_cv_lib_$ac_lib_var=no"
2103 fi
2104 rm -f conftest*
2105 LIBS="$ac_save_LIBS"
2106
2107 fi
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109   echo "$ac_t""yes" 1>&6
2110   ZLIBS=-lz
2111 else
2112   echo "$ac_t""no" 1>&6
2113 use_zlib=no
2114 fi
2115
2116 else
2117    use_zlib=no
2118 fi
2119
2120 if test "$use_zlib" = no; then
2121    # Brain dead way to find tree's zlib.
2122    ZDEPS='$(top_builddir)/../zlib/libz.a'
2123    ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
2124    ZINCS='-I$(top_srcdir)/../zlib'
2125 fi
2126
2127
2128
2129
2130 trap '' 1 2 15
2131 cat > confcache <<\EOF
2132 # This file is a shell script that caches the results of configure
2133 # tests run on this system so they can be shared between configure
2134 # scripts and configure runs.  It is not useful on other systems.
2135 # If it contains results you don't want to keep, you may remove or edit it.
2136 #
2137 # By default, configure uses ./config.cache as the cache file,
2138 # creating it if it does not exist already.  You can give configure
2139 # the --cache-file=FILE option to use a different cache file; that is
2140 # what configure does when it calls configure scripts in
2141 # subdirectories, so they share the cache.
2142 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2143 # config.status only pays attention to the cache file if you give it the
2144 # --recheck option to rerun configure.
2145 #
2146 EOF
2147 # The following way of writing the cache mishandles newlines in values,
2148 # but we know of no workaround that is simple, portable, and efficient.
2149 # So, don't put newlines in cache variables' values.
2150 # Ultrix sh set writes to stderr and can't be redirected directly,
2151 # and sets the high bit in the cache file unless we assign to the vars.
2152 (set) 2>&1 |
2153   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2154   *ac_space=\ *)
2155     # `set' does not quote correctly, so add quotes (double-quote substitution
2156     # turns \\\\ into \\, and sed turns \\ into \).
2157     sed -n \
2158       -e "s/'/'\\\\''/g" \
2159       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2160     ;;
2161   *)
2162     # `set' quotes correctly as required by POSIX, so do not add quotes.
2163     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2164     ;;
2165   esac >> confcache
2166 if cmp -s $cache_file confcache; then
2167   :
2168 else
2169   if test -w $cache_file; then
2170     echo "updating cache $cache_file"
2171     cat confcache > $cache_file
2172   else
2173     echo "not updating unwritable cache $cache_file"
2174   fi
2175 fi
2176 rm -f confcache
2177
2178 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2179
2180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2181 # Let make expand exec_prefix.
2182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2183
2184 # Any assignment to VPATH causes Sun make to only execute
2185 # the first set of double-colon rules, so remove it if not needed.
2186 # If there is a colon in the path, we need to keep it.
2187 if test "x$srcdir" = x.; then
2188   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2189 fi
2190
2191 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2192
2193 DEFS=-DHAVE_CONFIG_H
2194
2195 # Without the "./", some shells look in PATH for config.status.
2196 : ${CONFIG_STATUS=./config.status}
2197
2198 echo creating $CONFIG_STATUS
2199 rm -f $CONFIG_STATUS
2200 cat > $CONFIG_STATUS <<EOF
2201 #! /bin/sh
2202 # Generated automatically by configure.
2203 # Run this file to recreate the current configuration.
2204 # This directory was configured as follows,
2205 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2206 #
2207 # $0 $ac_configure_args
2208 #
2209 # Compiler output produced by configure, useful for debugging
2210 # configure, is in ./config.log if it exists.
2211
2212 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2213 for ac_option
2214 do
2215   case "\$ac_option" in
2216   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2217     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2218     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2219   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2220     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2221     exit 0 ;;
2222   -help | --help | --hel | --he | --h)
2223     echo "\$ac_cs_usage"; exit 0 ;;
2224   *) echo "\$ac_cs_usage"; exit 1 ;;
2225   esac
2226 done
2227
2228 ac_given_srcdir=$srcdir
2229 ac_given_INSTALL="$INSTALL"
2230
2231 trap 'rm -fr `echo "Makefile install-defs.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2232 EOF
2233 cat >> $CONFIG_STATUS <<EOF
2234
2235 # Protect against being on the right side of a sed subst in config.status.
2236 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2237  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2238 $ac_vpsub
2239 $extrasub
2240 s%@SHELL@%$SHELL%g
2241 s%@CFLAGS@%$CFLAGS%g
2242 s%@CPPFLAGS@%$CPPFLAGS%g
2243 s%@CXXFLAGS@%$CXXFLAGS%g
2244 s%@FFLAGS@%$FFLAGS%g
2245 s%@DEFS@%$DEFS%g
2246 s%@LDFLAGS@%$LDFLAGS%g
2247 s%@LIBS@%$LIBS%g
2248 s%@exec_prefix@%$exec_prefix%g
2249 s%@prefix@%$prefix%g
2250 s%@program_transform_name@%$program_transform_name%g
2251 s%@bindir@%$bindir%g
2252 s%@sbindir@%$sbindir%g
2253 s%@libexecdir@%$libexecdir%g
2254 s%@datadir@%$datadir%g
2255 s%@sysconfdir@%$sysconfdir%g
2256 s%@sharedstatedir@%$sharedstatedir%g
2257 s%@localstatedir@%$localstatedir%g
2258 s%@libdir@%$libdir%g
2259 s%@includedir@%$includedir%g
2260 s%@oldincludedir@%$oldincludedir%g
2261 s%@infodir@%$infodir%g
2262 s%@mandir@%$mandir%g
2263 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2264 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2265 s%@INSTALL_DATA@%$INSTALL_DATA%g
2266 s%@PACKAGE@%$PACKAGE%g
2267 s%@VERSION@%$VERSION%g
2268 s%@ACLOCAL@%$ACLOCAL%g
2269 s%@AUTOCONF@%$AUTOCONF%g
2270 s%@AUTOMAKE@%$AUTOMAKE%g
2271 s%@AUTOHEADER@%$AUTOHEADER%g
2272 s%@MAKEINFO@%$MAKEINFO%g
2273 s%@SET_MAKE@%$SET_MAKE%g
2274 s%@CC@%$CC%g
2275 s%@RM@%$RM%g
2276 s%@CP@%$CP%g
2277 s%@STRIP@%$STRIP%g
2278 s%@CHMOD@%$CHMOD%g
2279 s%@EXEEXT@%$EXEEXT%g
2280 s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
2281 s%@CPP@%$CPP%g
2282 s%@ZLIBS@%$ZLIBS%g
2283 s%@ZDEPS@%$ZDEPS%g
2284 s%@ZINCS@%$ZINCS%g
2285
2286 CEOF
2287 EOF
2288
2289 cat >> $CONFIG_STATUS <<\EOF
2290
2291 # Split the substitutions into bite-sized pieces for seds with
2292 # small command number limits, like on Digital OSF/1 and HP-UX.
2293 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2294 ac_file=1 # Number of current file.
2295 ac_beg=1 # First line for current file.
2296 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2297 ac_more_lines=:
2298 ac_sed_cmds=""
2299 while $ac_more_lines; do
2300   if test $ac_beg -gt 1; then
2301     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2302   else
2303     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2304   fi
2305   if test ! -s conftest.s$ac_file; then
2306     ac_more_lines=false
2307     rm -f conftest.s$ac_file
2308   else
2309     if test -z "$ac_sed_cmds"; then
2310       ac_sed_cmds="sed -f conftest.s$ac_file"
2311     else
2312       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2313     fi
2314     ac_file=`expr $ac_file + 1`
2315     ac_beg=$ac_end
2316     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2317   fi
2318 done
2319 if test -z "$ac_sed_cmds"; then
2320   ac_sed_cmds=cat
2321 fi
2322 EOF
2323
2324 cat >> $CONFIG_STATUS <<EOF
2325
2326 CONFIG_FILES=\${CONFIG_FILES-"Makefile install-defs.sh"}
2327 EOF
2328 cat >> $CONFIG_STATUS <<\EOF
2329 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2330   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2331   case "$ac_file" in
2332   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2333        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2334   *) ac_file_in="${ac_file}.in" ;;
2335   esac
2336
2337   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2338
2339   # Remove last slash and all that follows it.  Not all systems have dirname.
2340   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2341   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2342     # The file is in a subdirectory.
2343     test ! -d "$ac_dir" && mkdir "$ac_dir"
2344     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2345     # A "../" for each directory in $ac_dir_suffix.
2346     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2347   else
2348     ac_dir_suffix= ac_dots=
2349   fi
2350
2351   case "$ac_given_srcdir" in
2352   .)  srcdir=.
2353       if test -z "$ac_dots"; then top_srcdir=.
2354       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2355   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2356   *) # Relative path.
2357     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2358     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2359   esac
2360
2361   case "$ac_given_INSTALL" in
2362   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2363   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2364   esac
2365
2366   echo creating "$ac_file"
2367   rm -f "$ac_file"
2368   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2369   case "$ac_file" in
2370   *Makefile*) ac_comsub="1i\\
2371 # $configure_input" ;;
2372   *) ac_comsub= ;;
2373   esac
2374
2375   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2376   sed -e "$ac_comsub
2377 s%@configure_input@%$configure_input%g
2378 s%@srcdir@%$srcdir%g
2379 s%@top_srcdir@%$top_srcdir%g
2380 s%@INSTALL@%$INSTALL%g
2381 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2382 fi; done
2383 rm -f conftest.s*
2384
2385 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2386 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2387 #
2388 # ac_d sets the value in "#define NAME VALUE" lines.
2389 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2390 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2391 ac_dC='\3'
2392 ac_dD='%g'
2393 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2394 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2395 ac_uB='\([      ]\)%\1#\2define\3'
2396 ac_uC=' '
2397 ac_uD='\4%g'
2398 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2399 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2400 ac_eB='$%\1#\2define\3'
2401 ac_eC=' '
2402 ac_eD='%g'
2403
2404 if test "${CONFIG_HEADERS+set}" != set; then
2405 EOF
2406 cat >> $CONFIG_STATUS <<EOF
2407   CONFIG_HEADERS="config.h"
2408 EOF
2409 cat >> $CONFIG_STATUS <<\EOF
2410 fi
2411 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2412   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2413   case "$ac_file" in
2414   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2415        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2416   *) ac_file_in="${ac_file}.in" ;;
2417   esac
2418
2419   echo creating $ac_file
2420
2421   rm -f conftest.frag conftest.in conftest.out
2422   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2423   cat $ac_file_inputs > conftest.in
2424
2425 EOF
2426
2427 # Transform confdefs.h into a sed script conftest.vals that substitutes
2428 # the proper values into config.h.in to produce config.h.  And first:
2429 # Protect against being on the right side of a sed subst in config.status.
2430 # Protect against being in an unquoted here document in config.status.
2431 rm -f conftest.vals
2432 cat > conftest.hdr <<\EOF
2433 s/[\\&%]/\\&/g
2434 s%[\\$`]%\\&%g
2435 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2436 s%ac_d%ac_u%gp
2437 s%ac_u%ac_e%gp
2438 EOF
2439 sed -n -f conftest.hdr confdefs.h > conftest.vals
2440 rm -f conftest.hdr
2441
2442 # This sed command replaces #undef with comments.  This is necessary, for
2443 # example, in the case of _POSIX_SOURCE, which is predefined and required
2444 # on some systems where configure will not decide to define it.
2445 cat >> conftest.vals <<\EOF
2446 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2447 EOF
2448
2449 # Break up conftest.vals because some shells have a limit on
2450 # the size of here documents, and old seds have small limits too.
2451
2452 rm -f conftest.tail
2453 while :
2454 do
2455   ac_lines=`grep -c . conftest.vals`
2456   # grep -c gives empty output for an empty file on some AIX systems.
2457   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2458   # Write a limited-size here document to conftest.frag.
2459   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2460   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2461   echo 'CEOF
2462   sed -f conftest.frag conftest.in > conftest.out
2463   rm -f conftest.in
2464   mv conftest.out conftest.in
2465 ' >> $CONFIG_STATUS
2466   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2467   rm -f conftest.vals
2468   mv conftest.tail conftest.vals
2469 done
2470 rm -f conftest.vals
2471
2472 cat >> $CONFIG_STATUS <<\EOF
2473   rm -f conftest.frag conftest.h
2474   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2475   cat conftest.in >> conftest.h
2476   rm -f conftest.in
2477   if cmp -s $ac_file conftest.h 2>/dev/null; then
2478     echo "$ac_file is unchanged"
2479     rm -f conftest.h
2480   else
2481     # Remove last slash and all that follows it.  Not all systems have dirname.
2482       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2483       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2484       # The file is in a subdirectory.
2485       test ! -d "$ac_dir" && mkdir "$ac_dir"
2486     fi
2487     rm -f $ac_file
2488     mv conftest.h $ac_file
2489   fi
2490 fi; done
2491
2492 EOF
2493 cat >> $CONFIG_STATUS <<EOF
2494
2495
2496 EOF
2497 cat >> $CONFIG_STATUS <<\EOF
2498 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2499
2500 exit 0
2501 EOF
2502 chmod +x $CONFIG_STATUS
2503 rm -fr confdefs* $ac_clean_files
2504 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2505