fix __AROS_SETVECADDR invocations.
[AROS.git] / tools / cxref / cpp / configure
blob2bd628d9ffafce4eda034fc946129e1590fed3f5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="cccp.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE EGREP ALLOCA CXREF_CPP GCC LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
833 _ACEOF
836 if test -n "$ac_init_help"; then
838 cat <<\_ACEOF
840 Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-cxref-cpp use the supplied cpp instead of trying to use gcc
845 Some influential environment variables:
846 CC C compiler command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
849 nonstandard directory <lib dir>
850 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
851 headers in a nonstandard directory <include dir>
852 CPP C preprocessor
854 Use these variables to override the choices made by `configure' or to help
855 it to find libraries and programs with nonstandard names/locations.
857 _ACEOF
860 if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
862 ac_popdir=`pwd`
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
865 ac_builddir=.
867 if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871 else
872 ac_dir_suffix= ac_top_builddir=
875 case $srcdir in
876 .) # No --srcdir option. We are building in place.
877 ac_srcdir=.
878 if test -z "$ac_top_builddir"; then
879 ac_top_srcdir=.
880 else
881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882 fi ;;
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
886 *) # Relative path.
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
889 esac
891 # Do not use `cd foo && pwd` to compute absolute paths, because
892 # the directories may not exist.
893 case `pwd` in
894 .) ac_abs_builddir="$ac_dir";;
896 case "$ac_dir" in
897 .) ac_abs_builddir=`pwd`;;
898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
900 esac;;
901 esac
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 case ${ac_top_builddir}. in
906 .) ac_abs_top_builddir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
909 esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
914 case $ac_srcdir in
915 .) ac_abs_srcdir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 case $ac_top_srcdir in
924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927 esac;;
928 esac
930 cd $ac_dir
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
933 echo
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
936 echo
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
940 echo
941 $ac_configure --help
942 else
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 cd "$ac_popdir"
946 done
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951 cat <<\_ACEOF
953 Copyright (C) 2003 Free Software Foundation, Inc.
954 This configure script is free software; the Free Software Foundation
955 gives unlimited permission to copy, distribute and modify it.
956 _ACEOF
957 exit 0
959 exec 5>config.log
960 cat >&5 <<_ACEOF
961 This file contains any messages produced by compilers while
962 running configure, to aid debugging if configure makes a mistake.
964 It was created by $as_me, which was
965 generated by GNU Autoconf 2.59. Invocation command line was
967 $ $0 $@
969 _ACEOF
971 cat <<_ASUNAME
972 ## --------- ##
973 ## Platform. ##
974 ## --------- ##
976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
988 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
993 _ASUNAME
995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996 for as_dir in $PATH
998 IFS=$as_save_IFS
999 test -z "$as_dir" && as_dir=.
1000 echo "PATH: $as_dir"
1001 done
1003 } >&5
1005 cat >&5 <<_ACEOF
1008 ## ----------- ##
1009 ## Core tests. ##
1010 ## ----------- ##
1012 _ACEOF
1015 # Keep a trace of the command line.
1016 # Strip out --no-create and --no-recursion so they do not pile up.
1017 # Strip out --silent because we don't want to record it for future runs.
1018 # Also quote any args containing shell meta-characters.
1019 # Make two passes to allow for proper duplicate-argument suppression.
1020 ac_configure_args=
1021 ac_configure_args0=
1022 ac_configure_args1=
1023 ac_sep=
1024 ac_must_keep_next=false
1025 for ac_pass in 1 2
1027 for ac_arg
1029 case $ac_arg in
1030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 continue ;;
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 esac
1037 case $ac_pass in
1038 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041 if test $ac_must_keep_next = true; then
1042 ac_must_keep_next=false # Got value, back to normal.
1043 else
1044 case $ac_arg in
1045 *=* | --config-cache | -C | -disable-* | --disable-* \
1046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048 | -with-* | --with-* | -without-* | --without-* | --x)
1049 case "$ac_configure_args0 " in
1050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1051 esac
1053 -* ) ac_must_keep_next=true ;;
1054 esac
1056 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057 # Get rid of the leading space.
1058 ac_sep=" "
1060 esac
1061 done
1062 done
1063 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066 # When interrupted or exit'd, cleanup temporary files, and complete
1067 # config.log. We remove comments because anyway the quotes in there
1068 # would cause problems or look ugly.
1069 # WARNING: Be sure not to use single quotes in there, as some shells,
1070 # such as our DU 5.0 friend, will then `close' the trap.
1071 trap 'exit_status=$?
1072 # Save into config.log some information that might help in debugging.
1074 echo
1076 cat <<\_ASBOX
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1080 _ASBOX
1081 echo
1082 # The following way of writing the cache mishandles newlines in values,
1084 (set) 2>&1 |
1085 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1086 *ac_space=\ *)
1087 sed -n \
1088 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1092 sed -n \
1093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 esac;
1097 echo
1099 cat <<\_ASBOX
1100 ## ----------------- ##
1101 ## Output variables. ##
1102 ## ----------------- ##
1103 _ASBOX
1104 echo
1105 for ac_var in $ac_subst_vars
1107 eval ac_val=$`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1109 done | sort
1110 echo
1112 if test -n "$ac_subst_files"; then
1113 cat <<\_ASBOX
1114 ## ------------- ##
1115 ## Output files. ##
1116 ## ------------- ##
1117 _ASBOX
1118 echo
1119 for ac_var in $ac_subst_files
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
1127 if test -s confdefs.h; then
1128 cat <<\_ASBOX
1129 ## ----------- ##
1130 ## confdefs.h. ##
1131 ## ----------- ##
1132 _ASBOX
1133 echo
1134 sed "/^$/d" confdefs.h | sort
1135 echo
1137 test "$ac_signal" != 0 &&
1138 echo "$as_me: caught signal $ac_signal"
1139 echo "$as_me: exit $exit_status"
1140 } >&5
1141 rm -f core *.core &&
1142 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1143 exit $exit_status
1145 for ac_signal in 1 2 13 15; do
1146 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147 done
1148 ac_signal=0
1150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1151 rm -rf conftest* confdefs.h
1152 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1153 echo >confdefs.h
1155 # Predefined preprocessor variables.
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_NAME "$PACKAGE_NAME"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1169 _ACEOF
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_STRING "$PACKAGE_STRING"
1174 _ACEOF
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179 _ACEOF
1182 # Let the site file select an alternate cache file if it wants to.
1183 # Prefer explicitly selected file to automatically selected ones.
1184 if test -z "$CONFIG_SITE"; then
1185 if test "x$prefix" != xNONE; then
1186 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1187 else
1188 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191 for ac_site_file in $CONFIG_SITE; do
1192 if test -r "$ac_site_file"; then
1193 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194 echo "$as_me: loading site script $ac_site_file" >&6;}
1195 sed 's/^/| /' "$ac_site_file" >&5
1196 . "$ac_site_file"
1198 done
1200 if test -r "$cache_file"; then
1201 # Some versions of bash will fail to source /dev/null (special
1202 # files actually), so we avoid doing that.
1203 if test -f "$cache_file"; then
1204 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205 echo "$as_me: loading cache $cache_file" >&6;}
1206 case $cache_file in
1207 [\\/]* | ?:[\\/]* ) . $cache_file;;
1208 *) . ./$cache_file;;
1209 esac
1211 else
1212 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213 echo "$as_me: creating cache $cache_file" >&6;}
1214 >$cache_file
1217 # Check that the precious variables saved in the cache have kept the same
1218 # value.
1219 ac_cache_corrupted=false
1220 for ac_var in `(set) 2>&1 |
1221 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223 eval ac_new_set=\$ac_env_${ac_var}_set
1224 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225 eval ac_new_val="\$ac_env_${ac_var}_value"
1226 case $ac_old_set,$ac_new_set in
1227 set,)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,set)
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1235 ,);;
1237 if test "x$ac_old_val" != "x$ac_new_val"; then
1238 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1239 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1240 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1241 echo "$as_me: former value: $ac_old_val" >&2;}
1242 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1243 echo "$as_me: current value: $ac_new_val" >&2;}
1244 ac_cache_corrupted=:
1245 fi;;
1246 esac
1247 # Pass precious variables to config.status.
1248 if test "$ac_new_set" = set; then
1249 case $ac_new_val in
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 *) ac_arg=$ac_var=$ac_new_val ;;
1253 esac
1254 case " $ac_configure_args " in
1255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1256 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257 esac
1259 done
1260 if $ac_cache_corrupted; then
1261 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1264 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265 { (exit 1); exit 1; }; }
1268 ac_ext=c
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293 ac_config_headers="$ac_config_headers autoconfig.h"
1296 WITH_CXREF_CPP=test
1298 # Check whether --with-cxref-cpp or --without-cxref-cpp was given.
1299 if test "${with_cxref_cpp+set}" = set; then
1300 withval="$with_cxref_cpp"
1301 if test "$withval" = "yes"; then WITH_CXREF_CPP=yes; fi
1302 if test "$withval" = "no"; then WITH_CXREF_CPP=no; fi
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 if test -n "$ac_tool_prefix"; then
1311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1313 echo "$as_me:$LINENO: checking for $ac_word" >&5
1314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315 if test "${ac_cv_prog_CC+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 else
1318 if test -n "$CC"; then
1319 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 else
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 for as_dir in $PATH
1324 IFS=$as_save_IFS
1325 test -z "$as_dir" && as_dir=.
1326 for ac_exec_ext in '' $ac_executable_extensions; do
1327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330 break 2
1332 done
1333 done
1337 CC=$ac_cv_prog_CC
1338 if test -n "$CC"; then
1339 echo "$as_me:$LINENO: result: $CC" >&5
1340 echo "${ECHO_T}$CC" >&6
1341 else
1342 echo "$as_me:$LINENO: result: no" >&5
1343 echo "${ECHO_T}no" >&6
1347 if test -z "$ac_cv_prog_CC"; then
1348 ac_ct_CC=$CC
1349 # Extract the first word of "gcc", so it can be a program name with args.
1350 set dummy gcc; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 if test -n "$ac_ct_CC"; then
1357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358 else
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 for as_dir in $PATH
1362 IFS=$as_save_IFS
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_ac_ct_CC="gcc"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368 break 2
1370 done
1371 done
1375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376 if test -n "$ac_ct_CC"; then
1377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1378 echo "${ECHO_T}$ac_ct_CC" >&6
1379 else
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1384 CC=$ac_ct_CC
1385 else
1386 CC="$ac_cv_prog_CC"
1389 if test -z "$CC"; then
1390 if test -n "$ac_tool_prefix"; then
1391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1392 set dummy ${ac_tool_prefix}cc; ac_word=$2
1393 echo "$as_me:$LINENO: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_CC+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 else
1398 if test -n "$CC"; then
1399 ac_cv_prog_CC="$CC" # Let the user override the test.
1400 else
1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402 for as_dir in $PATH
1404 IFS=$as_save_IFS
1405 test -z "$as_dir" && as_dir=.
1406 for ac_exec_ext in '' $ac_executable_extensions; do
1407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408 ac_cv_prog_CC="${ac_tool_prefix}cc"
1409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410 break 2
1412 done
1413 done
1417 CC=$ac_cv_prog_CC
1418 if test -n "$CC"; then
1419 echo "$as_me:$LINENO: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1421 else
1422 echo "$as_me:$LINENO: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1427 if test -z "$ac_cv_prog_CC"; then
1428 ac_ct_CC=$CC
1429 # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 if test -n "$ac_ct_CC"; then
1437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 else
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1442 IFS=$as_save_IFS
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_ac_ct_CC="cc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 break 2
1450 done
1451 done
1455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456 if test -n "$ac_ct_CC"; then
1457 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1458 echo "${ECHO_T}$ac_ct_CC" >&6
1459 else
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 CC=$ac_ct_CC
1465 else
1466 CC="$ac_cv_prog_CC"
1470 if test -z "$CC"; then
1471 # Extract the first word of "cc", so it can be a program name with args.
1472 set dummy cc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481 ac_prog_rejected=no
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1490 ac_prog_rejected=yes
1491 continue
1493 ac_cv_prog_CC="cc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1497 done
1498 done
1500 if test $ac_prog_rejected = yes; then
1501 # We found a bogon in the path, so make sure we never use it.
1502 set dummy $ac_cv_prog_CC
1503 shift
1504 if test $# != 0; then
1505 # We chose a different compiler from the bogus one.
1506 # However, it has the same basename, so the bogon will be chosen
1507 # first if we set CC to just the basename; use the full file name.
1508 shift
1509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1514 CC=$ac_cv_prog_CC
1515 if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1518 else
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1524 if test -z "$CC"; then
1525 if test -n "$ac_tool_prefix"; then
1526 for ac_prog in cl
1528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535 if test -n "$CC"; then
1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1541 IFS=$as_save_IFS
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 break 2
1549 done
1550 done
1554 CC=$ac_cv_prog_CC
1555 if test -n "$CC"; then
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1563 test -n "$CC" && break
1564 done
1566 if test -z "$CC"; then
1567 ac_ct_CC=$CC
1568 for ac_prog in cl
1570 # Extract the first word of "$ac_prog", so it can be a program name with args.
1571 set dummy $ac_prog; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 if test -n "$ac_ct_CC"; then
1578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_ac_ct_CC="$ac_prog"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 break 2
1591 done
1592 done
1596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1597 if test -n "$ac_ct_CC"; then
1598 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1599 echo "${ECHO_T}$ac_ct_CC" >&6
1600 else
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1605 test -n "$ac_ct_CC" && break
1606 done
1608 CC=$ac_ct_CC
1614 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1615 See \`config.log' for more details." >&5
1616 echo "$as_me: error: no acceptable C compiler found in \$PATH
1617 See \`config.log' for more details." >&2;}
1618 { (exit 1); exit 1; }; }
1620 # Provide some information about the compiler.
1621 echo "$as_me:$LINENO:" \
1622 "checking for C compiler version" >&5
1623 ac_compiler=`set X $ac_compile; echo $2`
1624 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1625 (eval $ac_compiler --version </dev/null >&5) 2>&5
1626 ac_status=$?
1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1630 (eval $ac_compiler -v </dev/null >&5) 2>&5
1631 ac_status=$?
1632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1635 (eval $ac_compiler -V </dev/null >&5) 2>&5
1636 ac_status=$?
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1640 cat >conftest.$ac_ext <<_ACEOF
1641 /* confdefs.h. */
1642 _ACEOF
1643 cat confdefs.h >>conftest.$ac_ext
1644 cat >>conftest.$ac_ext <<_ACEOF
1645 /* end confdefs.h. */
1648 main ()
1652 return 0;
1654 _ACEOF
1655 ac_clean_files_save=$ac_clean_files
1656 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1657 # Try to create an executable without -o first, disregard a.out.
1658 # It will help us diagnose broken compilers, and finding out an intuition
1659 # of exeext.
1660 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1661 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1662 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1663 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1664 (eval $ac_link_default) 2>&5
1665 ac_status=$?
1666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667 (exit $ac_status); }; then
1668 # Find the output, starting from the most likely. This scheme is
1669 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1670 # resort.
1672 # Be careful to initialize this variable, since it used to be cached.
1673 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1674 ac_cv_exeext=
1675 # b.out is created by i960 compilers.
1676 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1678 test -f "$ac_file" || continue
1679 case $ac_file in
1680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1682 conftest.$ac_ext )
1683 # This is the source file.
1685 [ab].out )
1686 # We found the default executable, but exeext='' is most
1687 # certainly right.
1688 break;;
1689 *.* )
1690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691 # FIXME: I believe we export ac_cv_exeext for Libtool,
1692 # but it would be cool to find out if it's true. Does anybody
1693 # maintain Libtool? --akim.
1694 export ac_cv_exeext
1695 break;;
1697 break;;
1698 esac
1699 done
1700 else
1701 echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1705 See \`config.log' for more details." >&5
1706 echo "$as_me: error: C compiler cannot create executables
1707 See \`config.log' for more details." >&2;}
1708 { (exit 77); exit 77; }; }
1711 ac_exeext=$ac_cv_exeext
1712 echo "$as_me:$LINENO: result: $ac_file" >&5
1713 echo "${ECHO_T}$ac_file" >&6
1715 # Check the compiler produces executables we can run. If not, either
1716 # the compiler is broken, or we cross compile.
1717 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1718 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1719 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1720 # If not cross compiling, check that we can run a simple program.
1721 if test "$cross_compiling" != yes; then
1722 if { ac_try='./$ac_file'
1723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1724 (eval $ac_try) 2>&5
1725 ac_status=$?
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }; }; then
1728 cross_compiling=no
1729 else
1730 if test "$cross_compiling" = maybe; then
1731 cross_compiling=yes
1732 else
1733 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1734 If you meant to cross compile, use \`--host'.
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: cannot run C compiled programs.
1737 If you meant to cross compile, use \`--host'.
1738 See \`config.log' for more details." >&2;}
1739 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: result: yes" >&5
1744 echo "${ECHO_T}yes" >&6
1746 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1747 ac_clean_files=$ac_clean_files_save
1748 # Check the compiler produces executables we can run. If not, either
1749 # the compiler is broken, or we cross compile.
1750 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1751 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1752 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1753 echo "${ECHO_T}$cross_compiling" >&6
1755 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1756 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1758 (eval $ac_link) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
1762 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1763 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1764 # work properly (i.e., refer to `conftest.exe'), while it won't with
1765 # `rm'.
1766 for ac_file in conftest.exe conftest conftest.*; do
1767 test -f "$ac_file" || continue
1768 case $ac_file in
1769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1770 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1771 export ac_cv_exeext
1772 break;;
1773 * ) break;;
1774 esac
1775 done
1776 else
1777 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1784 rm -f conftest$ac_cv_exeext
1785 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1786 echo "${ECHO_T}$ac_cv_exeext" >&6
1788 rm -f conftest.$ac_ext
1789 EXEEXT=$ac_cv_exeext
1790 ac_exeext=$EXEEXT
1791 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1792 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1793 if test "${ac_cv_objext+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 cat >conftest.$ac_ext <<_ACEOF
1797 /* confdefs.h. */
1798 _ACEOF
1799 cat confdefs.h >>conftest.$ac_ext
1800 cat >>conftest.$ac_ext <<_ACEOF
1801 /* end confdefs.h. */
1804 main ()
1808 return 0;
1810 _ACEOF
1811 rm -f conftest.o conftest.obj
1812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1813 (eval $ac_compile) 2>&5
1814 ac_status=$?
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); }; then
1817 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1818 case $ac_file in
1819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1820 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1821 break;;
1822 esac
1823 done
1824 else
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1837 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1838 echo "${ECHO_T}$ac_cv_objext" >&6
1839 OBJEXT=$ac_cv_objext
1840 ac_objext=$OBJEXT
1841 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1842 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1843 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 cat >conftest.$ac_ext <<_ACEOF
1847 /* confdefs.h. */
1848 _ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h. */
1854 main ()
1856 #ifndef __GNUC__
1857 choke me
1858 #endif
1861 return 0;
1863 _ACEOF
1864 rm -f conftest.$ac_objext
1865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>conftest.er1
1867 ac_status=$?
1868 grep -v '^ *+' conftest.er1 >conftest.err
1869 rm -f conftest.er1
1870 cat conftest.err >&5
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); } &&
1873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875 (eval $ac_try) 2>&5
1876 ac_status=$?
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; } &&
1879 { ac_try='test -s conftest.$ac_objext'
1880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1881 (eval $ac_try) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; }; then
1885 ac_compiler_gnu=yes
1886 else
1887 echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_compiler_gnu=no
1892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1896 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1897 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1898 GCC=`test $ac_compiler_gnu = yes && echo yes`
1899 ac_test_CFLAGS=${CFLAGS+set}
1900 ac_save_CFLAGS=$CFLAGS
1901 CFLAGS="-g"
1902 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1903 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1904 if test "${ac_cv_prog_cc_g+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 cat >conftest.$ac_ext <<_ACEOF
1908 /* confdefs.h. */
1909 _ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h. */
1915 main ()
1919 return 0;
1921 _ACEOF
1922 rm -f conftest.$ac_objext
1923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>conftest.er1
1925 ac_status=$?
1926 grep -v '^ *+' conftest.er1 >conftest.err
1927 rm -f conftest.er1
1928 cat conftest.err >&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 (eval $ac_try) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; } &&
1937 { ac_try='test -s conftest.$ac_objext'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1943 ac_cv_prog_cc_g=yes
1944 else
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 ac_cv_prog_cc_g=no
1950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1954 if test "$ac_test_CFLAGS" = set; then
1955 CFLAGS=$ac_save_CFLAGS
1956 elif test $ac_cv_prog_cc_g = yes; then
1957 if test "$GCC" = yes; then
1958 CFLAGS="-g -O2"
1959 else
1960 CFLAGS="-g"
1962 else
1963 if test "$GCC" = yes; then
1964 CFLAGS="-O2"
1965 else
1966 CFLAGS=
1969 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1970 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1971 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 ac_cv_prog_cc_stdc=no
1975 ac_save_CC=$CC
1976 cat >conftest.$ac_ext <<_ACEOF
1977 /* confdefs.h. */
1978 _ACEOF
1979 cat confdefs.h >>conftest.$ac_ext
1980 cat >>conftest.$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1982 #include <stdarg.h>
1983 #include <stdio.h>
1984 #include <sys/types.h>
1985 #include <sys/stat.h>
1986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1987 struct buf { int x; };
1988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1989 static char *e (p, i)
1990 char **p;
1991 int i;
1993 return p[i];
1995 static char *f (char * (*g) (char **, int), char **p, ...)
1997 char *s;
1998 va_list v;
1999 va_start (v,p);
2000 s = g (p, va_arg (v,int));
2001 va_end (v);
2002 return s;
2005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2006 function prototypes and stuff, but not '\xHH' hex character constants.
2007 These don't provoke an error unfortunately, instead are silently treated
2008 as 'x'. The following induces an error, until -std1 is added to get
2009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2010 array size at least. It's necessary to write '\x00'==0 to get something
2011 that's true only with -std1. */
2012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2014 int test (int i, double x);
2015 struct s1 {int (*f) (int a);};
2016 struct s2 {int (*f) (double a);};
2017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2018 int argc;
2019 char **argv;
2021 main ()
2023 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2025 return 0;
2027 _ACEOF
2028 # Don't try gcc -ansi; that turns off useful extensions and
2029 # breaks some systems' header files.
2030 # AIX -qlanglvl=ansi
2031 # Ultrix and OSF/1 -std1
2032 # HP-UX 10.20 and later -Ae
2033 # HP-UX older versions -Aa -D_HPUX_SOURCE
2034 # SVR4 -Xc -D__EXTENSIONS__
2035 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2037 CC="$ac_save_CC $ac_arg"
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>conftest.er1
2041 ac_status=$?
2042 grep -v '^ *+' conftest.er1 >conftest.err
2043 rm -f conftest.er1
2044 cat conftest.err >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049 (eval $ac_try) 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; } &&
2053 { ac_try='test -s conftest.$ac_objext'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 (eval $ac_try) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2059 ac_cv_prog_cc_stdc=$ac_arg
2060 break
2061 else
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2066 rm -f conftest.err conftest.$ac_objext
2067 done
2068 rm -f conftest.$ac_ext conftest.$ac_objext
2069 CC=$ac_save_CC
2073 case "x$ac_cv_prog_cc_stdc" in
2074 x|xno)
2075 echo "$as_me:$LINENO: result: none needed" >&5
2076 echo "${ECHO_T}none needed" >&6 ;;
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2080 CC="$CC $ac_cv_prog_cc_stdc" ;;
2081 esac
2083 # Some people use a C++ compiler to compile C. Since we use `exit',
2084 # in C++ we need to declare it. In case someone uses the same compiler
2085 # for both compiling C and C++ we need to have the C++ compiler decide
2086 # the declaration of exit, since it's the most demanding environment.
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #ifndef __cplusplus
2089 choke me
2090 #endif
2091 _ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>conftest.er1
2095 ac_status=$?
2096 grep -v '^ *+' conftest.er1 >conftest.err
2097 rm -f conftest.er1
2098 cat conftest.err >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 (eval $ac_try) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; } &&
2107 { ac_try='test -s conftest.$ac_objext'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 (eval $ac_try) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2113 for ac_declaration in \
2114 '' \
2115 'extern "C" void std::exit (int) throw (); using std::exit;' \
2116 'extern "C" void std::exit (int); using std::exit;' \
2117 'extern "C" void exit (int) throw ();' \
2118 'extern "C" void exit (int);' \
2119 'void exit (int);'
2121 cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h. */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2127 $ac_declaration
2128 #include <stdlib.h>
2130 main ()
2132 exit (42);
2134 return 0;
2136 _ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2140 ac_status=$?
2141 grep -v '^ *+' conftest.er1 >conftest.err
2142 rm -f conftest.er1
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 (eval $ac_try) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2159 else
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2163 continue
2165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166 cat >conftest.$ac_ext <<_ACEOF
2167 /* confdefs.h. */
2168 _ACEOF
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2172 $ac_declaration
2174 main ()
2176 exit (42);
2178 return 0;
2180 _ACEOF
2181 rm -f conftest.$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2184 ac_status=$?
2185 grep -v '^ *+' conftest.er1 >conftest.err
2186 rm -f conftest.er1
2187 cat conftest.err >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; } &&
2196 { ac_try='test -s conftest.$ac_objext'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 (eval $ac_try) 2>&5
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; }; then
2202 break
2203 else
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209 done
2210 rm -f conftest*
2211 if test -n "$ac_declaration"; then
2212 echo '#ifdef __cplusplus' >>confdefs.h
2213 echo $ac_declaration >>confdefs.h
2214 echo '#endif' >>confdefs.h
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 for ac_prog in 'bison -y' byacc
2231 # Extract the first word of "$ac_prog", so it can be a program name with args.
2232 set dummy $ac_prog; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_YACC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test -n "$YACC"; then
2239 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_YACC="$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2252 done
2253 done
2257 YACC=$ac_cv_prog_YACC
2258 if test -n "$YACC"; then
2259 echo "$as_me:$LINENO: result: $YACC" >&5
2260 echo "${ECHO_T}$YACC" >&6
2261 else
2262 echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2266 test -n "$YACC" && break
2267 done
2268 test -n "$YACC" || YACC="yacc"
2270 ac_ext=c
2271 ac_cpp='$CPP $CPPFLAGS'
2272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2276 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2277 # On Suns, sometimes $CPP names a directory.
2278 if test -n "$CPP" && test -d "$CPP"; then
2279 CPP=
2281 if test -z "$CPP"; then
2282 if test "${ac_cv_prog_CPP+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 # Double quotes because CPP needs to be expanded
2286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2288 ac_preproc_ok=false
2289 for ac_c_preproc_warn_flag in '' yes
2291 # Use a header file that comes with gcc, so configuring glibc
2292 # with a fresh cross-compiler works.
2293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2294 # <limits.h> exists even on freestanding compilers.
2295 # On the NeXT, cc -E runs the code through the compiler's parser,
2296 # not just through cpp. "Syntax error" is here to catch this case.
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h. */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2303 #ifdef __STDC__
2304 # include <limits.h>
2305 #else
2306 # include <assert.h>
2307 #endif
2308 Syntax error
2309 _ACEOF
2310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } >/dev/null; then
2318 if test -s conftest.err; then
2319 ac_cpp_err=$ac_c_preproc_warn_flag
2320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2321 else
2322 ac_cpp_err=
2324 else
2325 ac_cpp_err=yes
2327 if test -z "$ac_cpp_err"; then
2329 else
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 # Broken: fails on valid input.
2334 continue
2336 rm -f conftest.err conftest.$ac_ext
2338 # OK, works on sane cases. Now check whether non-existent headers
2339 # can be detected and how.
2340 cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h. */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2346 #include <ac_nonexistent.h>
2347 _ACEOF
2348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } >/dev/null; then
2356 if test -s conftest.err; then
2357 ac_cpp_err=$ac_c_preproc_warn_flag
2358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2359 else
2360 ac_cpp_err=
2362 else
2363 ac_cpp_err=yes
2365 if test -z "$ac_cpp_err"; then
2366 # Broken: success on invalid input.
2367 continue
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 # Passes both tests.
2373 ac_preproc_ok=:
2374 break
2376 rm -f conftest.err conftest.$ac_ext
2378 done
2379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2380 rm -f conftest.err conftest.$ac_ext
2381 if $ac_preproc_ok; then
2382 break
2385 done
2386 ac_cv_prog_CPP=$CPP
2389 CPP=$ac_cv_prog_CPP
2390 else
2391 ac_cv_prog_CPP=$CPP
2393 echo "$as_me:$LINENO: result: $CPP" >&5
2394 echo "${ECHO_T}$CPP" >&6
2395 ac_preproc_ok=false
2396 for ac_c_preproc_warn_flag in '' yes
2398 # Use a header file that comes with gcc, so configuring glibc
2399 # with a fresh cross-compiler works.
2400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2401 # <limits.h> exists even on freestanding compilers.
2402 # On the NeXT, cc -E runs the code through the compiler's parser,
2403 # not just through cpp. "Syntax error" is here to catch this case.
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2410 #ifdef __STDC__
2411 # include <limits.h>
2412 #else
2413 # include <assert.h>
2414 #endif
2415 Syntax error
2416 _ACEOF
2417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } >/dev/null; then
2425 if test -s conftest.err; then
2426 ac_cpp_err=$ac_c_preproc_warn_flag
2427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2428 else
2429 ac_cpp_err=
2431 else
2432 ac_cpp_err=yes
2434 if test -z "$ac_cpp_err"; then
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 # Broken: fails on valid input.
2441 continue
2443 rm -f conftest.err conftest.$ac_ext
2445 # OK, works on sane cases. Now check whether non-existent headers
2446 # can be detected and how.
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2453 #include <ac_nonexistent.h>
2454 _ACEOF
2455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } >/dev/null; then
2463 if test -s conftest.err; then
2464 ac_cpp_err=$ac_c_preproc_warn_flag
2465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2466 else
2467 ac_cpp_err=
2469 else
2470 ac_cpp_err=yes
2472 if test -z "$ac_cpp_err"; then
2473 # Broken: success on invalid input.
2474 continue
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2479 # Passes both tests.
2480 ac_preproc_ok=:
2481 break
2483 rm -f conftest.err conftest.$ac_ext
2485 done
2486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2487 rm -f conftest.err conftest.$ac_ext
2488 if $ac_preproc_ok; then
2490 else
2491 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2494 See \`config.log' for more details." >&2;}
2495 { (exit 1); exit 1; }; }
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 ac_aux_dir=
2505 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2506 if test -f $ac_dir/install-sh; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/install-sh -c"
2509 break
2510 elif test -f $ac_dir/install.sh; then
2511 ac_aux_dir=$ac_dir
2512 ac_install_sh="$ac_aux_dir/install.sh -c"
2513 break
2514 elif test -f $ac_dir/shtool; then
2515 ac_aux_dir=$ac_dir
2516 ac_install_sh="$ac_aux_dir/shtool install -c"
2517 break
2519 done
2520 if test -z "$ac_aux_dir"; then
2521 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2522 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2523 { (exit 1); exit 1; }; }
2525 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2526 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2527 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2529 # Find a good install program. We prefer a C program (faster),
2530 # so one script is as good as another. But avoid the broken or
2531 # incompatible versions:
2532 # SysV /etc/install, /usr/sbin/install
2533 # SunOS /usr/etc/install
2534 # IRIX /sbin/install
2535 # AIX /bin/install
2536 # AmigaOS /C/install, which installs bootblocks on floppy discs
2537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540 # OS/2's system install, which has a completely different semantic
2541 # ./install, which can be erroneously created by make from ./install.sh.
2542 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2543 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2544 if test -z "$INSTALL"; then
2545 if test "${ac_cv_path_install+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 # Account for people who put trailing slashes in PATH elements.
2554 case $as_dir/ in
2555 ./ | .// | /cC/* | \
2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2557 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2558 /usr/ucb/* ) ;;
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2562 # by default.
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2566 if test $ac_prog = install &&
2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568 # AIX install. It has an incompatible calling convention.
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2574 else
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576 break 3
2579 done
2580 done
2582 esac
2583 done
2587 if test "${ac_cv_path_install+set}" = set; then
2588 INSTALL=$ac_cv_path_install
2589 else
2590 # As a last resort, use the slow shell script. We don't cache a
2591 # path for INSTALL within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the path is relative.
2594 INSTALL=$ac_install_sh
2597 echo "$as_me:$LINENO: result: $INSTALL" >&5
2598 echo "${ECHO_T}$INSTALL" >&6
2600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601 # It thinks the first close brace ends the variable substitution.
2602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2609 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2610 LN_S=$as_ln_s
2611 if test "$LN_S" = "ln -s"; then
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 else
2615 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2616 echo "${ECHO_T}no, using $LN_S" >&6
2619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2621 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 cat >conftest.make <<\_ACEOF
2626 all:
2627 @echo 'ac_maketemp="$(MAKE)"'
2628 _ACEOF
2629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2631 if test -n "$ac_maketemp"; then
2632 eval ac_cv_prog_make_${ac_make}_set=yes
2633 else
2634 eval ac_cv_prog_make_${ac_make}_set=no
2636 rm -f conftest.make
2638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2639 echo "$as_me:$LINENO: result: yes" >&5
2640 echo "${ECHO_T}yes" >&6
2641 SET_MAKE=
2642 else
2643 echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6
2645 SET_MAKE="MAKE=${MAKE-make}"
2648 echo "$as_me:$LINENO: checking for egrep" >&5
2649 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2650 if test "${ac_cv_prog_egrep+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2654 then ac_cv_prog_egrep='grep -E'
2655 else ac_cv_prog_egrep='egrep'
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2659 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2660 EGREP=$ac_cv_prog_egrep
2667 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2669 if test "${ac_cv_header_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h. */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2678 #include <stdlib.h>
2679 #include <stdarg.h>
2680 #include <string.h>
2681 #include <float.h>
2684 main ()
2688 return 0;
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_header_stdc=yes
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 ac_cv_header_stdc=no
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 if test $ac_cv_header_stdc = yes; then
2722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729 #include <string.h>
2731 _ACEOF
2732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2733 $EGREP "memchr" >/dev/null 2>&1; then
2735 else
2736 ac_cv_header_stdc=no
2738 rm -f conftest*
2742 if test $ac_cv_header_stdc = yes; then
2743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2750 #include <stdlib.h>
2752 _ACEOF
2753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754 $EGREP "free" >/dev/null 2>&1; then
2756 else
2757 ac_cv_header_stdc=no
2759 rm -f conftest*
2763 if test $ac_cv_header_stdc = yes; then
2764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2765 if test "$cross_compiling" = yes; then
2767 else
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2774 #include <ctype.h>
2775 #if ((' ' & 0x0FF) == 0x020)
2776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2778 #else
2779 # define ISLOWER(c) \
2780 (('a' <= (c) && (c) <= 'i') \
2781 || ('j' <= (c) && (c) <= 'r') \
2782 || ('s' <= (c) && (c) <= 'z'))
2783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2784 #endif
2786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2788 main ()
2790 int i;
2791 for (i = 0; i < 256; i++)
2792 if (XOR (islower (i), ISLOWER (i))
2793 || toupper (i) != TOUPPER (i))
2794 exit(2);
2795 exit (0);
2797 _ACEOF
2798 rm -f conftest$ac_exeext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2810 else
2811 echo "$as_me: program exited with status $ac_status" >&5
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 ( exit $ac_status )
2816 ac_cv_header_stdc=no
2818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2822 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2823 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2824 if test $ac_cv_header_stdc = yes; then
2826 cat >>confdefs.h <<\_ACEOF
2827 #define STDC_HEADERS 1
2828 _ACEOF
2832 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2833 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2834 if test "${ac_cv_header_time+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h. */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2843 #include <sys/types.h>
2844 #include <sys/time.h>
2845 #include <time.h>
2848 main ()
2850 if ((struct tm *) 0)
2851 return 0;
2853 return 0;
2855 _ACEOF
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>conftest.er1
2859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_cv_header_time=yes
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 ac_cv_header_time=no
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2887 echo "${ECHO_T}$ac_cv_header_time" >&6
2888 if test $ac_cv_header_time = yes; then
2890 cat >>confdefs.h <<\_ACEOF
2891 #define TIME_WITH_SYS_TIME 1
2892 _ACEOF
2896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2907 inttypes.h stdint.h unistd.h
2909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2910 echo "$as_me:$LINENO: checking for $ac_header" >&5
2911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 $ac_includes_default
2923 #include <$ac_header>
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 eval "$as_ac_Header=yes"
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 eval "$as_ac_Header=no"
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2958 cat >>confdefs.h <<_ACEOF
2959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2960 _ACEOF
2964 done
2972 for ac_header in fcntl.h malloc.h sys/time.h unistd.h stdlib.h
2974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2976 echo "$as_me:$LINENO: checking for $ac_header" >&5
2977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2983 else
2984 # Is the header compilable?
2985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 $ac_includes_default
2994 #include <$ac_header>
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_header_compiler=yes
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ac_header_compiler=no
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3026 echo "${ECHO_T}$ac_header_compiler" >&6
3028 # Is the header present?
3029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 #include <$ac_header>
3038 _ACEOF
3039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null; then
3047 if test -s conftest.err; then
3048 ac_cpp_err=$ac_c_preproc_warn_flag
3049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3050 else
3051 ac_cpp_err=
3053 else
3054 ac_cpp_err=yes
3056 if test -z "$ac_cpp_err"; then
3057 ac_header_preproc=yes
3058 else
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 ac_header_preproc=no
3064 rm -f conftest.err conftest.$ac_ext
3065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3066 echo "${ECHO_T}$ac_header_preproc" >&6
3068 # So? What about this header?
3069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3070 yes:no: )
3071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3075 ac_header_preproc=yes
3077 no:yes:* )
3078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3091 cat <<\_ASBOX
3092 ## ------------------------------------------ ##
3093 ## Report this to the AC_PACKAGE_NAME lists. ##
3094 ## ------------------------------------------ ##
3095 _ASBOX
3097 sed "s/^/$as_me: WARNING: /" >&2
3099 esac
3100 echo "$as_me:$LINENO: checking for $ac_header" >&5
3101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 eval "$as_ac_Header=\$ac_header_preproc"
3107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3112 cat >>confdefs.h <<_ACEOF
3113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3114 _ACEOF
3118 done
3121 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3122 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3123 if test "${ac_cv_c_const+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 main ()
3136 /* FIXME: Include the comments suggested by Paul. */
3137 #ifndef __cplusplus
3138 /* Ultrix mips cc rejects this. */
3139 typedef int charset[2];
3140 const charset x;
3141 /* SunOS 4.1.1 cc rejects this. */
3142 char const *const *ccp;
3143 char **p;
3144 /* NEC SVR4.0.2 mips cc rejects this. */
3145 struct point {int x, y;};
3146 static struct point const zero = {0,0};
3147 /* AIX XL C 1.02.0.0 rejects this.
3148 It does not let you subtract one const X* pointer from another in
3149 an arm of an if-expression whose if-part is not a constant
3150 expression */
3151 const char *g = "string";
3152 ccp = &g + (g ? g-g : 0);
3153 /* HPUX 7.0 cc rejects these. */
3154 ++ccp;
3155 p = (char**) ccp;
3156 ccp = (char const *const *) p;
3157 { /* SCO 3.2v4 cc rejects this. */
3158 char *t;
3159 char const *s = 0 ? (char *) 0 : (char const *) 0;
3161 *t++ = 0;
3163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3164 int x[] = {25, 17};
3165 const int *foo = &x[0];
3166 ++foo;
3168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3169 typedef const int *iptr;
3170 iptr p = 0;
3171 ++p;
3173 { /* AIX XL C 1.02.0.0 rejects this saying
3174 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3175 struct s { int j; const int *ap[3]; };
3176 struct s *b; b->j = 5;
3178 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3179 const int foo = 10;
3181 #endif
3184 return 0;
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 (eval $ac_try) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_c_const=yes
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 ac_cv_c_const=no
3215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3218 echo "${ECHO_T}$ac_cv_c_const" >&6
3219 if test $ac_cv_c_const = no; then
3221 cat >>confdefs.h <<\_ACEOF
3222 #define const
3223 _ACEOF
3227 echo "$as_me:$LINENO: checking for pid_t" >&5
3228 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3229 if test "${ac_cv_type_pid_t+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 $ac_includes_default
3240 main ()
3242 if ((pid_t *) 0)
3243 return 0;
3244 if (sizeof (pid_t))
3245 return 0;
3247 return 0;
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252 (eval $ac_compile) 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } &&
3259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try='test -s conftest.$ac_objext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 ac_cv_type_pid_t=yes
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 ac_cv_type_pid_t=no
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3281 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3282 if test $ac_cv_type_pid_t = yes; then
3284 else
3286 cat >>confdefs.h <<_ACEOF
3287 #define pid_t int
3288 _ACEOF
3292 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3293 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3294 if test "${ac_cv_struct_tm+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 #include <sys/types.h>
3304 #include <time.h>
3307 main ()
3309 struct tm *tp; tp->tm_sec;
3311 return 0;
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316 (eval $ac_compile) 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; } &&
3329 { ac_try='test -s conftest.$ac_objext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3335 ac_cv_struct_tm=time.h
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 ac_cv_struct_tm=sys/time.h
3342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3344 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3345 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3346 if test $ac_cv_struct_tm = sys/time.h; then
3348 cat >>confdefs.h <<\_ACEOF
3349 #define TM_IN_SYS_TIME 1
3350 _ACEOF
3354 echo "$as_me:$LINENO: checking for int" >&5
3355 echo $ECHO_N "checking for int... $ECHO_C" >&6
3356 if test "${ac_cv_type_int+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 $ac_includes_default
3367 main ()
3369 if ((int *) 0)
3370 return 0;
3371 if (sizeof (int))
3372 return 0;
3374 return 0;
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_type_int=yes
3399 else
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 ac_cv_type_int=no
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3408 echo "${ECHO_T}$ac_cv_type_int" >&6
3410 echo "$as_me:$LINENO: checking size of int" >&5
3411 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3412 if test "${ac_cv_sizeof_int+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 if test "$ac_cv_type_int" = yes; then
3416 # The cast to unsigned long works around a bug in the HP C Compiler
3417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3419 # This bug is HP SR number 8606223364.
3420 if test "$cross_compiling" = yes; then
3421 # Depending upon the size, compute the lo and hi bounds.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3430 main ()
3432 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3433 test_array [0] = 0
3436 return 0;
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_lo=0 ac_mid=0
3461 while :; do
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 $ac_includes_default
3470 main ()
3472 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3473 test_array [0] = 0
3476 return 0;
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 ac_hi=$ac_mid; break
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 ac_lo=`expr $ac_mid + 1`
3506 if test $ac_lo -le $ac_mid; then
3507 ac_lo= ac_hi=
3508 break
3510 ac_mid=`expr 2 '*' $ac_mid + 1`
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 done
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_includes_default
3526 main ()
3528 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3529 test_array [0] = 0
3532 return 0;
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_hi=-1 ac_mid=-1
3557 while :; do
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 $ac_includes_default
3566 main ()
3568 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3569 test_array [0] = 0
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest.$ac_objext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_lo=$ac_mid; break
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 ac_hi=`expr '(' $ac_mid ')' - 1`
3602 if test $ac_mid -le $ac_hi; then
3603 ac_lo= ac_hi=
3604 break
3606 ac_mid=`expr 2 '*' $ac_mid`
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 done
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 ac_lo= ac_hi=
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619 # Binary search between lo and hi bounds.
3620 while test "x$ac_lo" != "x$ac_hi"; do
3621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h. */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628 $ac_includes_default
3630 main ()
3632 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3633 test_array [0] = 0
3636 return 0;
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641 (eval $ac_compile) 2>conftest.er1
3642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 (eval $ac_try) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_hi=$ac_mid
3661 else
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 ac_lo=`expr '(' $ac_mid ')' + 1`
3667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3668 done
3669 case $ac_lo in
3670 ?*) ac_cv_sizeof_int=$ac_lo;;
3671 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3672 See \`config.log' for more details." >&5
3673 echo "$as_me: error: cannot compute sizeof (int), 77
3674 See \`config.log' for more details." >&2;}
3675 { (exit 1); exit 1; }; } ;;
3676 esac
3677 else
3678 if test "$cross_compiling" = yes; then
3679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3680 See \`config.log' for more details." >&5
3681 echo "$as_me: error: cannot run test program while cross compiling
3682 See \`config.log' for more details." >&2;}
3683 { (exit 1); exit 1; }; }
3684 else
3685 cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h. */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3691 $ac_includes_default
3692 long longval () { return (long) (sizeof (int)); }
3693 unsigned long ulongval () { return (long) (sizeof (int)); }
3694 #include <stdio.h>
3695 #include <stdlib.h>
3697 main ()
3700 FILE *f = fopen ("conftest.val", "w");
3701 if (! f)
3702 exit (1);
3703 if (((long) (sizeof (int))) < 0)
3705 long i = longval ();
3706 if (i != ((long) (sizeof (int))))
3707 exit (1);
3708 fprintf (f, "%ld\n", i);
3710 else
3712 unsigned long i = ulongval ();
3713 if (i != ((long) (sizeof (int))))
3714 exit (1);
3715 fprintf (f, "%lu\n", i);
3717 exit (ferror (f) || fclose (f) != 0);
3720 return 0;
3722 _ACEOF
3723 rm -f conftest$ac_exeext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725 (eval $ac_link) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_sizeof_int=`cat conftest.val`
3735 else
3736 echo "$as_me: program exited with status $ac_status" >&5
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ( exit $ac_status )
3741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3742 See \`config.log' for more details." >&5
3743 echo "$as_me: error: cannot compute sizeof (int), 77
3744 See \`config.log' for more details." >&2;}
3745 { (exit 1); exit 1; }; }
3747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3750 rm -f conftest.val
3751 else
3752 ac_cv_sizeof_int=0
3755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3756 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3757 cat >>confdefs.h <<_ACEOF
3758 #define SIZEOF_INT $ac_cv_sizeof_int
3759 _ACEOF
3762 echo "$as_me:$LINENO: checking for long" >&5
3763 echo $ECHO_N "checking for long... $ECHO_C" >&6
3764 if test "${ac_cv_type_long+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h. */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3775 main ()
3777 if ((long *) 0)
3778 return 0;
3779 if (sizeof (long))
3780 return 0;
3782 return 0;
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_type_long=yes
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_cv_type_long=no
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3816 echo "${ECHO_T}$ac_cv_type_long" >&6
3818 echo "$as_me:$LINENO: checking size of long" >&5
3819 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3820 if test "${ac_cv_sizeof_long+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 if test "$ac_cv_type_long" = yes; then
3824 # The cast to unsigned long works around a bug in the HP C Compiler
3825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3827 # This bug is HP SR number 8606223364.
3828 if test "$cross_compiling" = yes; then
3829 # Depending upon the size, compute the lo and hi bounds.
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 $ac_includes_default
3838 main ()
3840 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3841 test_array [0] = 0
3844 return 0;
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_lo=0 ac_mid=0
3869 while :; do
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 $ac_includes_default
3878 main ()
3880 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3881 test_array [0] = 0
3884 return 0;
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_hi=$ac_mid; break
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 ac_lo=`expr $ac_mid + 1`
3914 if test $ac_lo -le $ac_mid; then
3915 ac_lo= ac_hi=
3916 break
3918 ac_mid=`expr 2 '*' $ac_mid + 1`
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 done
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h. */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3932 $ac_includes_default
3934 main ()
3936 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3937 test_array [0] = 0
3940 return 0;
3942 _ACEOF
3943 rm -f conftest.$ac_objext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3945 (eval $ac_compile) 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_hi=-1 ac_mid=-1
3965 while :; do
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 $ac_includes_default
3974 main ()
3976 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3977 test_array [0] = 0
3980 return 0;
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985 (eval $ac_compile) 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_lo=$ac_mid; break
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 ac_hi=`expr '(' $ac_mid ')' - 1`
4010 if test $ac_mid -le $ac_hi; then
4011 ac_lo= ac_hi=
4012 break
4014 ac_mid=`expr 2 '*' $ac_mid`
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 done
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_lo= ac_hi=
4024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4027 # Binary search between lo and hi bounds.
4028 while test "x$ac_lo" != "x$ac_hi"; do
4029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 $ac_includes_default
4038 main ()
4040 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4041 test_array [0] = 0
4044 return 0;
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } &&
4056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_hi=$ac_mid
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 ac_lo=`expr '(' $ac_mid ')' + 1`
4075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4076 done
4077 case $ac_lo in
4078 ?*) ac_cv_sizeof_long=$ac_lo;;
4079 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4080 See \`config.log' for more details." >&5
4081 echo "$as_me: error: cannot compute sizeof (long), 77
4082 See \`config.log' for more details." >&2;}
4083 { (exit 1); exit 1; }; } ;;
4084 esac
4085 else
4086 if test "$cross_compiling" = yes; then
4087 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4088 See \`config.log' for more details." >&5
4089 echo "$as_me: error: cannot run test program while cross compiling
4090 See \`config.log' for more details." >&2;}
4091 { (exit 1); exit 1; }; }
4092 else
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_includes_default
4100 long longval () { return (long) (sizeof (long)); }
4101 unsigned long ulongval () { return (long) (sizeof (long)); }
4102 #include <stdio.h>
4103 #include <stdlib.h>
4105 main ()
4108 FILE *f = fopen ("conftest.val", "w");
4109 if (! f)
4110 exit (1);
4111 if (((long) (sizeof (long))) < 0)
4113 long i = longval ();
4114 if (i != ((long) (sizeof (long))))
4115 exit (1);
4116 fprintf (f, "%ld\n", i);
4118 else
4120 unsigned long i = ulongval ();
4121 if (i != ((long) (sizeof (long))))
4122 exit (1);
4123 fprintf (f, "%lu\n", i);
4125 exit (ferror (f) || fclose (f) != 0);
4128 return 0;
4130 _ACEOF
4131 rm -f conftest$ac_exeext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4133 (eval $ac_link) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_cv_sizeof_long=`cat conftest.val`
4143 else
4144 echo "$as_me: program exited with status $ac_status" >&5
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 ( exit $ac_status )
4149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4150 See \`config.log' for more details." >&5
4151 echo "$as_me: error: cannot compute sizeof (long), 77
4152 See \`config.log' for more details." >&2;}
4153 { (exit 1); exit 1; }; }
4155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4158 rm -f conftest.val
4159 else
4160 ac_cv_sizeof_long=0
4163 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4164 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4165 cat >>confdefs.h <<_ACEOF
4166 #define SIZEOF_LONG $ac_cv_sizeof_long
4167 _ACEOF
4171 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4172 # for constant arguments. Useless!
4173 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4174 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4175 if test "${ac_cv_working_alloca_h+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #include <alloca.h>
4186 main ()
4188 char *p = (char *) alloca (2 * sizeof (int));
4190 return 0;
4192 _ACEOF
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195 (eval $ac_link) 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_working_alloca_h=yes
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_working_alloca_h=no
4221 rm -f conftest.err conftest.$ac_objext \
4222 conftest$ac_exeext conftest.$ac_ext
4224 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4225 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4226 if test $ac_cv_working_alloca_h = yes; then
4228 cat >>confdefs.h <<\_ACEOF
4229 #define HAVE_ALLOCA_H 1
4230 _ACEOF
4234 echo "$as_me:$LINENO: checking for alloca" >&5
4235 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4236 if test "${ac_cv_func_alloca_works+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 #ifdef __GNUC__
4246 # define alloca __builtin_alloca
4247 #else
4248 # ifdef _MSC_VER
4249 # include <malloc.h>
4250 # define alloca _alloca
4251 # else
4252 # if HAVE_ALLOCA_H
4253 # include <alloca.h>
4254 # else
4255 # ifdef _AIX
4256 #pragma alloca
4257 # else
4258 # ifndef alloca /* predefined by HP cc +Olibcalls */
4259 char *alloca ();
4260 # endif
4261 # endif
4262 # endif
4263 # endif
4264 #endif
4267 main ()
4269 char *p = (char *) alloca (1);
4271 return 0;
4273 _ACEOF
4274 rm -f conftest.$ac_objext conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest$ac_exeext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_func_alloca_works=yes
4296 else
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 ac_cv_func_alloca_works=no
4302 rm -f conftest.err conftest.$ac_objext \
4303 conftest$ac_exeext conftest.$ac_ext
4305 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4306 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4308 if test $ac_cv_func_alloca_works = yes; then
4310 cat >>confdefs.h <<\_ACEOF
4311 #define HAVE_ALLOCA 1
4312 _ACEOF
4314 else
4315 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4316 # that cause trouble. Some versions do not even contain alloca or
4317 # contain a buggy version. If you still want to use their alloca,
4318 # use ar to extract alloca.o from them instead of compiling alloca.c.
4320 ALLOCA=alloca.$ac_objext
4322 cat >>confdefs.h <<\_ACEOF
4323 #define C_ALLOCA 1
4324 _ACEOF
4327 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4328 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4329 if test "${ac_cv_os_cray+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #if defined(CRAY) && ! defined(CRAY2)
4339 webecray
4340 #else
4341 wenotbecray
4342 #endif
4344 _ACEOF
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "webecray" >/dev/null 2>&1; then
4347 ac_cv_os_cray=yes
4348 else
4349 ac_cv_os_cray=no
4351 rm -f conftest*
4354 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4355 echo "${ECHO_T}$ac_cv_os_cray" >&6
4356 if test $ac_cv_os_cray = yes; then
4357 for ac_func in _getb67 GETB67 getb67; do
4358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4359 echo "$as_me:$LINENO: checking for $ac_func" >&5
4360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4361 if eval "test \"\${$as_ac_var+set}\" = set"; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4372 #define $ac_func innocuous_$ac_func
4374 /* System header to define __stub macros and hopefully few prototypes,
4375 which can conflict with char $ac_func (); below.
4376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 <limits.h> exists even on freestanding compilers. */
4379 #ifdef __STDC__
4380 # include <limits.h>
4381 #else
4382 # include <assert.h>
4383 #endif
4385 #undef $ac_func
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 #ifdef __cplusplus
4389 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4394 char $ac_func ();
4395 /* The GNU C library defines this for functions which it implements
4396 to always fail with ENOSYS. Some functions are actually named
4397 something starting with __ and the normal name is an alias. */
4398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4399 choke me
4400 #else
4401 char (*f) () = $ac_func;
4402 #endif
4403 #ifdef __cplusplus
4405 #endif
4408 main ()
4410 return f != $ac_func;
4412 return 0;
4414 _ACEOF
4415 rm -f conftest.$ac_objext conftest$ac_exeext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4417 (eval $ac_link) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; } &&
4430 { ac_try='test -s conftest$ac_exeext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 eval "$as_ac_var=yes"
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 eval "$as_ac_var=no"
4443 rm -f conftest.err conftest.$ac_objext \
4444 conftest$ac_exeext conftest.$ac_ext
4446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4448 if test `eval echo '${'$as_ac_var'}'` = yes; then
4450 cat >>confdefs.h <<_ACEOF
4451 #define CRAY_STACKSEG_END $ac_func
4452 _ACEOF
4454 break
4457 done
4460 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4461 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4462 if test "${ac_cv_c_stack_direction+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 if test "$cross_compiling" = yes; then
4466 ac_cv_c_stack_direction=0
4467 else
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4475 find_stack_direction ()
4477 static char *addr = 0;
4478 auto char dummy;
4479 if (addr == 0)
4481 addr = &dummy;
4482 return find_stack_direction ();
4484 else
4485 return (&dummy > addr) ? 1 : -1;
4489 main ()
4491 exit (find_stack_direction () < 0);
4493 _ACEOF
4494 rm -f conftest$ac_exeext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496 (eval $ac_link) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_cv_c_stack_direction=1
4506 else
4507 echo "$as_me: program exited with status $ac_status" >&5
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 ( exit $ac_status )
4512 ac_cv_c_stack_direction=-1
4514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4517 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4518 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4520 cat >>confdefs.h <<_ACEOF
4521 #define STACK_DIRECTION $ac_cv_c_stack_direction
4522 _ACEOF
4527 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4528 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4529 if test "${ac_cv_type_signal+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <sys/types.h>
4539 #include <signal.h>
4540 #ifdef signal
4541 # undef signal
4542 #endif
4543 #ifdef __cplusplus
4544 extern "C" void (*signal (int, void (*)(int)))(int);
4545 #else
4546 void (*signal ()) ();
4547 #endif
4550 main ()
4552 int i;
4554 return 0;
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_type_signal=void
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 ac_cv_type_signal=int
4585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4588 echo "${ECHO_T}$ac_cv_type_signal" >&6
4590 cat >>confdefs.h <<_ACEOF
4591 #define RETSIGTYPE $ac_cv_type_signal
4592 _ACEOF
4596 for ac_func in vprintf
4598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4599 echo "$as_me:$LINENO: checking for $ac_func" >&5
4600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4601 if eval "test \"\${$as_ac_var+set}\" = set"; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4612 #define $ac_func innocuous_$ac_func
4614 /* System header to define __stub macros and hopefully few prototypes,
4615 which can conflict with char $ac_func (); below.
4616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4617 <limits.h> exists even on freestanding compilers. */
4619 #ifdef __STDC__
4620 # include <limits.h>
4621 #else
4622 # include <assert.h>
4623 #endif
4625 #undef $ac_func
4627 /* Override any gcc2 internal prototype to avoid an error. */
4628 #ifdef __cplusplus
4629 extern "C"
4631 #endif
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4634 char $ac_func ();
4635 /* The GNU C library defines this for functions which it implements
4636 to always fail with ENOSYS. Some functions are actually named
4637 something starting with __ and the normal name is an alias. */
4638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4639 choke me
4640 #else
4641 char (*f) () = $ac_func;
4642 #endif
4643 #ifdef __cplusplus
4645 #endif
4648 main ()
4650 return f != $ac_func;
4652 return 0;
4654 _ACEOF
4655 rm -f conftest.$ac_objext conftest$ac_exeext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4657 (eval $ac_link) 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 eval "$as_ac_var=yes"
4677 else
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 eval "$as_ac_var=no"
4683 rm -f conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4688 if test `eval echo '${'$as_ac_var'}'` = yes; then
4689 cat >>confdefs.h <<_ACEOF
4690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4691 _ACEOF
4693 echo "$as_me:$LINENO: checking for _doprnt" >&5
4694 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4695 if test "${ac_cv_func__doprnt+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4706 #define _doprnt innocuous__doprnt
4708 /* System header to define __stub macros and hopefully few prototypes,
4709 which can conflict with char _doprnt (); below.
4710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4711 <limits.h> exists even on freestanding compilers. */
4713 #ifdef __STDC__
4714 # include <limits.h>
4715 #else
4716 # include <assert.h>
4717 #endif
4719 #undef _doprnt
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 #ifdef __cplusplus
4723 extern "C"
4725 #endif
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4728 char _doprnt ();
4729 /* The GNU C library defines this for functions which it implements
4730 to always fail with ENOSYS. Some functions are actually named
4731 something starting with __ and the normal name is an alias. */
4732 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4733 choke me
4734 #else
4735 char (*f) () = _doprnt;
4736 #endif
4737 #ifdef __cplusplus
4739 #endif
4742 main ()
4744 return f != _doprnt;
4746 return 0;
4748 _ACEOF
4749 rm -f conftest.$ac_objext conftest$ac_exeext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4751 (eval $ac_link) 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } &&
4758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest$ac_exeext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 ac_cv_func__doprnt=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 ac_cv_func__doprnt=no
4777 rm -f conftest.err conftest.$ac_objext \
4778 conftest$ac_exeext conftest.$ac_ext
4780 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4781 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4782 if test $ac_cv_func__doprnt = yes; then
4784 cat >>confdefs.h <<\_ACEOF
4785 #define HAVE_DOPRNT 1
4786 _ACEOF
4791 done
4797 for ac_func in strerror strstr bcmp
4799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4800 echo "$as_me:$LINENO: checking for $ac_func" >&5
4801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4802 if eval "test \"\${$as_ac_var+set}\" = set"; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4813 #define $ac_func innocuous_$ac_func
4815 /* System header to define __stub macros and hopefully few prototypes,
4816 which can conflict with char $ac_func (); below.
4817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 <limits.h> exists even on freestanding compilers. */
4820 #ifdef __STDC__
4821 # include <limits.h>
4822 #else
4823 # include <assert.h>
4824 #endif
4826 #undef $ac_func
4828 /* Override any gcc2 internal prototype to avoid an error. */
4829 #ifdef __cplusplus
4830 extern "C"
4832 #endif
4833 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4835 char $ac_func ();
4836 /* The GNU C library defines this for functions which it implements
4837 to always fail with ENOSYS. Some functions are actually named
4838 something starting with __ and the normal name is an alias. */
4839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4840 choke me
4841 #else
4842 char (*f) () = $ac_func;
4843 #endif
4844 #ifdef __cplusplus
4846 #endif
4849 main ()
4851 return f != $ac_func;
4853 return 0;
4855 _ACEOF
4856 rm -f conftest.$ac_objext conftest$ac_exeext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4858 (eval $ac_link) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest$ac_exeext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 eval "$as_ac_var=yes"
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 eval "$as_ac_var=no"
4884 rm -f conftest.err conftest.$ac_objext \
4885 conftest$ac_exeext conftest.$ac_ext
4887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4889 if test `eval echo '${'$as_ac_var'}'` = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4892 _ACEOF
4895 done
4899 if test ! "x$GCC" = "x" ; then
4901 echo "$as_me:$LINENO: checking if installed gcc is new enough to use instead of cxref-cpp" >&5
4902 echo $ECHO_N "checking if installed gcc is new enough to use instead of cxref-cpp... $ECHO_C" >&6
4904 if test "$cross_compiling" = yes; then
4905 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: cannot run test program while cross compiling
4908 See \`config.log' for more details." >&2;}
4909 { (exit 1); exit 1; }; }
4910 else
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 int main()
4920 #if defined(__GNUC__) && ( ( __GNUC__==2 && __GNUC_MINOR__>=8 ) || __GNUC__>=3 )
4921 exit(0);
4922 #else
4923 exit(1);
4924 #endif
4927 _ACEOF
4928 rm -f conftest$ac_exeext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930 (eval $ac_link) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 newGCC=yes
4940 else
4941 echo "$as_me: program exited with status $ac_status" >&5
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4949 if test "$WITH_CXREF_CPP" = "no" ; then
4951 if test "x$newGCC" = "x" ; then
4952 echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6
4954 { { echo "$as_me:$LINENO: error: the '--without-cxref-cpp' option was used but gcc is not suitable" >&5
4955 echo "$as_me: error: the '--without-cxref-cpp' option was used but gcc is not suitable" >&2;}
4956 { (exit 1); exit 1; }; }
4957 else
4958 echo "$as_me:$LINENO: result: yes, ignoring further checks due to '--without-cxref-cpp' option" >&5
4959 echo "${ECHO_T}yes, ignoring further checks due to '--without-cxref-cpp' option" >&6
4962 elif test "x$newGCC" = "x" || test "$WITH_CXREF_CPP" = "yes" ; then
4964 if test "x$newGCC" = "x" ; then
4965 echo "$as_me:$LINENO: result: no, using cxref-cpp" >&5
4966 echo "${ECHO_T}no, using cxref-cpp" >&6
4967 else
4968 echo "$as_me:$LINENO: result: yes, but '--with-cxref-cpp' option overrides this" >&5
4969 echo "${ECHO_T}yes, but '--with-cxref-cpp' option overrides this" >&6
4972 CXREF_CPP=cxref-cpp
4974 else
4976 echo "$as_me:$LINENO: result: yes" >&5
4977 echo "${ECHO_T}yes" >&6
4979 echo "$as_me:$LINENO: checking if installed gcc preserves comments after define statements" >&5
4980 echo $ECHO_N "checking if installed gcc preserves comments after define statements... $ECHO_C" >&6
4982 echo "#define foo bar /* FIND-ME */" | $CC -E -C - > ./conftest.gcc
4984 if $EGREP -e FIND-ME ./conftest.gcc > /dev/null 2>&1 ; then
4985 echo "$as_me:$LINENO: result: yes" >&5
4986 echo "${ECHO_T}yes" >&6
4987 else
4988 echo "$as_me:$LINENO: result: no, using cxref-cpp" >&5
4989 echo "${ECHO_T}no, using cxref-cpp" >&6
4991 CXREF_CPP=cxref-cpp
4994 rm ./conftest.gcc
4996 echo "$as_me:$LINENO: checking if installed gcc preserves comments after include statements" >&5
4997 echo $ECHO_N "checking if installed gcc preserves comments after include statements... $ECHO_C" >&6
4999 touch conftest.h
5001 echo "#include \"conftest.h\" /* FIND-ME */" | $CC -E -C - > ./conftest.gcc
5003 if $EGREP -e FIND-ME ./conftest.gcc > /dev/null 2>&1 ; then
5004 echo "$as_me:$LINENO: result: yes" >&5
5005 echo "${ECHO_T}yes" >&6
5006 else
5007 echo "$as_me:$LINENO: result: no, using cxref-cpp" >&5
5008 echo "${ECHO_T}no, using cxref-cpp" >&6
5010 CXREF_CPP=cxref-cpp
5013 rm ./conftest.h ./conftest.gcc
5017 else
5019 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
5020 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: The C compiler is not gcc" >&5
5022 echo "$as_me: WARNING: The C compiler is not gcc" >&2;}
5023 { echo "$as_me:$LINENO: WARNING: read the file cpp/README and cpp/cxref-cpp-configure." >&5
5024 echo "$as_me: WARNING: read the file cpp/README and cpp/cxref-cpp-configure." >&2;}
5025 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
5026 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
5028 CXREF_CPP=cxref-cpp
5035 ac_config_files="$ac_config_files Makefile"
5036 cat >confcache <<\_ACEOF
5037 # This file is a shell script that caches the results of configure
5038 # tests run on this system so they can be shared between configure
5039 # scripts and configure runs, see configure's option --config-cache.
5040 # It is not useful on other systems. If it contains results you don't
5041 # want to keep, you may remove or edit it.
5043 # config.status only pays attention to the cache file if you give it
5044 # the --recheck option to rerun configure.
5046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5048 # following values.
5050 _ACEOF
5052 # The following way of writing the cache mishandles newlines in values,
5053 # but we know of no workaround that is simple, portable, and efficient.
5054 # So, don't put newlines in cache variables' values.
5055 # Ultrix sh set writes to stderr and can't be redirected directly,
5056 # and sets the high bit in the cache file unless we assign to the vars.
5058 (set) 2>&1 |
5059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5060 *ac_space=\ *)
5061 # `set' does not quote correctly, so add quotes (double-quote
5062 # substitution turns \\\\ into \\, and sed turns \\ into \).
5063 sed -n \
5064 "s/'/'\\\\''/g;
5065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5068 # `set' quotes correctly as required by POSIX, so do not add quotes.
5069 sed -n \
5070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5072 esac;
5074 sed '
5075 t clear
5076 : clear
5077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5078 t end
5079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5080 : end' >>confcache
5081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5082 if test -w $cache_file; then
5083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5084 cat confcache >$cache_file
5085 else
5086 echo "not updating unwritable cache $cache_file"
5089 rm -f confcache
5091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5092 # Let make expand exec_prefix.
5093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5097 # trailing colons and then remove the whole line if VPATH becomes empty
5098 # (actually we leave an empty line to preserve line numbers).
5099 if test "x$srcdir" = x.; then
5100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5101 s/:*\$(srcdir):*/:/;
5102 s/:*\${srcdir}:*/:/;
5103 s/:*@srcdir@:*/:/;
5104 s/^\([^=]*=[ ]*\):*/\1/;
5105 s/:*$//;
5106 s/^[^=]*=[ ]*$//;
5110 DEFS=-DHAVE_CONFIG_H
5112 ac_libobjs=
5113 ac_ltlibobjs=
5114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5115 # 1. Remove the extension, and $U if already installed.
5116 ac_i=`echo "$ac_i" |
5117 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5118 # 2. Add them.
5119 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5120 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5121 done
5122 LIBOBJS=$ac_libobjs
5124 LTLIBOBJS=$ac_ltlibobjs
5128 : ${CONFIG_STATUS=./config.status}
5129 ac_clean_files_save=$ac_clean_files
5130 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5131 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5132 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5133 cat >$CONFIG_STATUS <<_ACEOF
5134 #! $SHELL
5135 # Generated by $as_me.
5136 # Run this file to recreate the current configuration.
5137 # Compiler output produced by configure, useful for debugging
5138 # configure, is in config.log if it exists.
5140 debug=false
5141 ac_cs_recheck=false
5142 ac_cs_silent=false
5143 SHELL=\${CONFIG_SHELL-$SHELL}
5144 _ACEOF
5146 cat >>$CONFIG_STATUS <<\_ACEOF
5147 ## --------------------- ##
5148 ## M4sh Initialization. ##
5149 ## --------------------- ##
5151 # Be Bourne compatible
5152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5153 emulate sh
5154 NULLCMD=:
5155 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5156 # is contrary to our usage. Disable this feature.
5157 alias -g '${1+"$@"}'='"$@"'
5158 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5159 set -o posix
5161 DUALCASE=1; export DUALCASE # for MKS sh
5163 # Support unset when possible.
5164 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5165 as_unset=unset
5166 else
5167 as_unset=false
5171 # Work around bugs in pre-3.0 UWIN ksh.
5172 $as_unset ENV MAIL MAILPATH
5173 PS1='$ '
5174 PS2='> '
5175 PS4='+ '
5177 # NLS nuisances.
5178 for as_var in \
5179 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5180 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5181 LC_TELEPHONE LC_TIME
5183 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5184 eval $as_var=C; export $as_var
5185 else
5186 $as_unset $as_var
5188 done
5190 # Required to use basename.
5191 if expr a : '\(a\)' >/dev/null 2>&1; then
5192 as_expr=expr
5193 else
5194 as_expr=false
5197 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5198 as_basename=basename
5199 else
5200 as_basename=false
5204 # Name of the executable.
5205 as_me=`$as_basename "$0" ||
5206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5207 X"$0" : 'X\(//\)$' \| \
5208 X"$0" : 'X\(/\)$' \| \
5209 . : '\(.\)' 2>/dev/null ||
5210 echo X/"$0" |
5211 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5212 /^X\/\(\/\/\)$/{ s//\1/; q; }
5213 /^X\/\(\/\).*/{ s//\1/; q; }
5214 s/.*/./; q'`
5217 # PATH needs CR, and LINENO needs CR and PATH.
5218 # Avoid depending upon Character Ranges.
5219 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5220 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5221 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5222 as_cr_digits='0123456789'
5223 as_cr_alnum=$as_cr_Letters$as_cr_digits
5225 # The user is always right.
5226 if test "${PATH_SEPARATOR+set}" != set; then
5227 echo "#! /bin/sh" >conf$$.sh
5228 echo "exit 0" >>conf$$.sh
5229 chmod +x conf$$.sh
5230 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5231 PATH_SEPARATOR=';'
5232 else
5233 PATH_SEPARATOR=:
5235 rm -f conf$$.sh
5239 as_lineno_1=$LINENO
5240 as_lineno_2=$LINENO
5241 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5242 test "x$as_lineno_1" != "x$as_lineno_2" &&
5243 test "x$as_lineno_3" = "x$as_lineno_2" || {
5244 # Find who we are. Look in the path if we contain no path at all
5245 # relative or not.
5246 case $0 in
5247 *[\\/]* ) as_myself=$0 ;;
5248 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5254 done
5257 esac
5258 # We did not find ourselves, most probably we were run as `sh COMMAND'
5259 # in which case we are not to be found in the path.
5260 if test "x$as_myself" = x; then
5261 as_myself=$0
5263 if test ! -f "$as_myself"; then
5264 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5265 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5266 { (exit 1); exit 1; }; }
5268 case $CONFIG_SHELL in
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for as_base in sh bash ksh sh5; do
5276 case $as_dir in
5278 if ("$as_dir/$as_base" -c '
5279 as_lineno_1=$LINENO
5280 as_lineno_2=$LINENO
5281 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5282 test "x$as_lineno_1" != "x$as_lineno_2" &&
5283 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5284 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5285 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5286 CONFIG_SHELL=$as_dir/$as_base
5287 export CONFIG_SHELL
5288 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5289 fi;;
5290 esac
5291 done
5292 done
5294 esac
5296 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5297 # uniformly replaced by the line number. The first 'sed' inserts a
5298 # line-number line before each line; the second 'sed' does the real
5299 # work. The second script uses 'N' to pair each line-number line
5300 # with the numbered line, and appends trailing '-' during
5301 # substitution so that $LINENO is not a special case at line end.
5302 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5303 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5304 sed '=' <$as_myself |
5305 sed '
5307 s,$,-,
5308 : loop
5309 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5310 t loop
5311 s,-$,,
5312 s,^['$as_cr_digits']*\n,,
5313 ' >$as_me.lineno &&
5314 chmod +x $as_me.lineno ||
5315 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5316 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5317 { (exit 1); exit 1; }; }
5319 # Don't try to exec as it changes $[0], causing all sort of problems
5320 # (the dirname of $[0] is not the place where we might find the
5321 # original and so on. Autoconf is especially sensible to this).
5322 . ./$as_me.lineno
5323 # Exit status is that of the last command.
5324 exit
5328 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5329 *c*,-n*) ECHO_N= ECHO_C='
5330 ' ECHO_T=' ' ;;
5331 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5332 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5333 esac
5335 if expr a : '\(a\)' >/dev/null 2>&1; then
5336 as_expr=expr
5337 else
5338 as_expr=false
5341 rm -f conf$$ conf$$.exe conf$$.file
5342 echo >conf$$.file
5343 if ln -s conf$$.file conf$$ 2>/dev/null; then
5344 # We could just check for DJGPP; but this test a) works b) is more generic
5345 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5346 if test -f conf$$.exe; then
5347 # Don't use ln at all; we don't have any links
5348 as_ln_s='cp -p'
5349 else
5350 as_ln_s='ln -s'
5352 elif ln conf$$.file conf$$ 2>/dev/null; then
5353 as_ln_s=ln
5354 else
5355 as_ln_s='cp -p'
5357 rm -f conf$$ conf$$.exe conf$$.file
5359 if mkdir -p . 2>/dev/null; then
5360 as_mkdir_p=:
5361 else
5362 test -d ./-p && rmdir ./-p
5363 as_mkdir_p=false
5366 as_executable_p="test -f"
5368 # Sed expression to map a string onto a valid CPP name.
5369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5371 # Sed expression to map a string onto a valid variable name.
5372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5375 # IFS
5376 # We need space, tab and new line, in precisely that order.
5377 as_nl='
5379 IFS=" $as_nl"
5381 # CDPATH.
5382 $as_unset CDPATH
5384 exec 6>&1
5386 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5387 # report actual input values of CONFIG_FILES etc. instead of their
5388 # values after options handling. Logging --version etc. is OK.
5389 exec 5>>config.log
5391 echo
5392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5393 ## Running $as_me. ##
5394 _ASBOX
5395 } >&5
5396 cat >&5 <<_CSEOF
5398 This file was extended by $as_me, which was
5399 generated by GNU Autoconf 2.59. Invocation command line was
5401 CONFIG_FILES = $CONFIG_FILES
5402 CONFIG_HEADERS = $CONFIG_HEADERS
5403 CONFIG_LINKS = $CONFIG_LINKS
5404 CONFIG_COMMANDS = $CONFIG_COMMANDS
5405 $ $0 $@
5407 _CSEOF
5408 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5409 echo >&5
5410 _ACEOF
5412 # Files that config.status was made for.
5413 if test -n "$ac_config_files"; then
5414 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5417 if test -n "$ac_config_headers"; then
5418 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5421 if test -n "$ac_config_links"; then
5422 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5425 if test -n "$ac_config_commands"; then
5426 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5429 cat >>$CONFIG_STATUS <<\_ACEOF
5431 ac_cs_usage="\
5432 \`$as_me' instantiates files from templates according to the
5433 current configuration.
5435 Usage: $0 [OPTIONS] [FILE]...
5437 -h, --help print this help, then exit
5438 -V, --version print version number, then exit
5439 -q, --quiet do not print progress messages
5440 -d, --debug don't remove temporary files
5441 --recheck update $as_me by reconfiguring in the same conditions
5442 --file=FILE[:TEMPLATE]
5443 instantiate the configuration file FILE
5444 --header=FILE[:TEMPLATE]
5445 instantiate the configuration header FILE
5447 Configuration files:
5448 $config_files
5450 Configuration headers:
5451 $config_headers
5453 Report bugs to <bug-autoconf@gnu.org>."
5454 _ACEOF
5456 cat >>$CONFIG_STATUS <<_ACEOF
5457 ac_cs_version="\\
5458 config.status
5459 configured by $0, generated by GNU Autoconf 2.59,
5460 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5462 Copyright (C) 2003 Free Software Foundation, Inc.
5463 This config.status script is free software; the Free Software Foundation
5464 gives unlimited permission to copy, distribute and modify it."
5465 srcdir=$srcdir
5466 INSTALL="$INSTALL"
5467 _ACEOF
5469 cat >>$CONFIG_STATUS <<\_ACEOF
5470 # If no file are specified by the user, then we need to provide default
5471 # value. By we need to know if files were specified by the user.
5472 ac_need_defaults=:
5473 while test $# != 0
5475 case $1 in
5476 --*=*)
5477 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5478 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5479 ac_shift=:
5482 ac_option=$1
5483 ac_optarg=$2
5484 ac_shift=shift
5486 *) # This is not an option, so the user has probably given explicit
5487 # arguments.
5488 ac_option=$1
5489 ac_need_defaults=false;;
5490 esac
5492 case $ac_option in
5493 # Handling of the options.
5494 _ACEOF
5495 cat >>$CONFIG_STATUS <<\_ACEOF
5496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5497 ac_cs_recheck=: ;;
5498 --version | --vers* | -V )
5499 echo "$ac_cs_version"; exit 0 ;;
5500 --he | --h)
5501 # Conflict between --help and --header
5502 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5503 Try \`$0 --help' for more information." >&5
5504 echo "$as_me: error: ambiguous option: $1
5505 Try \`$0 --help' for more information." >&2;}
5506 { (exit 1); exit 1; }; };;
5507 --help | --hel | -h )
5508 echo "$ac_cs_usage"; exit 0 ;;
5509 --debug | --d* | -d )
5510 debug=: ;;
5511 --file | --fil | --fi | --f )
5512 $ac_shift
5513 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5514 ac_need_defaults=false;;
5515 --header | --heade | --head | --hea )
5516 $ac_shift
5517 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5518 ac_need_defaults=false;;
5519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5521 ac_cs_silent=: ;;
5523 # This is an error.
5524 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5525 Try \`$0 --help' for more information." >&5
5526 echo "$as_me: error: unrecognized option: $1
5527 Try \`$0 --help' for more information." >&2;}
5528 { (exit 1); exit 1; }; } ;;
5530 *) ac_config_targets="$ac_config_targets $1" ;;
5532 esac
5533 shift
5534 done
5536 ac_configure_extra_args=
5538 if $ac_cs_silent; then
5539 exec 6>/dev/null
5540 ac_configure_extra_args="$ac_configure_extra_args --silent"
5543 _ACEOF
5544 cat >>$CONFIG_STATUS <<_ACEOF
5545 if \$ac_cs_recheck; then
5546 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5547 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5550 _ACEOF
5556 cat >>$CONFIG_STATUS <<\_ACEOF
5557 for ac_config_target in $ac_config_targets
5559 case "$ac_config_target" in
5560 # Handling of arguments.
5561 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5562 "autoconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
5563 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5564 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5565 { (exit 1); exit 1; }; };;
5566 esac
5567 done
5569 # If the user did not use the arguments to specify the items to instantiate,
5570 # then the envvar interface is used. Set only those that are not.
5571 # We use the long form for the default assignment because of an extremely
5572 # bizarre bug on SunOS 4.1.3.
5573 if $ac_need_defaults; then
5574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5578 # Have a temporary directory for convenience. Make it in the build tree
5579 # simply because there is no reason to put it here, and in addition,
5580 # creating and moving files from /tmp can sometimes cause problems.
5581 # Create a temporary directory, and hook for its removal unless debugging.
5582 $debug ||
5584 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5585 trap '{ (exit 1); exit 1; }' 1 2 13 15
5588 # Create a (secure) tmp directory for tmp files.
5591 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5592 test -n "$tmp" && test -d "$tmp"
5593 } ||
5595 tmp=./confstat$$-$RANDOM
5596 (umask 077 && mkdir $tmp)
5597 } ||
5599 echo "$me: cannot create a temporary directory in ." >&2
5600 { (exit 1); exit 1; }
5603 _ACEOF
5605 cat >>$CONFIG_STATUS <<_ACEOF
5608 # CONFIG_FILES section.
5611 # No need to generate the scripts if there are no CONFIG_FILES.
5612 # This happens for instance when ./config.status config.h
5613 if test -n "\$CONFIG_FILES"; then
5614 # Protect against being on the right side of a sed subst in config.status.
5615 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5616 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5617 s,@SHELL@,$SHELL,;t t
5618 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5619 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5620 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5621 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5622 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5623 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5624 s,@exec_prefix@,$exec_prefix,;t t
5625 s,@prefix@,$prefix,;t t
5626 s,@program_transform_name@,$program_transform_name,;t t
5627 s,@bindir@,$bindir,;t t
5628 s,@sbindir@,$sbindir,;t t
5629 s,@libexecdir@,$libexecdir,;t t
5630 s,@datadir@,$datadir,;t t
5631 s,@sysconfdir@,$sysconfdir,;t t
5632 s,@sharedstatedir@,$sharedstatedir,;t t
5633 s,@localstatedir@,$localstatedir,;t t
5634 s,@libdir@,$libdir,;t t
5635 s,@includedir@,$includedir,;t t
5636 s,@oldincludedir@,$oldincludedir,;t t
5637 s,@infodir@,$infodir,;t t
5638 s,@mandir@,$mandir,;t t
5639 s,@build_alias@,$build_alias,;t t
5640 s,@host_alias@,$host_alias,;t t
5641 s,@target_alias@,$target_alias,;t t
5642 s,@DEFS@,$DEFS,;t t
5643 s,@ECHO_C@,$ECHO_C,;t t
5644 s,@ECHO_N@,$ECHO_N,;t t
5645 s,@ECHO_T@,$ECHO_T,;t t
5646 s,@LIBS@,$LIBS,;t t
5647 s,@CC@,$CC,;t t
5648 s,@CFLAGS@,$CFLAGS,;t t
5649 s,@LDFLAGS@,$LDFLAGS,;t t
5650 s,@CPPFLAGS@,$CPPFLAGS,;t t
5651 s,@ac_ct_CC@,$ac_ct_CC,;t t
5652 s,@EXEEXT@,$EXEEXT,;t t
5653 s,@OBJEXT@,$OBJEXT,;t t
5654 s,@YACC@,$YACC,;t t
5655 s,@CPP@,$CPP,;t t
5656 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5657 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5658 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5659 s,@LN_S@,$LN_S,;t t
5660 s,@SET_MAKE@,$SET_MAKE,;t t
5661 s,@EGREP@,$EGREP,;t t
5662 s,@ALLOCA@,$ALLOCA,;t t
5663 s,@CXREF_CPP@,$CXREF_CPP,;t t
5664 s,@GCC@,$GCC,;t t
5665 s,@LIBOBJS@,$LIBOBJS,;t t
5666 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5667 CEOF
5669 _ACEOF
5671 cat >>$CONFIG_STATUS <<\_ACEOF
5672 # Split the substitutions into bite-sized pieces for seds with
5673 # small command number limits, like on Digital OSF/1 and HP-UX.
5674 ac_max_sed_lines=48
5675 ac_sed_frag=1 # Number of current file.
5676 ac_beg=1 # First line for current file.
5677 ac_end=$ac_max_sed_lines # Line after last line for current file.
5678 ac_more_lines=:
5679 ac_sed_cmds=
5680 while $ac_more_lines; do
5681 if test $ac_beg -gt 1; then
5682 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5683 else
5684 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5686 if test ! -s $tmp/subs.frag; then
5687 ac_more_lines=false
5688 else
5689 # The purpose of the label and of the branching condition is to
5690 # speed up the sed processing (if there are no `@' at all, there
5691 # is no need to browse any of the substitutions).
5692 # These are the two extra sed commands mentioned above.
5693 (echo ':t
5694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5695 if test -z "$ac_sed_cmds"; then
5696 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5697 else
5698 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5700 ac_sed_frag=`expr $ac_sed_frag + 1`
5701 ac_beg=$ac_end
5702 ac_end=`expr $ac_end + $ac_max_sed_lines`
5704 done
5705 if test -z "$ac_sed_cmds"; then
5706 ac_sed_cmds=cat
5708 fi # test -n "$CONFIG_FILES"
5710 _ACEOF
5711 cat >>$CONFIG_STATUS <<\_ACEOF
5712 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5714 case $ac_file in
5715 - | *:- | *:-:* ) # input from stdin
5716 cat >$tmp/stdin
5717 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5719 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5721 * ) ac_file_in=$ac_file.in ;;
5722 esac
5724 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5725 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5727 X"$ac_file" : 'X\(//\)[^/]' \| \
5728 X"$ac_file" : 'X\(//\)$' \| \
5729 X"$ac_file" : 'X\(/\)' \| \
5730 . : '\(.\)' 2>/dev/null ||
5731 echo X"$ac_file" |
5732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5734 /^X\(\/\/\)$/{ s//\1/; q; }
5735 /^X\(\/\).*/{ s//\1/; q; }
5736 s/.*/./; q'`
5737 { if $as_mkdir_p; then
5738 mkdir -p "$ac_dir"
5739 else
5740 as_dir="$ac_dir"
5741 as_dirs=
5742 while test ! -d "$as_dir"; do
5743 as_dirs="$as_dir $as_dirs"
5744 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5746 X"$as_dir" : 'X\(//\)[^/]' \| \
5747 X"$as_dir" : 'X\(//\)$' \| \
5748 X"$as_dir" : 'X\(/\)' \| \
5749 . : '\(.\)' 2>/dev/null ||
5750 echo X"$as_dir" |
5751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5753 /^X\(\/\/\)$/{ s//\1/; q; }
5754 /^X\(\/\).*/{ s//\1/; q; }
5755 s/.*/./; q'`
5756 done
5757 test ! -n "$as_dirs" || mkdir $as_dirs
5758 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5759 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5760 { (exit 1); exit 1; }; }; }
5762 ac_builddir=.
5764 if test "$ac_dir" != .; then
5765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5766 # A "../" for each directory in $ac_dir_suffix.
5767 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5768 else
5769 ac_dir_suffix= ac_top_builddir=
5772 case $srcdir in
5773 .) # No --srcdir option. We are building in place.
5774 ac_srcdir=.
5775 if test -z "$ac_top_builddir"; then
5776 ac_top_srcdir=.
5777 else
5778 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5779 fi ;;
5780 [\\/]* | ?:[\\/]* ) # Absolute path.
5781 ac_srcdir=$srcdir$ac_dir_suffix;
5782 ac_top_srcdir=$srcdir ;;
5783 *) # Relative path.
5784 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5785 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5786 esac
5788 # Do not use `cd foo && pwd` to compute absolute paths, because
5789 # the directories may not exist.
5790 case `pwd` in
5791 .) ac_abs_builddir="$ac_dir";;
5793 case "$ac_dir" in
5794 .) ac_abs_builddir=`pwd`;;
5795 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5796 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5797 esac;;
5798 esac
5799 case $ac_abs_builddir in
5800 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5802 case ${ac_top_builddir}. in
5803 .) ac_abs_top_builddir=$ac_abs_builddir;;
5804 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5805 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5806 esac;;
5807 esac
5808 case $ac_abs_builddir in
5809 .) ac_abs_srcdir=$ac_srcdir;;
5811 case $ac_srcdir in
5812 .) ac_abs_srcdir=$ac_abs_builddir;;
5813 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5814 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5815 esac;;
5816 esac
5817 case $ac_abs_builddir in
5818 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5820 case $ac_top_srcdir in
5821 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5822 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5823 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5824 esac;;
5825 esac
5828 case $INSTALL in
5829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5830 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5831 esac
5833 # Let's still pretend it is `configure' which instantiates (i.e., don't
5834 # use $as_me), people would be surprised to read:
5835 # /* config.h. Generated by config.status. */
5836 if test x"$ac_file" = x-; then
5837 configure_input=
5838 else
5839 configure_input="$ac_file. "
5841 configure_input=$configure_input"Generated from `echo $ac_file_in |
5842 sed 's,.*/,,'` by configure."
5844 # First look for the input files in the build tree, otherwise in the
5845 # src tree.
5846 ac_file_inputs=`IFS=:
5847 for f in $ac_file_in; do
5848 case $f in
5849 -) echo $tmp/stdin ;;
5850 [\\/$]*)
5851 # Absolute (can't be DOS-style, as IFS=:)
5852 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5853 echo "$as_me: error: cannot find input file: $f" >&2;}
5854 { (exit 1); exit 1; }; }
5855 echo "$f";;
5856 *) # Relative
5857 if test -f "$f"; then
5858 # Build tree
5859 echo "$f"
5860 elif test -f "$srcdir/$f"; then
5861 # Source tree
5862 echo "$srcdir/$f"
5863 else
5864 # /dev/null tree
5865 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5866 echo "$as_me: error: cannot find input file: $f" >&2;}
5867 { (exit 1); exit 1; }; }
5868 fi;;
5869 esac
5870 done` || { (exit 1); exit 1; }
5872 if test x"$ac_file" != x-; then
5873 { echo "$as_me:$LINENO: creating $ac_file" >&5
5874 echo "$as_me: creating $ac_file" >&6;}
5875 rm -f "$ac_file"
5877 _ACEOF
5878 cat >>$CONFIG_STATUS <<_ACEOF
5879 sed "$ac_vpsub
5880 $extrasub
5881 _ACEOF
5882 cat >>$CONFIG_STATUS <<\_ACEOF
5884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5885 s,@configure_input@,$configure_input,;t t
5886 s,@srcdir@,$ac_srcdir,;t t
5887 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5888 s,@top_srcdir@,$ac_top_srcdir,;t t
5889 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5890 s,@builddir@,$ac_builddir,;t t
5891 s,@abs_builddir@,$ac_abs_builddir,;t t
5892 s,@top_builddir@,$ac_top_builddir,;t t
5893 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5894 s,@INSTALL@,$ac_INSTALL,;t t
5895 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5896 rm -f $tmp/stdin
5897 if test x"$ac_file" != x-; then
5898 mv $tmp/out $ac_file
5899 else
5900 cat $tmp/out
5901 rm -f $tmp/out
5904 done
5905 _ACEOF
5906 cat >>$CONFIG_STATUS <<\_ACEOF
5909 # CONFIG_HEADER section.
5912 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5913 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5915 # ac_d sets the value in "#define NAME VALUE" lines.
5916 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5917 ac_dB='[ ].*$,\1#\2'
5918 ac_dC=' '
5919 ac_dD=',;t'
5920 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5921 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5922 ac_uB='$,\1#\2define\3'
5923 ac_uC=' '
5924 ac_uD=',;t'
5926 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5928 case $ac_file in
5929 - | *:- | *:-:* ) # input from stdin
5930 cat >$tmp/stdin
5931 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5933 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5935 * ) ac_file_in=$ac_file.in ;;
5936 esac
5938 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5939 echo "$as_me: creating $ac_file" >&6;}
5941 # First look for the input files in the build tree, otherwise in the
5942 # src tree.
5943 ac_file_inputs=`IFS=:
5944 for f in $ac_file_in; do
5945 case $f in
5946 -) echo $tmp/stdin ;;
5947 [\\/$]*)
5948 # Absolute (can't be DOS-style, as IFS=:)
5949 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5950 echo "$as_me: error: cannot find input file: $f" >&2;}
5951 { (exit 1); exit 1; }; }
5952 # Do quote $f, to prevent DOS paths from being IFS'd.
5953 echo "$f";;
5954 *) # Relative
5955 if test -f "$f"; then
5956 # Build tree
5957 echo "$f"
5958 elif test -f "$srcdir/$f"; then
5959 # Source tree
5960 echo "$srcdir/$f"
5961 else
5962 # /dev/null tree
5963 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5964 echo "$as_me: error: cannot find input file: $f" >&2;}
5965 { (exit 1); exit 1; }; }
5966 fi;;
5967 esac
5968 done` || { (exit 1); exit 1; }
5969 # Remove the trailing spaces.
5970 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5972 _ACEOF
5974 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5975 # `conftest.undefs', that substitutes the proper values into
5976 # config.h.in to produce config.h. The first handles `#define'
5977 # templates, and the second `#undef' templates.
5978 # And first: Protect against being on the right side of a sed subst in
5979 # config.status. Protect against being in an unquoted here document
5980 # in config.status.
5981 rm -f conftest.defines conftest.undefs
5982 # Using a here document instead of a string reduces the quoting nightmare.
5983 # Putting comments in sed scripts is not portable.
5985 # `end' is used to avoid that the second main sed command (meant for
5986 # 0-ary CPP macros) applies to n-ary macro definitions.
5987 # See the Autoconf documentation for `clear'.
5988 cat >confdef2sed.sed <<\_ACEOF
5989 s/[\\&,]/\\&/g
5990 s,[\\$`],\\&,g
5991 t clear
5992 : clear
5993 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5994 t end
5995 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5996 : end
5997 _ACEOF
5998 # If some macros were called several times there might be several times
5999 # the same #defines, which is useless. Nevertheless, we may not want to
6000 # sort them, since we want the *last* AC-DEFINE to be honored.
6001 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6002 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6003 rm -f confdef2sed.sed
6005 # This sed command replaces #undef with comments. This is necessary, for
6006 # example, in the case of _POSIX_SOURCE, which is predefined and required
6007 # on some systems where configure will not decide to define it.
6008 cat >>conftest.undefs <<\_ACEOF
6009 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6010 _ACEOF
6012 # Break up conftest.defines because some shells have a limit on the size
6013 # of here documents, and old seds have small limits too (100 cmds).
6014 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6015 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6016 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6017 echo ' :' >>$CONFIG_STATUS
6018 rm -f conftest.tail
6019 while grep . conftest.defines >/dev/null
6021 # Write a limited-size here document to $tmp/defines.sed.
6022 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6023 # Speed up: don't consider the non `#define' lines.
6024 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6025 # Work around the forget-to-reset-the-flag bug.
6026 echo 't clr' >>$CONFIG_STATUS
6027 echo ': clr' >>$CONFIG_STATUS
6028 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6029 echo 'CEOF
6030 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6031 rm -f $tmp/in
6032 mv $tmp/out $tmp/in
6033 ' >>$CONFIG_STATUS
6034 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6035 rm -f conftest.defines
6036 mv conftest.tail conftest.defines
6037 done
6038 rm -f conftest.defines
6039 echo ' fi # grep' >>$CONFIG_STATUS
6040 echo >>$CONFIG_STATUS
6042 # Break up conftest.undefs because some shells have a limit on the size
6043 # of here documents, and old seds have small limits too (100 cmds).
6044 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6045 rm -f conftest.tail
6046 while grep . conftest.undefs >/dev/null
6048 # Write a limited-size here document to $tmp/undefs.sed.
6049 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6050 # Speed up: don't consider the non `#undef'
6051 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6052 # Work around the forget-to-reset-the-flag bug.
6053 echo 't clr' >>$CONFIG_STATUS
6054 echo ': clr' >>$CONFIG_STATUS
6055 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6056 echo 'CEOF
6057 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6058 rm -f $tmp/in
6059 mv $tmp/out $tmp/in
6060 ' >>$CONFIG_STATUS
6061 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6062 rm -f conftest.undefs
6063 mv conftest.tail conftest.undefs
6064 done
6065 rm -f conftest.undefs
6067 cat >>$CONFIG_STATUS <<\_ACEOF
6068 # Let's still pretend it is `configure' which instantiates (i.e., don't
6069 # use $as_me), people would be surprised to read:
6070 # /* config.h. Generated by config.status. */
6071 if test x"$ac_file" = x-; then
6072 echo "/* Generated by configure. */" >$tmp/config.h
6073 else
6074 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6076 cat $tmp/in >>$tmp/config.h
6077 rm -f $tmp/in
6078 if test x"$ac_file" != x-; then
6079 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6080 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6081 echo "$as_me: $ac_file is unchanged" >&6;}
6082 else
6083 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6085 X"$ac_file" : 'X\(//\)[^/]' \| \
6086 X"$ac_file" : 'X\(//\)$' \| \
6087 X"$ac_file" : 'X\(/\)' \| \
6088 . : '\(.\)' 2>/dev/null ||
6089 echo X"$ac_file" |
6090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6092 /^X\(\/\/\)$/{ s//\1/; q; }
6093 /^X\(\/\).*/{ s//\1/; q; }
6094 s/.*/./; q'`
6095 { if $as_mkdir_p; then
6096 mkdir -p "$ac_dir"
6097 else
6098 as_dir="$ac_dir"
6099 as_dirs=
6100 while test ! -d "$as_dir"; do
6101 as_dirs="$as_dir $as_dirs"
6102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6104 X"$as_dir" : 'X\(//\)[^/]' \| \
6105 X"$as_dir" : 'X\(//\)$' \| \
6106 X"$as_dir" : 'X\(/\)' \| \
6107 . : '\(.\)' 2>/dev/null ||
6108 echo X"$as_dir" |
6109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6111 /^X\(\/\/\)$/{ s//\1/; q; }
6112 /^X\(\/\).*/{ s//\1/; q; }
6113 s/.*/./; q'`
6114 done
6115 test ! -n "$as_dirs" || mkdir $as_dirs
6116 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6117 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6118 { (exit 1); exit 1; }; }; }
6120 rm -f $ac_file
6121 mv $tmp/config.h $ac_file
6123 else
6124 cat $tmp/config.h
6125 rm -f $tmp/config.h
6127 done
6128 _ACEOF
6130 cat >>$CONFIG_STATUS <<\_ACEOF
6132 { (exit 0); exit 0; }
6133 _ACEOF
6134 chmod +x $CONFIG_STATUS
6135 ac_clean_files=$ac_clean_files_save
6138 # configure is writing to config.log, and then calls config.status.
6139 # config.status does its own redirection, appending to config.log.
6140 # Unfortunately, on DOS this fails, as config.log is still kept open
6141 # by configure, so config.status won't be able to write to it; its
6142 # output is simply discarded. So we exec the FD to /dev/null,
6143 # effectively closing config.log, so it can be properly (re)opened and
6144 # appended to by config.status. When coming back to configure, we
6145 # need to make the FD available again.
6146 if test "$no_create" != yes; then
6147 ac_cs_success=:
6148 ac_config_status_args=
6149 test "$silent" = yes &&
6150 ac_config_status_args="$ac_config_status_args --quiet"
6151 exec 5>/dev/null
6152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6153 exec 5>>config.log
6154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6155 # would make configure fail if this is the last instruction.
6156 $ac_cs_success || { (exit 1); exit 1; }
6159 ac_config_files="$ac_config_files cxref-cpp-configure"
6160 cat >confcache <<\_ACEOF
6161 # This file is a shell script that caches the results of configure
6162 # tests run on this system so they can be shared between configure
6163 # scripts and configure runs, see configure's option --config-cache.
6164 # It is not useful on other systems. If it contains results you don't
6165 # want to keep, you may remove or edit it.
6167 # config.status only pays attention to the cache file if you give it
6168 # the --recheck option to rerun configure.
6170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6172 # following values.
6174 _ACEOF
6176 # The following way of writing the cache mishandles newlines in values,
6177 # but we know of no workaround that is simple, portable, and efficient.
6178 # So, don't put newlines in cache variables' values.
6179 # Ultrix sh set writes to stderr and can't be redirected directly,
6180 # and sets the high bit in the cache file unless we assign to the vars.
6182 (set) 2>&1 |
6183 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6184 *ac_space=\ *)
6185 # `set' does not quote correctly, so add quotes (double-quote
6186 # substitution turns \\\\ into \\, and sed turns \\ into \).
6187 sed -n \
6188 "s/'/'\\\\''/g;
6189 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6192 # `set' quotes correctly as required by POSIX, so do not add quotes.
6193 sed -n \
6194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6196 esac;
6198 sed '
6199 t clear
6200 : clear
6201 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6202 t end
6203 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6204 : end' >>confcache
6205 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6206 if test -w $cache_file; then
6207 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6208 cat confcache >$cache_file
6209 else
6210 echo "not updating unwritable cache $cache_file"
6213 rm -f confcache
6215 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6216 # Let make expand exec_prefix.
6217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6221 # trailing colons and then remove the whole line if VPATH becomes empty
6222 # (actually we leave an empty line to preserve line numbers).
6223 if test "x$srcdir" = x.; then
6224 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6225 s/:*\$(srcdir):*/:/;
6226 s/:*\${srcdir}:*/:/;
6227 s/:*@srcdir@:*/:/;
6228 s/^\([^=]*=[ ]*\):*/\1/;
6229 s/:*$//;
6230 s/^[^=]*=[ ]*$//;
6234 DEFS=-DHAVE_CONFIG_H
6236 ac_libobjs=
6237 ac_ltlibobjs=
6238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6239 # 1. Remove the extension, and $U if already installed.
6240 ac_i=`echo "$ac_i" |
6241 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6242 # 2. Add them.
6243 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6244 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6245 done
6246 LIBOBJS=$ac_libobjs
6248 LTLIBOBJS=$ac_ltlibobjs
6252 : ${CONFIG_STATUS=./config.status}
6253 ac_clean_files_save=$ac_clean_files
6254 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6255 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6256 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6257 cat >$CONFIG_STATUS <<_ACEOF
6258 #! $SHELL
6259 # Generated by $as_me.
6260 # Run this file to recreate the current configuration.
6261 # Compiler output produced by configure, useful for debugging
6262 # configure, is in config.log if it exists.
6264 debug=false
6265 ac_cs_recheck=false
6266 ac_cs_silent=false
6267 SHELL=\${CONFIG_SHELL-$SHELL}
6268 _ACEOF
6270 cat >>$CONFIG_STATUS <<\_ACEOF
6271 ## --------------------- ##
6272 ## M4sh Initialization. ##
6273 ## --------------------- ##
6275 # Be Bourne compatible
6276 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6277 emulate sh
6278 NULLCMD=:
6279 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6280 # is contrary to our usage. Disable this feature.
6281 alias -g '${1+"$@"}'='"$@"'
6282 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6283 set -o posix
6285 DUALCASE=1; export DUALCASE # for MKS sh
6287 # Support unset when possible.
6288 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6289 as_unset=unset
6290 else
6291 as_unset=false
6295 # Work around bugs in pre-3.0 UWIN ksh.
6296 $as_unset ENV MAIL MAILPATH
6297 PS1='$ '
6298 PS2='> '
6299 PS4='+ '
6301 # NLS nuisances.
6302 for as_var in \
6303 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6304 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6305 LC_TELEPHONE LC_TIME
6307 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6308 eval $as_var=C; export $as_var
6309 else
6310 $as_unset $as_var
6312 done
6314 # Required to use basename.
6315 if expr a : '\(a\)' >/dev/null 2>&1; then
6316 as_expr=expr
6317 else
6318 as_expr=false
6321 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6322 as_basename=basename
6323 else
6324 as_basename=false
6328 # Name of the executable.
6329 as_me=`$as_basename "$0" ||
6330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6331 X"$0" : 'X\(//\)$' \| \
6332 X"$0" : 'X\(/\)$' \| \
6333 . : '\(.\)' 2>/dev/null ||
6334 echo X/"$0" |
6335 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6336 /^X\/\(\/\/\)$/{ s//\1/; q; }
6337 /^X\/\(\/\).*/{ s//\1/; q; }
6338 s/.*/./; q'`
6341 # PATH needs CR, and LINENO needs CR and PATH.
6342 # Avoid depending upon Character Ranges.
6343 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6344 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6345 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6346 as_cr_digits='0123456789'
6347 as_cr_alnum=$as_cr_Letters$as_cr_digits
6349 # The user is always right.
6350 if test "${PATH_SEPARATOR+set}" != set; then
6351 echo "#! /bin/sh" >conf$$.sh
6352 echo "exit 0" >>conf$$.sh
6353 chmod +x conf$$.sh
6354 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6355 PATH_SEPARATOR=';'
6356 else
6357 PATH_SEPARATOR=:
6359 rm -f conf$$.sh
6363 as_lineno_1=$LINENO
6364 as_lineno_2=$LINENO
6365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6366 test "x$as_lineno_1" != "x$as_lineno_2" &&
6367 test "x$as_lineno_3" = "x$as_lineno_2" || {
6368 # Find who we are. Look in the path if we contain no path at all
6369 # relative or not.
6370 case $0 in
6371 *[\\/]* ) as_myself=$0 ;;
6372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6378 done
6381 esac
6382 # We did not find ourselves, most probably we were run as `sh COMMAND'
6383 # in which case we are not to be found in the path.
6384 if test "x$as_myself" = x; then
6385 as_myself=$0
6387 if test ! -f "$as_myself"; then
6388 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6389 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6390 { (exit 1); exit 1; }; }
6392 case $CONFIG_SHELL in
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for as_base in sh bash ksh sh5; do
6400 case $as_dir in
6402 if ("$as_dir/$as_base" -c '
6403 as_lineno_1=$LINENO
6404 as_lineno_2=$LINENO
6405 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6406 test "x$as_lineno_1" != "x$as_lineno_2" &&
6407 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6408 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6409 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6410 CONFIG_SHELL=$as_dir/$as_base
6411 export CONFIG_SHELL
6412 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6413 fi;;
6414 esac
6415 done
6416 done
6418 esac
6420 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6421 # uniformly replaced by the line number. The first 'sed' inserts a
6422 # line-number line before each line; the second 'sed' does the real
6423 # work. The second script uses 'N' to pair each line-number line
6424 # with the numbered line, and appends trailing '-' during
6425 # substitution so that $LINENO is not a special case at line end.
6426 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6427 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6428 sed '=' <$as_myself |
6429 sed '
6431 s,$,-,
6432 : loop
6433 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6434 t loop
6435 s,-$,,
6436 s,^['$as_cr_digits']*\n,,
6437 ' >$as_me.lineno &&
6438 chmod +x $as_me.lineno ||
6439 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6440 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6441 { (exit 1); exit 1; }; }
6443 # Don't try to exec as it changes $[0], causing all sort of problems
6444 # (the dirname of $[0] is not the place where we might find the
6445 # original and so on. Autoconf is especially sensible to this).
6446 . ./$as_me.lineno
6447 # Exit status is that of the last command.
6448 exit
6452 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6453 *c*,-n*) ECHO_N= ECHO_C='
6454 ' ECHO_T=' ' ;;
6455 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6456 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6457 esac
6459 if expr a : '\(a\)' >/dev/null 2>&1; then
6460 as_expr=expr
6461 else
6462 as_expr=false
6465 rm -f conf$$ conf$$.exe conf$$.file
6466 echo >conf$$.file
6467 if ln -s conf$$.file conf$$ 2>/dev/null; then
6468 # We could just check for DJGPP; but this test a) works b) is more generic
6469 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6470 if test -f conf$$.exe; then
6471 # Don't use ln at all; we don't have any links
6472 as_ln_s='cp -p'
6473 else
6474 as_ln_s='ln -s'
6476 elif ln conf$$.file conf$$ 2>/dev/null; then
6477 as_ln_s=ln
6478 else
6479 as_ln_s='cp -p'
6481 rm -f conf$$ conf$$.exe conf$$.file
6483 if mkdir -p . 2>/dev/null; then
6484 as_mkdir_p=:
6485 else
6486 test -d ./-p && rmdir ./-p
6487 as_mkdir_p=false
6490 as_executable_p="test -f"
6492 # Sed expression to map a string onto a valid CPP name.
6493 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6495 # Sed expression to map a string onto a valid variable name.
6496 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6499 # IFS
6500 # We need space, tab and new line, in precisely that order.
6501 as_nl='
6503 IFS=" $as_nl"
6505 # CDPATH.
6506 $as_unset CDPATH
6508 exec 6>&1
6510 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6511 # report actual input values of CONFIG_FILES etc. instead of their
6512 # values after options handling. Logging --version etc. is OK.
6513 exec 5>>config.log
6515 echo
6516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6517 ## Running $as_me. ##
6518 _ASBOX
6519 } >&5
6520 cat >&5 <<_CSEOF
6522 This file was extended by $as_me, which was
6523 generated by GNU Autoconf 2.59. Invocation command line was
6525 CONFIG_FILES = $CONFIG_FILES
6526 CONFIG_HEADERS = $CONFIG_HEADERS
6527 CONFIG_LINKS = $CONFIG_LINKS
6528 CONFIG_COMMANDS = $CONFIG_COMMANDS
6529 $ $0 $@
6531 _CSEOF
6532 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6533 echo >&5
6534 _ACEOF
6536 # Files that config.status was made for.
6537 if test -n "$ac_config_files"; then
6538 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6541 if test -n "$ac_config_headers"; then
6542 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6545 if test -n "$ac_config_links"; then
6546 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6549 if test -n "$ac_config_commands"; then
6550 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6553 cat >>$CONFIG_STATUS <<\_ACEOF
6555 ac_cs_usage="\
6556 \`$as_me' instantiates files from templates according to the
6557 current configuration.
6559 Usage: $0 [OPTIONS] [FILE]...
6561 -h, --help print this help, then exit
6562 -V, --version print version number, then exit
6563 -q, --quiet do not print progress messages
6564 -d, --debug don't remove temporary files
6565 --recheck update $as_me by reconfiguring in the same conditions
6566 --file=FILE[:TEMPLATE]
6567 instantiate the configuration file FILE
6568 --header=FILE[:TEMPLATE]
6569 instantiate the configuration header FILE
6571 Configuration files:
6572 $config_files
6574 Configuration headers:
6575 $config_headers
6577 Report bugs to <bug-autoconf@gnu.org>."
6578 _ACEOF
6580 cat >>$CONFIG_STATUS <<_ACEOF
6581 ac_cs_version="\\
6582 config.status
6583 configured by $0, generated by GNU Autoconf 2.59,
6584 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6586 Copyright (C) 2003 Free Software Foundation, Inc.
6587 This config.status script is free software; the Free Software Foundation
6588 gives unlimited permission to copy, distribute and modify it."
6589 srcdir=$srcdir
6590 INSTALL="$INSTALL"
6591 _ACEOF
6593 cat >>$CONFIG_STATUS <<\_ACEOF
6594 # If no file are specified by the user, then we need to provide default
6595 # value. By we need to know if files were specified by the user.
6596 ac_need_defaults=:
6597 while test $# != 0
6599 case $1 in
6600 --*=*)
6601 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6602 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6603 ac_shift=:
6606 ac_option=$1
6607 ac_optarg=$2
6608 ac_shift=shift
6610 *) # This is not an option, so the user has probably given explicit
6611 # arguments.
6612 ac_option=$1
6613 ac_need_defaults=false;;
6614 esac
6616 case $ac_option in
6617 # Handling of the options.
6618 _ACEOF
6619 cat >>$CONFIG_STATUS <<\_ACEOF
6620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6621 ac_cs_recheck=: ;;
6622 --version | --vers* | -V )
6623 echo "$ac_cs_version"; exit 0 ;;
6624 --he | --h)
6625 # Conflict between --help and --header
6626 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6627 Try \`$0 --help' for more information." >&5
6628 echo "$as_me: error: ambiguous option: $1
6629 Try \`$0 --help' for more information." >&2;}
6630 { (exit 1); exit 1; }; };;
6631 --help | --hel | -h )
6632 echo "$ac_cs_usage"; exit 0 ;;
6633 --debug | --d* | -d )
6634 debug=: ;;
6635 --file | --fil | --fi | --f )
6636 $ac_shift
6637 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6638 ac_need_defaults=false;;
6639 --header | --heade | --head | --hea )
6640 $ac_shift
6641 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6642 ac_need_defaults=false;;
6643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6645 ac_cs_silent=: ;;
6647 # This is an error.
6648 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6649 Try \`$0 --help' for more information." >&5
6650 echo "$as_me: error: unrecognized option: $1
6651 Try \`$0 --help' for more information." >&2;}
6652 { (exit 1); exit 1; }; } ;;
6654 *) ac_config_targets="$ac_config_targets $1" ;;
6656 esac
6657 shift
6658 done
6660 ac_configure_extra_args=
6662 if $ac_cs_silent; then
6663 exec 6>/dev/null
6664 ac_configure_extra_args="$ac_configure_extra_args --silent"
6667 _ACEOF
6668 cat >>$CONFIG_STATUS <<_ACEOF
6669 if \$ac_cs_recheck; then
6670 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6671 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6674 _ACEOF
6680 cat >>$CONFIG_STATUS <<\_ACEOF
6681 for ac_config_target in $ac_config_targets
6683 case "$ac_config_target" in
6684 # Handling of arguments.
6685 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6686 "cxref-cpp-configure" ) CONFIG_FILES="$CONFIG_FILES cxref-cpp-configure" ;;
6687 "autoconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
6688 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6689 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6690 { (exit 1); exit 1; }; };;
6691 esac
6692 done
6694 # If the user did not use the arguments to specify the items to instantiate,
6695 # then the envvar interface is used. Set only those that are not.
6696 # We use the long form for the default assignment because of an extremely
6697 # bizarre bug on SunOS 4.1.3.
6698 if $ac_need_defaults; then
6699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6703 # Have a temporary directory for convenience. Make it in the build tree
6704 # simply because there is no reason to put it here, and in addition,
6705 # creating and moving files from /tmp can sometimes cause problems.
6706 # Create a temporary directory, and hook for its removal unless debugging.
6707 $debug ||
6709 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6710 trap '{ (exit 1); exit 1; }' 1 2 13 15
6713 # Create a (secure) tmp directory for tmp files.
6716 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6717 test -n "$tmp" && test -d "$tmp"
6718 } ||
6720 tmp=./confstat$$-$RANDOM
6721 (umask 077 && mkdir $tmp)
6722 } ||
6724 echo "$me: cannot create a temporary directory in ." >&2
6725 { (exit 1); exit 1; }
6728 _ACEOF
6730 cat >>$CONFIG_STATUS <<_ACEOF
6733 # CONFIG_FILES section.
6736 # No need to generate the scripts if there are no CONFIG_FILES.
6737 # This happens for instance when ./config.status config.h
6738 if test -n "\$CONFIG_FILES"; then
6739 # Protect against being on the right side of a sed subst in config.status.
6740 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6741 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6742 s,@SHELL@,$SHELL,;t t
6743 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6744 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6745 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6746 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6747 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6748 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6749 s,@exec_prefix@,$exec_prefix,;t t
6750 s,@prefix@,$prefix,;t t
6751 s,@program_transform_name@,$program_transform_name,;t t
6752 s,@bindir@,$bindir,;t t
6753 s,@sbindir@,$sbindir,;t t
6754 s,@libexecdir@,$libexecdir,;t t
6755 s,@datadir@,$datadir,;t t
6756 s,@sysconfdir@,$sysconfdir,;t t
6757 s,@sharedstatedir@,$sharedstatedir,;t t
6758 s,@localstatedir@,$localstatedir,;t t
6759 s,@libdir@,$libdir,;t t
6760 s,@includedir@,$includedir,;t t
6761 s,@oldincludedir@,$oldincludedir,;t t
6762 s,@infodir@,$infodir,;t t
6763 s,@mandir@,$mandir,;t t
6764 s,@build_alias@,$build_alias,;t t
6765 s,@host_alias@,$host_alias,;t t
6766 s,@target_alias@,$target_alias,;t t
6767 s,@DEFS@,$DEFS,;t t
6768 s,@ECHO_C@,$ECHO_C,;t t
6769 s,@ECHO_N@,$ECHO_N,;t t
6770 s,@ECHO_T@,$ECHO_T,;t t
6771 s,@LIBS@,$LIBS,;t t
6772 s,@CC@,$CC,;t t
6773 s,@CFLAGS@,$CFLAGS,;t t
6774 s,@LDFLAGS@,$LDFLAGS,;t t
6775 s,@CPPFLAGS@,$CPPFLAGS,;t t
6776 s,@ac_ct_CC@,$ac_ct_CC,;t t
6777 s,@EXEEXT@,$EXEEXT,;t t
6778 s,@OBJEXT@,$OBJEXT,;t t
6779 s,@YACC@,$YACC,;t t
6780 s,@CPP@,$CPP,;t t
6781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6784 s,@LN_S@,$LN_S,;t t
6785 s,@SET_MAKE@,$SET_MAKE,;t t
6786 s,@EGREP@,$EGREP,;t t
6787 s,@ALLOCA@,$ALLOCA,;t t
6788 s,@CXREF_CPP@,$CXREF_CPP,;t t
6789 s,@GCC@,$GCC,;t t
6790 s,@LIBOBJS@,$LIBOBJS,;t t
6791 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6792 CEOF
6794 _ACEOF
6796 cat >>$CONFIG_STATUS <<\_ACEOF
6797 # Split the substitutions into bite-sized pieces for seds with
6798 # small command number limits, like on Digital OSF/1 and HP-UX.
6799 ac_max_sed_lines=48
6800 ac_sed_frag=1 # Number of current file.
6801 ac_beg=1 # First line for current file.
6802 ac_end=$ac_max_sed_lines # Line after last line for current file.
6803 ac_more_lines=:
6804 ac_sed_cmds=
6805 while $ac_more_lines; do
6806 if test $ac_beg -gt 1; then
6807 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6808 else
6809 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6811 if test ! -s $tmp/subs.frag; then
6812 ac_more_lines=false
6813 else
6814 # The purpose of the label and of the branching condition is to
6815 # speed up the sed processing (if there are no `@' at all, there
6816 # is no need to browse any of the substitutions).
6817 # These are the two extra sed commands mentioned above.
6818 (echo ':t
6819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6820 if test -z "$ac_sed_cmds"; then
6821 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6822 else
6823 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6825 ac_sed_frag=`expr $ac_sed_frag + 1`
6826 ac_beg=$ac_end
6827 ac_end=`expr $ac_end + $ac_max_sed_lines`
6829 done
6830 if test -z "$ac_sed_cmds"; then
6831 ac_sed_cmds=cat
6833 fi # test -n "$CONFIG_FILES"
6835 _ACEOF
6836 cat >>$CONFIG_STATUS <<\_ACEOF
6837 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6839 case $ac_file in
6840 - | *:- | *:-:* ) # input from stdin
6841 cat >$tmp/stdin
6842 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6844 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6846 * ) ac_file_in=$ac_file.in ;;
6847 esac
6849 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6850 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6852 X"$ac_file" : 'X\(//\)[^/]' \| \
6853 X"$ac_file" : 'X\(//\)$' \| \
6854 X"$ac_file" : 'X\(/\)' \| \
6855 . : '\(.\)' 2>/dev/null ||
6856 echo X"$ac_file" |
6857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6859 /^X\(\/\/\)$/{ s//\1/; q; }
6860 /^X\(\/\).*/{ s//\1/; q; }
6861 s/.*/./; q'`
6862 { if $as_mkdir_p; then
6863 mkdir -p "$ac_dir"
6864 else
6865 as_dir="$ac_dir"
6866 as_dirs=
6867 while test ! -d "$as_dir"; do
6868 as_dirs="$as_dir $as_dirs"
6869 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6871 X"$as_dir" : 'X\(//\)[^/]' \| \
6872 X"$as_dir" : 'X\(//\)$' \| \
6873 X"$as_dir" : 'X\(/\)' \| \
6874 . : '\(.\)' 2>/dev/null ||
6875 echo X"$as_dir" |
6876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6878 /^X\(\/\/\)$/{ s//\1/; q; }
6879 /^X\(\/\).*/{ s//\1/; q; }
6880 s/.*/./; q'`
6881 done
6882 test ! -n "$as_dirs" || mkdir $as_dirs
6883 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6884 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6885 { (exit 1); exit 1; }; }; }
6887 ac_builddir=.
6889 if test "$ac_dir" != .; then
6890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6891 # A "../" for each directory in $ac_dir_suffix.
6892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6893 else
6894 ac_dir_suffix= ac_top_builddir=
6897 case $srcdir in
6898 .) # No --srcdir option. We are building in place.
6899 ac_srcdir=.
6900 if test -z "$ac_top_builddir"; then
6901 ac_top_srcdir=.
6902 else
6903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6904 fi ;;
6905 [\\/]* | ?:[\\/]* ) # Absolute path.
6906 ac_srcdir=$srcdir$ac_dir_suffix;
6907 ac_top_srcdir=$srcdir ;;
6908 *) # Relative path.
6909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6911 esac
6913 # Do not use `cd foo && pwd` to compute absolute paths, because
6914 # the directories may not exist.
6915 case `pwd` in
6916 .) ac_abs_builddir="$ac_dir";;
6918 case "$ac_dir" in
6919 .) ac_abs_builddir=`pwd`;;
6920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6922 esac;;
6923 esac
6924 case $ac_abs_builddir in
6925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6927 case ${ac_top_builddir}. in
6928 .) ac_abs_top_builddir=$ac_abs_builddir;;
6929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6931 esac;;
6932 esac
6933 case $ac_abs_builddir in
6934 .) ac_abs_srcdir=$ac_srcdir;;
6936 case $ac_srcdir in
6937 .) ac_abs_srcdir=$ac_abs_builddir;;
6938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6940 esac;;
6941 esac
6942 case $ac_abs_builddir in
6943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6945 case $ac_top_srcdir in
6946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6949 esac;;
6950 esac
6953 case $INSTALL in
6954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6955 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6956 esac
6958 # Let's still pretend it is `configure' which instantiates (i.e., don't
6959 # use $as_me), people would be surprised to read:
6960 # /* config.h. Generated by config.status. */
6961 if test x"$ac_file" = x-; then
6962 configure_input=
6963 else
6964 configure_input="$ac_file. "
6966 configure_input=$configure_input"Generated from `echo $ac_file_in |
6967 sed 's,.*/,,'` by configure."
6969 # First look for the input files in the build tree, otherwise in the
6970 # src tree.
6971 ac_file_inputs=`IFS=:
6972 for f in $ac_file_in; do
6973 case $f in
6974 -) echo $tmp/stdin ;;
6975 [\\/$]*)
6976 # Absolute (can't be DOS-style, as IFS=:)
6977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6978 echo "$as_me: error: cannot find input file: $f" >&2;}
6979 { (exit 1); exit 1; }; }
6980 echo "$f";;
6981 *) # Relative
6982 if test -f "$f"; then
6983 # Build tree
6984 echo "$f"
6985 elif test -f "$srcdir/$f"; then
6986 # Source tree
6987 echo "$srcdir/$f"
6988 else
6989 # /dev/null tree
6990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6991 echo "$as_me: error: cannot find input file: $f" >&2;}
6992 { (exit 1); exit 1; }; }
6993 fi;;
6994 esac
6995 done` || { (exit 1); exit 1; }
6997 if test x"$ac_file" != x-; then
6998 { echo "$as_me:$LINENO: creating $ac_file" >&5
6999 echo "$as_me: creating $ac_file" >&6;}
7000 rm -f "$ac_file"
7002 _ACEOF
7003 cat >>$CONFIG_STATUS <<_ACEOF
7004 sed "$ac_vpsub
7005 $extrasub
7006 _ACEOF
7007 cat >>$CONFIG_STATUS <<\_ACEOF
7009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7010 s,@configure_input@,$configure_input,;t t
7011 s,@srcdir@,$ac_srcdir,;t t
7012 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7013 s,@top_srcdir@,$ac_top_srcdir,;t t
7014 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7015 s,@builddir@,$ac_builddir,;t t
7016 s,@abs_builddir@,$ac_abs_builddir,;t t
7017 s,@top_builddir@,$ac_top_builddir,;t t
7018 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7019 s,@INSTALL@,$ac_INSTALL,;t t
7020 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7021 rm -f $tmp/stdin
7022 if test x"$ac_file" != x-; then
7023 mv $tmp/out $ac_file
7024 else
7025 cat $tmp/out
7026 rm -f $tmp/out
7029 done
7030 _ACEOF
7031 cat >>$CONFIG_STATUS <<\_ACEOF
7034 # CONFIG_HEADER section.
7037 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7038 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7040 # ac_d sets the value in "#define NAME VALUE" lines.
7041 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7042 ac_dB='[ ].*$,\1#\2'
7043 ac_dC=' '
7044 ac_dD=',;t'
7045 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7046 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7047 ac_uB='$,\1#\2define\3'
7048 ac_uC=' '
7049 ac_uD=',;t'
7051 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7052 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7053 case $ac_file in
7054 - | *:- | *:-:* ) # input from stdin
7055 cat >$tmp/stdin
7056 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7058 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7060 * ) ac_file_in=$ac_file.in ;;
7061 esac
7063 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7064 echo "$as_me: creating $ac_file" >&6;}
7066 # First look for the input files in the build tree, otherwise in the
7067 # src tree.
7068 ac_file_inputs=`IFS=:
7069 for f in $ac_file_in; do
7070 case $f in
7071 -) echo $tmp/stdin ;;
7072 [\\/$]*)
7073 # Absolute (can't be DOS-style, as IFS=:)
7074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7075 echo "$as_me: error: cannot find input file: $f" >&2;}
7076 { (exit 1); exit 1; }; }
7077 # Do quote $f, to prevent DOS paths from being IFS'd.
7078 echo "$f";;
7079 *) # Relative
7080 if test -f "$f"; then
7081 # Build tree
7082 echo "$f"
7083 elif test -f "$srcdir/$f"; then
7084 # Source tree
7085 echo "$srcdir/$f"
7086 else
7087 # /dev/null tree
7088 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7089 echo "$as_me: error: cannot find input file: $f" >&2;}
7090 { (exit 1); exit 1; }; }
7091 fi;;
7092 esac
7093 done` || { (exit 1); exit 1; }
7094 # Remove the trailing spaces.
7095 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7097 _ACEOF
7099 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7100 # `conftest.undefs', that substitutes the proper values into
7101 # config.h.in to produce config.h. The first handles `#define'
7102 # templates, and the second `#undef' templates.
7103 # And first: Protect against being on the right side of a sed subst in
7104 # config.status. Protect against being in an unquoted here document
7105 # in config.status.
7106 rm -f conftest.defines conftest.undefs
7107 # Using a here document instead of a string reduces the quoting nightmare.
7108 # Putting comments in sed scripts is not portable.
7110 # `end' is used to avoid that the second main sed command (meant for
7111 # 0-ary CPP macros) applies to n-ary macro definitions.
7112 # See the Autoconf documentation for `clear'.
7113 cat >confdef2sed.sed <<\_ACEOF
7114 s/[\\&,]/\\&/g
7115 s,[\\$`],\\&,g
7116 t clear
7117 : clear
7118 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7119 t end
7120 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7121 : end
7122 _ACEOF
7123 # If some macros were called several times there might be several times
7124 # the same #defines, which is useless. Nevertheless, we may not want to
7125 # sort them, since we want the *last* AC-DEFINE to be honored.
7126 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7127 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7128 rm -f confdef2sed.sed
7130 # This sed command replaces #undef with comments. This is necessary, for
7131 # example, in the case of _POSIX_SOURCE, which is predefined and required
7132 # on some systems where configure will not decide to define it.
7133 cat >>conftest.undefs <<\_ACEOF
7134 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7135 _ACEOF
7137 # Break up conftest.defines because some shells have a limit on the size
7138 # of here documents, and old seds have small limits too (100 cmds).
7139 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7140 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7141 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7142 echo ' :' >>$CONFIG_STATUS
7143 rm -f conftest.tail
7144 while grep . conftest.defines >/dev/null
7146 # Write a limited-size here document to $tmp/defines.sed.
7147 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7148 # Speed up: don't consider the non `#define' lines.
7149 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7150 # Work around the forget-to-reset-the-flag bug.
7151 echo 't clr' >>$CONFIG_STATUS
7152 echo ': clr' >>$CONFIG_STATUS
7153 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7154 echo 'CEOF
7155 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7156 rm -f $tmp/in
7157 mv $tmp/out $tmp/in
7158 ' >>$CONFIG_STATUS
7159 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7160 rm -f conftest.defines
7161 mv conftest.tail conftest.defines
7162 done
7163 rm -f conftest.defines
7164 echo ' fi # grep' >>$CONFIG_STATUS
7165 echo >>$CONFIG_STATUS
7167 # Break up conftest.undefs because some shells have a limit on the size
7168 # of here documents, and old seds have small limits too (100 cmds).
7169 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7170 rm -f conftest.tail
7171 while grep . conftest.undefs >/dev/null
7173 # Write a limited-size here document to $tmp/undefs.sed.
7174 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7175 # Speed up: don't consider the non `#undef'
7176 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7177 # Work around the forget-to-reset-the-flag bug.
7178 echo 't clr' >>$CONFIG_STATUS
7179 echo ': clr' >>$CONFIG_STATUS
7180 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7181 echo 'CEOF
7182 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7183 rm -f $tmp/in
7184 mv $tmp/out $tmp/in
7185 ' >>$CONFIG_STATUS
7186 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7187 rm -f conftest.undefs
7188 mv conftest.tail conftest.undefs
7189 done
7190 rm -f conftest.undefs
7192 cat >>$CONFIG_STATUS <<\_ACEOF
7193 # Let's still pretend it is `configure' which instantiates (i.e., don't
7194 # use $as_me), people would be surprised to read:
7195 # /* config.h. Generated by config.status. */
7196 if test x"$ac_file" = x-; then
7197 echo "/* Generated by configure. */" >$tmp/config.h
7198 else
7199 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7201 cat $tmp/in >>$tmp/config.h
7202 rm -f $tmp/in
7203 if test x"$ac_file" != x-; then
7204 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7205 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7206 echo "$as_me: $ac_file is unchanged" >&6;}
7207 else
7208 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7210 X"$ac_file" : 'X\(//\)[^/]' \| \
7211 X"$ac_file" : 'X\(//\)$' \| \
7212 X"$ac_file" : 'X\(/\)' \| \
7213 . : '\(.\)' 2>/dev/null ||
7214 echo X"$ac_file" |
7215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7217 /^X\(\/\/\)$/{ s//\1/; q; }
7218 /^X\(\/\).*/{ s//\1/; q; }
7219 s/.*/./; q'`
7220 { if $as_mkdir_p; then
7221 mkdir -p "$ac_dir"
7222 else
7223 as_dir="$ac_dir"
7224 as_dirs=
7225 while test ! -d "$as_dir"; do
7226 as_dirs="$as_dir $as_dirs"
7227 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7229 X"$as_dir" : 'X\(//\)[^/]' \| \
7230 X"$as_dir" : 'X\(//\)$' \| \
7231 X"$as_dir" : 'X\(/\)' \| \
7232 . : '\(.\)' 2>/dev/null ||
7233 echo X"$as_dir" |
7234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7236 /^X\(\/\/\)$/{ s//\1/; q; }
7237 /^X\(\/\).*/{ s//\1/; q; }
7238 s/.*/./; q'`
7239 done
7240 test ! -n "$as_dirs" || mkdir $as_dirs
7241 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7242 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7243 { (exit 1); exit 1; }; }; }
7245 rm -f $ac_file
7246 mv $tmp/config.h $ac_file
7248 else
7249 cat $tmp/config.h
7250 rm -f $tmp/config.h
7252 done
7253 _ACEOF
7255 cat >>$CONFIG_STATUS <<\_ACEOF
7257 { (exit 0); exit 0; }
7258 _ACEOF
7259 chmod +x $CONFIG_STATUS
7260 ac_clean_files=$ac_clean_files_save
7263 # configure is writing to config.log, and then calls config.status.
7264 # config.status does its own redirection, appending to config.log.
7265 # Unfortunately, on DOS this fails, as config.log is still kept open
7266 # by configure, so config.status won't be able to write to it; its
7267 # output is simply discarded. So we exec the FD to /dev/null,
7268 # effectively closing config.log, so it can be properly (re)opened and
7269 # appended to by config.status. When coming back to configure, we
7270 # need to make the FD available again.
7271 if test "$no_create" != yes; then
7272 ac_cs_success=:
7273 ac_config_status_args=
7274 test "$silent" = yes &&
7275 ac_config_status_args="$ac_config_status_args --quiet"
7276 exec 5>/dev/null
7277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7278 exec 5>>config.log
7279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7280 # would make configure fail if this is the last instruction.
7281 $ac_cs_success || { (exit 1); exit 1; }
7285 chmod 755 cxref-cpp-configure