Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libdecnumber / configure
blobeea906c836b97b8000af1d5573eb63ba89645966
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libdecnumber .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='libdecnumber'
271 PACKAGE_TARNAME='libdecnumber'
272 PACKAGE_VERSION=' '
273 PACKAGE_STRING='libdecnumber '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="decNumber.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR CPP EGREP MAINT LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures libdecnumber to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
835 _ACEOF
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of libdecnumber :";;
841 esac
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-werror-always enable -Werror despite compiler version
848 --enable-maintainer-mode enable rules only needed by maintainers
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
857 CPP C preprocessor
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
862 Report bugs to <gcc-bugs@gcc.gnu.org>.
863 _ACEOF
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
868 ac_popdir=`pwd`
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
871 ac_builddir=.
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 else
878 ac_dir_suffix= ac_top_builddir=
881 case $srcdir in
882 .) # No --srcdir option. We are building in place.
883 ac_srcdir=.
884 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=.
886 else
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 fi ;;
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
892 *) # Relative path.
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 esac
897 # Do not use `cd foo && pwd` to compute absolute paths, because
898 # the directories may not exist.
899 case `pwd` in
900 .) ac_abs_builddir="$ac_dir";;
902 case "$ac_dir" in
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
906 esac;;
907 esac
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
920 case $ac_srcdir in
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933 esac;;
934 esac
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd "$ac_popdir"
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
958 libdecnumber configure
959 generated by GNU Autoconf 2.59
961 Copyright (C) 2003 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964 _ACEOF
965 exit 0
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by libdecnumber $as_me , which was
973 generated by GNU Autoconf 2.59. Invocation command line was
975 $ $0 $@
977 _ACEOF
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 _ASUNAME
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009 done
1011 } >&5
1013 cat >&5 <<_ACEOF
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1020 _ACEOF
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1028 ac_configure_args=
1029 ac_configure_args0=
1030 ac_configure_args1=
1031 ac_sep=
1032 ac_must_keep_next=false
1033 for ac_pass in 1 2
1035 for ac_arg
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1051 else
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1061 -* ) ac_must_keep_next=true ;;
1062 esac
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1068 esac
1069 done
1070 done
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log. We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1082 echo
1084 cat <<\_ASBOX
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1088 _ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 sed -n \
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 esac;
1105 echo
1107 cat <<\_ASBOX
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1111 _ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122 ## ------------- ##
1123 ## Output files. ##
1124 ## ------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137 ## ----------- ##
1138 ## confdefs.h. ##
1139 ## ----------- ##
1140 _ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1153 for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 done
1156 ac_signal=0
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 echo >confdefs.h
1163 # Predefined preprocessor variables.
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 _ACEOF
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 _ACEOF
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
1204 . "$ac_site_file"
1206 done
1208 if test -r "$cache_file"; then
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1219 else
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1225 # Check that the precious variables saved in the cache have kept the same
1226 # value.
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249 echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251 echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1267 done
1268 if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
1276 ac_ext=c
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 case ../config in
1310 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1311 *) ac_macro_dir=$srcdir/../config ;;
1312 esac
1313 if test -d "$ac_macro_dir"; then :
1314 else
1315 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1316 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1317 { (exit 1); exit 1; }; }
1321 # Checks for programs.
1322 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1323 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1324 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1325 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 cat >conftest.make <<\_ACEOF
1329 all:
1330 @echo 'ac_maketemp="$(MAKE)"'
1331 _ACEOF
1332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1333 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1334 if test -n "$ac_maketemp"; then
1335 eval ac_cv_prog_make_${ac_make}_set=yes
1336 else
1337 eval ac_cv_prog_make_${ac_make}_set=no
1339 rm -f conftest.make
1341 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1342 echo "$as_me:$LINENO: result: yes" >&5
1343 echo "${ECHO_T}yes" >&6
1344 SET_MAKE=
1345 else
1346 echo "$as_me:$LINENO: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1348 SET_MAKE="MAKE=${MAKE-make}"
1351 ac_ext=c
1352 ac_cpp='$CPP $CPPFLAGS'
1353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1356 if test -n "$ac_tool_prefix"; then
1357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1359 echo "$as_me:$LINENO: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_CC+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 if test -n "$CC"; then
1365 ac_cv_prog_CC="$CC" # Let the user override the test.
1366 else
1367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 for as_dir in $PATH
1370 IFS=$as_save_IFS
1371 test -z "$as_dir" && as_dir=.
1372 for ac_exec_ext in '' $ac_executable_extensions; do
1373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 break 2
1378 done
1379 done
1383 CC=$ac_cv_prog_CC
1384 if test -n "$CC"; then
1385 echo "$as_me:$LINENO: result: $CC" >&5
1386 echo "${ECHO_T}$CC" >&6
1387 else
1388 echo "$as_me:$LINENO: result: no" >&5
1389 echo "${ECHO_T}no" >&6
1393 if test -z "$ac_cv_prog_CC"; then
1394 ac_ct_CC=$CC
1395 # Extract the first word of "gcc", so it can be a program name with args.
1396 set dummy gcc; ac_word=$2
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 if test -n "$ac_ct_CC"; then
1403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1404 else
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 for ac_exec_ext in '' $ac_executable_extensions; do
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412 ac_cv_prog_ac_ct_CC="gcc"
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 break 2
1416 done
1417 done
1421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1422 if test -n "$ac_ct_CC"; then
1423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1424 echo "${ECHO_T}$ac_ct_CC" >&6
1425 else
1426 echo "$as_me:$LINENO: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1430 CC=$ac_ct_CC
1431 else
1432 CC="$ac_cv_prog_CC"
1435 if test -z "$CC"; then
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}cc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}cc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 break 2
1458 done
1459 done
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1474 ac_ct_CC=$CC
1475 # Extract the first word of "cc", so it can be a program name with args.
1476 set dummy cc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="cc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1496 done
1497 done
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1510 CC=$ac_ct_CC
1511 else
1512 CC="$ac_cv_prog_CC"
1516 if test -z "$CC"; then
1517 # Extract the first word of "cc", so it can be a program name with args.
1518 set dummy cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 ac_prog_rejected=no
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1536 ac_prog_rejected=yes
1537 continue
1539 ac_cv_prog_CC="cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1543 done
1544 done
1546 if test $ac_prog_rejected = yes; then
1547 # We found a bogon in the path, so make sure we never use it.
1548 set dummy $ac_cv_prog_CC
1549 shift
1550 if test $# != 0; then
1551 # We chose a different compiler from the bogus one.
1552 # However, it has the same basename, so the bogon will be chosen
1553 # first if we set CC to just the basename; use the full file name.
1554 shift
1555 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1560 CC=$ac_cv_prog_CC
1561 if test -n "$CC"; then
1562 echo "$as_me:$LINENO: result: $CC" >&5
1563 echo "${ECHO_T}$CC" >&6
1564 else
1565 echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1570 if test -z "$CC"; then
1571 if test -n "$ac_tool_prefix"; then
1572 for ac_prog in cl
1574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 break 2
1595 done
1596 done
1600 CC=$ac_cv_prog_CC
1601 if test -n "$CC"; then
1602 echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1604 else
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1609 test -n "$CC" && break
1610 done
1612 if test -z "$CC"; then
1613 ac_ct_CC=$CC
1614 for ac_prog in cl
1616 # Extract the first word of "$ac_prog", so it can be a program name with args.
1617 set dummy $ac_prog; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 if test -n "$ac_ct_CC"; then
1624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_ac_ct_CC="$ac_prog"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1637 done
1638 done
1642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1643 if test -n "$ac_ct_CC"; then
1644 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1645 echo "${ECHO_T}$ac_ct_CC" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1651 test -n "$ac_ct_CC" && break
1652 done
1654 CC=$ac_ct_CC
1660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1661 See \`config.log' for more details." >&5
1662 echo "$as_me: error: no acceptable C compiler found in \$PATH
1663 See \`config.log' for more details." >&2;}
1664 { (exit 1); exit 1; }; }
1666 # Provide some information about the compiler.
1667 echo "$as_me:$LINENO:" \
1668 "checking for C compiler version" >&5
1669 ac_compiler=`set X $ac_compile; echo $2`
1670 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1671 (eval $ac_compiler --version </dev/null >&5) 2>&5
1672 ac_status=$?
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674 (exit $ac_status); }
1675 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1676 (eval $ac_compiler -v </dev/null >&5) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }
1680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1681 (eval $ac_compiler -V </dev/null >&5) 2>&5
1682 ac_status=$?
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684 (exit $ac_status); }
1686 cat >conftest.$ac_ext <<_ACEOF
1687 /* confdefs.h. */
1688 _ACEOF
1689 cat confdefs.h >>conftest.$ac_ext
1690 cat >>conftest.$ac_ext <<_ACEOF
1691 /* end confdefs.h. */
1694 main ()
1698 return 0;
1700 _ACEOF
1701 ac_clean_files_save=$ac_clean_files
1702 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1703 # Try to create an executable without -o first, disregard a.out.
1704 # It will help us diagnose broken compilers, and finding out an intuition
1705 # of exeext.
1706 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1707 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1708 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1709 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1710 (eval $ac_link_default) 2>&5
1711 ac_status=$?
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }; then
1714 # Find the output, starting from the most likely. This scheme is
1715 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1716 # resort.
1718 # Be careful to initialize this variable, since it used to be cached.
1719 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1720 ac_cv_exeext=
1721 # b.out is created by i960 compilers.
1722 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1724 test -f "$ac_file" || continue
1725 case $ac_file in
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1728 conftest.$ac_ext )
1729 # This is the source file.
1731 [ab].out )
1732 # We found the default executable, but exeext='' is most
1733 # certainly right.
1734 break;;
1735 *.* )
1736 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1737 # FIXME: I believe we export ac_cv_exeext for Libtool,
1738 # but it would be cool to find out if it's true. Does anybody
1739 # maintain Libtool? --akim.
1740 export ac_cv_exeext
1741 break;;
1743 break;;
1744 esac
1745 done
1746 else
1747 echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1751 See \`config.log' for more details." >&5
1752 echo "$as_me: error: C compiler cannot create executables
1753 See \`config.log' for more details." >&2;}
1754 { (exit 77); exit 77; }; }
1757 ac_exeext=$ac_cv_exeext
1758 echo "$as_me:$LINENO: result: $ac_file" >&5
1759 echo "${ECHO_T}$ac_file" >&6
1761 # Check the compiler produces executables we can run. If not, either
1762 # the compiler is broken, or we cross compile.
1763 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1764 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1765 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1766 # If not cross compiling, check that we can run a simple program.
1767 if test "$cross_compiling" != yes; then
1768 if { ac_try='./$ac_file'
1769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1770 (eval $ac_try) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1774 cross_compiling=no
1775 else
1776 if test "$cross_compiling" = maybe; then
1777 cross_compiling=yes
1778 else
1779 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1780 If you meant to cross compile, use \`--host'.
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: cannot run C compiled programs.
1783 If you meant to cross compile, use \`--host'.
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1792 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1793 ac_clean_files=$ac_clean_files_save
1794 # Check the compiler produces executables we can run. If not, either
1795 # the compiler is broken, or we cross compile.
1796 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1797 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1798 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1799 echo "${ECHO_T}$cross_compiling" >&6
1801 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1802 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1804 (eval $ac_link) 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }; then
1808 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1809 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1810 # work properly (i.e., refer to `conftest.exe'), while it won't with
1811 # `rm'.
1812 for ac_file in conftest.exe conftest conftest.*; do
1813 test -f "$ac_file" || continue
1814 case $ac_file in
1815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1816 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 export ac_cv_exeext
1818 break;;
1819 * ) break;;
1820 esac
1821 done
1822 else
1823 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1826 See \`config.log' for more details." >&2;}
1827 { (exit 1); exit 1; }; }
1830 rm -f conftest$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1832 echo "${ECHO_T}$ac_cv_exeext" >&6
1834 rm -f conftest.$ac_ext
1835 EXEEXT=$ac_cv_exeext
1836 ac_exeext=$EXEEXT
1837 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1838 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1839 if test "${ac_cv_objext+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 cat >conftest.$ac_ext <<_ACEOF
1843 /* confdefs.h. */
1844 _ACEOF
1845 cat confdefs.h >>conftest.$ac_ext
1846 cat >>conftest.$ac_ext <<_ACEOF
1847 /* end confdefs.h. */
1850 main ()
1854 return 0;
1856 _ACEOF
1857 rm -f conftest.o conftest.obj
1858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1859 (eval $ac_compile) 2>&5
1860 ac_status=$?
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; then
1863 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1864 case $ac_file in
1865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1867 break;;
1868 esac
1869 done
1870 else
1871 echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }
1881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1883 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1884 echo "${ECHO_T}$ac_cv_objext" >&6
1885 OBJEXT=$ac_cv_objext
1886 ac_objext=$OBJEXT
1887 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1888 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1889 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 cat >conftest.$ac_ext <<_ACEOF
1893 /* confdefs.h. */
1894 _ACEOF
1895 cat confdefs.h >>conftest.$ac_ext
1896 cat >>conftest.$ac_ext <<_ACEOF
1897 /* end confdefs.h. */
1900 main ()
1902 #ifndef __GNUC__
1903 choke me
1904 #endif
1907 return 0;
1909 _ACEOF
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>conftest.er1
1913 ac_status=$?
1914 grep -v '^ *+' conftest.er1 >conftest.err
1915 rm -f conftest.er1
1916 cat conftest.err >&5
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); } &&
1919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921 (eval $ac_try) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; } &&
1925 { ac_try='test -s conftest.$ac_objext'
1926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927 (eval $ac_try) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }; }; then
1931 ac_compiler_gnu=yes
1932 else
1933 echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_compiler_gnu=no
1938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1942 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1943 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1944 GCC=`test $ac_compiler_gnu = yes && echo yes`
1945 ac_test_CFLAGS=${CFLAGS+set}
1946 ac_save_CFLAGS=$CFLAGS
1947 CFLAGS="-g"
1948 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1949 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1950 if test "${ac_cv_prog_cc_g+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 cat >conftest.$ac_ext <<_ACEOF
1954 /* confdefs.h. */
1955 _ACEOF
1956 cat confdefs.h >>conftest.$ac_ext
1957 cat >>conftest.$ac_ext <<_ACEOF
1958 /* end confdefs.h. */
1961 main ()
1965 return 0;
1967 _ACEOF
1968 rm -f conftest.$ac_objext
1969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1970 (eval $ac_compile) 2>conftest.er1
1971 ac_status=$?
1972 grep -v '^ *+' conftest.er1 >conftest.err
1973 rm -f conftest.er1
1974 cat conftest.err >&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; } &&
1983 { ac_try='test -s conftest.$ac_objext'
1984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 (eval $ac_try) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; }; then
1989 ac_cv_prog_cc_g=yes
1990 else
1991 echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1994 ac_cv_prog_cc_g=no
1996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1998 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1999 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2000 if test "$ac_test_CFLAGS" = set; then
2001 CFLAGS=$ac_save_CFLAGS
2002 elif test $ac_cv_prog_cc_g = yes; then
2003 if test "$GCC" = yes; then
2004 CFLAGS="-g -O2"
2005 else
2006 CFLAGS="-g"
2008 else
2009 if test "$GCC" = yes; then
2010 CFLAGS="-O2"
2011 else
2012 CFLAGS=
2015 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2016 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2017 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 ac_cv_prog_cc_stdc=no
2021 ac_save_CC=$CC
2022 cat >conftest.$ac_ext <<_ACEOF
2023 /* confdefs.h. */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2028 #include <stdarg.h>
2029 #include <stdio.h>
2030 #include <sys/types.h>
2031 #include <sys/stat.h>
2032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2033 struct buf { int x; };
2034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2035 static char *e (p, i)
2036 char **p;
2037 int i;
2039 return p[i];
2041 static char *f (char * (*g) (char **, int), char **p, ...)
2043 char *s;
2044 va_list v;
2045 va_start (v,p);
2046 s = g (p, va_arg (v,int));
2047 va_end (v);
2048 return s;
2051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2052 function prototypes and stuff, but not '\xHH' hex character constants.
2053 These don't provoke an error unfortunately, instead are silently treated
2054 as 'x'. The following induces an error, until -std1 is added to get
2055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2056 array size at least. It's necessary to write '\x00'==0 to get something
2057 that's true only with -std1. */
2058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2060 int test (int i, double x);
2061 struct s1 {int (*f) (int a);};
2062 struct s2 {int (*f) (double a);};
2063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2064 int argc;
2065 char **argv;
2067 main ()
2069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2071 return 0;
2073 _ACEOF
2074 # Don't try gcc -ansi; that turns off useful extensions and
2075 # breaks some systems' header files.
2076 # AIX -qlanglvl=ansi
2077 # Ultrix and OSF/1 -std1
2078 # HP-UX 10.20 and later -Ae
2079 # HP-UX older versions -Aa -D_HPUX_SOURCE
2080 # SVR4 -Xc -D__EXTENSIONS__
2081 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2083 CC="$ac_save_CC $ac_arg"
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2087 ac_status=$?
2088 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_cv_prog_cc_stdc=$ac_arg
2106 break
2107 else
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.err conftest.$ac_objext
2113 done
2114 rm -f conftest.$ac_ext conftest.$ac_objext
2115 CC=$ac_save_CC
2119 case "x$ac_cv_prog_cc_stdc" in
2120 x|xno)
2121 echo "$as_me:$LINENO: result: none needed" >&5
2122 echo "${ECHO_T}none needed" >&6 ;;
2124 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2125 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2126 CC="$CC $ac_cv_prog_cc_stdc" ;;
2127 esac
2129 # Some people use a C++ compiler to compile C. Since we use `exit',
2130 # in C++ we need to declare it. In case someone uses the same compiler
2131 # for both compiling C and C++ we need to have the C++ compiler decide
2132 # the declaration of exit, since it's the most demanding environment.
2133 cat >conftest.$ac_ext <<_ACEOF
2134 #ifndef __cplusplus
2135 choke me
2136 #endif
2137 _ACEOF
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2141 ac_status=$?
2142 grep -v '^ *+' conftest.er1 >conftest.err
2143 rm -f conftest.er1
2144 cat conftest.err >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2159 for ac_declaration in \
2160 '' \
2161 'extern "C" void std::exit (int) throw (); using std::exit;' \
2162 'extern "C" void std::exit (int); using std::exit;' \
2163 'extern "C" void exit (int) throw ();' \
2164 'extern "C" void exit (int);' \
2165 'void exit (int);'
2167 cat >conftest.$ac_ext <<_ACEOF
2168 /* confdefs.h. */
2169 _ACEOF
2170 cat confdefs.h >>conftest.$ac_ext
2171 cat >>conftest.$ac_ext <<_ACEOF
2172 /* end confdefs.h. */
2173 $ac_declaration
2174 #include <stdlib.h>
2176 main ()
2178 exit (42);
2180 return 0;
2182 _ACEOF
2183 rm -f conftest.$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>conftest.er1
2186 ac_status=$?
2187 grep -v '^ *+' conftest.er1 >conftest.err
2188 rm -f conftest.er1
2189 cat conftest.err >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 continue
2211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h. */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2218 $ac_declaration
2220 main ()
2222 exit (42);
2224 return 0;
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 break
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2255 done
2256 rm -f conftest*
2257 if test -n "$ac_declaration"; then
2258 echo '#ifdef __cplusplus' >>confdefs.h
2259 echo $ac_declaration >>confdefs.h
2260 echo '#endif' >>confdefs.h
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_RANLIB+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$RANLIB"; then
2284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2297 done
2298 done
2302 RANLIB=$ac_cv_prog_RANLIB
2303 if test -n "$RANLIB"; then
2304 echo "$as_me:$LINENO: result: $RANLIB" >&5
2305 echo "${ECHO_T}$RANLIB" >&6
2306 else
2307 echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2312 if test -z "$ac_cv_prog_RANLIB"; then
2313 ac_ct_RANLIB=$RANLIB
2314 # Extract the first word of "ranlib", so it can be a program name with args.
2315 set dummy ranlib; ac_word=$2
2316 echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2318 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 if test -n "$ac_ct_RANLIB"; then
2322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331 ac_cv_prog_ac_ct_RANLIB="ranlib"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2335 done
2336 done
2338 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2342 if test -n "$ac_ct_RANLIB"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2344 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2345 else
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2350 RANLIB=$ac_ct_RANLIB
2351 else
2352 RANLIB="$ac_cv_prog_RANLIB"
2356 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2357 for ac_prog in aclocal
2359 # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy $ac_prog; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$ACLOCAL"; then
2367 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_ACLOCAL="$ac_prog"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2385 ACLOCAL=$ac_cv_prog_ACLOCAL
2386 if test -n "$ACLOCAL"; then
2387 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2388 echo "${ECHO_T}$ACLOCAL" >&6
2389 else
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 test -n "$ACLOCAL" && break
2395 done
2396 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2398 for ac_prog in autoconf
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 if test -n "$AUTOCONF"; then
2408 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_AUTOCONF="$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 break 2
2421 done
2422 done
2426 AUTOCONF=$ac_cv_prog_AUTOCONF
2427 if test -n "$AUTOCONF"; then
2428 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2429 echo "${ECHO_T}$AUTOCONF" >&6
2430 else
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$AUTOCONF" && break
2436 done
2437 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2439 for ac_prog in autoheader
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 if test -n "$AUTOHEADER"; then
2449 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_AUTOHEADER="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2462 done
2463 done
2467 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2468 if test -n "$AUTOHEADER"; then
2469 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2470 echo "${ECHO_T}$AUTOHEADER" >&6
2471 else
2472 echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2476 test -n "$AUTOHEADER" && break
2477 done
2478 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2481 # Figure out what compiler warnings we can enable.
2482 # See config/warnings.m4 for details.
2485 WARN_CFLAGS=
2486 save_CFLAGS="$CFLAGS"
2487 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2488 -Wmissing-prototypes -Wold-style-definition \
2489 -Wmissing-format-attribute; do
2490 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2492 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2493 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2494 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 CFLAGS="$option"
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2506 main ()
2510 return 0;
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 eval "$as_acx_Woption=yes"
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2539 eval "$as_acx_Woption=no"
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2545 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2546 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2547 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2550 done
2551 CFLAGS="$save_CFLAGS"
2553 WARN_PEDANTIC=
2554 if test "$GCC" = yes; then
2555 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2556 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2557 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 save_CFLAGS="$CFLAGS"
2561 CFLAGS="-pedantic -Wno-long-long"
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2570 main ()
2574 return 0;
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2599 else
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 acx_cv_prog_cc_pedantic__Wno_long_long=no
2605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606 CFLAGS="$save_CFLAGS"
2608 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2609 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2610 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2611 WARN_PEDANTIC="-pedantic -Wno-long-long"
2619 # Only enable with --enable-werror-always until existing warnings are
2620 # corrected.
2621 WERROR=
2622 # Check whether --enable-werror-always or --disable-werror-always was given.
2623 if test "${enable_werror_always+set}" = set; then
2624 enableval="$enable_werror_always"
2626 else
2627 enable_werror_always=no
2629 if test $enable_werror_always = yes; then
2630 WERROR=-Werror
2635 # Checks for header files.
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2642 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2643 # On Suns, sometimes $CPP names a directory.
2644 if test -n "$CPP" && test -d "$CPP"; then
2645 CPP=
2647 if test -z "$CPP"; then
2648 if test "${ac_cv_prog_CPP+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651 # Double quotes because CPP needs to be expanded
2652 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2654 ac_preproc_ok=false
2655 for ac_c_preproc_warn_flag in '' yes
2657 # Use a header file that comes with gcc, so configuring glibc
2658 # with a fresh cross-compiler works.
2659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2660 # <limits.h> exists even on freestanding compilers.
2661 # On the NeXT, cc -E runs the code through the compiler's parser,
2662 # not just through cpp. "Syntax error" is here to catch this case.
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2669 #ifdef __STDC__
2670 # include <limits.h>
2671 #else
2672 # include <assert.h>
2673 #endif
2674 Syntax error
2675 _ACEOF
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } >/dev/null; then
2684 if test -s conftest.err; then
2685 ac_cpp_err=$ac_c_preproc_warn_flag
2686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2687 else
2688 ac_cpp_err=
2690 else
2691 ac_cpp_err=yes
2693 if test -z "$ac_cpp_err"; then
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 # Broken: fails on valid input.
2700 continue
2702 rm -f conftest.err conftest.$ac_ext
2704 # OK, works on sane cases. Now check whether non-existent headers
2705 # can be detected and how.
2706 cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2712 #include <ac_nonexistent.h>
2713 _ACEOF
2714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } >/dev/null; then
2722 if test -s conftest.err; then
2723 ac_cpp_err=$ac_c_preproc_warn_flag
2724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2725 else
2726 ac_cpp_err=
2728 else
2729 ac_cpp_err=yes
2731 if test -z "$ac_cpp_err"; then
2732 # Broken: success on invalid input.
2733 continue
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 # Passes both tests.
2739 ac_preproc_ok=:
2740 break
2742 rm -f conftest.err conftest.$ac_ext
2744 done
2745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2746 rm -f conftest.err conftest.$ac_ext
2747 if $ac_preproc_ok; then
2748 break
2751 done
2752 ac_cv_prog_CPP=$CPP
2755 CPP=$ac_cv_prog_CPP
2756 else
2757 ac_cv_prog_CPP=$CPP
2759 echo "$as_me:$LINENO: result: $CPP" >&5
2760 echo "${ECHO_T}$CPP" >&6
2761 ac_preproc_ok=false
2762 for ac_c_preproc_warn_flag in '' yes
2764 # Use a header file that comes with gcc, so configuring glibc
2765 # with a fresh cross-compiler works.
2766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2767 # <limits.h> exists even on freestanding compilers.
2768 # On the NeXT, cc -E runs the code through the compiler's parser,
2769 # not just through cpp. "Syntax error" is here to catch this case.
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #ifdef __STDC__
2777 # include <limits.h>
2778 #else
2779 # include <assert.h>
2780 #endif
2781 Syntax error
2782 _ACEOF
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_c_preproc_warn_flag
2793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2794 else
2795 ac_cpp_err=
2797 else
2798 ac_cpp_err=yes
2800 if test -z "$ac_cpp_err"; then
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 # Broken: fails on valid input.
2807 continue
2809 rm -f conftest.err conftest.$ac_ext
2811 # OK, works on sane cases. Now check whether non-existent headers
2812 # can be detected and how.
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2819 #include <ac_nonexistent.h>
2820 _ACEOF
2821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } >/dev/null; then
2829 if test -s conftest.err; then
2830 ac_cpp_err=$ac_c_preproc_warn_flag
2831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2832 else
2833 ac_cpp_err=
2835 else
2836 ac_cpp_err=yes
2838 if test -z "$ac_cpp_err"; then
2839 # Broken: success on invalid input.
2840 continue
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 # Passes both tests.
2846 ac_preproc_ok=:
2847 break
2849 rm -f conftest.err conftest.$ac_ext
2851 done
2852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2853 rm -f conftest.err conftest.$ac_ext
2854 if $ac_preproc_ok; then
2856 else
2857 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2860 See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking for egrep" >&5
2872 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2873 if test "${ac_cv_prog_egrep+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2877 then ac_cv_prog_egrep='grep -E'
2878 else ac_cv_prog_egrep='egrep'
2881 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2882 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2883 EGREP=$ac_cv_prog_egrep
2886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2888 if test "${ac_cv_header_stdc+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <stdlib.h>
2898 #include <stdarg.h>
2899 #include <string.h>
2900 #include <float.h>
2903 main ()
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_cv_header_stdc=yes
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 ac_cv_header_stdc=no
2938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940 if test $ac_cv_header_stdc = yes; then
2941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2948 #include <string.h>
2950 _ACEOF
2951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2952 $EGREP "memchr" >/dev/null 2>&1; then
2954 else
2955 ac_cv_header_stdc=no
2957 rm -f conftest*
2961 if test $ac_cv_header_stdc = yes; then
2962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <stdlib.h>
2971 _ACEOF
2972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2973 $EGREP "free" >/dev/null 2>&1; then
2975 else
2976 ac_cv_header_stdc=no
2978 rm -f conftest*
2982 if test $ac_cv_header_stdc = yes; then
2983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2984 if test "$cross_compiling" = yes; then
2986 else
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 #include <ctype.h>
2994 #if ((' ' & 0x0FF) == 0x020)
2995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2997 #else
2998 # define ISLOWER(c) \
2999 (('a' <= (c) && (c) <= 'i') \
3000 || ('j' <= (c) && (c) <= 'r') \
3001 || ('s' <= (c) && (c) <= 'z'))
3002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3003 #endif
3005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3007 main ()
3009 int i;
3010 for (i = 0; i < 256; i++)
3011 if (XOR (islower (i), ISLOWER (i))
3012 || toupper (i) != TOUPPER (i))
3013 exit(2);
3014 exit (0);
3016 _ACEOF
3017 rm -f conftest$ac_exeext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3019 (eval $ac_link) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3029 else
3030 echo "$as_me: program exited with status $ac_status" >&5
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ( exit $ac_status )
3035 ac_cv_header_stdc=no
3037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3041 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3042 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3043 if test $ac_cv_header_stdc = yes; then
3045 cat >>confdefs.h <<\_ACEOF
3046 #define STDC_HEADERS 1
3047 _ACEOF
3051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3062 inttypes.h stdint.h unistd.h
3064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3065 echo "$as_me:$LINENO: checking for $ac_header" >&5
3066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3076 $ac_includes_default
3078 #include <$ac_header>
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082 (eval $ac_compile) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 eval "$as_ac_Header=yes"
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 eval "$as_ac_Header=no"
3108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3113 cat >>confdefs.h <<_ACEOF
3114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3115 _ACEOF
3119 done
3126 for ac_header in ctype.h stddef.h string.h stdio.h
3128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3130 echo "$as_me:$LINENO: checking for $ac_header" >&5
3131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3137 else
3138 # Is the header compilable?
3139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147 $ac_includes_default
3148 #include <$ac_header>
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_header_compiler=yes
3172 else
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 ac_header_compiler=no
3178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3180 echo "${ECHO_T}$ac_header_compiler" >&6
3182 # Is the header present?
3183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 #include <$ac_header>
3192 _ACEOF
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204 else
3205 ac_cpp_err=
3207 else
3208 ac_cpp_err=yes
3210 if test -z "$ac_cpp_err"; then
3211 ac_header_preproc=yes
3212 else
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 ac_header_preproc=no
3218 rm -f conftest.err conftest.$ac_ext
3219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3220 echo "${ECHO_T}$ac_header_preproc" >&6
3222 # So? What about this header?
3223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3224 yes:no: )
3225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3229 ac_header_preproc=yes
3231 no:yes:* )
3232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3245 cat <<\_ASBOX
3246 ## ----------------------------------- ##
3247 ## Report this to gcc-bugs@gcc.gnu.org ##
3248 ## ----------------------------------- ##
3249 _ASBOX
3251 sed "s/^/$as_me: WARNING: /" >&2
3253 esac
3254 echo "$as_me:$LINENO: checking for $ac_header" >&5
3255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 eval "$as_ac_Header=\$ac_header_preproc"
3261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3266 cat >>confdefs.h <<_ACEOF
3267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3268 _ACEOF
3272 done
3275 # Checks for typedefs, structures, and compiler characteristics.
3276 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3277 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3278 if test "${ac_cv_c_const+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 main ()
3291 /* FIXME: Include the comments suggested by Paul. */
3292 #ifndef __cplusplus
3293 /* Ultrix mips cc rejects this. */
3294 typedef int charset[2];
3295 const charset x;
3296 /* SunOS 4.1.1 cc rejects this. */
3297 char const *const *ccp;
3298 char **p;
3299 /* NEC SVR4.0.2 mips cc rejects this. */
3300 struct point {int x, y;};
3301 static struct point const zero = {0,0};
3302 /* AIX XL C 1.02.0.0 rejects this.
3303 It does not let you subtract one const X* pointer from another in
3304 an arm of an if-expression whose if-part is not a constant
3305 expression */
3306 const char *g = "string";
3307 ccp = &g + (g ? g-g : 0);
3308 /* HPUX 7.0 cc rejects these. */
3309 ++ccp;
3310 p = (char**) ccp;
3311 ccp = (char const *const *) p;
3312 { /* SCO 3.2v4 cc rejects this. */
3313 char *t;
3314 char const *s = 0 ? (char *) 0 : (char const *) 0;
3316 *t++ = 0;
3318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3319 int x[] = {25, 17};
3320 const int *foo = &x[0];
3321 ++foo;
3323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3324 typedef const int *iptr;
3325 iptr p = 0;
3326 ++p;
3328 { /* AIX XL C 1.02.0.0 rejects this saying
3329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3330 struct s { int j; const int *ap[3]; };
3331 struct s *b; b->j = 5;
3333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3334 const int foo = 10;
3336 #endif
3339 return 0;
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_c_const=yes
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 ac_cv_c_const=no
3370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3373 echo "${ECHO_T}$ac_cv_c_const" >&6
3374 if test $ac_cv_c_const = no; then
3376 cat >>confdefs.h <<\_ACEOF
3377 #define const
3378 _ACEOF
3382 echo "$as_me:$LINENO: checking for off_t" >&5
3383 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3384 if test "${ac_cv_type_off_t+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 $ac_includes_default
3395 main ()
3397 if ((off_t *) 0)
3398 return 0;
3399 if (sizeof (off_t))
3400 return 0;
3402 return 0;
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } &&
3414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 ac_cv_type_off_t=yes
3427 else
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 ac_cv_type_off_t=no
3433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3436 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3437 if test $ac_cv_type_off_t = yes; then
3439 else
3441 cat >>confdefs.h <<_ACEOF
3442 #define off_t long
3443 _ACEOF
3447 echo "$as_me:$LINENO: checking for int" >&5
3448 echo $ECHO_N "checking for int... $ECHO_C" >&6
3449 if test "${ac_cv_type_int+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 $ac_includes_default
3460 main ()
3462 if ((int *) 0)
3463 return 0;
3464 if (sizeof (int))
3465 return 0;
3467 return 0;
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; } &&
3485 { ac_try='test -s conftest.$ac_objext'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 ac_cv_type_int=yes
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 ac_cv_type_int=no
3498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3501 echo "${ECHO_T}$ac_cv_type_int" >&6
3503 echo "$as_me:$LINENO: checking size of int" >&5
3504 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3505 if test "${ac_cv_sizeof_int+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 if test "$ac_cv_type_int" = yes; then
3509 # The cast to unsigned long works around a bug in the HP C Compiler
3510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3512 # This bug is HP SR number 8606223364.
3513 if test "$cross_compiling" = yes; then
3514 # Depending upon the size, compute the lo and hi bounds.
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 $ac_includes_default
3523 main ()
3525 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3526 test_array [0] = 0
3529 return 0;
3531 _ACEOF
3532 rm -f conftest.$ac_objext
3533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3534 (eval $ac_compile) 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } &&
3541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_lo=0 ac_mid=0
3554 while :; do
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3563 main ()
3565 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3566 test_array [0] = 0
3569 return 0;
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_hi=$ac_mid; break
3594 else
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 ac_lo=`expr $ac_mid + 1`
3599 if test $ac_lo -le $ac_mid; then
3600 ac_lo= ac_hi=
3601 break
3603 ac_mid=`expr 2 '*' $ac_mid + 1`
3605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3606 done
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 $ac_includes_default
3619 main ()
3621 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3622 test_array [0] = 0
3625 return 0;
3627 _ACEOF
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_hi=-1 ac_mid=-1
3650 while :; do
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 $ac_includes_default
3659 main ()
3661 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3662 test_array [0] = 0
3665 return 0;
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_lo=$ac_mid; break
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 ac_hi=`expr '(' $ac_mid ')' - 1`
3695 if test $ac_mid -le $ac_hi; then
3696 ac_lo= ac_hi=
3697 break
3699 ac_mid=`expr 2 '*' $ac_mid`
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 done
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 ac_lo= ac_hi=
3709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712 # Binary search between lo and hi bounds.
3713 while test "x$ac_lo" != "x$ac_hi"; do
3714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 $ac_includes_default
3723 main ()
3725 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3726 test_array [0] = 0
3729 return 0;
3731 _ACEOF
3732 rm -f conftest.$ac_objext
3733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_hi=$ac_mid
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 ac_lo=`expr '(' $ac_mid ')' + 1`
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 done
3762 case $ac_lo in
3763 ?*) ac_cv_sizeof_int=$ac_lo;;
3764 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: cannot compute sizeof (int), 77
3767 See \`config.log' for more details." >&2;}
3768 { (exit 1); exit 1; }; } ;;
3769 esac
3770 else
3771 if test "$cross_compiling" = yes; then
3772 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3773 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3774 { (exit 1); exit 1; }; }
3775 else
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 $ac_includes_default
3783 long longval () { return (long) (sizeof (int)); }
3784 unsigned long ulongval () { return (long) (sizeof (int)); }
3785 #include <stdio.h>
3786 #include <stdlib.h>
3788 main ()
3791 FILE *f = fopen ("conftest.val", "w");
3792 if (! f)
3793 exit (1);
3794 if (((long) (sizeof (int))) < 0)
3796 long i = longval ();
3797 if (i != ((long) (sizeof (int))))
3798 exit (1);
3799 fprintf (f, "%ld\n", i);
3801 else
3803 unsigned long i = ulongval ();
3804 if (i != ((long) (sizeof (int))))
3805 exit (1);
3806 fprintf (f, "%lu\n", i);
3808 exit (ferror (f) || fclose (f) != 0);
3811 return 0;
3813 _ACEOF
3814 rm -f conftest$ac_exeext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816 (eval $ac_link) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_sizeof_int=`cat conftest.val`
3826 else
3827 echo "$as_me: program exited with status $ac_status" >&5
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 ( exit $ac_status )
3832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3833 See \`config.log' for more details." >&5
3834 echo "$as_me: error: cannot compute sizeof (int), 77
3835 See \`config.log' for more details." >&2;}
3836 { (exit 1); exit 1; }; }
3838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3841 rm -f conftest.val
3842 else
3843 ac_cv_sizeof_int=0
3846 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3847 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3848 cat >>confdefs.h <<_ACEOF
3849 #define SIZEOF_INT $ac_cv_sizeof_int
3850 _ACEOF
3853 echo "$as_me:$LINENO: checking for long" >&5
3854 echo $ECHO_N "checking for long... $ECHO_C" >&6
3855 if test "${ac_cv_type_long+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 $ac_includes_default
3866 main ()
3868 if ((long *) 0)
3869 return 0;
3870 if (sizeof (long))
3871 return 0;
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_type_long=yes
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_cv_type_long=no
3904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3907 echo "${ECHO_T}$ac_cv_type_long" >&6
3909 echo "$as_me:$LINENO: checking size of long" >&5
3910 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3911 if test "${ac_cv_sizeof_long+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 if test "$ac_cv_type_long" = yes; then
3915 # The cast to unsigned long works around a bug in the HP C Compiler
3916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3918 # This bug is HP SR number 8606223364.
3919 if test "$cross_compiling" = yes; then
3920 # Depending upon the size, compute the lo and hi bounds.
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 $ac_includes_default
3929 main ()
3931 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3932 test_array [0] = 0
3935 return 0;
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940 (eval $ac_compile) 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; } &&
3953 { ac_try='test -s conftest.$ac_objext'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 (eval $ac_try) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_lo=0 ac_mid=0
3960 while :; do
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 $ac_includes_default
3969 main ()
3971 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3972 test_array [0] = 0
3975 return 0;
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_hi=$ac_mid; break
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 ac_lo=`expr $ac_mid + 1`
4005 if test $ac_lo -le $ac_mid; then
4006 ac_lo= ac_hi=
4007 break
4009 ac_mid=`expr 2 '*' $ac_mid + 1`
4011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4012 done
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 main ()
4027 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4028 test_array [0] = 0
4031 return 0;
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_hi=-1 ac_mid=-1
4056 while :; do
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4065 main ()
4067 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4068 test_array [0] = 0
4071 return 0;
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_lo=$ac_mid; break
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_hi=`expr '(' $ac_mid ')' - 1`
4101 if test $ac_mid -le $ac_hi; then
4102 ac_lo= ac_hi=
4103 break
4105 ac_mid=`expr 2 '*' $ac_mid`
4107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108 done
4109 else
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 ac_lo= ac_hi=
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118 # Binary search between lo and hi bounds.
4119 while test "x$ac_lo" != "x$ac_hi"; do
4120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4129 main ()
4131 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4132 test_array [0] = 0
4135 return 0;
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_hi=$ac_mid
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_lo=`expr '(' $ac_mid ')' + 1`
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 done
4168 case $ac_lo in
4169 ?*) ac_cv_sizeof_long=$ac_lo;;
4170 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4171 See \`config.log' for more details." >&5
4172 echo "$as_me: error: cannot compute sizeof (long), 77
4173 See \`config.log' for more details." >&2;}
4174 { (exit 1); exit 1; }; } ;;
4175 esac
4176 else
4177 if test "$cross_compiling" = yes; then
4178 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4179 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4180 { (exit 1); exit 1; }; }
4181 else
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 $ac_includes_default
4189 long longval () { return (long) (sizeof (long)); }
4190 unsigned long ulongval () { return (long) (sizeof (long)); }
4191 #include <stdio.h>
4192 #include <stdlib.h>
4194 main ()
4197 FILE *f = fopen ("conftest.val", "w");
4198 if (! f)
4199 exit (1);
4200 if (((long) (sizeof (long))) < 0)
4202 long i = longval ();
4203 if (i != ((long) (sizeof (long))))
4204 exit (1);
4205 fprintf (f, "%ld\n", i);
4207 else
4209 unsigned long i = ulongval ();
4210 if (i != ((long) (sizeof (long))))
4211 exit (1);
4212 fprintf (f, "%lu\n", i);
4214 exit (ferror (f) || fclose (f) != 0);
4217 return 0;
4219 _ACEOF
4220 rm -f conftest$ac_exeext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4222 (eval $ac_link) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_cv_sizeof_long=`cat conftest.val`
4232 else
4233 echo "$as_me: program exited with status $ac_status" >&5
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 ( exit $ac_status )
4238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4239 See \`config.log' for more details." >&5
4240 echo "$as_me: error: cannot compute sizeof (long), 77
4241 See \`config.log' for more details." >&2;}
4242 { (exit 1); exit 1; }; }
4244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247 rm -f conftest.val
4248 else
4249 ac_cv_sizeof_long=0
4252 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4253 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4254 cat >>confdefs.h <<_ACEOF
4255 #define SIZEOF_LONG $ac_cv_sizeof_long
4256 _ACEOF
4260 # Checks for library functions.
4261 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4262 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4263 if test "${ac_cv_header_stdc+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <stdlib.h>
4273 #include <stdarg.h>
4274 #include <string.h>
4275 #include <float.h>
4278 main ()
4282 return 0;
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_header_stdc=yes
4307 else
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_header_stdc=no
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 if test $ac_cv_header_stdc = yes; then
4316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h. */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 #include <string.h>
4325 _ACEOF
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 $EGREP "memchr" >/dev/null 2>&1; then
4329 else
4330 ac_cv_header_stdc=no
4332 rm -f conftest*
4336 if test $ac_cv_header_stdc = yes; then
4337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <stdlib.h>
4346 _ACEOF
4347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4348 $EGREP "free" >/dev/null 2>&1; then
4350 else
4351 ac_cv_header_stdc=no
4353 rm -f conftest*
4357 if test $ac_cv_header_stdc = yes; then
4358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4359 if test "$cross_compiling" = yes; then
4361 else
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include <ctype.h>
4369 #if ((' ' & 0x0FF) == 0x020)
4370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 #else
4373 # define ISLOWER(c) \
4374 (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4378 #endif
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4382 main ()
4384 int i;
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4388 exit(2);
4389 exit (0);
4391 _ACEOF
4392 rm -f conftest$ac_exeext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4404 else
4405 echo "$as_me: program exited with status $ac_status" >&5
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ( exit $ac_status )
4410 ac_cv_header_stdc=no
4412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4417 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4418 if test $ac_cv_header_stdc = yes; then
4420 cat >>confdefs.h <<\_ACEOF
4421 #define STDC_HEADERS 1
4422 _ACEOF
4427 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4428 if test "${enable_maintainer_mode+set}" = set; then
4429 enableval="$enable_maintainer_mode"
4431 else
4432 enable_maintainer_mode=no
4435 if test "x$enable_maintainer_mode" = xno; then
4436 MAINT='#'
4437 else
4438 MAINT=
4442 # Output.
4444 ac_config_headers="$ac_config_headers config.h:config.in"
4446 ac_config_files="$ac_config_files Makefile"
4448 cat >confcache <<\_ACEOF
4449 # This file is a shell script that caches the results of configure
4450 # tests run on this system so they can be shared between configure
4451 # scripts and configure runs, see configure's option --config-cache.
4452 # It is not useful on other systems. If it contains results you don't
4453 # want to keep, you may remove or edit it.
4455 # config.status only pays attention to the cache file if you give it
4456 # the --recheck option to rerun configure.
4458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4460 # following values.
4462 _ACEOF
4464 # The following way of writing the cache mishandles newlines in values,
4465 # but we know of no workaround that is simple, portable, and efficient.
4466 # So, don't put newlines in cache variables' values.
4467 # Ultrix sh set writes to stderr and can't be redirected directly,
4468 # and sets the high bit in the cache file unless we assign to the vars.
4470 (set) 2>&1 |
4471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4472 *ac_space=\ *)
4473 # `set' does not quote correctly, so add quotes (double-quote
4474 # substitution turns \\\\ into \\, and sed turns \\ into \).
4475 sed -n \
4476 "s/'/'\\\\''/g;
4477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4480 # `set' quotes correctly as required by POSIX, so do not add quotes.
4481 sed -n \
4482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4484 esac;
4486 sed '
4487 t clear
4488 : clear
4489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4490 t end
4491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4492 : end' >>confcache
4493 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4494 if test -w $cache_file; then
4495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4496 cat confcache >$cache_file
4497 else
4498 echo "not updating unwritable cache $cache_file"
4501 rm -f confcache
4503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4504 # Let make expand exec_prefix.
4505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4509 # trailing colons and then remove the whole line if VPATH becomes empty
4510 # (actually we leave an empty line to preserve line numbers).
4511 if test "x$srcdir" = x.; then
4512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4513 s/:*\$(srcdir):*/:/;
4514 s/:*\${srcdir}:*/:/;
4515 s/:*@srcdir@:*/:/;
4516 s/^\([^=]*=[ ]*\):*/\1/;
4517 s/:*$//;
4518 s/^[^=]*=[ ]*$//;
4522 DEFS=-DHAVE_CONFIG_H
4524 ac_libobjs=
4525 ac_ltlibobjs=
4526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4527 # 1. Remove the extension, and $U if already installed.
4528 ac_i=`echo "$ac_i" |
4529 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4530 # 2. Add them.
4531 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4532 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4533 done
4534 LIBOBJS=$ac_libobjs
4536 LTLIBOBJS=$ac_ltlibobjs
4540 : ${CONFIG_STATUS=./config.status}
4541 ac_clean_files_save=$ac_clean_files
4542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4545 cat >$CONFIG_STATUS <<_ACEOF
4546 #! $SHELL
4547 # Generated by $as_me.
4548 # Run this file to recreate the current configuration.
4549 # Compiler output produced by configure, useful for debugging
4550 # configure, is in config.log if it exists.
4552 debug=false
4553 ac_cs_recheck=false
4554 ac_cs_silent=false
4555 SHELL=\${CONFIG_SHELL-$SHELL}
4556 _ACEOF
4558 cat >>$CONFIG_STATUS <<\_ACEOF
4559 ## --------------------- ##
4560 ## M4sh Initialization. ##
4561 ## --------------------- ##
4563 # Be Bourne compatible
4564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4565 emulate sh
4566 NULLCMD=:
4567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4568 # is contrary to our usage. Disable this feature.
4569 alias -g '${1+"$@"}'='"$@"'
4570 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4571 set -o posix
4573 DUALCASE=1; export DUALCASE # for MKS sh
4575 # Support unset when possible.
4576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4577 as_unset=unset
4578 else
4579 as_unset=false
4583 # Work around bugs in pre-3.0 UWIN ksh.
4584 $as_unset ENV MAIL MAILPATH
4585 PS1='$ '
4586 PS2='> '
4587 PS4='+ '
4589 # NLS nuisances.
4590 for as_var in \
4591 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4592 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4593 LC_TELEPHONE LC_TIME
4595 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4596 eval $as_var=C; export $as_var
4597 else
4598 $as_unset $as_var
4600 done
4602 # Required to use basename.
4603 if expr a : '\(a\)' >/dev/null 2>&1; then
4604 as_expr=expr
4605 else
4606 as_expr=false
4609 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4610 as_basename=basename
4611 else
4612 as_basename=false
4616 # Name of the executable.
4617 as_me=`$as_basename "$0" ||
4618 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4619 X"$0" : 'X\(//\)$' \| \
4620 X"$0" : 'X\(/\)$' \| \
4621 . : '\(.\)' 2>/dev/null ||
4622 echo X/"$0" |
4623 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4624 /^X\/\(\/\/\)$/{ s//\1/; q; }
4625 /^X\/\(\/\).*/{ s//\1/; q; }
4626 s/.*/./; q'`
4629 # PATH needs CR, and LINENO needs CR and PATH.
4630 # Avoid depending upon Character Ranges.
4631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4634 as_cr_digits='0123456789'
4635 as_cr_alnum=$as_cr_Letters$as_cr_digits
4637 # The user is always right.
4638 if test "${PATH_SEPARATOR+set}" != set; then
4639 echo "#! /bin/sh" >conf$$.sh
4640 echo "exit 0" >>conf$$.sh
4641 chmod +x conf$$.sh
4642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4643 PATH_SEPARATOR=';'
4644 else
4645 PATH_SEPARATOR=:
4647 rm -f conf$$.sh
4651 as_lineno_1=$LINENO
4652 as_lineno_2=$LINENO
4653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4654 test "x$as_lineno_1" != "x$as_lineno_2" &&
4655 test "x$as_lineno_3" = "x$as_lineno_2" || {
4656 # Find who we are. Look in the path if we contain no path at all
4657 # relative or not.
4658 case $0 in
4659 *[\\/]* ) as_myself=$0 ;;
4660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4666 done
4669 esac
4670 # We did not find ourselves, most probably we were run as `sh COMMAND'
4671 # in which case we are not to be found in the path.
4672 if test "x$as_myself" = x; then
4673 as_myself=$0
4675 if test ! -f "$as_myself"; then
4676 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4677 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4678 { (exit 1); exit 1; }; }
4680 case $CONFIG_SHELL in
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for as_base in sh bash ksh sh5; do
4688 case $as_dir in
4690 if ("$as_dir/$as_base" -c '
4691 as_lineno_1=$LINENO
4692 as_lineno_2=$LINENO
4693 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4694 test "x$as_lineno_1" != "x$as_lineno_2" &&
4695 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4696 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4697 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4698 CONFIG_SHELL=$as_dir/$as_base
4699 export CONFIG_SHELL
4700 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4701 fi;;
4702 esac
4703 done
4704 done
4706 esac
4708 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4709 # uniformly replaced by the line number. The first 'sed' inserts a
4710 # line-number line before each line; the second 'sed' does the real
4711 # work. The second script uses 'N' to pair each line-number line
4712 # with the numbered line, and appends trailing '-' during
4713 # substitution so that $LINENO is not a special case at line end.
4714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4715 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4716 sed '=' <$as_myself |
4717 sed '
4719 s,$,-,
4720 : loop
4721 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4722 t loop
4723 s,-$,,
4724 s,^['$as_cr_digits']*\n,,
4725 ' >$as_me.lineno &&
4726 chmod +x $as_me.lineno ||
4727 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4728 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4729 { (exit 1); exit 1; }; }
4731 # Don't try to exec as it changes $[0], causing all sort of problems
4732 # (the dirname of $[0] is not the place where we might find the
4733 # original and so on. Autoconf is especially sensible to this).
4734 . ./$as_me.lineno
4735 # Exit status is that of the last command.
4736 exit
4740 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4741 *c*,-n*) ECHO_N= ECHO_C='
4742 ' ECHO_T=' ' ;;
4743 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4744 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4745 esac
4747 if expr a : '\(a\)' >/dev/null 2>&1; then
4748 as_expr=expr
4749 else
4750 as_expr=false
4753 rm -f conf$$ conf$$.exe conf$$.file
4754 echo >conf$$.file
4755 if ln -s conf$$.file conf$$ 2>/dev/null; then
4756 # We could just check for DJGPP; but this test a) works b) is more generic
4757 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4758 if test -f conf$$.exe; then
4759 # Don't use ln at all; we don't have any links
4760 as_ln_s='cp -p'
4761 else
4762 as_ln_s='ln -s'
4764 elif ln conf$$.file conf$$ 2>/dev/null; then
4765 as_ln_s=ln
4766 else
4767 as_ln_s='cp -p'
4769 rm -f conf$$ conf$$.exe conf$$.file
4771 if mkdir -p . 2>/dev/null; then
4772 as_mkdir_p=:
4773 else
4774 test -d ./-p && rmdir ./-p
4775 as_mkdir_p=false
4778 as_executable_p="test -f"
4780 # Sed expression to map a string onto a valid CPP name.
4781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4783 # Sed expression to map a string onto a valid variable name.
4784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4787 # IFS
4788 # We need space, tab and new line, in precisely that order.
4789 as_nl='
4791 IFS=" $as_nl"
4793 # CDPATH.
4794 $as_unset CDPATH
4796 exec 6>&1
4798 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4799 # report actual input values of CONFIG_FILES etc. instead of their
4800 # values after options handling. Logging --version etc. is OK.
4801 exec 5>>config.log
4803 echo
4804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4805 ## Running $as_me. ##
4806 _ASBOX
4807 } >&5
4808 cat >&5 <<_CSEOF
4810 This file was extended by libdecnumber $as_me , which was
4811 generated by GNU Autoconf 2.59. Invocation command line was
4813 CONFIG_FILES = $CONFIG_FILES
4814 CONFIG_HEADERS = $CONFIG_HEADERS
4815 CONFIG_LINKS = $CONFIG_LINKS
4816 CONFIG_COMMANDS = $CONFIG_COMMANDS
4817 $ $0 $@
4819 _CSEOF
4820 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4821 echo >&5
4822 _ACEOF
4824 # Files that config.status was made for.
4825 if test -n "$ac_config_files"; then
4826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4829 if test -n "$ac_config_headers"; then
4830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4833 if test -n "$ac_config_links"; then
4834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4837 if test -n "$ac_config_commands"; then
4838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4841 cat >>$CONFIG_STATUS <<\_ACEOF
4843 ac_cs_usage="\
4844 \`$as_me' instantiates files from templates according to the
4845 current configuration.
4847 Usage: $0 [OPTIONS] [FILE]...
4849 -h, --help print this help, then exit
4850 -V, --version print version number, then exit
4851 -q, --quiet do not print progress messages
4852 -d, --debug don't remove temporary files
4853 --recheck update $as_me by reconfiguring in the same conditions
4854 --file=FILE[:TEMPLATE]
4855 instantiate the configuration file FILE
4856 --header=FILE[:TEMPLATE]
4857 instantiate the configuration header FILE
4859 Configuration files:
4860 $config_files
4862 Configuration headers:
4863 $config_headers
4865 Report bugs to <bug-autoconf@gnu.org>."
4866 _ACEOF
4868 cat >>$CONFIG_STATUS <<_ACEOF
4869 ac_cs_version="\\
4870 libdecnumber config.status
4871 configured by $0, generated by GNU Autoconf 2.59,
4872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4874 Copyright (C) 2003 Free Software Foundation, Inc.
4875 This config.status script is free software; the Free Software Foundation
4876 gives unlimited permission to copy, distribute and modify it."
4877 srcdir=$srcdir
4878 _ACEOF
4880 cat >>$CONFIG_STATUS <<\_ACEOF
4881 # If no file are specified by the user, then we need to provide default
4882 # value. By we need to know if files were specified by the user.
4883 ac_need_defaults=:
4884 while test $# != 0
4886 case $1 in
4887 --*=*)
4888 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4889 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4890 ac_shift=:
4893 ac_option=$1
4894 ac_optarg=$2
4895 ac_shift=shift
4897 *) # This is not an option, so the user has probably given explicit
4898 # arguments.
4899 ac_option=$1
4900 ac_need_defaults=false;;
4901 esac
4903 case $ac_option in
4904 # Handling of the options.
4905 _ACEOF
4906 cat >>$CONFIG_STATUS <<\_ACEOF
4907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4908 ac_cs_recheck=: ;;
4909 --version | --vers* | -V )
4910 echo "$ac_cs_version"; exit 0 ;;
4911 --he | --h)
4912 # Conflict between --help and --header
4913 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4914 Try \`$0 --help' for more information." >&5
4915 echo "$as_me: error: ambiguous option: $1
4916 Try \`$0 --help' for more information." >&2;}
4917 { (exit 1); exit 1; }; };;
4918 --help | --hel | -h )
4919 echo "$ac_cs_usage"; exit 0 ;;
4920 --debug | --d* | -d )
4921 debug=: ;;
4922 --file | --fil | --fi | --f )
4923 $ac_shift
4924 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4925 ac_need_defaults=false;;
4926 --header | --heade | --head | --hea )
4927 $ac_shift
4928 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4929 ac_need_defaults=false;;
4930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4931 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4932 ac_cs_silent=: ;;
4934 # This is an error.
4935 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4936 Try \`$0 --help' for more information." >&5
4937 echo "$as_me: error: unrecognized option: $1
4938 Try \`$0 --help' for more information." >&2;}
4939 { (exit 1); exit 1; }; } ;;
4941 *) ac_config_targets="$ac_config_targets $1" ;;
4943 esac
4944 shift
4945 done
4947 ac_configure_extra_args=
4949 if $ac_cs_silent; then
4950 exec 6>/dev/null
4951 ac_configure_extra_args="$ac_configure_extra_args --silent"
4954 _ACEOF
4955 cat >>$CONFIG_STATUS <<_ACEOF
4956 if \$ac_cs_recheck; then
4957 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4958 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4961 _ACEOF
4967 cat >>$CONFIG_STATUS <<\_ACEOF
4968 for ac_config_target in $ac_config_targets
4970 case "$ac_config_target" in
4971 # Handling of arguments.
4972 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4973 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4974 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4975 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4976 { (exit 1); exit 1; }; };;
4977 esac
4978 done
4980 # If the user did not use the arguments to specify the items to instantiate,
4981 # then the envvar interface is used. Set only those that are not.
4982 # We use the long form for the default assignment because of an extremely
4983 # bizarre bug on SunOS 4.1.3.
4984 if $ac_need_defaults; then
4985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4989 # Have a temporary directory for convenience. Make it in the build tree
4990 # simply because there is no reason to put it here, and in addition,
4991 # creating and moving files from /tmp can sometimes cause problems.
4992 # Create a temporary directory, and hook for its removal unless debugging.
4993 $debug ||
4995 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4996 trap '{ (exit 1); exit 1; }' 1 2 13 15
4999 # Create a (secure) tmp directory for tmp files.
5002 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5003 test -n "$tmp" && test -d "$tmp"
5004 } ||
5006 tmp=./confstat$$-$RANDOM
5007 (umask 077 && mkdir $tmp)
5008 } ||
5010 echo "$me: cannot create a temporary directory in ." >&2
5011 { (exit 1); exit 1; }
5014 _ACEOF
5016 cat >>$CONFIG_STATUS <<_ACEOF
5019 # CONFIG_FILES section.
5022 # No need to generate the scripts if there are no CONFIG_FILES.
5023 # This happens for instance when ./config.status config.h
5024 if test -n "\$CONFIG_FILES"; then
5025 # Protect against being on the right side of a sed subst in config.status.
5026 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5027 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5028 s,@SHELL@,$SHELL,;t t
5029 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5030 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5031 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5032 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5033 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5034 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5035 s,@exec_prefix@,$exec_prefix,;t t
5036 s,@prefix@,$prefix,;t t
5037 s,@program_transform_name@,$program_transform_name,;t t
5038 s,@bindir@,$bindir,;t t
5039 s,@sbindir@,$sbindir,;t t
5040 s,@libexecdir@,$libexecdir,;t t
5041 s,@datadir@,$datadir,;t t
5042 s,@sysconfdir@,$sysconfdir,;t t
5043 s,@sharedstatedir@,$sharedstatedir,;t t
5044 s,@localstatedir@,$localstatedir,;t t
5045 s,@libdir@,$libdir,;t t
5046 s,@includedir@,$includedir,;t t
5047 s,@oldincludedir@,$oldincludedir,;t t
5048 s,@infodir@,$infodir,;t t
5049 s,@mandir@,$mandir,;t t
5050 s,@build_alias@,$build_alias,;t t
5051 s,@host_alias@,$host_alias,;t t
5052 s,@target_alias@,$target_alias,;t t
5053 s,@DEFS@,$DEFS,;t t
5054 s,@ECHO_C@,$ECHO_C,;t t
5055 s,@ECHO_N@,$ECHO_N,;t t
5056 s,@ECHO_T@,$ECHO_T,;t t
5057 s,@LIBS@,$LIBS,;t t
5058 s,@SET_MAKE@,$SET_MAKE,;t t
5059 s,@CC@,$CC,;t t
5060 s,@CFLAGS@,$CFLAGS,;t t
5061 s,@LDFLAGS@,$LDFLAGS,;t t
5062 s,@CPPFLAGS@,$CPPFLAGS,;t t
5063 s,@ac_ct_CC@,$ac_ct_CC,;t t
5064 s,@EXEEXT@,$EXEEXT,;t t
5065 s,@OBJEXT@,$OBJEXT,;t t
5066 s,@RANLIB@,$RANLIB,;t t
5067 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5068 s,@ACLOCAL@,$ACLOCAL,;t t
5069 s,@AUTOCONF@,$AUTOCONF,;t t
5070 s,@AUTOHEADER@,$AUTOHEADER,;t t
5071 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5072 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
5073 s,@WERROR@,$WERROR,;t t
5074 s,@CPP@,$CPP,;t t
5075 s,@EGREP@,$EGREP,;t t
5076 s,@MAINT@,$MAINT,;t t
5077 s,@LIBOBJS@,$LIBOBJS,;t t
5078 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5079 CEOF
5081 _ACEOF
5083 cat >>$CONFIG_STATUS <<\_ACEOF
5084 # Split the substitutions into bite-sized pieces for seds with
5085 # small command number limits, like on Digital OSF/1 and HP-UX.
5086 ac_max_sed_lines=48
5087 ac_sed_frag=1 # Number of current file.
5088 ac_beg=1 # First line for current file.
5089 ac_end=$ac_max_sed_lines # Line after last line for current file.
5090 ac_more_lines=:
5091 ac_sed_cmds=
5092 while $ac_more_lines; do
5093 if test $ac_beg -gt 1; then
5094 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5095 else
5096 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5098 if test ! -s $tmp/subs.frag; then
5099 ac_more_lines=false
5100 else
5101 # The purpose of the label and of the branching condition is to
5102 # speed up the sed processing (if there are no `@' at all, there
5103 # is no need to browse any of the substitutions).
5104 # These are the two extra sed commands mentioned above.
5105 (echo ':t
5106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5107 if test -z "$ac_sed_cmds"; then
5108 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5109 else
5110 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5112 ac_sed_frag=`expr $ac_sed_frag + 1`
5113 ac_beg=$ac_end
5114 ac_end=`expr $ac_end + $ac_max_sed_lines`
5116 done
5117 if test -z "$ac_sed_cmds"; then
5118 ac_sed_cmds=cat
5120 fi # test -n "$CONFIG_FILES"
5122 _ACEOF
5123 cat >>$CONFIG_STATUS <<\_ACEOF
5124 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5126 case $ac_file in
5127 - | *:- | *:-:* ) # input from stdin
5128 cat >$tmp/stdin
5129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5133 * ) ac_file_in=$ac_file.in ;;
5134 esac
5136 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5139 X"$ac_file" : 'X\(//\)[^/]' \| \
5140 X"$ac_file" : 'X\(//\)$' \| \
5141 X"$ac_file" : 'X\(/\)' \| \
5142 . : '\(.\)' 2>/dev/null ||
5143 echo X"$ac_file" |
5144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5146 /^X\(\/\/\)$/{ s//\1/; q; }
5147 /^X\(\/\).*/{ s//\1/; q; }
5148 s/.*/./; q'`
5149 { if $as_mkdir_p; then
5150 mkdir -p "$ac_dir"
5151 else
5152 as_dir="$ac_dir"
5153 as_dirs=
5154 while test ! -d "$as_dir"; do
5155 as_dirs="$as_dir $as_dirs"
5156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5158 X"$as_dir" : 'X\(//\)[^/]' \| \
5159 X"$as_dir" : 'X\(//\)$' \| \
5160 X"$as_dir" : 'X\(/\)' \| \
5161 . : '\(.\)' 2>/dev/null ||
5162 echo X"$as_dir" |
5163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5165 /^X\(\/\/\)$/{ s//\1/; q; }
5166 /^X\(\/\).*/{ s//\1/; q; }
5167 s/.*/./; q'`
5168 done
5169 test ! -n "$as_dirs" || mkdir $as_dirs
5170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5172 { (exit 1); exit 1; }; }; }
5174 ac_builddir=.
5176 if test "$ac_dir" != .; then
5177 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5178 # A "../" for each directory in $ac_dir_suffix.
5179 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5180 else
5181 ac_dir_suffix= ac_top_builddir=
5184 case $srcdir in
5185 .) # No --srcdir option. We are building in place.
5186 ac_srcdir=.
5187 if test -z "$ac_top_builddir"; then
5188 ac_top_srcdir=.
5189 else
5190 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5191 fi ;;
5192 [\\/]* | ?:[\\/]* ) # Absolute path.
5193 ac_srcdir=$srcdir$ac_dir_suffix;
5194 ac_top_srcdir=$srcdir ;;
5195 *) # Relative path.
5196 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5197 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5198 esac
5200 # Do not use `cd foo && pwd` to compute absolute paths, because
5201 # the directories may not exist.
5202 case `pwd` in
5203 .) ac_abs_builddir="$ac_dir";;
5205 case "$ac_dir" in
5206 .) ac_abs_builddir=`pwd`;;
5207 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5208 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5209 esac;;
5210 esac
5211 case $ac_abs_builddir in
5212 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5214 case ${ac_top_builddir}. in
5215 .) ac_abs_top_builddir=$ac_abs_builddir;;
5216 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5217 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5218 esac;;
5219 esac
5220 case $ac_abs_builddir in
5221 .) ac_abs_srcdir=$ac_srcdir;;
5223 case $ac_srcdir in
5224 .) ac_abs_srcdir=$ac_abs_builddir;;
5225 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5226 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5227 esac;;
5228 esac
5229 case $ac_abs_builddir in
5230 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5232 case $ac_top_srcdir in
5233 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5234 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5235 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5236 esac;;
5237 esac
5241 # Let's still pretend it is `configure' which instantiates (i.e., don't
5242 # use $as_me), people would be surprised to read:
5243 # /* config.h. Generated by config.status. */
5244 if test x"$ac_file" = x-; then
5245 configure_input=
5246 else
5247 configure_input="$ac_file. "
5249 configure_input=$configure_input"Generated from `echo $ac_file_in |
5250 sed 's,.*/,,'` by configure."
5252 # First look for the input files in the build tree, otherwise in the
5253 # src tree.
5254 ac_file_inputs=`IFS=:
5255 for f in $ac_file_in; do
5256 case $f in
5257 -) echo $tmp/stdin ;;
5258 [\\/$]*)
5259 # Absolute (can't be DOS-style, as IFS=:)
5260 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5261 echo "$as_me: error: cannot find input file: $f" >&2;}
5262 { (exit 1); exit 1; }; }
5263 echo "$f";;
5264 *) # Relative
5265 if test -f "$f"; then
5266 # Build tree
5267 echo "$f"
5268 elif test -f "$srcdir/$f"; then
5269 # Source tree
5270 echo "$srcdir/$f"
5271 else
5272 # /dev/null tree
5273 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5274 echo "$as_me: error: cannot find input file: $f" >&2;}
5275 { (exit 1); exit 1; }; }
5276 fi;;
5277 esac
5278 done` || { (exit 1); exit 1; }
5280 if test x"$ac_file" != x-; then
5281 { echo "$as_me:$LINENO: creating $ac_file" >&5
5282 echo "$as_me: creating $ac_file" >&6;}
5283 rm -f "$ac_file"
5285 _ACEOF
5286 cat >>$CONFIG_STATUS <<_ACEOF
5287 sed "$ac_vpsub
5288 $extrasub
5289 _ACEOF
5290 cat >>$CONFIG_STATUS <<\_ACEOF
5292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5293 s,@configure_input@,$configure_input,;t t
5294 s,@srcdir@,$ac_srcdir,;t t
5295 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5296 s,@top_srcdir@,$ac_top_srcdir,;t t
5297 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5298 s,@builddir@,$ac_builddir,;t t
5299 s,@abs_builddir@,$ac_abs_builddir,;t t
5300 s,@top_builddir@,$ac_top_builddir,;t t
5301 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5302 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5303 rm -f $tmp/stdin
5304 if test x"$ac_file" != x-; then
5305 mv $tmp/out $ac_file
5306 else
5307 cat $tmp/out
5308 rm -f $tmp/out
5311 done
5312 _ACEOF
5313 cat >>$CONFIG_STATUS <<\_ACEOF
5316 # CONFIG_HEADER section.
5319 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5320 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5322 # ac_d sets the value in "#define NAME VALUE" lines.
5323 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5324 ac_dB='[ ].*$,\1#\2'
5325 ac_dC=' '
5326 ac_dD=',;t'
5327 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5328 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5329 ac_uB='$,\1#\2define\3'
5330 ac_uC=' '
5331 ac_uD=',;t'
5333 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5334 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5335 case $ac_file in
5336 - | *:- | *:-:* ) # input from stdin
5337 cat >$tmp/stdin
5338 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5340 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5342 * ) ac_file_in=$ac_file.in ;;
5343 esac
5345 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5346 echo "$as_me: creating $ac_file" >&6;}
5348 # First look for the input files in the build tree, otherwise in the
5349 # src tree.
5350 ac_file_inputs=`IFS=:
5351 for f in $ac_file_in; do
5352 case $f in
5353 -) echo $tmp/stdin ;;
5354 [\\/$]*)
5355 # Absolute (can't be DOS-style, as IFS=:)
5356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5357 echo "$as_me: error: cannot find input file: $f" >&2;}
5358 { (exit 1); exit 1; }; }
5359 # Do quote $f, to prevent DOS paths from being IFS'd.
5360 echo "$f";;
5361 *) # Relative
5362 if test -f "$f"; then
5363 # Build tree
5364 echo "$f"
5365 elif test -f "$srcdir/$f"; then
5366 # Source tree
5367 echo "$srcdir/$f"
5368 else
5369 # /dev/null tree
5370 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5371 echo "$as_me: error: cannot find input file: $f" >&2;}
5372 { (exit 1); exit 1; }; }
5373 fi;;
5374 esac
5375 done` || { (exit 1); exit 1; }
5376 # Remove the trailing spaces.
5377 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5379 _ACEOF
5381 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5382 # `conftest.undefs', that substitutes the proper values into
5383 # config.h.in to produce config.h. The first handles `#define'
5384 # templates, and the second `#undef' templates.
5385 # And first: Protect against being on the right side of a sed subst in
5386 # config.status. Protect against being in an unquoted here document
5387 # in config.status.
5388 rm -f conftest.defines conftest.undefs
5389 # Using a here document instead of a string reduces the quoting nightmare.
5390 # Putting comments in sed scripts is not portable.
5392 # `end' is used to avoid that the second main sed command (meant for
5393 # 0-ary CPP macros) applies to n-ary macro definitions.
5394 # See the Autoconf documentation for `clear'.
5395 cat >confdef2sed.sed <<\_ACEOF
5396 s/[\\&,]/\\&/g
5397 s,[\\$`],\\&,g
5398 t clear
5399 : clear
5400 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5401 t end
5402 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5403 : end
5404 _ACEOF
5405 # If some macros were called several times there might be several times
5406 # the same #defines, which is useless. Nevertheless, we may not want to
5407 # sort them, since we want the *last* AC-DEFINE to be honored.
5408 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5409 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5410 rm -f confdef2sed.sed
5412 # This sed command replaces #undef with comments. This is necessary, for
5413 # example, in the case of _POSIX_SOURCE, which is predefined and required
5414 # on some systems where configure will not decide to define it.
5415 cat >>conftest.undefs <<\_ACEOF
5416 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5417 _ACEOF
5419 # Break up conftest.defines because some shells have a limit on the size
5420 # of here documents, and old seds have small limits too (100 cmds).
5421 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5422 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5423 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5424 echo ' :' >>$CONFIG_STATUS
5425 rm -f conftest.tail
5426 while grep . conftest.defines >/dev/null
5428 # Write a limited-size here document to $tmp/defines.sed.
5429 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5430 # Speed up: don't consider the non `#define' lines.
5431 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5432 # Work around the forget-to-reset-the-flag bug.
5433 echo 't clr' >>$CONFIG_STATUS
5434 echo ': clr' >>$CONFIG_STATUS
5435 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5436 echo 'CEOF
5437 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5438 rm -f $tmp/in
5439 mv $tmp/out $tmp/in
5440 ' >>$CONFIG_STATUS
5441 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5442 rm -f conftest.defines
5443 mv conftest.tail conftest.defines
5444 done
5445 rm -f conftest.defines
5446 echo ' fi # grep' >>$CONFIG_STATUS
5447 echo >>$CONFIG_STATUS
5449 # Break up conftest.undefs because some shells have a limit on the size
5450 # of here documents, and old seds have small limits too (100 cmds).
5451 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5452 rm -f conftest.tail
5453 while grep . conftest.undefs >/dev/null
5455 # Write a limited-size here document to $tmp/undefs.sed.
5456 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5457 # Speed up: don't consider the non `#undef'
5458 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5459 # Work around the forget-to-reset-the-flag bug.
5460 echo 't clr' >>$CONFIG_STATUS
5461 echo ': clr' >>$CONFIG_STATUS
5462 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5463 echo 'CEOF
5464 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5465 rm -f $tmp/in
5466 mv $tmp/out $tmp/in
5467 ' >>$CONFIG_STATUS
5468 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5469 rm -f conftest.undefs
5470 mv conftest.tail conftest.undefs
5471 done
5472 rm -f conftest.undefs
5474 cat >>$CONFIG_STATUS <<\_ACEOF
5475 # Let's still pretend it is `configure' which instantiates (i.e., don't
5476 # use $as_me), people would be surprised to read:
5477 # /* config.h. Generated by config.status. */
5478 if test x"$ac_file" = x-; then
5479 echo "/* Generated by configure. */" >$tmp/config.h
5480 else
5481 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5483 cat $tmp/in >>$tmp/config.h
5484 rm -f $tmp/in
5485 if test x"$ac_file" != x-; then
5486 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5487 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5488 echo "$as_me: $ac_file is unchanged" >&6;}
5489 else
5490 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5492 X"$ac_file" : 'X\(//\)[^/]' \| \
5493 X"$ac_file" : 'X\(//\)$' \| \
5494 X"$ac_file" : 'X\(/\)' \| \
5495 . : '\(.\)' 2>/dev/null ||
5496 echo X"$ac_file" |
5497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5499 /^X\(\/\/\)$/{ s//\1/; q; }
5500 /^X\(\/\).*/{ s//\1/; q; }
5501 s/.*/./; q'`
5502 { if $as_mkdir_p; then
5503 mkdir -p "$ac_dir"
5504 else
5505 as_dir="$ac_dir"
5506 as_dirs=
5507 while test ! -d "$as_dir"; do
5508 as_dirs="$as_dir $as_dirs"
5509 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5511 X"$as_dir" : 'X\(//\)[^/]' \| \
5512 X"$as_dir" : 'X\(//\)$' \| \
5513 X"$as_dir" : 'X\(/\)' \| \
5514 . : '\(.\)' 2>/dev/null ||
5515 echo X"$as_dir" |
5516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5518 /^X\(\/\/\)$/{ s//\1/; q; }
5519 /^X\(\/\).*/{ s//\1/; q; }
5520 s/.*/./; q'`
5521 done
5522 test ! -n "$as_dirs" || mkdir $as_dirs
5523 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5524 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5525 { (exit 1); exit 1; }; }; }
5527 rm -f $ac_file
5528 mv $tmp/config.h $ac_file
5530 else
5531 cat $tmp/config.h
5532 rm -f $tmp/config.h
5534 # Run the commands associated with the file.
5535 case $ac_file in
5536 config.h ) echo timestamp > stamp-h1 ;;
5537 esac
5538 done
5539 _ACEOF
5541 cat >>$CONFIG_STATUS <<\_ACEOF
5543 { (exit 0); exit 0; }
5544 _ACEOF
5545 chmod +x $CONFIG_STATUS
5546 ac_clean_files=$ac_clean_files_save
5549 # configure is writing to config.log, and then calls config.status.
5550 # config.status does its own redirection, appending to config.log.
5551 # Unfortunately, on DOS this fails, as config.log is still kept open
5552 # by configure, so config.status won't be able to write to it; its
5553 # output is simply discarded. So we exec the FD to /dev/null,
5554 # effectively closing config.log, so it can be properly (re)opened and
5555 # appended to by config.status. When coming back to configure, we
5556 # need to make the FD available again.
5557 if test "$no_create" != yes; then
5558 ac_cs_success=:
5559 ac_config_status_args=
5560 test "$silent" = yes &&
5561 ac_config_status_args="$ac_config_status_args --quiet"
5562 exec 5>/dev/null
5563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5564 exec 5>>config.log
5565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5566 # would make configure fail if this is the last instruction.
5567 $ac_cs_success || { (exit 1); exit 1; }