fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / fastjar / configure
blob39c1540f8c315122350ea47389e1acac5a91f0bc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="jartool.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RM CP CHMOD MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fastjar_warn_cflags CPP EGREP ZLIBS ZDEPS ZINCS GENINSRC_TRUE GENINSRC_FALSE gcc_version LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837 _ACEOF
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --disable-dependency-tracking Speeds up one-time builds
848 --enable-dependency-tracking Do not reject slow dependency extractors
849 --enable-maintainer-mode enable make rules and dependencies not useful
850 (and sometimes confusing) to the casual installer
851 --enable-generated-files-in-srcdir
852 put copies of generated files in source dir
853 intended for creating source tarballs for users
854 without texinfo, perl, bison or flex.
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-system-zlib use installed libz
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 cd $ac_popdir
929 done
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934 cat <<\_ACEOF
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
940 _ACEOF
941 exit 0
943 exec 5>config.log
944 cat >&5 <<_ACEOF
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.57. Invocation command line was
951 $ $0 $@
953 _ACEOF
955 cat <<_ASUNAME
956 ## --------- ##
957 ## Platform. ##
958 ## --------- ##
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 _ASUNAME
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 for as_dir in $PATH
982 IFS=$as_save_IFS
983 test -z "$as_dir" && as_dir=.
984 echo "PATH: $as_dir"
985 done
987 } >&5
989 cat >&5 <<_ACEOF
992 ## ----------- ##
993 ## Core tests. ##
994 ## ----------- ##
996 _ACEOF
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_configure_args=
1005 ac_configure_args0=
1006 ac_configure_args1=
1007 ac_sep=
1008 ac_must_keep_next=false
1009 for ac_pass in 1 2
1011 for ac_arg
1013 case $ac_arg in
1014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 continue ;;
1018 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020 esac
1021 case $ac_pass in
1022 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025 if test $ac_must_keep_next = true; then
1026 ac_must_keep_next=false # Got value, back to normal.
1027 else
1028 case $ac_arg in
1029 *=* | --config-cache | -C | -disable-* | --disable-* \
1030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032 | -with-* | --with-* | -without-* | --without-* | --x)
1033 case "$ac_configure_args0 " in
1034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 esac
1037 -* ) ac_must_keep_next=true ;;
1038 esac
1040 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1042 ac_sep=" "
1044 esac
1045 done
1046 done
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1058 echo
1060 cat <<\_ASBOX
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1064 _ASBOX
1065 echo
1066 # The following way of writing the cache mishandles newlines in values,
1068 (set) 2>&1 |
1069 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 *ac_space=\ *)
1071 sed -n \
1072 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 sed -n \
1077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079 esac;
1081 echo
1083 cat <<\_ASBOX
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1087 _ASBOX
1088 echo
1089 for ac_var in $ac_subst_vars
1091 eval ac_val=$`echo $ac_var`
1092 echo "$ac_var='"'"'$ac_val'"'"'"
1093 done | sort
1094 echo
1096 if test -n "$ac_subst_files"; then
1097 cat <<\_ASBOX
1098 ## ------------- ##
1099 ## Output files. ##
1100 ## ------------- ##
1101 _ASBOX
1102 echo
1103 for ac_var in $ac_subst_files
1105 eval ac_val=$`echo $ac_var`
1106 echo "$ac_var='"'"'$ac_val'"'"'"
1107 done | sort
1108 echo
1111 if test -s confdefs.h; then
1112 cat <<\_ASBOX
1113 ## ----------- ##
1114 ## confdefs.h. ##
1115 ## ----------- ##
1116 _ASBOX
1117 echo
1118 sed "/^$/d" confdefs.h | sort
1119 echo
1121 test "$ac_signal" != 0 &&
1122 echo "$as_me: caught signal $ac_signal"
1123 echo "$as_me: exit $exit_status"
1124 } >&5
1125 rm -f core core.* *.core &&
1126 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 exit $exit_status
1129 for ac_signal in 1 2 13 15; do
1130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 done
1132 ac_signal=0
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 echo >confdefs.h
1139 # Predefined preprocessor variables.
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 _ACEOF
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 _ACEOF
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 _ACEOF
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 _ACEOF
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 _ACEOF
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169 if test "x$prefix" != xNONE; then
1170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171 else
1172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 for ac_site_file in $CONFIG_SITE; do
1176 if test -r "$ac_site_file"; then
1177 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179 sed 's/^/| /' "$ac_site_file" >&5
1180 . "$ac_site_file"
1182 done
1184 if test -r "$cache_file"; then
1185 # Some versions of bash will fail to source /dev/null (special
1186 # files actually), so we avoid doing that.
1187 if test -f "$cache_file"; then
1188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1190 case $cache_file in
1191 [\\/]* | ?:[\\/]* ) . $cache_file;;
1192 *) . ./$cache_file;;
1193 esac
1195 else
1196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1198 >$cache_file
1201 # Check that the precious variables saved in the cache have kept the same
1202 # value.
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207 eval ac_new_set=\$ac_env_${ac_var}_set
1208 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209 eval ac_new_val="\$ac_env_${ac_var}_value"
1210 case $ac_old_set,$ac_new_set in
1211 set,)
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1215 ,set)
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1219 ,);;
1221 if test "x$ac_old_val" != "x$ac_new_val"; then
1222 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1225 echo "$as_me: former value: $ac_old_val" >&2;}
1226 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1227 echo "$as_me: current value: $ac_new_val" >&2;}
1228 ac_cache_corrupted=:
1229 fi;;
1230 esac
1231 # Pass precious variables to config.status.
1232 if test "$ac_new_set" = set; then
1233 case $ac_new_val in
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 *) ac_arg=$ac_var=$ac_new_val ;;
1237 esac
1238 case " $ac_configure_args " in
1239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241 esac
1243 done
1244 if $ac_cache_corrupted; then
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 am__api_version="1.7"
1277 ac_aux_dir=
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279 if test -f $ac_dir/install-sh; then
1280 ac_aux_dir=$ac_dir
1281 ac_install_sh="$ac_aux_dir/install-sh -c"
1282 break
1283 elif test -f $ac_dir/install.sh; then
1284 ac_aux_dir=$ac_dir
1285 ac_install_sh="$ac_aux_dir/install.sh -c"
1286 break
1287 elif test -f $ac_dir/shtool; then
1288 ac_aux_dir=$ac_dir
1289 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 break
1292 done
1293 if test -z "$ac_aux_dir"; then
1294 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296 { (exit 1); exit 1; }; }
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1302 # Find a good install program. We prefer a C program (faster),
1303 # so one script is as good as another. But avoid the broken or
1304 # incompatible versions:
1305 # SysV /etc/install, /usr/sbin/install
1306 # SunOS /usr/etc/install
1307 # IRIX /sbin/install
1308 # AIX /bin/install
1309 # AmigaOS /C/install, which installs bootblocks on floppy discs
1310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1313 # ./install, which can be erroneously created by make from ./install.sh.
1314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1316 if test -z "$INSTALL"; then
1317 if test "${ac_cv_path_install+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 for as_dir in $PATH
1323 IFS=$as_save_IFS
1324 test -z "$as_dir" && as_dir=.
1325 # Account for people who put trailing slashes in PATH elements.
1326 case $as_dir/ in
1327 ./ | .// | /cC/* | \
1328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1329 /usr/ucb/* ) ;;
1331 # OSF1 and SCO ODT 3.0 have their own names for install.
1332 # Don't use installbsd from OSF since it installs stuff as root
1333 # by default.
1334 for ac_prog in ginstall scoinst install; do
1335 for ac_exec_ext in '' $ac_executable_extensions; do
1336 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1337 if test $ac_prog = install &&
1338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1339 # AIX install. It has an incompatible calling convention.
1341 elif test $ac_prog = install &&
1342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1343 # program-specific install script used by HP pwplus--don't use.
1345 else
1346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1347 break 3
1350 done
1351 done
1353 esac
1354 done
1358 if test "${ac_cv_path_install+set}" = set; then
1359 INSTALL=$ac_cv_path_install
1360 else
1361 # As a last resort, use the slow shell script. We don't cache a
1362 # path for INSTALL within a source directory, because that will
1363 # break other packages using the cache if that directory is
1364 # removed, or if the path is relative.
1365 INSTALL=$ac_install_sh
1368 echo "$as_me:$LINENO: result: $INSTALL" >&5
1369 echo "${ECHO_T}$INSTALL" >&6
1371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1372 # It thinks the first close brace ends the variable substitution.
1373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1379 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1380 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1381 # Just in case
1382 sleep 1
1383 echo timestamp > conftest.file
1384 # Do `set' in a subshell so we don't clobber the current shell's
1385 # arguments. Must try -L first in case configure is actually a
1386 # symlink; some systems play weird games with the mod time of symlinks
1387 # (eg FreeBSD returns the mod time of the symlink's containing
1388 # directory).
1389 if (
1390 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1391 if test "$*" = "X"; then
1392 # -L didn't work.
1393 set X `ls -t $srcdir/configure conftest.file`
1395 rm -f conftest.file
1396 if test "$*" != "X $srcdir/configure conftest.file" \
1397 && test "$*" != "X conftest.file $srcdir/configure"; then
1399 # If neither matched, then we have a broken ls. This can happen
1400 # if, for instance, CONFIG_SHELL is bash and it inherits a
1401 # broken ls alias from the environment. This has actually
1402 # happened. Such a system could not be considered "sane".
1403 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1404 alias in your environment" >&5
1405 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1406 alias in your environment" >&2;}
1407 { (exit 1); exit 1; }; }
1410 test "$2" = conftest.file
1412 then
1413 # Ok.
1415 else
1416 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1417 Check your system clock" >&5
1418 echo "$as_me: error: newly created file is older than distributed files!
1419 Check your system clock" >&2;}
1420 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: yes" >&5
1423 echo "${ECHO_T}yes" >&6
1424 test "$program_prefix" != NONE &&
1425 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1426 # Use a double $ so make ignores it.
1427 test "$program_suffix" != NONE &&
1428 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1429 # Double any \ or $. echo might interpret backslashes.
1430 # By default was `s,x,x', remove it if useless.
1431 cat <<\_ACEOF >conftest.sed
1432 s/[\\$]/&&/g;s/;s,x,x,$//
1433 _ACEOF
1434 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1435 rm conftest.sed
1438 # expand $ac_aux_dir to an absolute path
1439 am_aux_dir=`cd $ac_aux_dir && pwd`
1441 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1442 # Use eval to expand $SHELL
1443 if eval "$MISSING --run true"; then
1444 am_missing_run="$MISSING --run "
1445 else
1446 am_missing_run=
1447 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1448 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1451 for ac_prog in gawk mawk nawk awk
1453 # Extract the first word of "$ac_prog", so it can be a program name with args.
1454 set dummy $ac_prog; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_AWK+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460 if test -n "$AWK"; then
1461 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1462 else
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 for as_dir in $PATH
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_AWK="$ac_prog"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 break 2
1474 done
1475 done
1479 AWK=$ac_cv_prog_AWK
1480 if test -n "$AWK"; then
1481 echo "$as_me:$LINENO: result: $AWK" >&5
1482 echo "${ECHO_T}$AWK" >&6
1483 else
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1488 test -n "$AWK" && break
1489 done
1491 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1492 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1493 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1494 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497 cat >conftest.make <<\_ACEOF
1498 all:
1499 @echo 'ac_maketemp="$(MAKE)"'
1500 _ACEOF
1501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1502 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1503 if test -n "$ac_maketemp"; then
1504 eval ac_cv_prog_make_${ac_make}_set=yes
1505 else
1506 eval ac_cv_prog_make_${ac_make}_set=no
1508 rm -f conftest.make
1510 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1511 echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1513 SET_MAKE=
1514 else
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 SET_MAKE="MAKE=${MAKE-make}"
1520 rm -rf .tst 2>/dev/null
1521 mkdir .tst 2>/dev/null
1522 if test -d .tst; then
1523 am__leading_dot=.
1524 else
1525 am__leading_dot=_
1527 rmdir .tst 2>/dev/null
1529 # test to see if srcdir already configured
1530 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1531 test -f $srcdir/config.status; then
1532 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1533 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1534 { (exit 1); exit 1; }; }
1537 # test whether we have cygpath
1538 if test -z "$CYGPATH_W"; then
1539 if (cygpath --version) >/dev/null 2>/dev/null; then
1540 CYGPATH_W='cygpath -w'
1541 else
1542 CYGPATH_W=echo
1547 # Define the identity of the package.
1548 PACKAGE=fastjar
1549 VERSION=0.92-gcc
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE "$PACKAGE"
1554 _ACEOF
1557 cat >>confdefs.h <<_ACEOF
1558 #define VERSION "$VERSION"
1559 _ACEOF
1561 # Some tools Automake needs.
1563 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1566 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1569 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1572 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1575 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1578 AMTAR=${AMTAR-"${am_missing_run}tar"}
1580 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1582 # Installed binaries are usually stripped using `strip' when the user
1583 # run `make install-strip'. However `strip' might not be the right
1584 # tool to use in cross-compilation environments, therefore Automake
1585 # will honor the `STRIP' environment variable to overrule this program.
1586 if test "$cross_compiling" != no; then
1587 if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}strip; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_STRIP+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 if test -n "$STRIP"; then
1596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1609 done
1610 done
1614 STRIP=$ac_cv_prog_STRIP
1615 if test -n "$STRIP"; then
1616 echo "$as_me:$LINENO: result: $STRIP" >&5
1617 echo "${ECHO_T}$STRIP" >&6
1618 else
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1624 if test -z "$ac_cv_prog_STRIP"; then
1625 ac_ct_STRIP=$STRIP
1626 # Extract the first word of "strip", so it can be a program name with args.
1627 set dummy strip; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633 if test -n "$ac_ct_STRIP"; then
1634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_STRIP="strip"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1647 done
1648 done
1650 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1654 if test -n "$ac_ct_STRIP"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1656 echo "${ECHO_T}$ac_ct_STRIP" >&6
1657 else
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1662 STRIP=$ac_ct_STRIP
1663 else
1664 STRIP="$ac_cv_prog_STRIP"
1668 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1670 # We need awk for the "check" target. The system "awk" is bad on
1671 # some platforms.
1675 ac_config_headers="$ac_config_headers config.h"
1678 ac_ext=c
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1705 done
1706 done
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1720 if test -z "$ac_cv_prog_CC"; then
1721 ac_ct_CC=$CC
1722 # Extract the first word of "gcc", so it can be a program name with args.
1723 set dummy gcc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="gcc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 CC=$ac_ct_CC
1758 else
1759 CC="$ac_cv_prog_CC"
1762 if test -z "$CC"; then
1763 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="${ac_tool_prefix}cc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1785 done
1786 done
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1800 if test -z "$ac_cv_prog_CC"; then
1801 ac_ct_CC=$CC
1802 # Extract the first word of "cc", so it can be a program name with args.
1803 set dummy cc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$ac_ct_CC"; then
1810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_ac_ct_CC="cc"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1823 done
1824 done
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 CC=$ac_ct_CC
1838 else
1839 CC="$ac_cv_prog_CC"
1843 if test -z "$CC"; then
1844 # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854 ac_prog_rejected=no
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1863 ac_prog_rejected=yes
1864 continue
1866 ac_cv_prog_CC="cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1870 done
1871 done
1873 if test $ac_prog_rejected = yes; then
1874 # We found a bogon in the path, so make sure we never use it.
1875 set dummy $ac_cv_prog_CC
1876 shift
1877 if test $# != 0; then
1878 # We chose a different compiler from the bogus one.
1879 # However, it has the same basename, so the bogon will be chosen
1880 # first if we set CC to just the basename; use the full file name.
1881 shift
1882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1887 CC=$ac_cv_prog_CC
1888 if test -n "$CC"; then
1889 echo "$as_me:$LINENO: result: $CC" >&5
1890 echo "${ECHO_T}$CC" >&6
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$CC"; then
1898 if test -n "$ac_tool_prefix"; then
1899 for ac_prog in cl
1901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1922 done
1923 done
1927 CC=$ac_cv_prog_CC
1928 if test -n "$CC"; then
1929 echo "$as_me:$LINENO: result: $CC" >&5
1930 echo "${ECHO_T}$CC" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1936 test -n "$CC" && break
1937 done
1939 if test -z "$CC"; then
1940 ac_ct_CC=$CC
1941 for ac_prog in cl
1943 # Extract the first word of "$ac_prog", so it can be a program name with args.
1944 set dummy $ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="$ac_prog"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1978 test -n "$ac_ct_CC" && break
1979 done
1981 CC=$ac_ct_CC
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1993 # Provide some information about the compiler.
1994 echo "$as_me:$LINENO:" \
1995 "checking for C compiler version" >&5
1996 ac_compiler=`set X $ac_compile; echo $2`
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1998 (eval $ac_compiler --version </dev/null >&5) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2003 (eval $ac_compiler -v </dev/null >&5) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2008 (eval $ac_compiler -V </dev/null >&5) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }
2013 cat >conftest.$ac_ext <<_ACEOF
2014 #line $LINENO "configure"
2015 /* confdefs.h. */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2022 main ()
2026 return 0;
2028 _ACEOF
2029 ac_clean_files_save=$ac_clean_files
2030 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2031 # Try to create an executable without -o first, disregard a.out.
2032 # It will help us diagnose broken compilers, and finding out an intuition
2033 # of exeext.
2034 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2035 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2036 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2037 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2038 (eval $ac_link_default) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 # Find the output, starting from the most likely. This scheme is
2043 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2044 # resort.
2046 # Be careful to initialize this variable, since it used to be cached.
2047 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048 ac_cv_exeext=
2049 # b.out is created by i960 compilers.
2050 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2052 test -f "$ac_file" || continue
2053 case $ac_file in
2054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2056 conftest.$ac_ext )
2057 # This is the source file.
2059 [ab].out )
2060 # We found the default executable, but exeext='' is most
2061 # certainly right.
2062 break;;
2063 *.* )
2064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2065 # FIXME: I believe we export ac_cv_exeext for Libtool,
2066 # but it would be cool to find out if it's true. Does anybody
2067 # maintain Libtool? --akim.
2068 export ac_cv_exeext
2069 break;;
2071 break;;
2072 esac
2073 done
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2078 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: C compiler cannot create executables
2081 See \`config.log' for more details." >&2;}
2082 { (exit 77); exit 77; }; }
2085 ac_exeext=$ac_cv_exeext
2086 echo "$as_me:$LINENO: result: $ac_file" >&5
2087 echo "${ECHO_T}$ac_file" >&6
2089 # Check the compiler produces executables we can run. If not, either
2090 # the compiler is broken, or we cross compile.
2091 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2092 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2093 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2094 # If not cross compiling, check that we can run a simple program.
2095 if test "$cross_compiling" != yes; then
2096 if { ac_try='./$ac_file'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2102 cross_compiling=no
2103 else
2104 if test "$cross_compiling" = maybe; then
2105 cross_compiling=yes
2106 else
2107 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2108 If you meant to cross compile, use \`--host'.
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: cannot run C compiled programs.
2111 If you meant to cross compile, use \`--host'.
2112 See \`config.log' for more details." >&2;}
2113 { (exit 1); exit 1; }; }
2117 echo "$as_me:$LINENO: result: yes" >&5
2118 echo "${ECHO_T}yes" >&6
2120 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2121 ac_clean_files=$ac_clean_files_save
2122 # Check the compiler produces executables we can run. If not, either
2123 # the compiler is broken, or we cross compile.
2124 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2125 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2126 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2127 echo "${ECHO_T}$cross_compiling" >&6
2129 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2130 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2132 (eval $ac_link) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2137 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2138 # work properly (i.e., refer to `conftest.exe'), while it won't with
2139 # `rm'.
2140 for ac_file in conftest.exe conftest conftest.*; do
2141 test -f "$ac_file" || continue
2142 case $ac_file in
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2145 export ac_cv_exeext
2146 break;;
2147 * ) break;;
2148 esac
2149 done
2150 else
2151 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2154 See \`config.log' for more details." >&2;}
2155 { (exit 1); exit 1; }; }
2158 rm -f conftest$ac_cv_exeext
2159 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2160 echo "${ECHO_T}$ac_cv_exeext" >&6
2162 rm -f conftest.$ac_ext
2163 EXEEXT=$ac_cv_exeext
2164 ac_exeext=$EXEEXT
2165 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2166 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2167 if test "${ac_cv_objext+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2179 main ()
2183 return 0;
2185 _ACEOF
2186 rm -f conftest.o conftest.obj
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193 case $ac_file in
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2196 break;;
2197 esac
2198 done
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2206 See \`config.log' for more details." >&2;}
2207 { (exit 1); exit 1; }; }
2210 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2212 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2213 echo "${ECHO_T}$ac_cv_objext" >&6
2214 OBJEXT=$ac_cv_objext
2215 ac_objext=$OBJEXT
2216 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2217 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2218 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #line $LINENO "configure"
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2232 #ifndef __GNUC__
2233 choke me
2234 #endif
2237 return 0;
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 ac_compiler_gnu=yes
2253 else
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 ac_compiler_gnu=no
2259 rm -f conftest.$ac_objext conftest.$ac_ext
2260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2263 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2264 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2265 GCC=`test $ac_compiler_gnu = yes && echo yes`
2266 ac_test_CFLAGS=${CFLAGS+set}
2267 ac_save_CFLAGS=$CFLAGS
2268 CFLAGS="-g"
2269 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2270 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2271 if test "${ac_cv_prog_cc_g+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line $LINENO "configure"
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2283 main ()
2287 return 0;
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 ac_cv_prog_cc_g=yes
2303 else
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 ac_cv_prog_cc_g=no
2309 rm -f conftest.$ac_objext conftest.$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313 if test "$ac_test_CFLAGS" = set; then
2314 CFLAGS=$ac_save_CFLAGS
2315 elif test $ac_cv_prog_cc_g = yes; then
2316 if test "$GCC" = yes; then
2317 CFLAGS="-g -O2"
2318 else
2319 CFLAGS="-g"
2321 else
2322 if test "$GCC" = yes; then
2323 CFLAGS="-O2"
2324 else
2325 CFLAGS=
2328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 ac_cv_prog_cc_stdc=no
2334 ac_save_CC=$CC
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350 char **p;
2351 int i;
2353 return p[i];
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2357 char *s;
2358 va_list v;
2359 va_start (v,p);
2360 s = g (p, va_arg (v,int));
2361 va_end (v);
2362 return s;
2364 int test (int i, double x);
2365 struct s1 {int (*f) (int a);};
2366 struct s2 {int (*f) (double a);};
2367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2368 int argc;
2369 char **argv;
2371 main ()
2373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2375 return 0;
2377 _ACEOF
2378 # Don't try gcc -ansi; that turns off useful extensions and
2379 # breaks some systems' header files.
2380 # AIX -qlanglvl=ansi
2381 # Ultrix and OSF/1 -std1
2382 # HP-UX 10.20 and later -Ae
2383 # HP-UX older versions -Aa -D_HPUX_SOURCE
2384 # SVR4 -Xc -D__EXTENSIONS__
2385 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2387 CC="$ac_save_CC $ac_arg"
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_prog_cc_stdc=$ac_arg
2401 break
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.$ac_objext
2408 done
2409 rm -f conftest.$ac_ext conftest.$ac_objext
2410 CC=$ac_save_CC
2414 case "x$ac_cv_prog_cc_stdc" in
2415 x|xno)
2416 echo "$as_me:$LINENO: result: none needed" >&5
2417 echo "${ECHO_T}none needed" >&6 ;;
2419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2420 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2421 CC="$CC $ac_cv_prog_cc_stdc" ;;
2422 esac
2424 # Some people use a C++ compiler to compile C. Since we use `exit',
2425 # in C++ we need to declare it. In case someone uses the same compiler
2426 # for both compiling C and C++ we need to have the C++ compiler decide
2427 # the declaration of exit, since it's the most demanding environment.
2428 cat >conftest.$ac_ext <<_ACEOF
2429 #ifndef __cplusplus
2430 choke me
2431 #endif
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 for ac_declaration in \
2447 '#include <stdlib.h>' \
2448 'extern "C" void std::exit (int) throw (); using std::exit;' \
2449 'extern "C" void std::exit (int); using std::exit;' \
2450 'extern "C" void exit (int) throw ();' \
2451 'extern "C" void exit (int);' \
2452 'void exit (int);'
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2461 #include <stdlib.h>
2462 $ac_declaration
2464 main ()
2466 exit (42);
2468 return 0;
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2488 continue
2490 rm -f conftest.$ac_objext conftest.$ac_ext
2491 cat >conftest.$ac_ext <<_ACEOF
2492 #line $LINENO "configure"
2493 /* confdefs.h. */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2498 $ac_declaration
2500 main ()
2502 exit (42);
2504 return 0;
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 break
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2525 rm -f conftest.$ac_objext conftest.$ac_ext
2526 done
2527 rm -f conftest*
2528 if test -n "$ac_declaration"; then
2529 echo '#ifdef __cplusplus' >>confdefs.h
2530 echo $ac_declaration >>confdefs.h
2531 echo '#endif' >>confdefs.h
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2539 rm -f conftest.$ac_objext conftest.$ac_ext
2540 ac_ext=c
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 DEPDIR="${am__leading_dot}deps"
2547 ac_config_commands="$ac_config_commands depfiles"
2550 am_make=${MAKE-make}
2551 cat > confinc << 'END'
2552 am__doit:
2553 @echo done
2554 .PHONY: am__doit
2556 # If we don't find an include directive, just comment out the code.
2557 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2558 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2559 am__include="#"
2560 am__quote=
2561 _am_result=none
2562 # First try GNU make style include.
2563 echo "include confinc" > confmf
2564 # We grep out `Entering directory' and `Leaving directory'
2565 # messages which can occur if `w' ends up in MAKEFLAGS.
2566 # In particular we don't look at `^make:' because GNU make might
2567 # be invoked under some other name (usually "gmake"), in which
2568 # case it prints its new name instead of `make'.
2569 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2570 am__include=include
2571 am__quote=
2572 _am_result=GNU
2574 # Now try BSD make style include.
2575 if test "$am__include" = "#"; then
2576 echo '.include "confinc"' > confmf
2577 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2578 am__include=.include
2579 am__quote="\""
2580 _am_result=BSD
2585 echo "$as_me:$LINENO: result: $_am_result" >&5
2586 echo "${ECHO_T}$_am_result" >&6
2587 rm -f confinc confmf
2589 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2590 if test "${enable_dependency_tracking+set}" = set; then
2591 enableval="$enable_dependency_tracking"
2594 if test "x$enable_dependency_tracking" != xno; then
2595 am_depcomp="$ac_aux_dir/depcomp"
2596 AMDEPBACKSLASH='\'
2600 if test "x$enable_dependency_tracking" != xno; then
2601 AMDEP_TRUE=
2602 AMDEP_FALSE='#'
2603 else
2604 AMDEP_TRUE='#'
2605 AMDEP_FALSE=
2611 depcc="$CC" am_compiler_list=
2613 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2614 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2615 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2619 # We make a subdir and do the tests there. Otherwise we can end up
2620 # making bogus files that we don't know about and never remove. For
2621 # instance it was reported that on HP-UX the gcc test will end up
2622 # making a dummy file named `D' -- because `-MD' means `put the output
2623 # in D'.
2624 mkdir conftest.dir
2625 # Copy depcomp to subdir because otherwise we won't find it if we're
2626 # using a relative directory.
2627 cp "$am_depcomp" conftest.dir
2628 cd conftest.dir
2629 # We will build objects and dependencies in a subdirectory because
2630 # it helps to detect inapplicable dependency modes. For instance
2631 # both Tru64's cc and ICC support -MD to output dependencies as a
2632 # side effect of compilation, but ICC will put the dependencies in
2633 # the current directory while Tru64 will put them in the object
2634 # directory.
2635 mkdir sub
2637 am_cv_CC_dependencies_compiler_type=none
2638 if test "$am_compiler_list" = ""; then
2639 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2641 for depmode in $am_compiler_list; do
2642 # Setup a source with many dependencies, because some compilers
2643 # like to wrap large dependency lists on column 80 (with \), and
2644 # we should not choose a depcomp mode which is confused by this.
2646 # We need to recreate these files for each test, as the compiler may
2647 # overwrite some of them when testing with obscure command lines.
2648 # This happens at least with the AIX C compiler.
2649 : > sub/conftest.c
2650 for i in 1 2 3 4 5 6; do
2651 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2652 : > sub/conftst$i.h
2653 done
2654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2656 case $depmode in
2657 nosideeffect)
2658 # after this tag, mechanisms are not by side-effect, so they'll
2659 # only be used when explicitly requested
2660 if test "x$enable_dependency_tracking" = xyes; then
2661 continue
2662 else
2663 break
2666 none) break ;;
2667 esac
2668 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2669 # mode. It turns out that the SunPro C++ compiler does not properly
2670 # handle `-M -o', and we need to detect this.
2671 if depmode=$depmode \
2672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2675 >/dev/null 2>conftest.err &&
2676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2677 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2679 # icc doesn't choke on unknown options, it will just issue warnings
2680 # (even with -Werror). So we grep stderr for any message
2681 # that says an option was ignored.
2682 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2683 am_cv_CC_dependencies_compiler_type=$depmode
2684 break
2687 done
2689 cd ..
2690 rm -rf conftest.dir
2691 else
2692 am_cv_CC_dependencies_compiler_type=none
2696 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2697 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2698 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2703 test "x$enable_dependency_tracking" != xno \
2704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2705 am__fastdepCC_TRUE=
2706 am__fastdepCC_FALSE='#'
2707 else
2708 am__fastdepCC_TRUE='#'
2709 am__fastdepCC_FALSE=
2713 # Find a good install program. We prefer a C program (faster),
2714 # so one script is as good as another. But avoid the broken or
2715 # incompatible versions:
2716 # SysV /etc/install, /usr/sbin/install
2717 # SunOS /usr/etc/install
2718 # IRIX /sbin/install
2719 # AIX /bin/install
2720 # AmigaOS /C/install, which installs bootblocks on floppy discs
2721 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2722 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2723 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2724 # ./install, which can be erroneously created by make from ./install.sh.
2725 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2726 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2727 if test -z "$INSTALL"; then
2728 if test "${ac_cv_path_install+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 # Account for people who put trailing slashes in PATH elements.
2737 case $as_dir/ in
2738 ./ | .// | /cC/* | \
2739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2740 /usr/ucb/* ) ;;
2742 # OSF1 and SCO ODT 3.0 have their own names for install.
2743 # Don't use installbsd from OSF since it installs stuff as root
2744 # by default.
2745 for ac_prog in ginstall scoinst install; do
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2748 if test $ac_prog = install &&
2749 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2750 # AIX install. It has an incompatible calling convention.
2752 elif test $ac_prog = install &&
2753 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2754 # program-specific install script used by HP pwplus--don't use.
2756 else
2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2758 break 3
2761 done
2762 done
2764 esac
2765 done
2769 if test "${ac_cv_path_install+set}" = set; then
2770 INSTALL=$ac_cv_path_install
2771 else
2772 # As a last resort, use the slow shell script. We don't cache a
2773 # path for INSTALL within a source directory, because that will
2774 # break other packages using the cache if that directory is
2775 # removed, or if the path is relative.
2776 INSTALL=$ac_install_sh
2779 echo "$as_me:$LINENO: result: $INSTALL" >&5
2780 echo "${ECHO_T}$INSTALL" >&6
2782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2783 # It thinks the first close brace ends the variable substitution.
2784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2790 # Extract the first word of "rm", so it can be a program name with args.
2791 set dummy rm; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_path_RM+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 case $RM in
2798 [\\/]* | ?:[\\/]*)
2799 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2804 for as_dir in $as_dummy
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2814 done
2815 done
2817 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2819 esac
2821 RM=$ac_cv_path_RM
2823 if test -n "$RM"; then
2824 echo "$as_me:$LINENO: result: $RM" >&5
2825 echo "${ECHO_T}$RM" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2831 # Extract the first word of "cp", so it can be a program name with args.
2832 set dummy cp; ac_word=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_path_CP+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 case $CP in
2839 [\\/]* | ?:[\\/]*)
2840 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2845 for as_dir in $as_dummy
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2855 done
2856 done
2858 test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
2860 esac
2862 CP=$ac_cv_path_CP
2864 if test -n "$CP"; then
2865 echo "$as_me:$LINENO: result: $CP" >&5
2866 echo "${ECHO_T}$CP" >&6
2867 else
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2872 # Extract the first word of "strip", so it can be a program name with args.
2873 set dummy strip; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_path_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 case $STRIP in
2880 [\\/]* | ?:[\\/]*)
2881 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2886 for as_dir in $as_dummy
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2899 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="/usr/bin/strip"
2901 esac
2903 STRIP=$ac_cv_path_STRIP
2905 if test -n "$STRIP"; then
2906 echo "$as_me:$LINENO: result: $STRIP" >&5
2907 echo "${ECHO_T}$STRIP" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 # Extract the first word of "chmod", so it can be a program name with args.
2914 set dummy chmod; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_path_CHMOD+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 case $CHMOD in
2921 [\\/]* | ?:[\\/]*)
2922 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2927 for as_dir in $as_dummy
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2937 done
2938 done
2940 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="/bin/chmod"
2942 esac
2944 CHMOD=$ac_cv_path_CHMOD
2946 if test -n "$CHMOD"; then
2947 echo "$as_me:$LINENO: result: $CHMOD" >&5
2948 echo "${ECHO_T}$CHMOD" >&6
2949 else
2950 echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6
2956 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2957 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2958 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2959 if test "${enable_maintainer_mode+set}" = set; then
2960 enableval="$enable_maintainer_mode"
2961 USE_MAINTAINER_MODE=$enableval
2962 else
2963 USE_MAINTAINER_MODE=no
2965 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2966 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2969 if test $USE_MAINTAINER_MODE = yes; then
2970 MAINTAINER_MODE_TRUE=
2971 MAINTAINER_MODE_FALSE='#'
2972 else
2973 MAINTAINER_MODE_TRUE='#'
2974 MAINTAINER_MODE_FALSE=
2977 MAINT=$MAINTAINER_MODE_TRUE
2981 if test "$GCC" = yes; then
2982 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
2992 ac_header_dirent=no
2993 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2994 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2995 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2996 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 #include <sys/types.h>
3008 #include <$ac_hdr>
3011 main ()
3013 if ((DIR *) 0)
3014 return 0;
3016 return 0;
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 eval "$as_ac_Header=yes"
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 eval "$as_ac_Header=no"
3038 rm -f conftest.$ac_objext conftest.$ac_ext
3040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3043 cat >>confdefs.h <<_ACEOF
3044 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3045 _ACEOF
3047 ac_header_dirent=$ac_hdr; break
3050 done
3051 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3052 if test $ac_header_dirent = dirent.h; then
3053 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3055 if test "${ac_cv_search_opendir+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 ac_func_search_save_LIBS=$LIBS
3059 ac_cv_search_opendir=no
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line $LINENO "configure"
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 #ifdef __cplusplus
3070 extern "C"
3071 #endif
3072 /* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3074 char opendir ();
3076 main ()
3078 opendir ();
3080 return 0;
3082 _ACEOF
3083 rm -f conftest.$ac_objext conftest$ac_exeext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -s conftest$ac_exeext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_cv_search_opendir="none required"
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3102 if test "$ac_cv_search_opendir" = no; then
3103 for ac_lib in dir; do
3104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3105 cat >conftest.$ac_ext <<_ACEOF
3106 #line $LINENO "configure"
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 #ifdef __cplusplus
3115 extern "C"
3116 #endif
3117 /* We use char because int might match the return type of a gcc2
3118 builtin and then its argument prototype would still apply. */
3119 char opendir ();
3121 main ()
3123 opendir ();
3125 return 0;
3127 _ACEOF
3128 rm -f conftest.$ac_objext conftest$ac_exeext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3130 (eval $ac_link) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -s conftest$ac_exeext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 ac_cv_search_opendir="-l$ac_lib"
3141 break
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3148 done
3150 LIBS=$ac_func_search_save_LIBS
3152 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3153 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3154 if test "$ac_cv_search_opendir" != no; then
3155 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3159 else
3160 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3162 if test "${ac_cv_search_opendir+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 ac_func_search_save_LIBS=$LIBS
3166 ac_cv_search_opendir=no
3167 cat >conftest.$ac_ext <<_ACEOF
3168 #line $LINENO "configure"
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 #ifdef __cplusplus
3177 extern "C"
3178 #endif
3179 /* We use char because int might match the return type of a gcc2
3180 builtin and then its argument prototype would still apply. */
3181 char opendir ();
3183 main ()
3185 opendir ();
3187 return 0;
3189 _ACEOF
3190 rm -f conftest.$ac_objext conftest$ac_exeext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3192 (eval $ac_link) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest$ac_exeext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 ac_cv_search_opendir="none required"
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3209 if test "$ac_cv_search_opendir" = no; then
3210 for ac_lib in x; do
3211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3220 /* Override any gcc2 internal prototype to avoid an error. */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226 char opendir ();
3228 main ()
3230 opendir ();
3232 return 0;
3234 _ACEOF
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237 (eval $ac_link) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest$ac_exeext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_search_opendir="-l$ac_lib"
3248 break
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 done
3257 LIBS=$ac_func_search_save_LIBS
3259 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3260 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3261 if test "$ac_cv_search_opendir" != no; then
3262 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3274 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3275 # On Suns, sometimes $CPP names a directory.
3276 if test -n "$CPP" && test -d "$CPP"; then
3277 CPP=
3279 if test -z "$CPP"; then
3280 if test "${ac_cv_prog_CPP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 # Double quotes because CPP needs to be expanded
3284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3286 ac_preproc_ok=false
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3296 #line $LINENO "configure"
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 #ifdef __STDC__
3303 # include <limits.h>
3304 #else
3305 # include <assert.h>
3306 #endif
3307 Syntax error
3308 _ACEOF
3309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } >/dev/null; then
3317 if test -s conftest.err; then
3318 ac_cpp_err=$ac_c_preproc_warn_flag
3319 else
3320 ac_cpp_err=
3322 else
3323 ac_cpp_err=yes
3325 if test -z "$ac_cpp_err"; then
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3332 continue
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include <ac_nonexistent.h>
3346 _ACEOF
3347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } >/dev/null; then
3355 if test -s conftest.err; then
3356 ac_cpp_err=$ac_c_preproc_warn_flag
3357 else
3358 ac_cpp_err=
3360 else
3361 ac_cpp_err=yes
3363 if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3365 continue
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3374 rm -f conftest.err conftest.$ac_ext
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3380 break
3383 done
3384 ac_cv_prog_CPP=$CPP
3387 CPP=$ac_cv_prog_CPP
3388 else
3389 ac_cv_prog_CPP=$CPP
3391 echo "$as_me:$LINENO: result: $CPP" >&5
3392 echo "${ECHO_T}$CPP" >&6
3393 ac_preproc_ok=false
3394 for ac_c_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #ifdef __STDC__
3410 # include <limits.h>
3411 #else
3412 # include <assert.h>
3413 #endif
3414 Syntax error
3415 _ACEOF
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 else
3427 ac_cpp_err=
3429 else
3430 ac_cpp_err=yes
3432 if test -z "$ac_cpp_err"; then
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3439 continue
3441 rm -f conftest.err conftest.$ac_ext
3443 # OK, works on sane cases. Now check whether non-existent headers
3444 # can be detected and how.
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_c_preproc_warn_flag
3464 else
3465 ac_cpp_err=
3467 else
3468 ac_cpp_err=yes
3470 if test -z "$ac_cpp_err"; then
3471 # Broken: success on invalid input.
3472 continue
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 # Passes both tests.
3478 ac_preproc_ok=:
3479 break
3481 rm -f conftest.err conftest.$ac_ext
3483 done
3484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485 rm -f conftest.err conftest.$ac_ext
3486 if $ac_preproc_ok; then
3488 else
3489 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3496 ac_ext=c
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 echo "$as_me:$LINENO: checking for egrep" >&5
3504 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3505 if test "${ac_cv_prog_egrep+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3509 then ac_cv_prog_egrep='grep -E'
3510 else ac_cv_prog_egrep='egrep'
3513 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3514 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3515 EGREP=$ac_cv_prog_egrep
3518 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3520 if test "${ac_cv_header_stdc+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523 cat >conftest.$ac_ext <<_ACEOF
3524 #line $LINENO "configure"
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <stdlib.h>
3531 #include <stdarg.h>
3532 #include <string.h>
3533 #include <float.h>
3536 main ()
3540 return 0;
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_header_stdc=yes
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_cv_header_stdc=no
3562 rm -f conftest.$ac_objext conftest.$ac_ext
3564 if test $ac_cv_header_stdc = yes; then
3565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <string.h>
3575 _ACEOF
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "memchr" >/dev/null 2>&1; then
3579 else
3580 ac_cv_header_stdc=no
3582 rm -f conftest*
3586 if test $ac_cv_header_stdc = yes; then
3587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include <stdlib.h>
3597 _ACEOF
3598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3599 $EGREP "free" >/dev/null 2>&1; then
3601 else
3602 ac_cv_header_stdc=no
3604 rm -f conftest*
3608 if test $ac_cv_header_stdc = yes; then
3609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3610 if test "$cross_compiling" = yes; then
3612 else
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line $LINENO "configure"
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 #include <ctype.h>
3621 #if ((' ' & 0x0FF) == 0x020)
3622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3624 #else
3625 # define ISLOWER(c) \
3626 (('a' <= (c) && (c) <= 'i') \
3627 || ('j' <= (c) && (c) <= 'r') \
3628 || ('s' <= (c) && (c) <= 'z'))
3629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3630 #endif
3632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3634 main ()
3636 int i;
3637 for (i = 0; i < 256; i++)
3638 if (XOR (islower (i), ISLOWER (i))
3639 || toupper (i) != TOUPPER (i))
3640 exit(2);
3641 exit (0);
3643 _ACEOF
3644 rm -f conftest$ac_exeext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646 (eval $ac_link) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3656 else
3657 echo "$as_me: program exited with status $ac_status" >&5
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 ( exit $ac_status )
3662 ac_cv_header_stdc=no
3664 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3669 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3670 if test $ac_cv_header_stdc = yes; then
3672 cat >>confdefs.h <<\_ACEOF
3673 #define STDC_HEADERS 1
3674 _ACEOF
3678 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3679 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3680 if test "${ac_cv_struct_tm+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <sys/types.h>
3691 #include <time.h>
3694 main ()
3696 struct tm *tp; tp->tm_sec;
3698 return 0;
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 (eval $ac_try) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 ac_cv_struct_tm=time.h
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 ac_cv_struct_tm=sys/time.h
3720 rm -f conftest.$ac_objext conftest.$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3723 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3724 if test $ac_cv_struct_tm = sys/time.h; then
3726 cat >>confdefs.h <<\_ACEOF
3727 #define TM_IN_SYS_TIME 1
3728 _ACEOF
3732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3743 inttypes.h stdint.h unistd.h
3745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 cat >conftest.$ac_ext <<_ACEOF
3752 #line $LINENO "configure"
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 $ac_includes_default
3760 #include <$ac_header>
3761 _ACEOF
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3765 ac_status=$?
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 eval "$as_ac_Header=yes"
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3779 eval "$as_ac_Header=no"
3781 rm -f conftest.$ac_objext conftest.$ac_ext
3783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3786 cat >>confdefs.h <<_ACEOF
3787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3788 _ACEOF
3792 done
3800 for ac_header in fcntl.h unistd.h sys/param.h stdlib.h limits.h
3802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3804 echo "$as_me:$LINENO: checking for $ac_header" >&5
3805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3811 else
3812 # Is the header compilable?
3813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 $ac_includes_default
3823 #include <$ac_header>
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 ac_header_compiler=yes
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 ac_header_compiler=no
3844 rm -f conftest.$ac_objext conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3846 echo "${ECHO_T}$ac_header_compiler" >&6
3848 # Is the header present?
3849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3851 cat >conftest.$ac_ext <<_ACEOF
3852 #line $LINENO "configure"
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <$ac_header>
3859 _ACEOF
3860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev/null; then
3868 if test -s conftest.err; then
3869 ac_cpp_err=$ac_c_preproc_warn_flag
3870 else
3871 ac_cpp_err=
3873 else
3874 ac_cpp_err=yes
3876 if test -z "$ac_cpp_err"; then
3877 ac_header_preproc=yes
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_header_preproc=no
3884 rm -f conftest.err conftest.$ac_ext
3885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3886 echo "${ECHO_T}$ac_header_preproc" >&6
3888 # So? What about this header?
3889 case $ac_header_compiler:$ac_header_preproc in
3890 yes:no )
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3896 cat <<\_ASBOX
3897 ## ------------------------------------ ##
3898 ## Report this to bug-autoconf@gnu.org. ##
3899 ## ------------------------------------ ##
3900 _ASBOX
3902 sed "s/^/$as_me: WARNING: /" >&2
3904 no:yes )
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3912 cat <<\_ASBOX
3913 ## ------------------------------------ ##
3914 ## Report this to bug-autoconf@gnu.org. ##
3915 ## ------------------------------------ ##
3916 _ASBOX
3918 sed "s/^/$as_me: WARNING: /" >&2
3920 esac
3921 echo "$as_me:$LINENO: checking for $ac_header" >&5
3922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 eval "$as_ac_Header=$ac_header_preproc"
3928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3933 cat >>confdefs.h <<_ACEOF
3934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3935 _ACEOF
3939 done
3942 echo "$as_me:$LINENO: checking for off_t" >&5
3943 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3944 if test "${ac_cv_type_off_t+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 #line $LINENO "configure"
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 $ac_includes_default
3956 main ()
3958 if ((off_t *) 0)
3959 return 0;
3960 if (sizeof (off_t))
3961 return 0;
3963 return 0;
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_type_off_t=yes
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 ac_cv_type_off_t=no
3985 rm -f conftest.$ac_objext conftest.$ac_ext
3987 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3988 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3989 if test $ac_cv_type_off_t = yes; then
3991 else
3993 cat >>confdefs.h <<_ACEOF
3994 #define off_t long
3995 _ACEOF
3999 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4000 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4001 if test "${ac_cv_struct_tm+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 #line $LINENO "configure"
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 #include <sys/types.h>
4012 #include <time.h>
4015 main ()
4017 struct tm *tp; tp->tm_sec;
4019 return 0;
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -s conftest.$ac_objext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 ac_cv_struct_tm=time.h
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 ac_cv_struct_tm=sys/time.h
4041 rm -f conftest.$ac_objext conftest.$ac_ext
4043 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4044 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4045 if test $ac_cv_struct_tm = sys/time.h; then
4047 cat >>confdefs.h <<\_ACEOF
4048 #define TM_IN_SYS_TIME 1
4049 _ACEOF
4054 # mkdir takes a single argument on some systems.
4055 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
4056 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
4057 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 cat >conftest.$ac_ext <<_ACEOF
4061 #line $LINENO "configure"
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4068 #include <sys/types.h>
4069 #ifdef HAVE_SYS_STAT_H
4070 # include <sys/stat.h>
4071 #endif
4072 #ifdef HAVE_UNISTD_H
4073 # include <unistd.h>
4074 #endif
4075 #ifdef HAVE_DIRECT_H
4076 # include <direct.h>
4077 #endif
4079 main ()
4081 mkdir ("foo", 0);
4083 return 0;
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 gcc_cv_mkdir_takes_one_arg=no
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 gcc_cv_mkdir_takes_one_arg=yes
4105 rm -f conftest.$ac_objext conftest.$ac_ext
4107 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
4108 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
4109 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4111 cat >>confdefs.h <<\_ACEOF
4112 #define MKDIR_TAKES_ONE_ARG 1
4113 _ACEOF
4118 echo "$as_me:$LINENO: checking size of char" >&5
4119 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4120 if test "${ac_cv_sizeof_char+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4124 cat >conftest.$ac_ext <<_ACEOF
4125 #line $LINENO "configure"
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include "confdefs.h"
4132 #include <sys/types.h>
4136 main ()
4138 switch (0) case 0: case (sizeof (char) == $ac_size):;
4140 return 0;
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_sizeof_char=$ac_size
4156 else
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4161 rm -f conftest.$ac_objext conftest.$ac_ext
4162 if test x$ac_cv_sizeof_char != x ; then break; fi
4163 done
4167 if test x$ac_cv_sizeof_char = x ; then
4168 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
4169 echo "$as_me: error: cannot determine a size for char" >&2;}
4170 { (exit 1); exit 1; }; }
4172 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4173 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4175 cat >>confdefs.h <<_ACEOF
4176 #define SIZEOF_CHAR $ac_cv_sizeof_char
4177 _ACEOF
4180 echo "$as_me:$LINENO: checking size of short" >&5
4181 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4182 if test "${ac_cv_sizeof_short+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include "confdefs.h"
4194 #include <sys/types.h>
4198 main ()
4200 switch (0) case 0: case (sizeof (short) == $ac_size):;
4202 return 0;
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_sizeof_short=$ac_size
4218 else
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4223 rm -f conftest.$ac_objext conftest.$ac_ext
4224 if test x$ac_cv_sizeof_short != x ; then break; fi
4225 done
4229 if test x$ac_cv_sizeof_short = x ; then
4230 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
4231 echo "$as_me: error: cannot determine a size for short" >&2;}
4232 { (exit 1); exit 1; }; }
4234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4235 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4237 cat >>confdefs.h <<_ACEOF
4238 #define SIZEOF_SHORT $ac_cv_sizeof_short
4239 _ACEOF
4242 echo "$as_me:$LINENO: checking size of int" >&5
4243 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4244 if test "${ac_cv_sizeof_int+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include "confdefs.h"
4256 #include <sys/types.h>
4260 main ()
4262 switch (0) case 0: case (sizeof (int) == $ac_size):;
4264 return 0;
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269 (eval $ac_compile) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_cv_sizeof_int=$ac_size
4280 else
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4285 rm -f conftest.$ac_objext conftest.$ac_ext
4286 if test x$ac_cv_sizeof_int != x ; then break; fi
4287 done
4291 if test x$ac_cv_sizeof_int = x ; then
4292 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
4293 echo "$as_me: error: cannot determine a size for int" >&2;}
4294 { (exit 1); exit 1; }; }
4296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4297 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4299 cat >>confdefs.h <<_ACEOF
4300 #define SIZEOF_INT $ac_cv_sizeof_int
4301 _ACEOF
4304 echo "$as_me:$LINENO: checking size of long" >&5
4305 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4306 if test "${ac_cv_sizeof_long+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 #line $LINENO "configure"
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include "confdefs.h"
4318 #include <sys/types.h>
4322 main ()
4324 switch (0) case 0: case (sizeof (long) == $ac_size):;
4326 return 0;
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_sizeof_long=$ac_size
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4347 rm -f conftest.$ac_objext conftest.$ac_ext
4348 if test x$ac_cv_sizeof_long != x ; then break; fi
4349 done
4353 if test x$ac_cv_sizeof_long = x ; then
4354 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
4355 echo "$as_me: error: cannot determine a size for long" >&2;}
4356 { (exit 1); exit 1; }; }
4358 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4359 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4361 cat >>confdefs.h <<_ACEOF
4362 #define SIZEOF_LONG $ac_cv_sizeof_long
4363 _ACEOF
4366 echo "$as_me:$LINENO: checking for long long" >&5
4367 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4368 if test "${ac_cv_type_long_long+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line $LINENO "configure"
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4380 main ()
4382 if ((long long *) 0)
4383 return 0;
4384 if (sizeof (long long))
4385 return 0;
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_cv_type_long_long=yes
4403 else
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 ac_cv_type_long_long=no
4409 rm -f conftest.$ac_objext conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4412 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4413 if test $ac_cv_type_long_long = yes; then
4415 cat >>confdefs.h <<_ACEOF
4416 #define HAVE_LONG_LONG 1
4417 _ACEOF
4419 echo "$as_me:$LINENO: checking size of long long" >&5
4420 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4421 if test "${ac_cv_sizeof_long_long+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4425 cat >conftest.$ac_ext <<_ACEOF
4426 #line $LINENO "configure"
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include "confdefs.h"
4433 #include <sys/types.h>
4437 main ()
4439 switch (0) case 0: case (sizeof (long long) == $ac_size):;
4441 return 0;
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_cv_sizeof_long_long=$ac_size
4457 else
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4462 rm -f conftest.$ac_objext conftest.$ac_ext
4463 if test x$ac_cv_sizeof_long_long != x ; then break; fi
4464 done
4468 if test x$ac_cv_sizeof_long_long = x ; then
4469 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
4470 echo "$as_me: error: cannot determine a size for long long" >&2;}
4471 { (exit 1); exit 1; }; }
4473 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
4474 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4476 cat >>confdefs.h <<_ACEOF
4477 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4478 _ACEOF
4484 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4485 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4486 if test "${ac_cv_c_bigendian+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489 ac_cv_c_bigendian=unknown
4490 # See if sys/param.h defines the BYTE_ORDER macro.
4491 cat >conftest.$ac_ext <<_ACEOF
4492 #line $LINENO "configure"
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 #include <sys/types.h>
4499 #include <sys/param.h>
4501 main ()
4504 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4505 bogus endian macros
4506 #endif
4508 return 0;
4510 _ACEOF
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 # It does; now see whether it defined to BIG_ENDIAN or not.
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <sys/types.h>
4532 #include <sys/param.h>
4534 main ()
4537 #if BYTE_ORDER != BIG_ENDIAN
4538 not big endian
4539 #endif
4541 return 0;
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_c_bigendian=yes
4557 else
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 ac_cv_c_bigendian=no
4563 rm -f conftest.$ac_objext conftest.$ac_ext
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4569 rm -f conftest.$ac_objext conftest.$ac_ext
4570 if test $ac_cv_c_bigendian = unknown; then
4571 if test "$cross_compiling" = yes; then
4572 echo $ac_n "cross-compiling... " 2>&6
4573 else
4574 cat >conftest.$ac_ext <<_ACEOF
4575 #line $LINENO "configure"
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 main () {
4582 /* Are we little or big endian? From Harbison&Steele. */
4583 union
4585 long l;
4586 char c[sizeof (long)];
4587 } u;
4588 u.l = 1;
4589 exit (u.c[sizeof (long) - 1] == 1);
4591 _ACEOF
4592 rm -f conftest$ac_exeext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4594 (eval $ac_link) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_c_bigendian=no
4604 else
4605 echo "$as_me: program exited with status $ac_status" >&5
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 ( exit $ac_status )
4610 ac_cv_c_bigendian=yes
4612 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4616 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4617 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4618 if test $ac_cv_c_bigendian = unknown; then
4619 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
4620 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
4622 cat >conftest.c <<EOF
4623 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4624 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4625 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
4626 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4627 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4628 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
4629 int main() { _ascii (); _ebcdic (); return 0; }
4631 if test -f conftest.c ; then
4632 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
4633 if test `grep -l BIGenDianSyS conftest.o` ; then
4634 echo $ac_n ' big endian probe OK, ' 1>&6
4635 ac_cv_c_bigendian=yes
4637 if test `grep -l LiTTleEnDian conftest.o` ; then
4638 echo $ac_n ' little endian probe OK, ' 1>&6
4639 if test $ac_cv_c_bigendian = yes ; then
4640 ac_cv_c_bigendian=unknown;
4641 else
4642 ac_cv_c_bigendian=no
4645 echo $ac_n 'guessing bigendian ... ' >&6
4648 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4649 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4651 if test $ac_cv_c_bigendian = yes; then
4653 cat >>confdefs.h <<\_ACEOF
4654 #define WORDS_BIGENDIAN 1
4655 _ACEOF
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HOST_WORDS_BIG_ENDIAN 1
4660 _ACEOF
4662 BYTEORDER=4321
4663 else
4664 BYTEORDER=1234
4667 cat >>confdefs.h <<_ACEOF
4668 #define BYTEORDER $BYTEORDER
4669 _ACEOF
4671 if test $ac_cv_c_bigendian = unknown; then
4672 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
4673 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
4674 { (exit 1); exit 1; }; }
4679 # Check whether --with-system-zlib or --without-system-zlib was given.
4680 if test "${with_system_zlib+set}" = set; then
4681 withval="$with_system_zlib"
4685 ZLIBS=
4686 ZDEPS=
4687 ZINCS=
4688 use_zlib=maybe
4689 if test "$with_system_zlib" = yes; then
4690 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4691 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
4692 if test "${ac_cv_lib_z_deflate+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 ac_check_lib_save_LIBS=$LIBS
4696 LIBS="-lz $LIBS"
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line $LINENO "configure"
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 #ifdef __cplusplus
4707 extern "C"
4708 #endif
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4711 char deflate ();
4713 main ()
4715 deflate ();
4717 return 0;
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -s conftest$ac_exeext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_lib_z_deflate=yes
4733 else
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4737 ac_cv_lib_z_deflate=no
4739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4740 LIBS=$ac_check_lib_save_LIBS
4742 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4743 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
4744 if test $ac_cv_lib_z_deflate = yes; then
4745 ZLIBS=-lz
4746 else
4747 use_zlib=no
4750 else
4751 use_zlib=no
4754 if test "$use_zlib" = no; then
4755 # Brain dead way to find tree's zlib.
4756 ZDEPS='$(top_builddir)/../zlib/libz.a'
4757 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4758 ZINCS='-I$(top_srcdir)/../zlib'
4764 # GCC LOCAL CHANGE
4765 # We would like to our source tree to be readonly. However when releases or
4766 # pre-releases are generated, the man pages need to be included as they are
4767 # converted from the texi files via perl which we don't require end users to
4768 # have installed.
4769 # Therefore we have --enable-generated-files-in-srcdir to do just that.
4771 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
4772 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
4773 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
4774 if test "${enable_generated_files_in_srcdir+set}" = set; then
4775 enableval="$enable_generated_files_in_srcdir"
4776 generated_files_in_srcdir=$enableval
4777 else
4778 generated_files_in_srcdir=no
4781 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
4782 echo "${ECHO_T}$generated_files_in_srcdir" >&6
4785 if test x$generated_files_in_srcdir = xyes; then
4786 GENINSRC_TRUE=
4787 GENINSRC_FALSE='#'
4788 else
4789 GENINSRC_TRUE='#'
4790 GENINSRC_FALSE=
4794 # Get the version trigger filename from the toplevel
4795 if test "${with_gcc_version_trigger+set}" = set; then
4796 gcc_version_trigger=$with_gcc_version_trigger
4797 else
4798 gcc_version_trigger=${srcdir}/version.c
4800 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
4801 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4804 ac_config_files="$ac_config_files Makefile install-defs.sh"
4805 cat >confcache <<\_ACEOF
4806 # This file is a shell script that caches the results of configure
4807 # tests run on this system so they can be shared between configure
4808 # scripts and configure runs, see configure's option --config-cache.
4809 # It is not useful on other systems. If it contains results you don't
4810 # want to keep, you may remove or edit it.
4812 # config.status only pays attention to the cache file if you give it
4813 # the --recheck option to rerun configure.
4815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4817 # following values.
4819 _ACEOF
4821 # The following way of writing the cache mishandles newlines in values,
4822 # but we know of no workaround that is simple, portable, and efficient.
4823 # So, don't put newlines in cache variables' values.
4824 # Ultrix sh set writes to stderr and can't be redirected directly,
4825 # and sets the high bit in the cache file unless we assign to the vars.
4827 (set) 2>&1 |
4828 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4829 *ac_space=\ *)
4830 # `set' does not quote correctly, so add quotes (double-quote
4831 # substitution turns \\\\ into \\, and sed turns \\ into \).
4832 sed -n \
4833 "s/'/'\\\\''/g;
4834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4837 # `set' quotes correctly as required by POSIX, so do not add quotes.
4838 sed -n \
4839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4841 esac;
4843 sed '
4844 t clear
4845 : clear
4846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4847 t end
4848 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4849 : end' >>confcache
4850 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4851 if test -w $cache_file; then
4852 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4853 cat confcache >$cache_file
4854 else
4855 echo "not updating unwritable cache $cache_file"
4858 rm -f confcache
4860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4861 # Let make expand exec_prefix.
4862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4864 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4865 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4866 # trailing colons and then remove the whole line if VPATH becomes empty
4867 # (actually we leave an empty line to preserve line numbers).
4868 if test "x$srcdir" = x.; then
4869 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4870 s/:*\$(srcdir):*/:/;
4871 s/:*\${srcdir}:*/:/;
4872 s/:*@srcdir@:*/:/;
4873 s/^\([^=]*=[ ]*\):*/\1/;
4874 s/:*$//;
4875 s/^[^=]*=[ ]*$//;
4879 DEFS=-DHAVE_CONFIG_H
4881 ac_libobjs=
4882 ac_ltlibobjs=
4883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4884 # 1. Remove the extension, and $U if already installed.
4885 ac_i=`echo "$ac_i" |
4886 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4887 # 2. Add them.
4888 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4889 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4890 done
4891 LIBOBJS=$ac_libobjs
4893 LTLIBOBJS=$ac_ltlibobjs
4896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4897 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4898 Usually this means the macro was only invoked conditionally." >&5
4899 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4900 Usually this means the macro was only invoked conditionally." >&2;}
4901 { (exit 1); exit 1; }; }
4903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4904 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4905 Usually this means the macro was only invoked conditionally." >&5
4906 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4907 Usually this means the macro was only invoked conditionally." >&2;}
4908 { (exit 1); exit 1; }; }
4910 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4911 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4912 Usually this means the macro was only invoked conditionally." >&5
4913 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4914 Usually this means the macro was only invoked conditionally." >&2;}
4915 { (exit 1); exit 1; }; }
4917 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
4918 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
4919 Usually this means the macro was only invoked conditionally." >&5
4920 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
4921 Usually this means the macro was only invoked conditionally." >&2;}
4922 { (exit 1); exit 1; }; }
4925 : ${CONFIG_STATUS=./config.status}
4926 ac_clean_files_save=$ac_clean_files
4927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4928 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4929 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4930 cat >$CONFIG_STATUS <<_ACEOF
4931 #! $SHELL
4932 # Generated by $as_me.
4933 # Run this file to recreate the current configuration.
4934 # Compiler output produced by configure, useful for debugging
4935 # configure, is in config.log if it exists.
4937 debug=false
4938 ac_cs_recheck=false
4939 ac_cs_silent=false
4940 SHELL=\${CONFIG_SHELL-$SHELL}
4941 _ACEOF
4943 cat >>$CONFIG_STATUS <<\_ACEOF
4944 ## --------------------- ##
4945 ## M4sh Initialization. ##
4946 ## --------------------- ##
4948 # Be Bourne compatible
4949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4950 emulate sh
4951 NULLCMD=:
4952 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4953 # is contrary to our usage. Disable this feature.
4954 alias -g '${1+"$@"}'='"$@"'
4955 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4956 set -o posix
4959 # Support unset when possible.
4960 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4961 as_unset=unset
4962 else
4963 as_unset=false
4967 # Work around bugs in pre-3.0 UWIN ksh.
4968 $as_unset ENV MAIL MAILPATH
4969 PS1='$ '
4970 PS2='> '
4971 PS4='+ '
4973 # NLS nuisances.
4974 for as_var in \
4975 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4976 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4977 LC_TELEPHONE LC_TIME
4979 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4980 eval $as_var=C; export $as_var
4981 else
4982 $as_unset $as_var
4984 done
4986 # Required to use basename.
4987 if expr a : '\(a\)' >/dev/null 2>&1; then
4988 as_expr=expr
4989 else
4990 as_expr=false
4993 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4994 as_basename=basename
4995 else
4996 as_basename=false
5000 # Name of the executable.
5001 as_me=`$as_basename "$0" ||
5002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5003 X"$0" : 'X\(//\)$' \| \
5004 X"$0" : 'X\(/\)$' \| \
5005 . : '\(.\)' 2>/dev/null ||
5006 echo X/"$0" |
5007 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5008 /^X\/\(\/\/\)$/{ s//\1/; q; }
5009 /^X\/\(\/\).*/{ s//\1/; q; }
5010 s/.*/./; q'`
5013 # PATH needs CR, and LINENO needs CR and PATH.
5014 # Avoid depending upon Character Ranges.
5015 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5016 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5017 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5018 as_cr_digits='0123456789'
5019 as_cr_alnum=$as_cr_Letters$as_cr_digits
5021 # The user is always right.
5022 if test "${PATH_SEPARATOR+set}" != set; then
5023 echo "#! /bin/sh" >conf$$.sh
5024 echo "exit 0" >>conf$$.sh
5025 chmod +x conf$$.sh
5026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5027 PATH_SEPARATOR=';'
5028 else
5029 PATH_SEPARATOR=:
5031 rm -f conf$$.sh
5035 as_lineno_1=$LINENO
5036 as_lineno_2=$LINENO
5037 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5038 test "x$as_lineno_1" != "x$as_lineno_2" &&
5039 test "x$as_lineno_3" = "x$as_lineno_2" || {
5040 # Find who we are. Look in the path if we contain no path at all
5041 # relative or not.
5042 case $0 in
5043 *[\\/]* ) as_myself=$0 ;;
5044 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5050 done
5053 esac
5054 # We did not find ourselves, most probably we were run as `sh COMMAND'
5055 # in which case we are not to be found in the path.
5056 if test "x$as_myself" = x; then
5057 as_myself=$0
5059 if test ! -f "$as_myself"; then
5060 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5061 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5062 { (exit 1); exit 1; }; }
5064 case $CONFIG_SHELL in
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for as_base in sh bash ksh sh5; do
5072 case $as_dir in
5074 if ("$as_dir/$as_base" -c '
5075 as_lineno_1=$LINENO
5076 as_lineno_2=$LINENO
5077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5078 test "x$as_lineno_1" != "x$as_lineno_2" &&
5079 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5080 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5081 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5082 CONFIG_SHELL=$as_dir/$as_base
5083 export CONFIG_SHELL
5084 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5085 fi;;
5086 esac
5087 done
5088 done
5090 esac
5092 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5093 # uniformly replaced by the line number. The first 'sed' inserts a
5094 # line-number line before each line; the second 'sed' does the real
5095 # work. The second script uses 'N' to pair each line-number line
5096 # with the numbered line, and appends trailing '-' during
5097 # substitution so that $LINENO is not a special case at line end.
5098 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5099 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5100 sed '=' <$as_myself |
5101 sed '
5103 s,$,-,
5104 : loop
5105 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5106 t loop
5107 s,-$,,
5108 s,^['$as_cr_digits']*\n,,
5109 ' >$as_me.lineno &&
5110 chmod +x $as_me.lineno ||
5111 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5112 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5113 { (exit 1); exit 1; }; }
5115 # Don't try to exec as it changes $[0], causing all sort of problems
5116 # (the dirname of $[0] is not the place where we might find the
5117 # original and so on. Autoconf is especially sensible to this).
5118 . ./$as_me.lineno
5119 # Exit status is that of the last command.
5120 exit
5124 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5125 *c*,-n*) ECHO_N= ECHO_C='
5126 ' ECHO_T=' ' ;;
5127 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5128 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5129 esac
5131 if expr a : '\(a\)' >/dev/null 2>&1; then
5132 as_expr=expr
5133 else
5134 as_expr=false
5137 rm -f conf$$ conf$$.exe conf$$.file
5138 echo >conf$$.file
5139 if ln -s conf$$.file conf$$ 2>/dev/null; then
5140 # We could just check for DJGPP; but this test a) works b) is more generic
5141 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5142 if test -f conf$$.exe; then
5143 # Don't use ln at all; we don't have any links
5144 as_ln_s='cp -p'
5145 else
5146 as_ln_s='ln -s'
5148 elif ln conf$$.file conf$$ 2>/dev/null; then
5149 as_ln_s=ln
5150 else
5151 as_ln_s='cp -p'
5153 rm -f conf$$ conf$$.exe conf$$.file
5155 if mkdir -p . 2>/dev/null; then
5156 as_mkdir_p=:
5157 else
5158 as_mkdir_p=false
5161 as_executable_p="test -f"
5163 # Sed expression to map a string onto a valid CPP name.
5164 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5166 # Sed expression to map a string onto a valid variable name.
5167 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5170 # IFS
5171 # We need space, tab and new line, in precisely that order.
5172 as_nl='
5174 IFS=" $as_nl"
5176 # CDPATH.
5177 $as_unset CDPATH
5179 exec 6>&1
5181 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5182 # report actual input values of CONFIG_FILES etc. instead of their
5183 # values after options handling. Logging --version etc. is OK.
5184 exec 5>>config.log
5186 echo
5187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5188 ## Running $as_me. ##
5189 _ASBOX
5190 } >&5
5191 cat >&5 <<_CSEOF
5193 This file was extended by $as_me, which was
5194 generated by GNU Autoconf 2.57. Invocation command line was
5196 CONFIG_FILES = $CONFIG_FILES
5197 CONFIG_HEADERS = $CONFIG_HEADERS
5198 CONFIG_LINKS = $CONFIG_LINKS
5199 CONFIG_COMMANDS = $CONFIG_COMMANDS
5200 $ $0 $@
5202 _CSEOF
5203 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5204 echo >&5
5205 _ACEOF
5207 # Files that config.status was made for.
5208 if test -n "$ac_config_files"; then
5209 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5212 if test -n "$ac_config_headers"; then
5213 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5216 if test -n "$ac_config_links"; then
5217 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5220 if test -n "$ac_config_commands"; then
5221 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5224 cat >>$CONFIG_STATUS <<\_ACEOF
5226 ac_cs_usage="\
5227 \`$as_me' instantiates files from templates according to the
5228 current configuration.
5230 Usage: $0 [OPTIONS] [FILE]...
5232 -h, --help print this help, then exit
5233 -V, --version print version number, then exit
5234 -q, --quiet do not print progress messages
5235 -d, --debug don't remove temporary files
5236 --recheck update $as_me by reconfiguring in the same conditions
5237 --file=FILE[:TEMPLATE]
5238 instantiate the configuration file FILE
5239 --header=FILE[:TEMPLATE]
5240 instantiate the configuration header FILE
5242 Configuration files:
5243 $config_files
5245 Configuration headers:
5246 $config_headers
5248 Configuration commands:
5249 $config_commands
5251 Report bugs to <bug-autoconf@gnu.org>."
5252 _ACEOF
5254 cat >>$CONFIG_STATUS <<_ACEOF
5255 ac_cs_version="\\
5256 config.status
5257 configured by $0, generated by GNU Autoconf 2.57,
5258 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5260 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5261 Free Software Foundation, Inc.
5262 This config.status script is free software; the Free Software Foundation
5263 gives unlimited permission to copy, distribute and modify it."
5264 srcdir=$srcdir
5265 INSTALL="$INSTALL"
5266 _ACEOF
5268 cat >>$CONFIG_STATUS <<\_ACEOF
5269 # If no file are specified by the user, then we need to provide default
5270 # value. By we need to know if files were specified by the user.
5271 ac_need_defaults=:
5272 while test $# != 0
5274 case $1 in
5275 --*=*)
5276 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5277 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5278 ac_shift=:
5281 ac_option=$1
5282 ac_optarg=$2
5283 ac_shift=shift
5285 *) # This is not an option, so the user has probably given explicit
5286 # arguments.
5287 ac_option=$1
5288 ac_need_defaults=false;;
5289 esac
5291 case $ac_option in
5292 # Handling of the options.
5293 _ACEOF
5294 cat >>$CONFIG_STATUS <<\_ACEOF
5295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5296 ac_cs_recheck=: ;;
5297 --version | --vers* | -V )
5298 echo "$ac_cs_version"; exit 0 ;;
5299 --he | --h)
5300 # Conflict between --help and --header
5301 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5302 Try \`$0 --help' for more information." >&5
5303 echo "$as_me: error: ambiguous option: $1
5304 Try \`$0 --help' for more information." >&2;}
5305 { (exit 1); exit 1; }; };;
5306 --help | --hel | -h )
5307 echo "$ac_cs_usage"; exit 0 ;;
5308 --debug | --d* | -d )
5309 debug=: ;;
5310 --file | --fil | --fi | --f )
5311 $ac_shift
5312 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5313 ac_need_defaults=false;;
5314 --header | --heade | --head | --hea )
5315 $ac_shift
5316 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5317 ac_need_defaults=false;;
5318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5320 ac_cs_silent=: ;;
5322 # This is an error.
5323 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5324 Try \`$0 --help' for more information." >&5
5325 echo "$as_me: error: unrecognized option: $1
5326 Try \`$0 --help' for more information." >&2;}
5327 { (exit 1); exit 1; }; } ;;
5329 *) ac_config_targets="$ac_config_targets $1" ;;
5331 esac
5332 shift
5333 done
5335 ac_configure_extra_args=
5337 if $ac_cs_silent; then
5338 exec 6>/dev/null
5339 ac_configure_extra_args="$ac_configure_extra_args --silent"
5342 _ACEOF
5343 cat >>$CONFIG_STATUS <<_ACEOF
5344 if \$ac_cs_recheck; then
5345 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5346 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5349 _ACEOF
5351 cat >>$CONFIG_STATUS <<_ACEOF
5353 # INIT-COMMANDS section.
5356 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5358 _ACEOF
5362 cat >>$CONFIG_STATUS <<\_ACEOF
5363 for ac_config_target in $ac_config_targets
5365 case "$ac_config_target" in
5366 # Handling of arguments.
5367 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5368 "install-defs.sh" ) CONFIG_FILES="$CONFIG_FILES install-defs.sh" ;;
5369 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5370 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5373 { (exit 1); exit 1; }; };;
5374 esac
5375 done
5377 # If the user did not use the arguments to specify the items to instantiate,
5378 # then the envvar interface is used. Set only those that are not.
5379 # We use the long form for the default assignment because of an extremely
5380 # bizarre bug on SunOS 4.1.3.
5381 if $ac_need_defaults; then
5382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5387 # Have a temporary directory for convenience. Make it in the build tree
5388 # simply because there is no reason to put it here, and in addition,
5389 # creating and moving files from /tmp can sometimes cause problems.
5390 # Create a temporary directory, and hook for its removal unless debugging.
5391 $debug ||
5393 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5394 trap '{ (exit 1); exit 1; }' 1 2 13 15
5397 # Create a (secure) tmp directory for tmp files.
5400 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5401 test -n "$tmp" && test -d "$tmp"
5402 } ||
5404 tmp=./confstat$$-$RANDOM
5405 (umask 077 && mkdir $tmp)
5406 } ||
5408 echo "$me: cannot create a temporary directory in ." >&2
5409 { (exit 1); exit 1; }
5412 _ACEOF
5414 cat >>$CONFIG_STATUS <<_ACEOF
5417 # CONFIG_FILES section.
5420 # No need to generate the scripts if there are no CONFIG_FILES.
5421 # This happens for instance when ./config.status config.h
5422 if test -n "\$CONFIG_FILES"; then
5423 # Protect against being on the right side of a sed subst in config.status.
5424 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5425 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5426 s,@SHELL@,$SHELL,;t t
5427 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5428 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5429 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5430 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5431 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5432 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5433 s,@exec_prefix@,$exec_prefix,;t t
5434 s,@prefix@,$prefix,;t t
5435 s,@program_transform_name@,$program_transform_name,;t t
5436 s,@bindir@,$bindir,;t t
5437 s,@sbindir@,$sbindir,;t t
5438 s,@libexecdir@,$libexecdir,;t t
5439 s,@datadir@,$datadir,;t t
5440 s,@sysconfdir@,$sysconfdir,;t t
5441 s,@sharedstatedir@,$sharedstatedir,;t t
5442 s,@localstatedir@,$localstatedir,;t t
5443 s,@libdir@,$libdir,;t t
5444 s,@includedir@,$includedir,;t t
5445 s,@oldincludedir@,$oldincludedir,;t t
5446 s,@infodir@,$infodir,;t t
5447 s,@mandir@,$mandir,;t t
5448 s,@build_alias@,$build_alias,;t t
5449 s,@host_alias@,$host_alias,;t t
5450 s,@target_alias@,$target_alias,;t t
5451 s,@DEFS@,$DEFS,;t t
5452 s,@ECHO_C@,$ECHO_C,;t t
5453 s,@ECHO_N@,$ECHO_N,;t t
5454 s,@ECHO_T@,$ECHO_T,;t t
5455 s,@LIBS@,$LIBS,;t t
5456 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5457 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5458 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5459 s,@CYGPATH_W@,$CYGPATH_W,;t t
5460 s,@PACKAGE@,$PACKAGE,;t t
5461 s,@VERSION@,$VERSION,;t t
5462 s,@ACLOCAL@,$ACLOCAL,;t t
5463 s,@AUTOCONF@,$AUTOCONF,;t t
5464 s,@AUTOMAKE@,$AUTOMAKE,;t t
5465 s,@AUTOHEADER@,$AUTOHEADER,;t t
5466 s,@MAKEINFO@,$MAKEINFO,;t t
5467 s,@AMTAR@,$AMTAR,;t t
5468 s,@install_sh@,$install_sh,;t t
5469 s,@STRIP@,$STRIP,;t t
5470 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5471 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5472 s,@AWK@,$AWK,;t t
5473 s,@SET_MAKE@,$SET_MAKE,;t t
5474 s,@am__leading_dot@,$am__leading_dot,;t t
5475 s,@CC@,$CC,;t t
5476 s,@CFLAGS@,$CFLAGS,;t t
5477 s,@LDFLAGS@,$LDFLAGS,;t t
5478 s,@CPPFLAGS@,$CPPFLAGS,;t t
5479 s,@ac_ct_CC@,$ac_ct_CC,;t t
5480 s,@EXEEXT@,$EXEEXT,;t t
5481 s,@OBJEXT@,$OBJEXT,;t t
5482 s,@DEPDIR@,$DEPDIR,;t t
5483 s,@am__include@,$am__include,;t t
5484 s,@am__quote@,$am__quote,;t t
5485 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5486 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5487 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5488 s,@CCDEPMODE@,$CCDEPMODE,;t t
5489 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5490 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5491 s,@RM@,$RM,;t t
5492 s,@CP@,$CP,;t t
5493 s,@CHMOD@,$CHMOD,;t t
5494 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5495 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5496 s,@MAINT@,$MAINT,;t t
5497 s,@fastjar_warn_cflags@,$fastjar_warn_cflags,;t t
5498 s,@CPP@,$CPP,;t t
5499 s,@EGREP@,$EGREP,;t t
5500 s,@ZLIBS@,$ZLIBS,;t t
5501 s,@ZDEPS@,$ZDEPS,;t t
5502 s,@ZINCS@,$ZINCS,;t t
5503 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
5504 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
5505 s,@gcc_version@,$gcc_version,;t t
5506 s,@LIBOBJS@,$LIBOBJS,;t t
5507 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5508 CEOF
5510 _ACEOF
5512 cat >>$CONFIG_STATUS <<\_ACEOF
5513 # Split the substitutions into bite-sized pieces for seds with
5514 # small command number limits, like on Digital OSF/1 and HP-UX.
5515 ac_max_sed_lines=48
5516 ac_sed_frag=1 # Number of current file.
5517 ac_beg=1 # First line for current file.
5518 ac_end=$ac_max_sed_lines # Line after last line for current file.
5519 ac_more_lines=:
5520 ac_sed_cmds=
5521 while $ac_more_lines; do
5522 if test $ac_beg -gt 1; then
5523 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5524 else
5525 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5527 if test ! -s $tmp/subs.frag; then
5528 ac_more_lines=false
5529 else
5530 # The purpose of the label and of the branching condition is to
5531 # speed up the sed processing (if there are no `@' at all, there
5532 # is no need to browse any of the substitutions).
5533 # These are the two extra sed commands mentioned above.
5534 (echo ':t
5535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5536 if test -z "$ac_sed_cmds"; then
5537 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5538 else
5539 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5541 ac_sed_frag=`expr $ac_sed_frag + 1`
5542 ac_beg=$ac_end
5543 ac_end=`expr $ac_end + $ac_max_sed_lines`
5545 done
5546 if test -z "$ac_sed_cmds"; then
5547 ac_sed_cmds=cat
5549 fi # test -n "$CONFIG_FILES"
5551 _ACEOF
5552 cat >>$CONFIG_STATUS <<\_ACEOF
5553 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5555 case $ac_file in
5556 - | *:- | *:-:* ) # input from stdin
5557 cat >$tmp/stdin
5558 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5560 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5562 * ) ac_file_in=$ac_file.in ;;
5563 esac
5565 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5566 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5568 X"$ac_file" : 'X\(//\)[^/]' \| \
5569 X"$ac_file" : 'X\(//\)$' \| \
5570 X"$ac_file" : 'X\(/\)' \| \
5571 . : '\(.\)' 2>/dev/null ||
5572 echo X"$ac_file" |
5573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5575 /^X\(\/\/\)$/{ s//\1/; q; }
5576 /^X\(\/\).*/{ s//\1/; q; }
5577 s/.*/./; q'`
5578 { if $as_mkdir_p; then
5579 mkdir -p "$ac_dir"
5580 else
5581 as_dir="$ac_dir"
5582 as_dirs=
5583 while test ! -d "$as_dir"; do
5584 as_dirs="$as_dir $as_dirs"
5585 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5587 X"$as_dir" : 'X\(//\)[^/]' \| \
5588 X"$as_dir" : 'X\(//\)$' \| \
5589 X"$as_dir" : 'X\(/\)' \| \
5590 . : '\(.\)' 2>/dev/null ||
5591 echo X"$as_dir" |
5592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5594 /^X\(\/\/\)$/{ s//\1/; q; }
5595 /^X\(\/\).*/{ s//\1/; q; }
5596 s/.*/./; q'`
5597 done
5598 test ! -n "$as_dirs" || mkdir $as_dirs
5599 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5601 { (exit 1); exit 1; }; }; }
5603 ac_builddir=.
5605 if test "$ac_dir" != .; then
5606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5607 # A "../" for each directory in $ac_dir_suffix.
5608 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5609 else
5610 ac_dir_suffix= ac_top_builddir=
5613 case $srcdir in
5614 .) # No --srcdir option. We are building in place.
5615 ac_srcdir=.
5616 if test -z "$ac_top_builddir"; then
5617 ac_top_srcdir=.
5618 else
5619 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5620 fi ;;
5621 [\\/]* | ?:[\\/]* ) # Absolute path.
5622 ac_srcdir=$srcdir$ac_dir_suffix;
5623 ac_top_srcdir=$srcdir ;;
5624 *) # Relative path.
5625 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5626 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5627 esac
5628 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5629 # absolute.
5630 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5631 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5632 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5633 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5636 case $INSTALL in
5637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5638 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5639 esac
5641 if test x"$ac_file" != x-; then
5642 { echo "$as_me:$LINENO: creating $ac_file" >&5
5643 echo "$as_me: creating $ac_file" >&6;}
5644 rm -f "$ac_file"
5646 # Let's still pretend it is `configure' which instantiates (i.e., don't
5647 # use $as_me), people would be surprised to read:
5648 # /* config.h. Generated by config.status. */
5649 if test x"$ac_file" = x-; then
5650 configure_input=
5651 else
5652 configure_input="$ac_file. "
5654 configure_input=$configure_input"Generated from `echo $ac_file_in |
5655 sed 's,.*/,,'` by configure."
5657 # First look for the input files in the build tree, otherwise in the
5658 # src tree.
5659 ac_file_inputs=`IFS=:
5660 for f in $ac_file_in; do
5661 case $f in
5662 -) echo $tmp/stdin ;;
5663 [\\/$]*)
5664 # Absolute (can't be DOS-style, as IFS=:)
5665 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5666 echo "$as_me: error: cannot find input file: $f" >&2;}
5667 { (exit 1); exit 1; }; }
5668 echo $f;;
5669 *) # Relative
5670 if test -f "$f"; then
5671 # Build tree
5672 echo $f
5673 elif test -f "$srcdir/$f"; then
5674 # Source tree
5675 echo $srcdir/$f
5676 else
5677 # /dev/null tree
5678 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5679 echo "$as_me: error: cannot find input file: $f" >&2;}
5680 { (exit 1); exit 1; }; }
5681 fi;;
5682 esac
5683 done` || { (exit 1); exit 1; }
5684 _ACEOF
5685 cat >>$CONFIG_STATUS <<_ACEOF
5686 sed "$ac_vpsub
5687 $extrasub
5688 _ACEOF
5689 cat >>$CONFIG_STATUS <<\_ACEOF
5691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5692 s,@configure_input@,$configure_input,;t t
5693 s,@srcdir@,$ac_srcdir,;t t
5694 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5695 s,@top_srcdir@,$ac_top_srcdir,;t t
5696 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5697 s,@builddir@,$ac_builddir,;t t
5698 s,@abs_builddir@,$ac_abs_builddir,;t t
5699 s,@top_builddir@,$ac_top_builddir,;t t
5700 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5701 s,@INSTALL@,$ac_INSTALL,;t t
5702 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5703 rm -f $tmp/stdin
5704 if test x"$ac_file" != x-; then
5705 mv $tmp/out $ac_file
5706 else
5707 cat $tmp/out
5708 rm -f $tmp/out
5711 done
5712 _ACEOF
5713 cat >>$CONFIG_STATUS <<\_ACEOF
5716 # CONFIG_HEADER section.
5719 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5720 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5722 # ac_d sets the value in "#define NAME VALUE" lines.
5723 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5724 ac_dB='[ ].*$,\1#\2'
5725 ac_dC=' '
5726 ac_dD=',;t'
5727 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5728 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5729 ac_uB='$,\1#\2define\3'
5730 ac_uC=' '
5731 ac_uD=',;t'
5733 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5735 case $ac_file in
5736 - | *:- | *:-:* ) # input from stdin
5737 cat >$tmp/stdin
5738 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5740 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5742 * ) ac_file_in=$ac_file.in ;;
5743 esac
5745 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5746 echo "$as_me: creating $ac_file" >&6;}
5748 # First look for the input files in the build tree, otherwise in the
5749 # src tree.
5750 ac_file_inputs=`IFS=:
5751 for f in $ac_file_in; do
5752 case $f in
5753 -) echo $tmp/stdin ;;
5754 [\\/$]*)
5755 # Absolute (can't be DOS-style, as IFS=:)
5756 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5757 echo "$as_me: error: cannot find input file: $f" >&2;}
5758 { (exit 1); exit 1; }; }
5759 echo $f;;
5760 *) # Relative
5761 if test -f "$f"; then
5762 # Build tree
5763 echo $f
5764 elif test -f "$srcdir/$f"; then
5765 # Source tree
5766 echo $srcdir/$f
5767 else
5768 # /dev/null tree
5769 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5770 echo "$as_me: error: cannot find input file: $f" >&2;}
5771 { (exit 1); exit 1; }; }
5772 fi;;
5773 esac
5774 done` || { (exit 1); exit 1; }
5775 # Remove the trailing spaces.
5776 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5778 _ACEOF
5780 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5781 # `conftest.undefs', that substitutes the proper values into
5782 # config.h.in to produce config.h. The first handles `#define'
5783 # templates, and the second `#undef' templates.
5784 # And first: Protect against being on the right side of a sed subst in
5785 # config.status. Protect against being in an unquoted here document
5786 # in config.status.
5787 rm -f conftest.defines conftest.undefs
5788 # Using a here document instead of a string reduces the quoting nightmare.
5789 # Putting comments in sed scripts is not portable.
5791 # `end' is used to avoid that the second main sed command (meant for
5792 # 0-ary CPP macros) applies to n-ary macro definitions.
5793 # See the Autoconf documentation for `clear'.
5794 cat >confdef2sed.sed <<\_ACEOF
5795 s/[\\&,]/\\&/g
5796 s,[\\$`],\\&,g
5797 t clear
5798 : clear
5799 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5800 t end
5801 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5802 : end
5803 _ACEOF
5804 # If some macros were called several times there might be several times
5805 # the same #defines, which is useless. Nevertheless, we may not want to
5806 # sort them, since we want the *last* AC-DEFINE to be honored.
5807 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5808 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5809 rm -f confdef2sed.sed
5811 # This sed command replaces #undef with comments. This is necessary, for
5812 # example, in the case of _POSIX_SOURCE, which is predefined and required
5813 # on some systems where configure will not decide to define it.
5814 cat >>conftest.undefs <<\_ACEOF
5815 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5816 _ACEOF
5818 # Break up conftest.defines because some shells have a limit on the size
5819 # of here documents, and old seds have small limits too (100 cmds).
5820 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5821 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5822 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5823 echo ' :' >>$CONFIG_STATUS
5824 rm -f conftest.tail
5825 while grep . conftest.defines >/dev/null
5827 # Write a limited-size here document to $tmp/defines.sed.
5828 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5829 # Speed up: don't consider the non `#define' lines.
5830 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5831 # Work around the forget-to-reset-the-flag bug.
5832 echo 't clr' >>$CONFIG_STATUS
5833 echo ': clr' >>$CONFIG_STATUS
5834 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5835 echo 'CEOF
5836 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5837 rm -f $tmp/in
5838 mv $tmp/out $tmp/in
5839 ' >>$CONFIG_STATUS
5840 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5841 rm -f conftest.defines
5842 mv conftest.tail conftest.defines
5843 done
5844 rm -f conftest.defines
5845 echo ' fi # grep' >>$CONFIG_STATUS
5846 echo >>$CONFIG_STATUS
5848 # Break up conftest.undefs because some shells have a limit on the size
5849 # of here documents, and old seds have small limits too (100 cmds).
5850 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5851 rm -f conftest.tail
5852 while grep . conftest.undefs >/dev/null
5854 # Write a limited-size here document to $tmp/undefs.sed.
5855 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5856 # Speed up: don't consider the non `#undef'
5857 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5858 # Work around the forget-to-reset-the-flag bug.
5859 echo 't clr' >>$CONFIG_STATUS
5860 echo ': clr' >>$CONFIG_STATUS
5861 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5862 echo 'CEOF
5863 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5864 rm -f $tmp/in
5865 mv $tmp/out $tmp/in
5866 ' >>$CONFIG_STATUS
5867 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5868 rm -f conftest.undefs
5869 mv conftest.tail conftest.undefs
5870 done
5871 rm -f conftest.undefs
5873 cat >>$CONFIG_STATUS <<\_ACEOF
5874 # Let's still pretend it is `configure' which instantiates (i.e., don't
5875 # use $as_me), people would be surprised to read:
5876 # /* config.h. Generated by config.status. */
5877 if test x"$ac_file" = x-; then
5878 echo "/* Generated by configure. */" >$tmp/config.h
5879 else
5880 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5882 cat $tmp/in >>$tmp/config.h
5883 rm -f $tmp/in
5884 if test x"$ac_file" != x-; then
5885 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5886 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5887 echo "$as_me: $ac_file is unchanged" >&6;}
5888 else
5889 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5891 X"$ac_file" : 'X\(//\)[^/]' \| \
5892 X"$ac_file" : 'X\(//\)$' \| \
5893 X"$ac_file" : 'X\(/\)' \| \
5894 . : '\(.\)' 2>/dev/null ||
5895 echo X"$ac_file" |
5896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5898 /^X\(\/\/\)$/{ s//\1/; q; }
5899 /^X\(\/\).*/{ s//\1/; q; }
5900 s/.*/./; q'`
5901 { if $as_mkdir_p; then
5902 mkdir -p "$ac_dir"
5903 else
5904 as_dir="$ac_dir"
5905 as_dirs=
5906 while test ! -d "$as_dir"; do
5907 as_dirs="$as_dir $as_dirs"
5908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5910 X"$as_dir" : 'X\(//\)[^/]' \| \
5911 X"$as_dir" : 'X\(//\)$' \| \
5912 X"$as_dir" : 'X\(/\)' \| \
5913 . : '\(.\)' 2>/dev/null ||
5914 echo X"$as_dir" |
5915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5917 /^X\(\/\/\)$/{ s//\1/; q; }
5918 /^X\(\/\).*/{ s//\1/; q; }
5919 s/.*/./; q'`
5920 done
5921 test ! -n "$as_dirs" || mkdir $as_dirs
5922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5923 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5924 { (exit 1); exit 1; }; }; }
5926 rm -f $ac_file
5927 mv $tmp/config.h $ac_file
5929 else
5930 cat $tmp/config.h
5931 rm -f $tmp/config.h
5933 # Compute $ac_file's index in $config_headers.
5934 _am_stamp_count=1
5935 for _am_header in $config_headers :; do
5936 case $_am_header in
5937 $ac_file | $ac_file:* )
5938 break ;;
5940 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5941 esac
5942 done
5943 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5944 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5945 X$ac_file : 'X\(//\)[^/]' \| \
5946 X$ac_file : 'X\(//\)$' \| \
5947 X$ac_file : 'X\(/\)' \| \
5948 . : '\(.\)' 2>/dev/null ||
5949 echo X$ac_file |
5950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5952 /^X\(\/\/\)$/{ s//\1/; q; }
5953 /^X\(\/\).*/{ s//\1/; q; }
5954 s/.*/./; q'`/stamp-h$_am_stamp_count
5955 done
5956 _ACEOF
5957 cat >>$CONFIG_STATUS <<\_ACEOF
5960 # CONFIG_COMMANDS section.
5962 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5963 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5964 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5965 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5966 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5967 X"$ac_dest" : 'X\(//\)[^/]' \| \
5968 X"$ac_dest" : 'X\(//\)$' \| \
5969 X"$ac_dest" : 'X\(/\)' \| \
5970 . : '\(.\)' 2>/dev/null ||
5971 echo X"$ac_dest" |
5972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5974 /^X\(\/\/\)$/{ s//\1/; q; }
5975 /^X\(\/\).*/{ s//\1/; q; }
5976 s/.*/./; q'`
5977 ac_builddir=.
5979 if test "$ac_dir" != .; then
5980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5981 # A "../" for each directory in $ac_dir_suffix.
5982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5983 else
5984 ac_dir_suffix= ac_top_builddir=
5987 case $srcdir in
5988 .) # No --srcdir option. We are building in place.
5989 ac_srcdir=.
5990 if test -z "$ac_top_builddir"; then
5991 ac_top_srcdir=.
5992 else
5993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5994 fi ;;
5995 [\\/]* | ?:[\\/]* ) # Absolute path.
5996 ac_srcdir=$srcdir$ac_dir_suffix;
5997 ac_top_srcdir=$srcdir ;;
5998 *) # Relative path.
5999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6001 esac
6002 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6003 # absolute.
6004 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6005 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6006 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6007 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6010 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6011 echo "$as_me: executing $ac_dest commands" >&6;}
6012 case $ac_dest in
6013 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6014 # Strip MF so we end up with the name of the file.
6015 mf=`echo "$mf" | sed -e 's/:.*$//'`
6016 # Check whether this is an Automake generated Makefile or not.
6017 # We used to match only the files named `Makefile.in', but
6018 # some people rename them; so instead we look at the file content.
6019 # Grep'ing the first line is not enough: some people post-process
6020 # each Makefile.in and add a new line on top of each file to say so.
6021 # So let's grep whole file.
6022 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6023 dirpart=`(dirname "$mf") 2>/dev/null ||
6024 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6025 X"$mf" : 'X\(//\)[^/]' \| \
6026 X"$mf" : 'X\(//\)$' \| \
6027 X"$mf" : 'X\(/\)' \| \
6028 . : '\(.\)' 2>/dev/null ||
6029 echo X"$mf" |
6030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6032 /^X\(\/\/\)$/{ s//\1/; q; }
6033 /^X\(\/\).*/{ s//\1/; q; }
6034 s/.*/./; q'`
6035 else
6036 continue
6038 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6039 # Extract the definition of DEP_FILES from the Makefile without
6040 # running `make'.
6041 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6042 test -z "$DEPDIR" && continue
6043 # When using ansi2knr, U may be empty or an underscore; expand it
6044 U=`sed -n -e '/^U = / s///p' < "$mf"`
6045 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6046 # We invoke sed twice because it is the simplest approach to
6047 # changing $(DEPDIR) to its actual value in the expansion.
6048 for file in `sed -n -e '
6049 /^DEP_FILES = .*\\\\$/ {
6050 s/^DEP_FILES = //
6051 :loop
6052 s/\\\\$//
6055 /\\\\$/ b loop
6058 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6059 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6060 # Make sure the directory exists.
6061 test -f "$dirpart/$file" && continue
6062 fdir=`(dirname "$file") 2>/dev/null ||
6063 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6064 X"$file" : 'X\(//\)[^/]' \| \
6065 X"$file" : 'X\(//\)$' \| \
6066 X"$file" : 'X\(/\)' \| \
6067 . : '\(.\)' 2>/dev/null ||
6068 echo X"$file" |
6069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6071 /^X\(\/\/\)$/{ s//\1/; q; }
6072 /^X\(\/\).*/{ s//\1/; q; }
6073 s/.*/./; q'`
6074 { if $as_mkdir_p; then
6075 mkdir -p $dirpart/$fdir
6076 else
6077 as_dir=$dirpart/$fdir
6078 as_dirs=
6079 while test ! -d "$as_dir"; do
6080 as_dirs="$as_dir $as_dirs"
6081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6083 X"$as_dir" : 'X\(//\)[^/]' \| \
6084 X"$as_dir" : 'X\(//\)$' \| \
6085 X"$as_dir" : 'X\(/\)' \| \
6086 . : '\(.\)' 2>/dev/null ||
6087 echo X"$as_dir" |
6088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6090 /^X\(\/\/\)$/{ s//\1/; q; }
6091 /^X\(\/\).*/{ s//\1/; q; }
6092 s/.*/./; q'`
6093 done
6094 test ! -n "$as_dirs" || mkdir $as_dirs
6095 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6096 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6097 { (exit 1); exit 1; }; }; }
6099 # echo "creating $dirpart/$file"
6100 echo '# dummy' > "$dirpart/$file"
6101 done
6102 done
6104 esac
6105 done
6106 _ACEOF
6108 cat >>$CONFIG_STATUS <<\_ACEOF
6110 { (exit 0); exit 0; }
6111 _ACEOF
6112 chmod +x $CONFIG_STATUS
6113 ac_clean_files=$ac_clean_files_save
6116 # configure is writing to config.log, and then calls config.status.
6117 # config.status does its own redirection, appending to config.log.
6118 # Unfortunately, on DOS this fails, as config.log is still kept open
6119 # by configure, so config.status won't be able to write to it; its
6120 # output is simply discarded. So we exec the FD to /dev/null,
6121 # effectively closing config.log, so it can be properly (re)opened and
6122 # appended to by config.status. When coming back to configure, we
6123 # need to make the FD available again.
6124 if test "$no_create" != yes; then
6125 ac_cs_success=:
6126 ac_config_status_args=
6127 test "$silent" = yes &&
6128 ac_config_status_args="$ac_config_status_args --quiet"
6129 exec 5>/dev/null
6130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6131 exec 5>>config.log
6132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6133 # would make configure fail if this is the last instruction.
6134 $ac_cs_success || { (exit 1); exit 1; }