oops - omitted from previouys delta
[official-gcc.git] / fastjar / configure
blob29e06447542d0ae15c6023ab1d4088f79b0492c5
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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"
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'
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
59 ac_prev=
60 for ac_option
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
70 case "$ac_option" in
71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 *) ac_optarg= ;;
73 esac
75 # Accept the important Cygnus configure options, so we can diagnose typos.
77 case "$ac_option" in
79 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 ac_prev=bindir ;;
81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82 bindir="$ac_optarg" ;;
84 -build | --build | --buil | --bui | --bu)
85 ac_prev=build ;;
86 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
133 -gas | --gas | --ga | --g)
134 # Obsolete; use --with-gas.
135 with_gas=yes ;;
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
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
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
191 exit 0 ;;
193 -host | --host | --hos | --ho)
194 ac_prev=host ;;
195 -host=* | --host=* | --hos=* | --ho=*)
196 host="$ac_optarg" ;;
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" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 ac_prev=infodir ;;
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
211 ac_prev=libdir ;;
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
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" ;;
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" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 ac_prev=mandir ;;
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
236 -nfp | --nfp | --nf)
237 # Obsolete; use --without-fp.
238 with_fp=no ;;
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 | --no-cr | --no-c)
242 no_create=yes ;;
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 ;;
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" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 ac_prev=prefix ;;
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
295 silent=yes ;;
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" ;;
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" ;;
314 -site | --site | --sit)
315 ac_prev=site ;;
316 -site=* | --site=* | --sit=*)
317 site="$ac_optarg" ;;
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" ;;
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325 ac_prev=srcdir ;;
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
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" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
337 ac_prev=target ;;
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
342 verbose=yes ;;
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.13"
346 exit 0 ;;
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; }
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'" ;;
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; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
370 --x)
371 # Obsolete; use --with-x.
372 with_x=yes ;;
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" ;;
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" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
398 nonopt="$ac_option"
401 esac
402 done
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
423 exec 5>./config.log
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
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
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
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
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
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
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=..
476 else
477 ac_srcdir_defaulted=no
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; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
497 else
498 CONFIG_SITE="$sitefile"
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"
505 done
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
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
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=
532 else
533 ac_n= ac_c='\c' ac_t=
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
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; }
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.
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/*) ;;
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.
588 else
589 ac_cv_path_install="$ac_dir/$ac_prog -c"
590 break 2
593 done
595 esac
596 done
597 IFS="$ac_save_IFS"
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"
610 echo "$ac_t""$INSTALL" 1>&6
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}'
616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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`
636 if test "$*" != "X $srcdir/configure conftestfile" \
637 && test "$*" != "X conftestfile $srcdir/configure"; then
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; }
647 test "$2" = conftestfile
649 then
650 # Ok.
652 else
653 { echo "configure: error: newly created file is older than distributed files!
654 Check your system clock" 1>&2; exit 1; }
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
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"
674 # sed with no file args requires a program.
675 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
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}"'
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
694 rm -f conftestmake
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}"
705 PACKAGE=fastar
707 VERSION=0.92-gcc
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; }
712 cat >> confdefs.h <<EOF
713 #define PACKAGE "$PACKAGE"
716 cat >> confdefs.h <<EOF
717 #define VERSION "$VERSION"
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
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
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
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
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
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
811 done
812 IFS="$ac_save_ifs"
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
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
843 ac_cv_prog_CC="cc"
844 break
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="$@"
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
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
892 done
893 IFS="$ac_save_ifs"
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
903 esac
905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
918 cat > conftest.$ac_ext << EOF
920 #line 921 "configure"
921 #include "confdefs.h"
923 main(){return(0);}
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
933 else
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
936 ac_cv_prog_cc_works=no
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
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; }
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
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
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
972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
974 if test $ac_cv_prog_gcc = yes; then
975 GCC=yes
976 else
977 GCC=
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
994 rm -f conftest*
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"
1007 else
1008 if test "$GCC" = yes; then
1009 CFLAGS="-O2"
1010 else
1011 CFLAGS=
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/*) ;;
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.
1047 else
1048 ac_cv_path_install="$ac_dir/$ac_prog -c"
1049 break 2
1052 done
1054 esac
1055 done
1056 IFS="$ac_save_IFS"
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"
1069 echo "$ac_t""$INSTALL" 1>&6
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}'
1075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
1088 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1090 ?:/*)
1091 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
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
1102 done
1103 IFS="$ac_save_ifs"
1104 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1106 esac
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
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
1124 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1126 ?:/*)
1127 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
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
1138 done
1139 IFS="$ac_save_ifs"
1140 test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
1142 esac
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
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
1160 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
1162 ?:/*)
1163 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path.
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
1174 done
1175 IFS="$ac_save_ifs"
1176 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="/usr/bin/strip"
1178 esac
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
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
1196 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1198 ?:/*)
1199 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
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
1210 done
1211 IFS="$ac_save_ifs"
1212 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="/bin/chmod"
1214 esac
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
1224 if test "$GCC" = yes; then
1225 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
1229 ac_header_dirent=no
1230 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1233 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_hdr that defines DIR" >&5
1235 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1241 #include <sys/types.h>
1242 #include <$ac_hdr>
1243 int main() {
1244 DIR *dirp = 0;
1245 ; return 0; }
1247 if { (eval echo configure:1248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1248 rm -rf conftest*
1249 eval "ac_cv_header_dirent_$ac_safe=yes"
1250 else
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1253 rm -rf conftest*
1254 eval "ac_cv_header_dirent_$ac_safe=no"
1256 rm -f conftest*
1258 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1259 echo "$ac_t""yes" 1>&6
1260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1261 cat >> confdefs.h <<EOF
1262 #define $ac_tr_hdr 1
1264 ac_header_dirent=$ac_hdr; break
1265 else
1266 echo "$ac_t""no" 1>&6
1268 done
1269 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1270 if test $ac_header_dirent = dirent.h; then
1271 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1272 echo "configure:1273: checking for opendir in -ldir" >&5
1273 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277 ac_save_LIBS="$LIBS"
1278 LIBS="-ldir $LIBS"
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 /* Override any gcc2 internal prototype to avoid an error. */
1283 /* We use char because int might match the return type of a gcc2
1284 builtin and then its argument prototype would still apply. */
1285 char opendir();
1287 int main() {
1288 opendir()
1289 ; return 0; }
1291 if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1292 rm -rf conftest*
1293 eval "ac_cv_lib_$ac_lib_var=yes"
1294 else
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 rm -rf conftest*
1298 eval "ac_cv_lib_$ac_lib_var=no"
1300 rm -f conftest*
1301 LIBS="$ac_save_LIBS"
1304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1305 echo "$ac_t""yes" 1>&6
1306 LIBS="$LIBS -ldir"
1307 else
1308 echo "$ac_t""no" 1>&6
1311 else
1312 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1313 echo "configure:1314: checking for opendir in -lx" >&5
1314 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318 ac_save_LIBS="$LIBS"
1319 LIBS="-lx $LIBS"
1320 cat > conftest.$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 /* Override any gcc2 internal prototype to avoid an error. */
1324 /* We use char because int might match the return type of a gcc2
1325 builtin and then its argument prototype would still apply. */
1326 char opendir();
1328 int main() {
1329 opendir()
1330 ; return 0; }
1332 if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1333 rm -rf conftest*
1334 eval "ac_cv_lib_$ac_lib_var=yes"
1335 else
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1338 rm -rf conftest*
1339 eval "ac_cv_lib_$ac_lib_var=no"
1341 rm -f conftest*
1342 LIBS="$ac_save_LIBS"
1345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1346 echo "$ac_t""yes" 1>&6
1347 LIBS="$LIBS -lx"
1348 else
1349 echo "$ac_t""no" 1>&6
1354 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1355 echo "configure:1356: checking how to run the C preprocessor" >&5
1356 # On Suns, sometimes $CPP names a directory.
1357 if test -n "$CPP" && test -d "$CPP"; then
1358 CPP=
1360 if test -z "$CPP"; then
1361 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 # This must be in double quotes, not single quotes, because CPP may get
1365 # substituted into the Makefile and "${CC-cc}" will confuse make.
1366 CPP="${CC-cc} -E"
1367 # On the NeXT, cc -E runs the code through the compiler's parser,
1368 # not just through cpp.
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1372 #include <assert.h>
1373 Syntax Error
1375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1378 if test -z "$ac_err"; then
1380 else
1381 echo "$ac_err" >&5
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 CPP="${CC-cc} -E -traditional-cpp"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 #include <assert.h>
1390 Syntax Error
1392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1395 if test -z "$ac_err"; then
1397 else
1398 echo "$ac_err" >&5
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1401 rm -rf conftest*
1402 CPP="${CC-cc} -nologo -E"
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 #include <assert.h>
1407 Syntax Error
1409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1412 if test -z "$ac_err"; then
1414 else
1415 echo "$ac_err" >&5
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 rm -rf conftest*
1419 CPP=/lib/cpp
1421 rm -f conftest*
1423 rm -f conftest*
1425 rm -f conftest*
1426 ac_cv_prog_CPP="$CPP"
1428 CPP="$ac_cv_prog_CPP"
1429 else
1430 ac_cv_prog_CPP="$CPP"
1432 echo "$ac_t""$CPP" 1>&6
1434 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1435 echo "configure:1436: checking for ANSI C header files" >&5
1436 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1438 else
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1442 #include <stdlib.h>
1443 #include <stdarg.h>
1444 #include <string.h>
1445 #include <float.h>
1447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448 { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450 if test -z "$ac_err"; then
1451 rm -rf conftest*
1452 ac_cv_header_stdc=yes
1453 else
1454 echo "$ac_err" >&5
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1457 rm -rf conftest*
1458 ac_cv_header_stdc=no
1460 rm -f conftest*
1462 if test $ac_cv_header_stdc = yes; then
1463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <string.h>
1469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470 egrep "memchr" >/dev/null 2>&1; then
1472 else
1473 rm -rf conftest*
1474 ac_cv_header_stdc=no
1476 rm -f conftest*
1480 if test $ac_cv_header_stdc = yes; then
1481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 #include <stdlib.h>
1487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488 egrep "free" >/dev/null 2>&1; then
1490 else
1491 rm -rf conftest*
1492 ac_cv_header_stdc=no
1494 rm -f conftest*
1498 if test $ac_cv_header_stdc = yes; then
1499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1500 if test "$cross_compiling" = yes; then
1502 else
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 #include <ctype.h>
1507 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1508 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1510 int main () { int i; for (i = 0; i < 256; i++)
1511 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1512 exit (0); }
1515 if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1516 then
1518 else
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1521 rm -fr conftest*
1522 ac_cv_header_stdc=no
1524 rm -fr conftest*
1530 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1531 if test $ac_cv_header_stdc = yes; then
1532 cat >> confdefs.h <<\EOF
1533 #define STDC_HEADERS 1
1538 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1539 echo "configure:1540: checking whether struct tm is in sys/time.h or time.h" >&5
1540 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542 else
1543 cat > conftest.$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1546 #include <sys/types.h>
1547 #include <time.h>
1548 int main() {
1549 struct tm *tp; tp->tm_sec;
1550 ; return 0; }
1552 if { (eval echo configure:1553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1553 rm -rf conftest*
1554 ac_cv_struct_tm=time.h
1555 else
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1558 rm -rf conftest*
1559 ac_cv_struct_tm=sys/time.h
1561 rm -f conftest*
1564 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1565 if test $ac_cv_struct_tm = sys/time.h; then
1566 cat >> confdefs.h <<\EOF
1567 #define TM_IN_SYS_TIME 1
1572 for ac_hdr in fcntl.h unistd.h sys/param.h getopt.h
1574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1576 echo "configure:1577: checking for $ac_hdr" >&5
1577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1579 else
1580 cat > conftest.$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1583 #include <$ac_hdr>
1585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1586 { (eval echo configure:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1588 if test -z "$ac_err"; then
1589 rm -rf conftest*
1590 eval "ac_cv_header_$ac_safe=yes"
1591 else
1592 echo "$ac_err" >&5
1593 echo "configure: failed program was:" >&5
1594 cat conftest.$ac_ext >&5
1595 rm -rf conftest*
1596 eval "ac_cv_header_$ac_safe=no"
1598 rm -f conftest*
1600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1603 cat >> confdefs.h <<EOF
1604 #define $ac_tr_hdr 1
1607 else
1608 echo "$ac_t""no" 1>&6
1610 done
1613 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1614 echo "configure:1615: checking for off_t" >&5
1615 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617 else
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <sys/types.h>
1622 #if STDC_HEADERS
1623 #include <stdlib.h>
1624 #include <stddef.h>
1625 #endif
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1629 rm -rf conftest*
1630 ac_cv_type_off_t=yes
1631 else
1632 rm -rf conftest*
1633 ac_cv_type_off_t=no
1635 rm -f conftest*
1638 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1639 if test $ac_cv_type_off_t = no; then
1640 cat >> confdefs.h <<\EOF
1641 #define off_t long
1646 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1647 echo "configure:1648: checking whether struct tm is in sys/time.h or time.h" >&5
1648 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1650 else
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1655 #include <time.h>
1656 int main() {
1657 struct tm *tp; tp->tm_sec;
1658 ; return 0; }
1660 if { (eval echo configure:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1661 rm -rf conftest*
1662 ac_cv_struct_tm=time.h
1663 else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 ac_cv_struct_tm=sys/time.h
1669 rm -f conftest*
1672 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1673 if test $ac_cv_struct_tm = sys/time.h; then
1674 cat >> confdefs.h <<\EOF
1675 #define TM_IN_SYS_TIME 1
1681 echo $ac_n "checking size of char""... $ac_c" 1>&6
1682 echo "configure:1683: checking size of char" >&5
1683 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 if test "$cross_compiling" = yes; then
1687 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1688 else
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1692 #include <stdio.h>
1693 main()
1695 FILE *f=fopen("conftestval", "w");
1696 if (!f) exit(1);
1697 fprintf(f, "%d\n", sizeof(char));
1698 exit(0);
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1702 then
1703 ac_cv_sizeof_char=`cat conftestval`
1704 else
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1707 rm -fr conftest*
1708 ac_cv_sizeof_char=0
1710 rm -fr conftest*
1714 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1715 cat >> confdefs.h <<EOF
1716 #define SIZEOF_CHAR $ac_cv_sizeof_char
1720 echo $ac_n "checking size of short""... $ac_c" 1>&6
1721 echo "configure:1722: checking size of short" >&5
1722 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724 else
1725 if test "$cross_compiling" = yes; then
1726 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1727 else
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 #include <stdio.h>
1732 main()
1734 FILE *f=fopen("conftestval", "w");
1735 if (!f) exit(1);
1736 fprintf(f, "%d\n", sizeof(short));
1737 exit(0);
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1741 then
1742 ac_cv_sizeof_short=`cat conftestval`
1743 else
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 rm -fr conftest*
1747 ac_cv_sizeof_short=0
1749 rm -fr conftest*
1753 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1754 cat >> confdefs.h <<EOF
1755 #define SIZEOF_SHORT $ac_cv_sizeof_short
1759 echo $ac_n "checking size of int""... $ac_c" 1>&6
1760 echo "configure:1761: checking size of int" >&5
1761 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 if test "$cross_compiling" = yes; then
1765 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1766 else
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1770 #include <stdio.h>
1771 main()
1773 FILE *f=fopen("conftestval", "w");
1774 if (!f) exit(1);
1775 fprintf(f, "%d\n", sizeof(int));
1776 exit(0);
1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1780 then
1781 ac_cv_sizeof_int=`cat conftestval`
1782 else
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1785 rm -fr conftest*
1786 ac_cv_sizeof_int=0
1788 rm -fr conftest*
1792 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1793 cat >> confdefs.h <<EOF
1794 #define SIZEOF_INT $ac_cv_sizeof_int
1798 echo $ac_n "checking size of long""... $ac_c" 1>&6
1799 echo "configure:1800: checking size of long" >&5
1800 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 if test "$cross_compiling" = yes; then
1804 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1805 else
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 #include <stdio.h>
1810 main()
1812 FILE *f=fopen("conftestval", "w");
1813 if (!f) exit(1);
1814 fprintf(f, "%d\n", sizeof(long));
1815 exit(0);
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1819 then
1820 ac_cv_sizeof_long=`cat conftestval`
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1824 rm -fr conftest*
1825 ac_cv_sizeof_long=0
1827 rm -fr conftest*
1831 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1832 cat >> confdefs.h <<EOF
1833 #define SIZEOF_LONG $ac_cv_sizeof_long
1837 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1838 echo "configure:1839: checking size of long long" >&5
1839 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842 if test "$cross_compiling" = yes; then
1843 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1844 else
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <stdio.h>
1849 main()
1851 FILE *f=fopen("conftestval", "w");
1852 if (!f) exit(1);
1853 fprintf(f, "%d\n", sizeof(long long));
1854 exit(0);
1857 if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1858 then
1859 ac_cv_sizeof_long_long=`cat conftestval`
1860 else
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 rm -fr conftest*
1864 ac_cv_sizeof_long_long=0
1866 rm -fr conftest*
1870 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1871 cat >> confdefs.h <<EOF
1872 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1877 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether byte ordering is bigendian" >&5
1879 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882 ac_cv_c_bigendian=unknown
1883 # See if sys/param.h defines the BYTE_ORDER macro.
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <sys/types.h>
1888 #include <sys/param.h>
1889 int main() {
1891 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1892 bogus endian macros
1893 #endif
1894 ; return 0; }
1896 if { (eval echo configure:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1897 rm -rf conftest*
1898 # It does; now see whether it defined to BIG_ENDIAN or not.
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 #include <sys/types.h>
1903 #include <sys/param.h>
1904 int main() {
1906 #if BYTE_ORDER != BIG_ENDIAN
1907 not big endian
1908 #endif
1909 ; return 0; }
1911 if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1912 rm -rf conftest*
1913 ac_cv_c_bigendian=yes
1914 else
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 rm -rf conftest*
1918 ac_cv_c_bigendian=no
1920 rm -f conftest*
1921 else
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 rm -f conftest*
1926 if test $ac_cv_c_bigendian = unknown; then
1927 if test "$cross_compiling" = yes; then
1928 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1929 else
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 main () {
1934 /* Are we little or big endian? From Harbison&Steele. */
1935 union
1937 long l;
1938 char c[sizeof (long)];
1939 } u;
1940 u.l = 1;
1941 exit (u.c[sizeof (long) - 1] == 1);
1944 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1945 then
1946 ac_cv_c_bigendian=no
1947 else
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1950 rm -fr conftest*
1951 ac_cv_c_bigendian=yes
1953 rm -fr conftest*
1959 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1960 if test $ac_cv_c_bigendian = yes; then
1961 cat >> confdefs.h <<\EOF
1962 #define WORDS_BIGENDIAN 1
1968 # Check whether --with-system-zlib or --without-system-zlib was given.
1969 if test "${with_system_zlib+set}" = set; then
1970 withval="$with_system_zlib"
1975 ZLIBS=
1976 ZDEPS=
1977 ZINCS=
1978 use_zlib=maybe
1979 if test "$with_system_zlib" = yes; then
1980 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1981 echo "configure:1982: checking for deflate in -lz" >&5
1982 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986 ac_save_LIBS="$LIBS"
1987 LIBS="-lz $LIBS"
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 /* Override any gcc2 internal prototype to avoid an error. */
1992 /* We use char because int might match the return type of a gcc2
1993 builtin and then its argument prototype would still apply. */
1994 char deflate();
1996 int main() {
1997 deflate()
1998 ; return 0; }
2000 if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001 rm -rf conftest*
2002 eval "ac_cv_lib_$ac_lib_var=yes"
2003 else
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 rm -rf conftest*
2007 eval "ac_cv_lib_$ac_lib_var=no"
2009 rm -f conftest*
2010 LIBS="$ac_save_LIBS"
2013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ZLIBS=-lz
2016 else
2017 echo "$ac_t""no" 1>&6
2018 use_zlib=no
2021 else
2022 use_zlib=no
2025 if test "$use_zlib" = no; then
2026 # Brain dead way to find tree's zlib.
2027 ZDEPS='$(top_builddir)/../zlib/libz.a'
2028 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
2029 ZINCS='-I$(top_srcdir)/../zlib'
2035 trap '' 1 2 15
2036 cat > confcache <<\EOF
2037 # This file is a shell script that caches the results of configure
2038 # tests run on this system so they can be shared between configure
2039 # scripts and configure runs. It is not useful on other systems.
2040 # If it contains results you don't want to keep, you may remove or edit it.
2042 # By default, configure uses ./config.cache as the cache file,
2043 # creating it if it does not exist already. You can give configure
2044 # the --cache-file=FILE option to use a different cache file; that is
2045 # what configure does when it calls configure scripts in
2046 # subdirectories, so they share the cache.
2047 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2048 # config.status only pays attention to the cache file if you give it the
2049 # --recheck option to rerun configure.
2052 # The following way of writing the cache mishandles newlines in values,
2053 # but we know of no workaround that is simple, portable, and efficient.
2054 # So, don't put newlines in cache variables' values.
2055 # Ultrix sh set writes to stderr and can't be redirected directly,
2056 # and sets the high bit in the cache file unless we assign to the vars.
2057 (set) 2>&1 |
2058 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2059 *ac_space=\ *)
2060 # `set' does not quote correctly, so add quotes (double-quote substitution
2061 # turns \\\\ into \\, and sed turns \\ into \).
2062 sed -n \
2063 -e "s/'/'\\\\''/g" \
2064 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2067 # `set' quotes correctly as required by POSIX, so do not add quotes.
2068 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2070 esac >> confcache
2071 if cmp -s $cache_file confcache; then
2073 else
2074 if test -w $cache_file; then
2075 echo "updating cache $cache_file"
2076 cat confcache > $cache_file
2077 else
2078 echo "not updating unwritable cache $cache_file"
2081 rm -f confcache
2083 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2086 # Let make expand exec_prefix.
2087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2089 # Any assignment to VPATH causes Sun make to only execute
2090 # the first set of double-colon rules, so remove it if not needed.
2091 # If there is a colon in the path, we need to keep it.
2092 if test "x$srcdir" = x.; then
2093 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2096 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2098 DEFS=-DHAVE_CONFIG_H
2100 # Without the "./", some shells look in PATH for config.status.
2101 : ${CONFIG_STATUS=./config.status}
2103 echo creating $CONFIG_STATUS
2104 rm -f $CONFIG_STATUS
2105 cat > $CONFIG_STATUS <<EOF
2106 #! /bin/sh
2107 # Generated automatically by configure.
2108 # Run this file to recreate the current configuration.
2109 # This directory was configured as follows,
2110 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2112 # $0 $ac_configure_args
2114 # Compiler output produced by configure, useful for debugging
2115 # configure, is in ./config.log if it exists.
2117 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2118 for ac_option
2120 case "\$ac_option" in
2121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2122 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2123 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2124 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2125 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2126 exit 0 ;;
2127 -help | --help | --hel | --he | --h)
2128 echo "\$ac_cs_usage"; exit 0 ;;
2129 *) echo "\$ac_cs_usage"; exit 1 ;;
2130 esac
2131 done
2133 ac_given_srcdir=$srcdir
2134 ac_given_INSTALL="$INSTALL"
2136 trap 'rm -fr `echo "Makefile install-defs.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2138 cat >> $CONFIG_STATUS <<EOF
2140 # Protect against being on the right side of a sed subst in config.status.
2141 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2142 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2143 $ac_vpsub
2144 $extrasub
2145 s%@SHELL@%$SHELL%g
2146 s%@CFLAGS@%$CFLAGS%g
2147 s%@CPPFLAGS@%$CPPFLAGS%g
2148 s%@CXXFLAGS@%$CXXFLAGS%g
2149 s%@FFLAGS@%$FFLAGS%g
2150 s%@DEFS@%$DEFS%g
2151 s%@LDFLAGS@%$LDFLAGS%g
2152 s%@LIBS@%$LIBS%g
2153 s%@exec_prefix@%$exec_prefix%g
2154 s%@prefix@%$prefix%g
2155 s%@program_transform_name@%$program_transform_name%g
2156 s%@bindir@%$bindir%g
2157 s%@sbindir@%$sbindir%g
2158 s%@libexecdir@%$libexecdir%g
2159 s%@datadir@%$datadir%g
2160 s%@sysconfdir@%$sysconfdir%g
2161 s%@sharedstatedir@%$sharedstatedir%g
2162 s%@localstatedir@%$localstatedir%g
2163 s%@libdir@%$libdir%g
2164 s%@includedir@%$includedir%g
2165 s%@oldincludedir@%$oldincludedir%g
2166 s%@infodir@%$infodir%g
2167 s%@mandir@%$mandir%g
2168 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2169 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2170 s%@INSTALL_DATA@%$INSTALL_DATA%g
2171 s%@PACKAGE@%$PACKAGE%g
2172 s%@VERSION@%$VERSION%g
2173 s%@ACLOCAL@%$ACLOCAL%g
2174 s%@AUTOCONF@%$AUTOCONF%g
2175 s%@AUTOMAKE@%$AUTOMAKE%g
2176 s%@AUTOHEADER@%$AUTOHEADER%g
2177 s%@MAKEINFO@%$MAKEINFO%g
2178 s%@SET_MAKE@%$SET_MAKE%g
2179 s%@CC@%$CC%g
2180 s%@RM@%$RM%g
2181 s%@CP@%$CP%g
2182 s%@STRIP@%$STRIP%g
2183 s%@CHMOD@%$CHMOD%g
2184 s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
2185 s%@CPP@%$CPP%g
2186 s%@ZLIBS@%$ZLIBS%g
2187 s%@ZDEPS@%$ZDEPS%g
2188 s%@ZINCS@%$ZINCS%g
2190 CEOF
2193 cat >> $CONFIG_STATUS <<\EOF
2195 # Split the substitutions into bite-sized pieces for seds with
2196 # small command number limits, like on Digital OSF/1 and HP-UX.
2197 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2198 ac_file=1 # Number of current file.
2199 ac_beg=1 # First line for current file.
2200 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2201 ac_more_lines=:
2202 ac_sed_cmds=""
2203 while $ac_more_lines; do
2204 if test $ac_beg -gt 1; then
2205 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2206 else
2207 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2209 if test ! -s conftest.s$ac_file; then
2210 ac_more_lines=false
2211 rm -f conftest.s$ac_file
2212 else
2213 if test -z "$ac_sed_cmds"; then
2214 ac_sed_cmds="sed -f conftest.s$ac_file"
2215 else
2216 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2218 ac_file=`expr $ac_file + 1`
2219 ac_beg=$ac_end
2220 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2222 done
2223 if test -z "$ac_sed_cmds"; then
2224 ac_sed_cmds=cat
2228 cat >> $CONFIG_STATUS <<EOF
2230 CONFIG_FILES=\${CONFIG_FILES-"Makefile install-defs.sh"}
2232 cat >> $CONFIG_STATUS <<\EOF
2233 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2234 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2235 case "$ac_file" in
2236 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2237 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2238 *) ac_file_in="${ac_file}.in" ;;
2239 esac
2241 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2243 # Remove last slash and all that follows it. Not all systems have dirname.
2244 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2245 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2246 # The file is in a subdirectory.
2247 test ! -d "$ac_dir" && mkdir "$ac_dir"
2248 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2249 # A "../" for each directory in $ac_dir_suffix.
2250 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2251 else
2252 ac_dir_suffix= ac_dots=
2255 case "$ac_given_srcdir" in
2256 .) srcdir=.
2257 if test -z "$ac_dots"; then top_srcdir=.
2258 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2259 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2260 *) # Relative path.
2261 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2262 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2263 esac
2265 case "$ac_given_INSTALL" in
2266 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2267 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2268 esac
2270 echo creating "$ac_file"
2271 rm -f "$ac_file"
2272 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2273 case "$ac_file" in
2274 *Makefile*) ac_comsub="1i\\
2275 # $configure_input" ;;
2276 *) ac_comsub= ;;
2277 esac
2279 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2280 sed -e "$ac_comsub
2281 s%@configure_input@%$configure_input%g
2282 s%@srcdir@%$srcdir%g
2283 s%@top_srcdir@%$top_srcdir%g
2284 s%@INSTALL@%$INSTALL%g
2285 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2286 fi; done
2287 rm -f conftest.s*
2289 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2290 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2292 # ac_d sets the value in "#define NAME VALUE" lines.
2293 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2294 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2295 ac_dC='\3'
2296 ac_dD='%g'
2297 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2298 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2299 ac_uB='\([ ]\)%\1#\2define\3'
2300 ac_uC=' '
2301 ac_uD='\4%g'
2302 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2303 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2304 ac_eB='$%\1#\2define\3'
2305 ac_eC=' '
2306 ac_eD='%g'
2308 if test "${CONFIG_HEADERS+set}" != set; then
2310 cat >> $CONFIG_STATUS <<EOF
2311 CONFIG_HEADERS="config.h"
2313 cat >> $CONFIG_STATUS <<\EOF
2315 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2317 case "$ac_file" in
2318 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2319 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2320 *) ac_file_in="${ac_file}.in" ;;
2321 esac
2323 echo creating $ac_file
2325 rm -f conftest.frag conftest.in conftest.out
2326 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2327 cat $ac_file_inputs > conftest.in
2331 # Transform confdefs.h into a sed script conftest.vals that substitutes
2332 # the proper values into config.h.in to produce config.h. And first:
2333 # Protect against being on the right side of a sed subst in config.status.
2334 # Protect against being in an unquoted here document in config.status.
2335 rm -f conftest.vals
2336 cat > conftest.hdr <<\EOF
2337 s/[\\&%]/\\&/g
2338 s%[\\$`]%\\&%g
2339 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2340 s%ac_d%ac_u%gp
2341 s%ac_u%ac_e%gp
2343 sed -n -f conftest.hdr confdefs.h > conftest.vals
2344 rm -f conftest.hdr
2346 # This sed command replaces #undef with comments. This is necessary, for
2347 # example, in the case of _POSIX_SOURCE, which is predefined and required
2348 # on some systems where configure will not decide to define it.
2349 cat >> conftest.vals <<\EOF
2350 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2353 # Break up conftest.vals because some shells have a limit on
2354 # the size of here documents, and old seds have small limits too.
2356 rm -f conftest.tail
2357 while :
2359 ac_lines=`grep -c . conftest.vals`
2360 # grep -c gives empty output for an empty file on some AIX systems.
2361 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2362 # Write a limited-size here document to conftest.frag.
2363 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2364 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2365 echo 'CEOF
2366 sed -f conftest.frag conftest.in > conftest.out
2367 rm -f conftest.in
2368 mv conftest.out conftest.in
2369 ' >> $CONFIG_STATUS
2370 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2371 rm -f conftest.vals
2372 mv conftest.tail conftest.vals
2373 done
2374 rm -f conftest.vals
2376 cat >> $CONFIG_STATUS <<\EOF
2377 rm -f conftest.frag conftest.h
2378 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2379 cat conftest.in >> conftest.h
2380 rm -f conftest.in
2381 if cmp -s $ac_file conftest.h 2>/dev/null; then
2382 echo "$ac_file is unchanged"
2383 rm -f conftest.h
2384 else
2385 # Remove last slash and all that follows it. Not all systems have dirname.
2386 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2387 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2388 # The file is in a subdirectory.
2389 test ! -d "$ac_dir" && mkdir "$ac_dir"
2391 rm -f $ac_file
2392 mv conftest.h $ac_file
2394 fi; done
2397 cat >> $CONFIG_STATUS <<EOF
2401 cat >> $CONFIG_STATUS <<\EOF
2402 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2404 exit 0
2406 chmod +x $CONFIG_STATUS
2407 rm -fr confdefs* $ac_clean_files
2408 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1