* Mainline merge as of 2006-02-16 (@111136).
[official-gcc.git] / libgcc-math / configure
blob37adf05759c4613fe5ad9590044a204f4670b8a4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libgcc-math 1.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libgcc-math'
269 PACKAGE_TARNAME='libgcc-math'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='libgcc-math 1.0'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="configure.ac"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS CCAS CCASFLAGS LIBGCCM_USE_SYMVER_TRUE LIBGCCM_USE_SYMVER_FALSE TARGET_ILP32_TRUE TARGET_ILP32_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL enable_shared enable_static toolexecdir toolexeclibdir EGREP arch_subdirs arch_libraries arch_maps BUILD_LIBGCC_MATH_TRUE BUILD_LIBGCC_MATH_FALSE LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CCAS_set=${CCAS+set}
762 ac_env_CCAS_value=$CCAS
763 ac_cv_env_CCAS_set=${CCAS+set}
764 ac_cv_env_CCAS_value=$CCAS
765 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
766 ac_env_CCASFLAGS_value=$CCASFLAGS
767 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
768 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
771 # Report the --help message.
773 if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
776 cat <<_ACEOF
777 \`configure' configures libgcc-math 1.0 to adapt to many kinds of systems.
779 Usage: $0 [OPTION]... [VAR=VALUE]...
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
784 Defaults for the options are specified in brackets.
786 Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 _ACEOF
799 cat <<_ACEOF
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
811 For better control, use the options below.
813 Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
826 _ACEOF
828 cat <<\_ACEOF
830 Program names:
831 --program-prefix=PREFIX prepend PREFIX to installed program names
832 --program-suffix=SUFFIX append SUFFIX to installed program names
833 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839 _ACEOF
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of libgcc-math 1.0:";;
845 esac
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
852 --enable-maintainer-mode enable make rules and dependencies not useful
853 (and sometimes confusing) to the casual installer
854 --enable-multilib build many library versions (default)
855 --disable-dependency-tracking speeds up one-time build
856 --enable-dependency-tracking do not reject slow dependency extractors
857 --enable-shared=PKGS build shared libraries default=yes
858 --enable-static=PKGS build static libraries default=yes
859 --enable-fast-install=PKGS optimize for fast installation default=yes
860 --disable-libtool-lock avoid locking (might break parallel builds)
862 Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-gnu-ld assume the C compiler uses GNU ld default=no
866 --with-pic try to use only PIC/non-PIC objects default=use both
868 Some influential environment variables:
869 CC C compiler command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
872 nonstandard directory <lib dir>
873 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
874 headers in a nonstandard directory <include dir>
875 CPP C preprocessor
876 CCAS assembler compiler command (defaults to CC)
877 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
882 _ACEOF
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
887 ac_popdir=`pwd`
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
890 ac_builddir=.
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897 ac_dir_suffix= ac_top_builddir=
900 case $srcdir in
901 .) # No --srcdir option. We are building in place.
902 ac_srcdir=.
903 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=.
905 else
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 fi ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
911 *) # Relative path.
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
921 case "$ac_dir" in
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
939 case $ac_srcdir in
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 esac;;
953 esac
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 cd $ac_popdir
971 done
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976 cat <<\_ACEOF
977 libgcc-math configure 1.0
978 generated by GNU Autoconf 2.59
980 Copyright (C) 2003 Free Software Foundation, Inc.
981 This configure script is free software; the Free Software Foundation
982 gives unlimited permission to copy, distribute and modify it.
983 _ACEOF
984 exit 0
986 exec 5>config.log
987 cat >&5 <<_ACEOF
988 This file contains any messages produced by compilers while
989 running configure, to aid debugging if configure makes a mistake.
991 It was created by libgcc-math $as_me 1.0, which was
992 generated by GNU Autoconf 2.59. Invocation command line was
994 $ $0 $@
996 _ACEOF
998 cat <<_ASUNAME
999 ## --------- ##
1000 ## Platform. ##
1001 ## --------- ##
1003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 _ASUNAME
1022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 for as_dir in $PATH
1025 IFS=$as_save_IFS
1026 test -z "$as_dir" && as_dir=.
1027 echo "PATH: $as_dir"
1028 done
1030 } >&5
1032 cat >&5 <<_ACEOF
1035 ## ----------- ##
1036 ## Core tests. ##
1037 ## ----------- ##
1039 _ACEOF
1042 # Keep a trace of the command line.
1043 # Strip out --no-create and --no-recursion so they do not pile up.
1044 # Strip out --silent because we don't want to record it for future runs.
1045 # Also quote any args containing shell meta-characters.
1046 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_configure_args=
1048 ac_configure_args0=
1049 ac_configure_args1=
1050 ac_sep=
1051 ac_must_keep_next=false
1052 for ac_pass in 1 2
1054 for ac_arg
1056 case $ac_arg in
1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 continue ;;
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 esac
1064 case $ac_pass in
1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068 if test $ac_must_keep_next = true; then
1069 ac_must_keep_next=false # Got value, back to normal.
1070 else
1071 case $ac_arg in
1072 *=* | --config-cache | -C | -disable-* | --disable-* \
1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075 | -with-* | --with-* | -without-* | --without-* | --x)
1076 case "$ac_configure_args0 " in
1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 esac
1080 -* ) ac_must_keep_next=true ;;
1081 esac
1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084 # Get rid of the leading space.
1085 ac_sep=" "
1087 esac
1088 done
1089 done
1090 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093 # When interrupted or exit'd, cleanup temporary files, and complete
1094 # config.log. We remove comments because anyway the quotes in there
1095 # would cause problems or look ugly.
1096 # WARNING: Be sure not to use single quotes in there, as some shells,
1097 # such as our DU 5.0 friend, will then `close' the trap.
1098 trap 'exit_status=$?
1099 # Save into config.log some information that might help in debugging.
1101 echo
1103 cat <<\_ASBOX
1104 ## ---------------- ##
1105 ## Cache variables. ##
1106 ## ---------------- ##
1107 _ASBOX
1108 echo
1109 # The following way of writing the cache mishandles newlines in values,
1111 (set) 2>&1 |
1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 *ac_space=\ *)
1114 sed -n \
1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 sed -n \
1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 esac;
1124 echo
1126 cat <<\_ASBOX
1127 ## ----------------- ##
1128 ## Output variables. ##
1129 ## ----------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_vars
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1139 if test -n "$ac_subst_files"; then
1140 cat <<\_ASBOX
1141 ## ------------- ##
1142 ## Output files. ##
1143 ## ------------- ##
1144 _ASBOX
1145 echo
1146 for ac_var in $ac_subst_files
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1150 done | sort
1151 echo
1154 if test -s confdefs.h; then
1155 cat <<\_ASBOX
1156 ## ----------- ##
1157 ## confdefs.h. ##
1158 ## ----------- ##
1159 _ASBOX
1160 echo
1161 sed "/^$/d" confdefs.h | sort
1162 echo
1164 test "$ac_signal" != 0 &&
1165 echo "$as_me: caught signal $ac_signal"
1166 echo "$as_me: exit $exit_status"
1167 } >&5
1168 rm -f core *.core &&
1169 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170 exit $exit_status
1172 for ac_signal in 1 2 13 15; do
1173 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 done
1175 ac_signal=0
1177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1178 rm -rf conftest* confdefs.h
1179 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 echo >confdefs.h
1182 # Predefined preprocessor variables.
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 _ACEOF
1209 # Let the site file select an alternate cache file if it wants to.
1210 # Prefer explicitly selected file to automatically selected ones.
1211 if test -z "$CONFIG_SITE"; then
1212 if test "x$prefix" != xNONE; then
1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214 else
1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 for ac_site_file in $CONFIG_SITE; do
1219 if test -r "$ac_site_file"; then
1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221 echo "$as_me: loading site script $ac_site_file" >&6;}
1222 sed 's/^/| /' "$ac_site_file" >&5
1223 . "$ac_site_file"
1225 done
1227 if test -r "$cache_file"; then
1228 # Some versions of bash will fail to source /dev/null (special
1229 # files actually), so we avoid doing that.
1230 if test -f "$cache_file"; then
1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232 echo "$as_me: loading cache $cache_file" >&6;}
1233 case $cache_file in
1234 [\\/]* | ?:[\\/]* ) . $cache_file;;
1235 *) . ./$cache_file;;
1236 esac
1238 else
1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240 echo "$as_me: creating cache $cache_file" >&6;}
1241 >$cache_file
1244 # Check that the precious variables saved in the cache have kept the same
1245 # value.
1246 ac_cache_corrupted=false
1247 for ac_var in `(set) 2>&1 |
1248 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250 eval ac_new_set=\$ac_env_${ac_var}_set
1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252 eval ac_new_val="\$ac_env_${ac_var}_value"
1253 case $ac_old_set,$ac_new_set in
1254 set,)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,set)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,);;
1264 if test "x$ac_old_val" != "x$ac_new_val"; then
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1268 echo "$as_me: former value: $ac_old_val" >&2;}
1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1270 echo "$as_me: current value: $ac_new_val" >&2;}
1271 ac_cache_corrupted=:
1272 fi;;
1273 esac
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1276 case $ac_new_val in
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1280 esac
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 esac
1286 done
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292 { (exit 1); exit 1; }; }
1295 ac_ext=c
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_aux_dir=
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1343 done
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 # Make sure we can run config.sub.
1354 $ac_config_sub sun4 >/dev/null 2>&1 ||
1355 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1356 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1357 { (exit 1); exit 1; }; }
1359 echo "$as_me:$LINENO: checking build system type" >&5
1360 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1361 if test "${ac_cv_build+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 ac_cv_build_alias=$build_alias
1365 test -z "$ac_cv_build_alias" &&
1366 ac_cv_build_alias=`$ac_config_guess`
1367 test -z "$ac_cv_build_alias" &&
1368 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1369 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1370 { (exit 1); exit 1; }; }
1371 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1373 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1377 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1378 echo "${ECHO_T}$ac_cv_build" >&6
1379 build=$ac_cv_build
1380 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 echo "$as_me:$LINENO: checking host system type" >&5
1386 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1387 if test "${ac_cv_host+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390 ac_cv_host_alias=$host_alias
1391 test -z "$ac_cv_host_alias" &&
1392 ac_cv_host_alias=$ac_cv_build_alias
1393 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1400 echo "${ECHO_T}$ac_cv_host" >&6
1401 host=$ac_cv_host
1402 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$as_me:$LINENO: checking target system type" >&5
1408 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1409 if test "${ac_cv_target+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 ac_cv_target_alias=$target_alias
1413 test "x$ac_cv_target_alias" = "x" &&
1414 ac_cv_target_alias=$ac_cv_host_alias
1415 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1422 echo "${ECHO_T}$ac_cv_target" >&6
1423 target=$ac_cv_target
1424 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 # The aliases save the names the user supplied, while $host etc.
1430 # will get canonicalized.
1431 test -n "$target_alias" &&
1432 test "$program_prefix$program_suffix$program_transform_name" = \
1433 NONENONEs,x,x, &&
1434 program_prefix=${target_alias}-
1436 am__api_version="1.9"
1437 # Find a good install program. We prefer a C program (faster),
1438 # so one script is as good as another. But avoid the broken or
1439 # incompatible versions:
1440 # SysV /etc/install, /usr/sbin/install
1441 # SunOS /usr/etc/install
1442 # IRIX /sbin/install
1443 # AIX /bin/install
1444 # AmigaOS /C/install, which installs bootblocks on floppy discs
1445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1448 # OS/2's system install, which has a completely different semantic
1449 # ./install, which can be erroneously created by make from ./install.sh.
1450 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1451 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1452 if test -z "$INSTALL"; then
1453 if test "${ac_cv_path_install+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 for as_dir in $PATH
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 # Account for people who put trailing slashes in PATH elements.
1462 case $as_dir/ in
1463 ./ | .// | /cC/* | \
1464 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1465 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1466 /usr/ucb/* ) ;;
1468 # OSF1 and SCO ODT 3.0 have their own names for install.
1469 # Don't use installbsd from OSF since it installs stuff as root
1470 # by default.
1471 for ac_prog in ginstall scoinst install; do
1472 for ac_exec_ext in '' $ac_executable_extensions; do
1473 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1474 if test $ac_prog = install &&
1475 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1476 # AIX install. It has an incompatible calling convention.
1478 elif test $ac_prog = install &&
1479 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1480 # program-specific install script used by HP pwplus--don't use.
1482 else
1483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1484 break 3
1487 done
1488 done
1490 esac
1491 done
1495 if test "${ac_cv_path_install+set}" = set; then
1496 INSTALL=$ac_cv_path_install
1497 else
1498 # As a last resort, use the slow shell script. We don't cache a
1499 # path for INSTALL within a source directory, because that will
1500 # break other packages using the cache if that directory is
1501 # removed, or if the path is relative.
1502 INSTALL=$ac_install_sh
1505 echo "$as_me:$LINENO: result: $INSTALL" >&5
1506 echo "${ECHO_T}$INSTALL" >&6
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1516 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1517 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1518 # Just in case
1519 sleep 1
1520 echo timestamp > conftest.file
1521 # Do `set' in a subshell so we don't clobber the current shell's
1522 # arguments. Must try -L first in case configure is actually a
1523 # symlink; some systems play weird games with the mod time of symlinks
1524 # (eg FreeBSD returns the mod time of the symlink's containing
1525 # directory).
1526 if (
1527 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1528 if test "$*" = "X"; then
1529 # -L didn't work.
1530 set X `ls -t $srcdir/configure conftest.file`
1532 rm -f conftest.file
1533 if test "$*" != "X $srcdir/configure conftest.file" \
1534 && test "$*" != "X conftest.file $srcdir/configure"; then
1536 # If neither matched, then we have a broken ls. This can happen
1537 # if, for instance, CONFIG_SHELL is bash and it inherits a
1538 # broken ls alias from the environment. This has actually
1539 # happened. Such a system could not be considered "sane".
1540 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1541 alias in your environment" >&5
1542 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1543 alias in your environment" >&2;}
1544 { (exit 1); exit 1; }; }
1547 test "$2" = conftest.file
1549 then
1550 # Ok.
1552 else
1553 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1554 Check your system clock" >&5
1555 echo "$as_me: error: newly created file is older than distributed files!
1556 Check your system clock" >&2;}
1557 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: yes" >&5
1560 echo "${ECHO_T}yes" >&6
1561 test "$program_prefix" != NONE &&
1562 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1563 # Use a double $ so make ignores it.
1564 test "$program_suffix" != NONE &&
1565 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1566 # Double any \ or $. echo might interpret backslashes.
1567 # By default was `s,x,x', remove it if useless.
1568 cat <<\_ACEOF >conftest.sed
1569 s/[\\$]/&&/g;s/;s,x,x,$//
1570 _ACEOF
1571 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1572 rm conftest.sed
1574 # expand $ac_aux_dir to an absolute path
1575 am_aux_dir=`cd $ac_aux_dir && pwd`
1577 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1578 # Use eval to expand $SHELL
1579 if eval "$MISSING --run true"; then
1580 am_missing_run="$MISSING --run "
1581 else
1582 am_missing_run=
1583 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1584 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1587 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1588 # We used to keeping the `.' as first argument, in order to
1589 # allow $(mkdir_p) to be used without argument. As in
1590 # $(mkdir_p) $(somedir)
1591 # where $(somedir) is conditionally defined. However this is wrong
1592 # for two reasons:
1593 # 1. if the package is installed by a user who cannot write `.'
1594 # make install will fail,
1595 # 2. the above comment should most certainly read
1596 # $(mkdir_p) $(DESTDIR)$(somedir)
1597 # so it does not work when $(somedir) is undefined and
1598 # $(DESTDIR) is not.
1599 # To support the latter case, we have to write
1600 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1601 # so the `.' trick is pointless.
1602 mkdir_p='mkdir -p --'
1603 else
1604 # On NextStep and OpenStep, the `mkdir' command does not
1605 # recognize any option. It will interpret all options as
1606 # directories to create, and then abort because `.' already
1607 # exists.
1608 for d in ./-p ./--version;
1610 test -d $d && rmdir $d
1611 done
1612 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1613 if test -f "$ac_aux_dir/mkinstalldirs"; then
1614 mkdir_p='$(mkinstalldirs)'
1615 else
1616 mkdir_p='$(install_sh) -d'
1620 for ac_prog in gawk mawk nawk awk
1622 # Extract the first word of "$ac_prog", so it can be a program name with args.
1623 set dummy $ac_prog; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_AWK+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$AWK"; then
1630 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_AWK="$ac_prog"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1643 done
1644 done
1648 AWK=$ac_cv_prog_AWK
1649 if test -n "$AWK"; then
1650 echo "$as_me:$LINENO: result: $AWK" >&5
1651 echo "${ECHO_T}$AWK" >&6
1652 else
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1657 test -n "$AWK" && break
1658 done
1660 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1661 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1662 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1663 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 cat >conftest.make <<\_ACEOF
1667 all:
1668 @echo 'ac_maketemp="$(MAKE)"'
1669 _ACEOF
1670 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1671 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1672 if test -n "$ac_maketemp"; then
1673 eval ac_cv_prog_make_${ac_make}_set=yes
1674 else
1675 eval ac_cv_prog_make_${ac_make}_set=no
1677 rm -f conftest.make
1679 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1680 echo "$as_me:$LINENO: result: yes" >&5
1681 echo "${ECHO_T}yes" >&6
1682 SET_MAKE=
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 SET_MAKE="MAKE=${MAKE-make}"
1689 rm -rf .tst 2>/dev/null
1690 mkdir .tst 2>/dev/null
1691 if test -d .tst; then
1692 am__leading_dot=.
1693 else
1694 am__leading_dot=_
1696 rmdir .tst 2>/dev/null
1698 # test to see if srcdir already configured
1699 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1700 test -f $srcdir/config.status; then
1701 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1702 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1703 { (exit 1); exit 1; }; }
1706 # test whether we have cygpath
1707 if test -z "$CYGPATH_W"; then
1708 if (cygpath --version) >/dev/null 2>/dev/null; then
1709 CYGPATH_W='cygpath -w'
1710 else
1711 CYGPATH_W=echo
1716 # Define the identity of the package.
1717 PACKAGE='libgcc-math'
1718 VERSION='1.0'
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE "$PACKAGE"
1723 _ACEOF
1726 cat >>confdefs.h <<_ACEOF
1727 #define VERSION "$VERSION"
1728 _ACEOF
1730 # Some tools Automake needs.
1732 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1735 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1738 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1741 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1744 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1746 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1748 # Installed binaries are usually stripped using `strip' when the user
1749 # run `make install-strip'. However `strip' might not be the right
1750 # tool to use in cross-compilation environments, therefore Automake
1751 # will honor the `STRIP' environment variable to overrule this program.
1752 if test "$cross_compiling" != no; then
1753 if test -n "$ac_tool_prefix"; then
1754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1755 set dummy ${ac_tool_prefix}strip; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_STRIP+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 if test -n "$STRIP"; then
1762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1767 IFS=$as_save_IFS
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1775 done
1776 done
1780 STRIP=$ac_cv_prog_STRIP
1781 if test -n "$STRIP"; then
1782 echo "$as_me:$LINENO: result: $STRIP" >&5
1783 echo "${ECHO_T}$STRIP" >&6
1784 else
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1790 if test -z "$ac_cv_prog_STRIP"; then
1791 ac_ct_STRIP=$STRIP
1792 # Extract the first word of "strip", so it can be a program name with args.
1793 set dummy strip; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799 if test -n "$ac_ct_STRIP"; then
1800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1805 IFS=$as_save_IFS
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_ac_ct_STRIP="strip"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 break 2
1813 done
1814 done
1816 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1820 if test -n "$ac_ct_STRIP"; then
1821 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1822 echo "${ECHO_T}$ac_ct_STRIP" >&6
1823 else
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1828 STRIP=$ac_ct_STRIP
1829 else
1830 STRIP="$ac_cv_prog_STRIP"
1834 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1836 # We need awk for the "check" target. The system "awk" is bad on
1837 # some platforms.
1838 # Always define AMTAR for backward compatibility.
1840 AMTAR=${AMTAR-"${am_missing_run}tar"}
1842 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1849 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1850 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1851 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1852 if test "${enable_version_specific_runtime_libs+set}" = set; then
1853 enableval="$enable_version_specific_runtime_libs"
1854 case "$enableval" in
1855 yes) version_specific_libs=yes ;;
1856 no) version_specific_libs=no ;;
1857 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1858 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1859 { (exit 1); exit 1; }; };;
1860 esac
1861 else
1862 version_specific_libs=no
1864 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1865 echo "${ECHO_T}$version_specific_libs" >&6
1867 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1868 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1869 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1870 if test "${enable_maintainer_mode+set}" = set; then
1871 enableval="$enable_maintainer_mode"
1872 USE_MAINTAINER_MODE=$enableval
1873 else
1874 USE_MAINTAINER_MODE=no
1876 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1877 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1880 if test $USE_MAINTAINER_MODE = yes; then
1881 MAINTAINER_MODE_TRUE=
1882 MAINTAINER_MODE_FALSE='#'
1883 else
1884 MAINTAINER_MODE_TRUE='#'
1885 MAINTAINER_MODE_FALSE=
1888 MAINT=$MAINTAINER_MODE_TRUE
1893 # Default to --enable-multilib
1894 # Check whether --enable-multilib or --disable-multilib was given.
1895 if test "${enable_multilib+set}" = set; then
1896 enableval="$enable_multilib"
1897 case "$enableval" in
1898 yes) multilib=yes ;;
1899 no) multilib=no ;;
1900 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1901 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1902 { (exit 1); exit 1; }; } ;;
1903 esac
1904 else
1905 multilib=yes
1908 # We may get other options which we leave undocumented:
1909 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1910 # See config-ml.in if you want the gory details.
1912 if test "$srcdir" = "."; then
1913 if test "$with_target_subdir" != "."; then
1914 multi_basedir="$srcdir/$with_multisrctop../.."
1915 else
1916 multi_basedir="$srcdir/$with_multisrctop.."
1918 else
1919 multi_basedir="$srcdir/.."
1923 ac_config_commands="$ac_config_commands default-1"
1926 target_alias=${target_alias-$host_alias}
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1936 # We must force CC to /not/ be precious variables; otherwise
1937 # the wrong, non-multilib-adjusted value will be used in multilibs.
1938 # As a side effect, we have to subst CFLAGS ourselves.
1942 ac_ext=c
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 if test -n "$ac_tool_prefix"; then
1948 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1949 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955 if test -n "$CC"; then
1956 ac_cv_prog_CC="$CC" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 break 2
1969 done
1970 done
1974 CC=$ac_cv_prog_CC
1975 if test -n "$CC"; then
1976 echo "$as_me:$LINENO: result: $CC" >&5
1977 echo "${ECHO_T}$CC" >&6
1978 else
1979 echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1984 if test -z "$ac_cv_prog_CC"; then
1985 ac_ct_CC=$CC
1986 # Extract the first word of "gcc", so it can be a program name with args.
1987 set dummy gcc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 if test -n "$ac_ct_CC"; then
1994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_ac_ct_CC="gcc"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2007 done
2008 done
2012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2013 if test -n "$ac_ct_CC"; then
2014 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2015 echo "${ECHO_T}$ac_ct_CC" >&6
2016 else
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 CC=$ac_ct_CC
2022 else
2023 CC="$ac_cv_prog_CC"
2026 if test -z "$CC"; then
2027 if test -n "$ac_tool_prefix"; then
2028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}cc; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 if test -n "$CC"; then
2036 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_CC="${ac_tool_prefix}cc"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2049 done
2050 done
2054 CC=$ac_cv_prog_CC
2055 if test -n "$CC"; then
2056 echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6
2058 else
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2064 if test -z "$ac_cv_prog_CC"; then
2065 ac_ct_CC=$CC
2066 # Extract the first word of "cc", so it can be a program name with args.
2067 set dummy cc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_CC="cc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 CC=$ac_ct_CC
2102 else
2103 CC="$ac_cv_prog_CC"
2107 if test -z "$CC"; then
2108 # Extract the first word of "cc", so it can be a program name with args.
2109 set dummy cc; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 ac_prog_rejected=no
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2127 ac_prog_rejected=yes
2128 continue
2130 ac_cv_prog_CC="cc"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2134 done
2135 done
2137 if test $ac_prog_rejected = yes; then
2138 # We found a bogon in the path, so make sure we never use it.
2139 set dummy $ac_cv_prog_CC
2140 shift
2141 if test $# != 0; then
2142 # We chose a different compiler from the bogus one.
2143 # However, it has the same basename, so the bogon will be chosen
2144 # first if we set CC to just the basename; use the full file name.
2145 shift
2146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2151 CC=$ac_cv_prog_CC
2152 if test -n "$CC"; then
2153 echo "$as_me:$LINENO: result: $CC" >&5
2154 echo "${ECHO_T}$CC" >&6
2155 else
2156 echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6
2161 if test -z "$CC"; then
2162 if test -n "$ac_tool_prefix"; then
2163 for ac_prog in cl
2165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2167 echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2186 done
2187 done
2191 CC=$ac_cv_prog_CC
2192 if test -n "$CC"; then
2193 echo "$as_me:$LINENO: result: $CC" >&5
2194 echo "${ECHO_T}$CC" >&6
2195 else
2196 echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2200 test -n "$CC" && break
2201 done
2203 if test -z "$CC"; then
2204 ac_ct_CC=$CC
2205 for ac_prog in cl
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy $ac_prog; ac_word=$2
2209 echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 if test -n "$ac_ct_CC"; then
2215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224 ac_cv_prog_ac_ct_CC="$ac_prog"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2228 done
2229 done
2233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2234 if test -n "$ac_ct_CC"; then
2235 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2236 echo "${ECHO_T}$ac_ct_CC" >&6
2237 else
2238 echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2242 test -n "$ac_ct_CC" && break
2243 done
2245 CC=$ac_ct_CC
2251 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2257 # Provide some information about the compiler.
2258 echo "$as_me:$LINENO:" \
2259 "checking for C compiler version" >&5
2260 ac_compiler=`set X $ac_compile; echo $2`
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2262 (eval $ac_compiler --version </dev/null >&5) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2267 (eval $ac_compiler -v </dev/null >&5) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2272 (eval $ac_compiler -V </dev/null >&5) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2277 cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2285 main ()
2289 return 0;
2291 _ACEOF
2292 ac_clean_files_save=$ac_clean_files
2293 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2294 # Try to create an executable without -o first, disregard a.out.
2295 # It will help us diagnose broken compilers, and finding out an intuition
2296 # of exeext.
2297 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2298 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2300 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2301 (eval $ac_link_default) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Find the output, starting from the most likely. This scheme is
2306 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2307 # resort.
2309 # Be careful to initialize this variable, since it used to be cached.
2310 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2311 ac_cv_exeext=
2312 # b.out is created by i960 compilers.
2313 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2315 test -f "$ac_file" || continue
2316 case $ac_file in
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2319 conftest.$ac_ext )
2320 # This is the source file.
2322 [ab].out )
2323 # We found the default executable, but exeext='' is most
2324 # certainly right.
2325 break;;
2326 *.* )
2327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 # FIXME: I believe we export ac_cv_exeext for Libtool,
2329 # but it would be cool to find out if it's true. Does anybody
2330 # maintain Libtool? --akim.
2331 export ac_cv_exeext
2332 break;;
2334 break;;
2335 esac
2336 done
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2341 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: C compiler cannot create executables
2344 See \`config.log' for more details." >&2;}
2345 { (exit 77); exit 77; }; }
2348 ac_exeext=$ac_cv_exeext
2349 echo "$as_me:$LINENO: result: $ac_file" >&5
2350 echo "${ECHO_T}$ac_file" >&6
2352 # Check the compiler produces executables we can run. If not, either
2353 # the compiler is broken, or we cross compile.
2354 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2355 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2356 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2357 # If not cross compiling, check that we can run a simple program.
2358 if test "$cross_compiling" != yes; then
2359 if { ac_try='./$ac_file'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 cross_compiling=no
2366 else
2367 if test "$cross_compiling" = maybe; then
2368 cross_compiling=yes
2369 else
2370 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2371 If you meant to cross compile, use \`--host'.
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot run C compiled programs.
2374 If you meant to cross compile, use \`--host'.
2375 See \`config.log' for more details." >&2;}
2376 { (exit 1); exit 1; }; }
2380 echo "$as_me:$LINENO: result: yes" >&5
2381 echo "${ECHO_T}yes" >&6
2383 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2384 ac_clean_files=$ac_clean_files_save
2385 # Check the compiler produces executables we can run. If not, either
2386 # the compiler is broken, or we cross compile.
2387 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2388 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2389 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2390 echo "${ECHO_T}$cross_compiling" >&6
2392 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2393 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2401 # work properly (i.e., refer to `conftest.exe'), while it won't with
2402 # `rm'.
2403 for ac_file in conftest.exe conftest conftest.*; do
2404 test -f "$ac_file" || continue
2405 case $ac_file in
2406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408 export ac_cv_exeext
2409 break;;
2410 * ) break;;
2411 esac
2412 done
2413 else
2414 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2421 rm -f conftest$ac_cv_exeext
2422 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2423 echo "${ECHO_T}$ac_cv_exeext" >&6
2425 rm -f conftest.$ac_ext
2426 EXEEXT=$ac_cv_exeext
2427 ac_exeext=$EXEEXT
2428 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2429 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2430 if test "${ac_cv_objext+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2441 main ()
2445 return 0;
2447 _ACEOF
2448 rm -f conftest.o conftest.obj
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2455 case $ac_file in
2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2458 break;;
2459 esac
2460 done
2461 else
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2465 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2474 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2475 echo "${ECHO_T}$ac_cv_objext" >&6
2476 OBJEXT=$ac_cv_objext
2477 ac_objext=$OBJEXT
2478 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2479 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2480 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2491 main ()
2493 #ifndef __GNUC__
2494 choke me
2495 #endif
2498 return 0;
2500 _ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_compiler_gnu=yes
2524 else
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 ac_compiler_gnu=no
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2534 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2535 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2536 GCC=`test $ac_compiler_gnu = yes && echo yes`
2537 ac_test_CFLAGS=${CFLAGS+set}
2538 ac_save_CFLAGS=$CFLAGS
2539 CFLAGS="-g"
2540 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2541 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2542 if test "${ac_cv_prog_cc_g+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2553 main ()
2557 return 0;
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>conftest.er1
2563 ac_status=$?
2564 grep -v '^ *+' conftest.er1 >conftest.err
2565 rm -f conftest.er1
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -z "$ac_c_werror_flag"
2570 || test ! -s conftest.err'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_cv_prog_cc_g=yes
2583 else
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2587 ac_cv_prog_cc_g=no
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2592 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2593 if test "$ac_test_CFLAGS" = set; then
2594 CFLAGS=$ac_save_CFLAGS
2595 elif test $ac_cv_prog_cc_g = yes; then
2596 if test "$GCC" = yes; then
2597 CFLAGS="-g -O2"
2598 else
2599 CFLAGS="-g"
2601 else
2602 if test "$GCC" = yes; then
2603 CFLAGS="-O2"
2604 else
2605 CFLAGS=
2608 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2609 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 ac_cv_prog_cc_stdc=no
2614 ac_save_CC=$CC
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2621 #include <stdarg.h>
2622 #include <stdio.h>
2623 #include <sys/types.h>
2624 #include <sys/stat.h>
2625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2626 struct buf { int x; };
2627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2628 static char *e (p, i)
2629 char **p;
2630 int i;
2632 return p[i];
2634 static char *f (char * (*g) (char **, int), char **p, ...)
2636 char *s;
2637 va_list v;
2638 va_start (v,p);
2639 s = g (p, va_arg (v,int));
2640 va_end (v);
2641 return s;
2644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2645 function prototypes and stuff, but not '\xHH' hex character constants.
2646 These don't provoke an error unfortunately, instead are silently treated
2647 as 'x'. The following induces an error, until -std1 is added to get
2648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2649 array size at least. It's necessary to write '\x00'==0 to get something
2650 that's true only with -std1. */
2651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2653 int test (int i, double x);
2654 struct s1 {int (*f) (int a);};
2655 struct s2 {int (*f) (double a);};
2656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2657 int argc;
2658 char **argv;
2660 main ()
2662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2664 return 0;
2666 _ACEOF
2667 # Don't try gcc -ansi; that turns off useful extensions and
2668 # breaks some systems' header files.
2669 # AIX -qlanglvl=ansi
2670 # Ultrix and OSF/1 -std1
2671 # HP-UX 10.20 and later -Ae
2672 # HP-UX older versions -Aa -D_HPUX_SOURCE
2673 # SVR4 -Xc -D__EXTENSIONS__
2674 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2676 CC="$ac_save_CC $ac_arg"
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 ac_cv_prog_cc_stdc=$ac_arg
2700 break
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2706 rm -f conftest.err conftest.$ac_objext
2707 done
2708 rm -f conftest.$ac_ext conftest.$ac_objext
2709 CC=$ac_save_CC
2713 case "x$ac_cv_prog_cc_stdc" in
2714 x|xno)
2715 echo "$as_me:$LINENO: result: none needed" >&5
2716 echo "${ECHO_T}none needed" >&6 ;;
2718 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2719 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2720 CC="$CC $ac_cv_prog_cc_stdc" ;;
2721 esac
2723 # Some people use a C++ compiler to compile C. Since we use `exit',
2724 # in C++ we need to declare it. In case someone uses the same compiler
2725 # for both compiling C and C++ we need to have the C++ compiler decide
2726 # the declaration of exit, since it's the most demanding environment.
2727 cat >conftest.$ac_ext <<_ACEOF
2728 #ifndef __cplusplus
2729 choke me
2730 #endif
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 for ac_declaration in \
2755 '' \
2756 'extern "C" void std::exit (int) throw (); using std::exit;' \
2757 'extern "C" void std::exit (int); using std::exit;' \
2758 'extern "C" void exit (int) throw ();' \
2759 'extern "C" void exit (int);' \
2760 'void exit (int);'
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2768 $ac_declaration
2769 #include <stdlib.h>
2771 main ()
2773 exit (42);
2775 return 0;
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 continue
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814 $ac_declaration
2816 main ()
2818 exit (42);
2820 return 0;
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag"
2833 || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 break
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 done
2853 rm -f conftest*
2854 if test -n "$ac_declaration"; then
2855 echo '#ifdef __cplusplus' >>confdefs.h
2856 echo $ac_declaration >>confdefs.h
2857 echo '#endif' >>confdefs.h
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 DEPDIR="${am__leading_dot}deps"
2873 ac_config_commands="$ac_config_commands depfiles"
2876 am_make=${MAKE-make}
2877 cat > confinc << 'END'
2878 am__doit:
2879 @echo done
2880 .PHONY: am__doit
2882 # If we don't find an include directive, just comment out the code.
2883 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2884 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2885 am__include="#"
2886 am__quote=
2887 _am_result=none
2888 # First try GNU make style include.
2889 echo "include confinc" > confmf
2890 # We grep out `Entering directory' and `Leaving directory'
2891 # messages which can occur if `w' ends up in MAKEFLAGS.
2892 # In particular we don't look at `^make:' because GNU make might
2893 # be invoked under some other name (usually "gmake"), in which
2894 # case it prints its new name instead of `make'.
2895 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2896 am__include=include
2897 am__quote=
2898 _am_result=GNU
2900 # Now try BSD make style include.
2901 if test "$am__include" = "#"; then
2902 echo '.include "confinc"' > confmf
2903 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2904 am__include=.include
2905 am__quote="\""
2906 _am_result=BSD
2911 echo "$as_me:$LINENO: result: $_am_result" >&5
2912 echo "${ECHO_T}$_am_result" >&6
2913 rm -f confinc confmf
2915 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2916 if test "${enable_dependency_tracking+set}" = set; then
2917 enableval="$enable_dependency_tracking"
2920 if test "x$enable_dependency_tracking" != xno; then
2921 am_depcomp="$ac_aux_dir/depcomp"
2922 AMDEPBACKSLASH='\'
2926 if test "x$enable_dependency_tracking" != xno; then
2927 AMDEP_TRUE=
2928 AMDEP_FALSE='#'
2929 else
2930 AMDEP_TRUE='#'
2931 AMDEP_FALSE=
2937 depcc="$CC" am_compiler_list=
2939 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2940 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2941 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2945 # We make a subdir and do the tests there. Otherwise we can end up
2946 # making bogus files that we don't know about and never remove. For
2947 # instance it was reported that on HP-UX the gcc test will end up
2948 # making a dummy file named `D' -- because `-MD' means `put the output
2949 # in D'.
2950 mkdir conftest.dir
2951 # Copy depcomp to subdir because otherwise we won't find it if we're
2952 # using a relative directory.
2953 cp "$am_depcomp" conftest.dir
2954 cd conftest.dir
2955 # We will build objects and dependencies in a subdirectory because
2956 # it helps to detect inapplicable dependency modes. For instance
2957 # both Tru64's cc and ICC support -MD to output dependencies as a
2958 # side effect of compilation, but ICC will put the dependencies in
2959 # the current directory while Tru64 will put them in the object
2960 # directory.
2961 mkdir sub
2963 am_cv_CC_dependencies_compiler_type=none
2964 if test "$am_compiler_list" = ""; then
2965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2967 for depmode in $am_compiler_list; do
2968 # Setup a source with many dependencies, because some compilers
2969 # like to wrap large dependency lists on column 80 (with \), and
2970 # we should not choose a depcomp mode which is confused by this.
2972 # We need to recreate these files for each test, as the compiler may
2973 # overwrite some of them when testing with obscure command lines.
2974 # This happens at least with the AIX C compiler.
2975 : > sub/conftest.c
2976 for i in 1 2 3 4 5 6; do
2977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2978 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2979 # Solaris 8's {/usr,}/bin/sh.
2980 touch sub/conftst$i.h
2981 done
2982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2984 case $depmode in
2985 nosideeffect)
2986 # after this tag, mechanisms are not by side-effect, so they'll
2987 # only be used when explicitly requested
2988 if test "x$enable_dependency_tracking" = xyes; then
2989 continue
2990 else
2991 break
2994 none) break ;;
2995 esac
2996 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2997 # mode. It turns out that the SunPro C++ compiler does not properly
2998 # handle `-M -o', and we need to detect this.
2999 if depmode=$depmode \
3000 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3002 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3003 >/dev/null 2>conftest.err &&
3004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3005 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3007 # icc doesn't choke on unknown options, it will just issue warnings
3008 # or remarks (even with -Werror). So we grep stderr for any message
3009 # that says an option was ignored or not supported.
3010 # When given -MP, icc 7.0 and 7.1 complain thusly:
3011 # icc: Command line warning: ignoring option '-M'; no argument required
3012 # The diagnosis changed in icc 8.0:
3013 # icc: Command line remark: option '-MP' not supported
3014 if (grep 'ignoring option' conftest.err ||
3015 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3016 am_cv_CC_dependencies_compiler_type=$depmode
3017 break
3020 done
3022 cd ..
3023 rm -rf conftest.dir
3024 else
3025 am_cv_CC_dependencies_compiler_type=none
3029 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3030 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3031 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3036 test "x$enable_dependency_tracking" != xno \
3037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3038 am__fastdepCC_TRUE=
3039 am__fastdepCC_FALSE='#'
3040 else
3041 am__fastdepCC_TRUE='#'
3042 am__fastdepCC_FALSE=
3050 if test "x$GCC" != "xyes"; then
3051 { { echo "$as_me:$LINENO: error: libgcc-math must be built with GCC" >&5
3052 echo "$as_me: error: libgcc-math must be built with GCC" >&2;}
3053 { (exit 1); exit 1; }; }
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3064 CPP=
3066 if test -z "$CPP"; then
3067 if test "${ac_cv_prog_CPP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 # Double quotes because CPP needs to be expanded
3071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3073 ac_preproc_ok=false
3074 for ac_c_preproc_warn_flag in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 #ifdef __STDC__
3089 # include <limits.h>
3090 #else
3091 # include <assert.h>
3092 #endif
3093 Syntax error
3094 _ACEOF
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
3105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106 else
3107 ac_cpp_err=
3109 else
3110 ac_cpp_err=yes
3112 if test -z "$ac_cpp_err"; then
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Broken: fails on valid input.
3119 continue
3121 rm -f conftest.err conftest.$ac_ext
3123 # OK, works on sane cases. Now check whether non-existent headers
3124 # can be detected and how.
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #include <ac_nonexistent.h>
3132 _ACEOF
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144 else
3145 ac_cpp_err=
3147 else
3148 ac_cpp_err=yes
3150 if test -z "$ac_cpp_err"; then
3151 # Broken: success on invalid input.
3152 continue
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 # Passes both tests.
3158 ac_preproc_ok=:
3159 break
3161 rm -f conftest.err conftest.$ac_ext
3163 done
3164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3165 rm -f conftest.err conftest.$ac_ext
3166 if $ac_preproc_ok; then
3167 break
3170 done
3171 ac_cv_prog_CPP=$CPP
3174 CPP=$ac_cv_prog_CPP
3175 else
3176 ac_cv_prog_CPP=$CPP
3178 echo "$as_me:$LINENO: result: $CPP" >&5
3179 echo "${ECHO_T}$CPP" >&6
3180 ac_preproc_ok=false
3181 for ac_c_preproc_warn_flag in '' yes
3183 # Use a header file that comes with gcc, so configuring glibc
3184 # with a fresh cross-compiler works.
3185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186 # <limits.h> exists even on freestanding compilers.
3187 # On the NeXT, cc -E runs the code through the compiler's parser,
3188 # not just through cpp. "Syntax error" is here to catch this case.
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 #ifdef __STDC__
3196 # include <limits.h>
3197 #else
3198 # include <assert.h>
3199 #endif
3200 Syntax error
3201 _ACEOF
3202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_c_preproc_warn_flag
3212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3213 else
3214 ac_cpp_err=
3216 else
3217 ac_cpp_err=yes
3219 if test -z "$ac_cpp_err"; then
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 # Broken: fails on valid input.
3226 continue
3228 rm -f conftest.err conftest.$ac_ext
3230 # OK, works on sane cases. Now check whether non-existent headers
3231 # can be detected and how.
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 #include <ac_nonexistent.h>
3239 _ACEOF
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251 else
3252 ac_cpp_err=
3254 else
3255 ac_cpp_err=yes
3257 if test -z "$ac_cpp_err"; then
3258 # Broken: success on invalid input.
3259 continue
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 # Passes both tests.
3265 ac_preproc_ok=:
3266 break
3268 rm -f conftest.err conftest.$ac_ext
3270 done
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then
3275 else
3276 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3277 See \`config.log' for more details." >&5
3278 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }
3283 ac_ext=c
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 # By default we simply use the C compiler to build assembly code.
3291 test "${CCAS+set}" = set || CCAS=$CC
3292 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3297 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3298 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3307 void __attribute__((visibility ("hidden"))) bar (void) {}
3309 main ()
3313 return 0;
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3318 (eval $ac_compile) 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 { ac_try='test -z "$ac_c_werror_flag"
3326 || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 gccm_hidden=yes
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 gccm_hidden=no
3345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3346 echo "$as_me:$LINENO: result: $gccm_hidden" >&5
3347 echo "${ECHO_T}$gccm_hidden" >&6
3348 if test x$gccm_hidden = xyes; then
3350 cat >>confdefs.h <<\_ACEOF
3351 #define HAVE_HIDDEN_VISIBILITY 1
3352 _ACEOF
3356 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3357 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3358 cat > conftest.map <<EOF
3359 FOO_1.0 {
3360 global: *foo*; bar; local: *;
3363 save_LDFLAGS="$LDFLAGS"
3364 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 int foo;
3373 main ()
3377 return 0;
3379 _ACEOF
3380 rm -f conftest.$ac_objext conftest$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try='test -z "$ac_c_werror_flag"
3390 || test ! -s conftest.err'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; } &&
3396 { ac_try='test -s conftest$ac_exeext'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 gccm_use_symver=yes
3403 else
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 gccm_use_symver=no
3409 rm -f conftest.err conftest.$ac_objext \
3410 conftest$ac_exeext conftest.$ac_ext
3411 LDFLAGS="$save_LDFLAGS"
3412 echo "$as_me:$LINENO: result: $gccm_use_symver" >&5
3413 echo "${ECHO_T}$gccm_use_symver" >&6
3416 if test "x$gccm_use_symver" = xyes; then
3417 LIBGCCM_USE_SYMVER_TRUE=
3418 LIBGCCM_USE_SYMVER_FALSE='#'
3419 else
3420 LIBGCCM_USE_SYMVER_TRUE='#'
3421 LIBGCCM_USE_SYMVER_FALSE=
3425 echo "$as_me:$LINENO: checking whether we are a 32bit target" >&5
3426 echo $ECHO_N "checking whether we are a 32bit target... $ECHO_C" >&6
3427 save_CFLAGS="$CFLAGS"
3428 CFLAGS="-O2"
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3437 main ()
3440 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
3442 else
3443 undefined_function ();
3446 return 0;
3448 _ACEOF
3449 rm -f conftest.$ac_objext conftest$ac_exeext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451 (eval $ac_link) 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest$ac_exeext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 target_ilp32=yes
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 target_ilp32=no
3478 rm -f conftest.err conftest.$ac_objext \
3479 conftest$ac_exeext conftest.$ac_ext
3480 CFLAGS="$save_CFLAGS"
3483 if test "x$target_ilp32" = xyes; then
3484 TARGET_ILP32_TRUE=
3485 TARGET_ILP32_FALSE='#'
3486 else
3487 TARGET_ILP32_TRUE='#'
3488 TARGET_ILP32_FALSE=
3493 # Check whether --enable-shared or --disable-shared was given.
3494 if test "${enable_shared+set}" = set; then
3495 enableval="$enable_shared"
3496 p=${PACKAGE-default}
3497 case $enableval in
3498 yes) enable_shared=yes ;;
3499 no) enable_shared=no ;;
3501 enable_shared=no
3502 # Look at the argument we got. We use all the common list separators.
3503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3504 for pkg in $enableval; do
3505 if test "X$pkg" = "X$p"; then
3506 enable_shared=yes
3508 done
3509 IFS="$ac_save_ifs"
3511 esac
3512 else
3513 enable_shared=yes
3515 # Check whether --enable-static or --disable-static was given.
3516 if test "${enable_static+set}" = set; then
3517 enableval="$enable_static"
3518 p=${PACKAGE-default}
3519 case $enableval in
3520 yes) enable_static=yes ;;
3521 no) enable_static=no ;;
3523 enable_static=no
3524 # Look at the argument we got. We use all the common list separators.
3525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3526 for pkg in $enableval; do
3527 if test "X$pkg" = "X$p"; then
3528 enable_static=yes
3530 done
3531 IFS="$ac_save_ifs"
3533 esac
3534 else
3535 enable_static=yes
3537 # Check whether --enable-fast-install or --disable-fast-install was given.
3538 if test "${enable_fast_install+set}" = set; then
3539 enableval="$enable_fast_install"
3540 p=${PACKAGE-default}
3541 case $enableval in
3542 yes) enable_fast_install=yes ;;
3543 no) enable_fast_install=no ;;
3545 enable_fast_install=no
3546 # Look at the argument we got. We use all the common list separators.
3547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3548 for pkg in $enableval; do
3549 if test "X$pkg" = "X$p"; then
3550 enable_fast_install=yes
3552 done
3553 IFS="$ac_save_ifs"
3555 esac
3556 else
3557 enable_fast_install=yes
3560 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3561 if test "${with_gnu_ld+set}" = set; then
3562 withval="$with_gnu_ld"
3563 test "$withval" = no || with_gnu_ld=yes
3564 else
3565 with_gnu_ld=no
3567 ac_prog=ld
3568 if test "$GCC" = yes; then
3569 # Check if gcc -print-prog-name=ld gives a path.
3570 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3571 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3572 case $host in
3573 *-*-mingw*)
3574 # gcc leaves a trailing carriage return which upsets mingw
3575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3578 esac
3579 case $ac_prog in
3580 # Accept absolute paths.
3581 [\\/]* | [A-Za-z]:[\\/]*)
3582 re_direlt='/[^/][^/]*/\.\./'
3583 # Canonicalize the path of ld
3584 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3586 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3587 done
3588 test -z "$LD" && LD="$ac_prog"
3591 # If it fails, then pretend we aren't using GCC.
3592 ac_prog=ld
3595 # If it is relative, then search for the first ld in PATH.
3596 with_gnu_ld=unknown
3598 esac
3599 elif test "$with_gnu_ld" = yes; then
3600 echo "$as_me:$LINENO: checking for GNU ld" >&5
3601 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3602 else
3603 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3604 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3606 if test "${lt_cv_path_LD+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 if test -z "$LD"; then
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3611 for ac_dir in $PATH; do
3612 test -z "$ac_dir" && ac_dir=.
3613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3614 lt_cv_path_LD="$ac_dir/$ac_prog"
3615 # Check to see if the program is GNU ld. I'd rather use --version,
3616 # but apparently some GNU ld's only accept -v.
3617 # Break only if it was the GNU/non-GNU ld that we prefer.
3618 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3619 test "$with_gnu_ld" != no && break
3620 else
3621 test "$with_gnu_ld" != yes && break
3624 done
3625 IFS="$ac_save_ifs"
3626 else
3627 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3631 LD="$lt_cv_path_LD"
3632 if test -n "$LD"; then
3633 echo "$as_me:$LINENO: result: $LD" >&5
3634 echo "${ECHO_T}$LD" >&6
3635 else
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3639 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3640 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3641 { (exit 1); exit 1; }; }
3642 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3643 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3644 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3648 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3649 lt_cv_prog_gnu_ld=yes
3650 else
3651 lt_cv_prog_gnu_ld=no
3654 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3655 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3656 with_gnu_ld=$lt_cv_prog_gnu_ld
3659 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3660 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3661 if test "${lt_cv_ld_reload_flag+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 lt_cv_ld_reload_flag='-r'
3666 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3667 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3668 reload_flag=$lt_cv_ld_reload_flag
3669 test -n "$reload_flag" && reload_flag=" $reload_flag"
3671 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3672 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3673 if test "${lt_cv_path_NM+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 if test -n "$NM"; then
3677 # Let the user override the test.
3678 lt_cv_path_NM="$NM"
3679 else
3680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3681 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3682 test -z "$ac_dir" && ac_dir=.
3683 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3684 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3685 # Check to see if the nm accepts a BSD-compat flag.
3686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3687 # nm: unknown option "B" ignored
3688 # Tru64's nm complains that /dev/null is an invalid object file
3689 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3690 lt_cv_path_NM="$tmp_nm -B"
3691 break
3692 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3693 lt_cv_path_NM="$tmp_nm -p"
3694 break
3695 else
3696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3697 continue # so that we can try to find one that supports BSD flags
3700 done
3701 IFS="$ac_save_ifs"
3702 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3706 NM="$lt_cv_path_NM"
3707 echo "$as_me:$LINENO: result: $NM" >&5
3708 echo "${ECHO_T}$NM" >&6
3710 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3711 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3712 LN_S=$as_ln_s
3713 if test "$LN_S" = "ln -s"; then
3714 echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716 else
3717 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3718 echo "${ECHO_T}no, using $LN_S" >&6
3721 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3722 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3723 if test "${lt_cv_deplibs_check_method+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 lt_cv_file_magic_cmd='$MAGIC_CMD'
3727 lt_cv_file_magic_test_file=
3728 lt_cv_deplibs_check_method='unknown'
3729 # Need to set the preceding variable on all platforms that support
3730 # interlibrary dependencies.
3731 # 'none' -- dependencies not supported.
3732 # `unknown' -- same as none, but documents that we really don't know.
3733 # 'pass_all' -- all dependencies passed with no checks.
3734 # 'test_compile' -- check by making test program.
3735 # 'file_magic [regex]' -- check by looking for files in library path
3736 # which responds to the $file_magic_cmd with a given egrep regex.
3737 # If you have `file' or equivalent on your system and you're not sure
3738 # whether `pass_all' will *always* work, you probably want this one.
3740 case $host_os in
3741 aix*)
3742 lt_cv_deplibs_check_method=pass_all
3745 beos*)
3746 lt_cv_deplibs_check_method=pass_all
3749 bsdi4*)
3750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3751 lt_cv_file_magic_cmd='/usr/bin/file -L'
3752 lt_cv_file_magic_test_file=/shlib/libc.so
3755 cygwin* | mingw* |pw32*)
3756 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3757 lt_cv_file_magic_cmd='$OBJDUMP -f'
3760 darwin* | rhapsody*)
3761 # this will be overwritten by pass_all, but leave it in just in case
3762 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3763 lt_cv_file_magic_cmd='/usr/bin/file -L'
3764 case "$host_os" in
3765 rhapsody* | darwin1.012)
3766 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3768 *) # Darwin 1.3 on
3769 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3771 esac
3772 lt_cv_deplibs_check_method=pass_all
3775 freebsd* | kfreebsd*-gnu)
3776 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3777 case $host_cpu in
3778 i*86 )
3779 # Not sure whether the presence of OpenBSD here was a mistake.
3780 # Let's accept both of them until this is cleared up.
3781 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3782 lt_cv_file_magic_cmd=/usr/bin/file
3783 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3785 esac
3786 else
3787 lt_cv_deplibs_check_method=pass_all
3791 gnu*)
3792 lt_cv_deplibs_check_method=pass_all
3795 hpux10.20*|hpux11*)
3796 case $host_cpu in
3797 hppa*)
3798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3799 lt_cv_file_magic_cmd=/usr/bin/file
3800 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3802 ia64*)
3803 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3804 lt_cv_file_magic_cmd=/usr/bin/file
3805 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3807 esac
3810 irix5* | irix6*)
3811 case $host_os in
3812 irix5*)
3813 # this will be overridden with pass_all, but let us keep it just in case
3814 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3817 case $LD in
3818 *-32|*"-32 ") libmagic=32-bit;;
3819 *-n32|*"-n32 ") libmagic=N32;;
3820 *-64|*"-64 ") libmagic=64-bit;;
3821 *) libmagic=never-match;;
3822 esac
3823 # this will be overridden with pass_all, but let us keep it just in case
3824 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3826 esac
3827 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3828 lt_cv_deplibs_check_method=pass_all
3831 # This must be Linux ELF.
3832 linux-gnu*)
3833 lt_cv_deplibs_check_method=pass_all
3836 netbsd* | knetbsd*-gnu)
3837 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3838 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3839 else
3840 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3844 newsos6)
3845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3846 lt_cv_file_magic_cmd=/usr/bin/file
3847 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3850 osf3* | osf4* | osf5*)
3851 # this will be overridden with pass_all, but let us keep it just in case
3852 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3853 lt_cv_file_magic_test_file=/shlib/libc.so
3854 lt_cv_deplibs_check_method=pass_all
3857 sco3.2v5*)
3858 lt_cv_deplibs_check_method=pass_all
3861 solaris*)
3862 lt_cv_deplibs_check_method=pass_all
3863 lt_cv_file_magic_test_file=/lib/libc.so
3866 sysv5uw[78]* | sysv4*uw2*)
3867 lt_cv_deplibs_check_method=pass_all
3870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3871 case $host_vendor in
3872 ncr)
3873 lt_cv_deplibs_check_method=pass_all
3875 motorola)
3876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3879 esac
3881 esac
3884 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3885 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3886 file_magic_cmd=$lt_cv_file_magic_cmd
3887 deplibs_check_method=$lt_cv_deplibs_check_method
3891 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3893 # find the maximum length of command line arguments
3894 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3895 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3896 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3900 teststring="ABCD"
3902 case $build_os in
3903 msdosdjgpp*)
3904 # On DJGPP, this test can blow up pretty badly due to problems in libc
3905 # (any single argument exceeding 2000 bytes causes a buffer overrun
3906 # during glob expansion). Even if it were fixed, the result of this
3907 # check would be larger than it should be.
3908 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3911 cygwin* | mingw*)
3912 # On Win9x/ME, this test blows up -- it succeeds, but takes
3913 # about 5 minutes as the teststring grows exponentially.
3914 # Worse, since 9x/ME are not pre-emptively multitasking,
3915 # you end up with a "frozen" computer, even though with patience
3916 # the test eventually succeeds (with a max line length of 256k).
3917 # Instead, let's just punt: use the minimum linelength reported by
3918 # all of the supported platforms: 8192 (on NT/2K/XP).
3919 lt_cv_sys_max_cmd_len=8192;
3922 amigaos*)
3923 # On AmigaOS with pdksh, this test takes hours, literally.
3924 # So we just punt and use a minimum line length of 8192.
3925 lt_cv_sys_max_cmd_len=8192;
3928 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3929 # This has been around since 386BSD, at least. Likely further.
3930 if test -x /sbin/sysctl; then
3931 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3932 elif test -x /usr/sbin/sysctl; then
3933 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3934 else
3935 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3937 # And add a safety zone
3938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3941 esac
3945 if test -n "$lt_cv_sys_max_cmd_len" ; then
3946 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3947 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3948 else
3949 echo "$as_me:$LINENO: result: none" >&5
3950 echo "${ECHO_T}none" >&6
3954 # Only perform the check for file, if the check method requires it
3955 case $deplibs_check_method in
3956 file_magic*)
3957 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3958 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3959 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963 case $MAGIC_CMD in
3965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3967 ?:/*)
3968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3971 ac_save_MAGIC_CMD="$MAGIC_CMD"
3972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3973 ac_dummy="/usr/bin:$PATH"
3974 for ac_dir in $ac_dummy; do
3975 test -z "$ac_dir" && ac_dir=.
3976 if test -f $ac_dir/${ac_tool_prefix}file; then
3977 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3978 if test -n "$file_magic_test_file"; then
3979 case $deplibs_check_method in
3980 "file_magic "*)
3981 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3984 egrep "$file_magic_regex" > /dev/null; then
3986 else
3987 cat <<EOF 1>&2
3989 *** Warning: the command libtool uses to detect shared libraries,
3990 *** $file_magic_cmd, produces output that libtool cannot recognize.
3991 *** The result is that libtool may fail to recognize shared libraries
3992 *** as such. This will affect the creation of libtool libraries that
3993 *** depend on shared libraries, but programs linked with such libtool
3994 *** libraries will work regardless of this problem. Nevertheless, you
3995 *** may want to report the problem to your system manager and/or to
3996 *** bug-libtool@gnu.org
3999 fi ;;
4000 esac
4002 break
4004 done
4005 IFS="$ac_save_ifs"
4006 MAGIC_CMD="$ac_save_MAGIC_CMD"
4008 esac
4011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4012 if test -n "$MAGIC_CMD"; then
4013 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4014 echo "${ECHO_T}$MAGIC_CMD" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4020 if test -z "$lt_cv_path_MAGIC_CMD"; then
4021 if test -n "$ac_tool_prefix"; then
4022 echo "$as_me:$LINENO: checking for file" >&5
4023 echo $ECHO_N "checking for file... $ECHO_C" >&6
4024 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 case $MAGIC_CMD in
4029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4031 ?:/*)
4032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4035 ac_save_MAGIC_CMD="$MAGIC_CMD"
4036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4037 ac_dummy="/usr/bin:$PATH"
4038 for ac_dir in $ac_dummy; do
4039 test -z "$ac_dir" && ac_dir=.
4040 if test -f $ac_dir/file; then
4041 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4042 if test -n "$file_magic_test_file"; then
4043 case $deplibs_check_method in
4044 "file_magic "*)
4045 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4048 egrep "$file_magic_regex" > /dev/null; then
4050 else
4051 cat <<EOF 1>&2
4053 *** Warning: the command libtool uses to detect shared libraries,
4054 *** $file_magic_cmd, produces output that libtool cannot recognize.
4055 *** The result is that libtool may fail to recognize shared libraries
4056 *** as such. This will affect the creation of libtool libraries that
4057 *** depend on shared libraries, but programs linked with such libtool
4058 *** libraries will work regardless of this problem. Nevertheless, you
4059 *** may want to report the problem to your system manager and/or to
4060 *** bug-libtool@gnu.org
4063 fi ;;
4064 esac
4066 break
4068 done
4069 IFS="$ac_save_ifs"
4070 MAGIC_CMD="$ac_save_MAGIC_CMD"
4072 esac
4075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4076 if test -n "$MAGIC_CMD"; then
4077 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4078 echo "${ECHO_T}$MAGIC_CMD" >&6
4079 else
4080 echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4084 else
4085 MAGIC_CMD=:
4091 esac
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_RANLIB+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 if test -n "$RANLIB"; then
4102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4115 done
4116 done
4120 RANLIB=$ac_cv_prog_RANLIB
4121 if test -n "$RANLIB"; then
4122 echo "$as_me:$LINENO: result: $RANLIB" >&5
4123 echo "${ECHO_T}$RANLIB" >&6
4124 else
4125 echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4130 if test -z "$ac_cv_prog_RANLIB"; then
4131 ac_ct_RANLIB=$RANLIB
4132 # Extract the first word of "ranlib", so it can be a program name with args.
4133 set dummy ranlib; ac_word=$2
4134 echo "$as_me:$LINENO: checking for $ac_word" >&5
4135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 if test -n "$ac_ct_RANLIB"; then
4140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_ac_ct_RANLIB="ranlib"
4150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4153 done
4154 done
4156 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4160 if test -n "$ac_ct_RANLIB"; then
4161 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4162 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4163 else
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4168 RANLIB=$ac_ct_RANLIB
4169 else
4170 RANLIB="$ac_cv_prog_RANLIB"
4173 if test -n "$ac_tool_prefix"; then
4174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4175 set dummy ${ac_tool_prefix}strip; ac_word=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_prog_STRIP+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 if test -n "$STRIP"; then
4182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4200 STRIP=$ac_cv_prog_STRIP
4201 if test -n "$STRIP"; then
4202 echo "$as_me:$LINENO: result: $STRIP" >&5
4203 echo "${ECHO_T}$STRIP" >&6
4204 else
4205 echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6
4210 if test -z "$ac_cv_prog_STRIP"; then
4211 ac_ct_STRIP=$STRIP
4212 # Extract the first word of "strip", so it can be a program name with args.
4213 set dummy strip; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 if test -n "$ac_ct_STRIP"; then
4220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_ac_ct_STRIP="strip"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4233 done
4234 done
4236 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4239 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4240 if test -n "$ac_ct_STRIP"; then
4241 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4242 echo "${ECHO_T}$ac_ct_STRIP" >&6
4243 else
4244 echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4248 STRIP=$ac_ct_STRIP
4249 else
4250 STRIP="$ac_cv_prog_STRIP"
4254 # Check for any special flags to pass to ltconfig.
4255 libtool_flags="--cache-file=$cache_file"
4256 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4257 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4258 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4259 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4260 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4263 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4264 if test "${enable_libtool_lock+set}" = set; then
4265 enableval="$enable_libtool_lock"
4268 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4269 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4272 # Check whether --with-pic or --without-pic was given.
4273 if test "${with_pic+set}" = set; then
4274 withval="$with_pic"
4275 pic_mode="$withval"
4276 else
4277 pic_mode=default
4279 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4280 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4282 # Some flags need to be propagated to the compiler or linker for good
4283 # libtool support.
4284 case $host in
4285 *-*-irix6*)
4286 # Find out which ABI we are using.
4287 echo '#line 4287 "configure"' > conftest.$ac_ext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; then
4293 if test "$lt_cv_prog_gnu_ld" = yes; then
4294 case `/usr/bin/file conftest.$ac_objext` in
4295 *32-bit*)
4296 LD="${LD-ld} -melf32bsmip"
4298 *N32*)
4299 LD="${LD-ld} -melf32bmipn32"
4301 *64-bit*)
4302 LD="${LD-ld} -melf64bmip"
4304 esac
4305 else
4306 case `/usr/bin/file conftest.$ac_objext` in
4307 *32-bit*)
4308 LD="${LD-ld} -32"
4310 *N32*)
4311 LD="${LD-ld} -n32"
4313 *64-bit*)
4314 LD="${LD-ld} -64"
4316 esac
4319 rm -rf conftest*
4322 ia64-*-hpux*)
4323 # Find out which ABI we are using.
4324 echo 'int i;' > conftest.$ac_ext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; then
4330 case "`/usr/bin/file conftest.o`" in
4331 *ELF-32*)
4332 HPUX_IA64_MODE="32"
4334 *ELF-64*)
4335 HPUX_IA64_MODE="64"
4337 esac
4339 rm -rf conftest*
4342 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4343 # Find out which ABI we are using.
4344 echo 'int i;' > conftest.$ac_ext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; then
4350 case "`/usr/bin/file conftest.o`" in
4351 *32-bit*)
4352 case $host in
4353 x86_64-*linux*)
4354 LD="${LD-ld} -m elf_i386"
4356 ppc64-*linux*|powerpc64-*linux*)
4357 LD="${LD-ld} -m elf32ppclinux"
4359 s390x-*linux*)
4360 LD="${LD-ld} -m elf_s390"
4362 sparc64-*linux*)
4363 LD="${LD-ld} -m elf32_sparc"
4365 esac
4367 *64-bit*)
4368 case $host in
4369 x86_64-*linux*)
4370 LD="${LD-ld} -m elf_x86_64"
4372 ppc*-*linux*|powerpc*-*linux*)
4373 LD="${LD-ld} -m elf64ppc"
4375 s390*-*linux*)
4376 LD="${LD-ld} -m elf64_s390"
4378 sparc*-*linux*)
4379 LD="${LD-ld} -m elf64_sparc"
4381 esac
4383 esac
4385 rm -rf conftest*
4388 *-*-sco3.2v5*)
4389 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4390 SAVE_CFLAGS="$CFLAGS"
4391 CFLAGS="$CFLAGS -belf"
4392 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4393 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4394 if test "${lt_cv_cc_needs_belf+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4413 main ()
4417 return 0;
4419 _ACEOF
4420 rm -f conftest.$ac_objext conftest$ac_exeext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4422 (eval $ac_link) 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest$ac_exeext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 lt_cv_cc_needs_belf=yes
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 lt_cv_cc_needs_belf=no
4449 rm -f conftest.err conftest.$ac_objext \
4450 conftest$ac_exeext conftest.$ac_ext
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4459 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4460 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4462 CFLAGS="$SAVE_CFLAGS"
4467 esac
4470 # Save cache, so that ltconfig can load it
4471 cat >confcache <<\_ACEOF
4472 # This file is a shell script that caches the results of configure
4473 # tests run on this system so they can be shared between configure
4474 # scripts and configure runs, see configure's option --config-cache.
4475 # It is not useful on other systems. If it contains results you don't
4476 # want to keep, you may remove or edit it.
4478 # config.status only pays attention to the cache file if you give it
4479 # the --recheck option to rerun configure.
4481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4483 # following values.
4485 _ACEOF
4487 # The following way of writing the cache mishandles newlines in values,
4488 # but we know of no workaround that is simple, portable, and efficient.
4489 # So, don't put newlines in cache variables' values.
4490 # Ultrix sh set writes to stderr and can't be redirected directly,
4491 # and sets the high bit in the cache file unless we assign to the vars.
4493 (set) 2>&1 |
4494 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4495 *ac_space=\ *)
4496 # `set' does not quote correctly, so add quotes (double-quote
4497 # substitution turns \\\\ into \\, and sed turns \\ into \).
4498 sed -n \
4499 "s/'/'\\\\''/g;
4500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4503 # `set' quotes correctly as required by POSIX, so do not add quotes.
4504 sed -n \
4505 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4507 esac;
4509 sed '
4510 t clear
4511 : clear
4512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4513 t end
4514 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4515 : end' >>confcache
4516 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4517 if test -w $cache_file; then
4518 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4519 cat confcache >$cache_file
4520 else
4521 echo "not updating unwritable cache $cache_file"
4524 rm -f confcache
4526 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4527 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4528 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4529 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4530 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4531 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4532 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4533 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4534 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4535 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4536 echo "$as_me: error: libtool configure failed" >&2;}
4537 { (exit 1); exit 1; }; }
4539 # Reload cache, that may have been modified by ltconfig
4540 if test -r "$cache_file"; then
4541 # Some versions of bash will fail to source /dev/null (special
4542 # files actually), so we avoid doing that.
4543 if test -f "$cache_file"; then
4544 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4545 echo "$as_me: loading cache $cache_file" >&6;}
4546 case $cache_file in
4547 [\\/]* | ?:[\\/]* ) . $cache_file;;
4548 *) . ./$cache_file;;
4549 esac
4551 else
4552 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4553 echo "$as_me: creating cache $cache_file" >&6;}
4554 >$cache_file
4558 # This can be used to rebuild libtool when needed
4559 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4561 # Always use our own libtool.
4562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4564 # Redirect the config.log output again, so that the ltconfig log is not
4565 # clobbered by the next message.
4566 exec 5>>./config.log
4576 # Calculate toolexeclibdir
4577 # Also toolexecdir, though it's only used in toolexeclibdir
4578 case ${version_specific_libs} in
4579 yes)
4580 # Need the gcc compiler version to know where to install libraries
4581 # and header files if --enable-version-specific-runtime-libs option
4582 # is selected.
4583 toolexecdir='$(libdir)/gcc/$(target_alias)'
4584 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4587 if test -n "$with_cross_host" &&
4588 test x"$with_cross_host" != x"no"; then
4589 # Install a library built with a cross compiler in tooldir, not libdir.
4590 toolexecdir='$(exec_prefix)/$(target_alias)'
4591 toolexeclibdir='$(toolexecdir)/lib'
4592 else
4593 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4594 toolexeclibdir='$(libdir)'
4596 multi_os_directory=`$CC -print-multi-os-directory`
4597 case $multi_os_directory in
4598 .) ;; # Avoid trailing /.
4599 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4600 esac
4602 esac
4606 if test ${multilib} = yes; then
4607 multilib_arg="--enable-multilib"
4608 else
4609 multilib_arg=
4613 echo "$as_me:$LINENO: checking for egrep" >&5
4614 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4615 if test "${ac_cv_prog_egrep+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4619 then ac_cv_prog_egrep='grep -E'
4620 else ac_cv_prog_egrep='egrep'
4623 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4624 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4625 EGREP=$ac_cv_prog_egrep
4628 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4630 if test "${ac_cv_header_stdc+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 #include <stdlib.h>
4640 #include <stdarg.h>
4641 #include <string.h>
4642 #include <float.h>
4645 main ()
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_cv_header_stdc=yes
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_cv_header_stdc=no
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 if test $ac_cv_header_stdc = yes; then
4684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 #include <string.h>
4693 _ACEOF
4694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4695 $EGREP "memchr" >/dev/null 2>&1; then
4697 else
4698 ac_cv_header_stdc=no
4700 rm -f conftest*
4704 if test $ac_cv_header_stdc = yes; then
4705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <stdlib.h>
4714 _ACEOF
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716 $EGREP "free" >/dev/null 2>&1; then
4718 else
4719 ac_cv_header_stdc=no
4721 rm -f conftest*
4725 if test $ac_cv_header_stdc = yes; then
4726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4727 if test "$cross_compiling" = yes; then
4729 else
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 #include <ctype.h>
4737 #if ((' ' & 0x0FF) == 0x020)
4738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4740 #else
4741 # define ISLOWER(c) \
4742 (('a' <= (c) && (c) <= 'i') \
4743 || ('j' <= (c) && (c) <= 'r') \
4744 || ('s' <= (c) && (c) <= 'z'))
4745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4746 #endif
4748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4750 main ()
4752 int i;
4753 for (i = 0; i < 256; i++)
4754 if (XOR (islower (i), ISLOWER (i))
4755 || toupper (i) != TOUPPER (i))
4756 exit(2);
4757 exit (0);
4759 _ACEOF
4760 rm -f conftest$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762 (eval $ac_link) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4772 else
4773 echo "$as_me: program exited with status $ac_status" >&5
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 ( exit $ac_status )
4778 ac_cv_header_stdc=no
4780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4784 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4785 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4786 if test $ac_cv_header_stdc = yes; then
4788 cat >>confdefs.h <<\_ACEOF
4789 #define STDC_HEADERS 1
4790 _ACEOF
4794 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4804 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4805 inttypes.h stdint.h unistd.h
4807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4808 echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 $ac_includes_default
4821 #include <$ac_header>
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -z "$ac_c_werror_flag"
4833 || test ! -s conftest.err'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 eval "$as_ac_Header=yes"
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 eval "$as_ac_Header=no"
4852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 _ACEOF
4863 done
4868 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
4870 acx_cv_header_stdint=stddef.h
4871 acx_cv_header_stdint_kind="(already complete)"
4872 for i in stdint.h $inttype_headers; do
4873 unset ac_cv_type_uintptr_t
4874 unset ac_cv_type_uintmax_t
4875 unset ac_cv_type_int_least32_t
4876 unset ac_cv_type_int_fast32_t
4877 unset ac_cv_type_uint64_t
4878 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
4879 echo "$as_me:$LINENO: checking for uintmax_t" >&5
4880 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4881 if test "${ac_cv_type_uintmax_t+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <sys/types.h>
4891 #include <$i>
4894 main ()
4896 if ((uintmax_t *) 0)
4897 return 0;
4898 if (sizeof (uintmax_t))
4899 return 0;
4901 return 0;
4903 _ACEOF
4904 rm -f conftest.$ac_objext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_type_uintmax_t=yes
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 ac_cv_type_uintmax_t=no
4933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4935 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
4936 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4937 if test $ac_cv_type_uintmax_t = yes; then
4938 acx_cv_header_stdint=$i
4939 else
4940 continue
4943 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4944 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4945 if test "${ac_cv_type_uintptr_t+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 #include <sys/types.h>
4955 #include <$i>
4958 main ()
4960 if ((uintptr_t *) 0)
4961 return 0;
4962 if (sizeof (uintptr_t))
4963 return 0;
4965 return 0;
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_type_uintptr_t=yes
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 ac_cv_type_uintptr_t=no
4997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5000 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5001 if test $ac_cv_type_uintptr_t = yes; then
5003 else
5004 acx_cv_header_stdint_kind="(mostly complete)"
5007 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5008 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5009 if test "${ac_cv_type_int_least32_t+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <sys/types.h>
5019 #include <$i>
5022 main ()
5024 if ((int_least32_t *) 0)
5025 return 0;
5026 if (sizeof (int_least32_t))
5027 return 0;
5029 return 0;
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_type_int_least32_t=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_cv_type_int_least32_t=no
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5064 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5065 if test $ac_cv_type_int_least32_t = yes; then
5067 else
5068 acx_cv_header_stdint_kind="(mostly complete)"
5071 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5072 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5073 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 #include <sys/types.h>
5083 #include <$i>
5086 main ()
5088 if ((int_fast32_t *) 0)
5089 return 0;
5090 if (sizeof (int_fast32_t))
5091 return 0;
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098 (eval $ac_compile) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest.$ac_objext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_type_int_fast32_t=yes
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 ac_cv_type_int_fast32_t=no
5125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5128 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5129 if test $ac_cv_type_int_fast32_t = yes; then
5131 else
5132 acx_cv_header_stdint_kind="(mostly complete)"
5135 echo "$as_me:$LINENO: checking for uint64_t" >&5
5136 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5137 if test "${ac_cv_type_uint64_t+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 #include <sys/types.h>
5147 #include <$i>
5150 main ()
5152 if ((uint64_t *) 0)
5153 return 0;
5154 if (sizeof (uint64_t))
5155 return 0;
5157 return 0;
5159 _ACEOF
5160 rm -f conftest.$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>conftest.er1
5163 ac_status=$?
5164 grep -v '^ *+' conftest.er1 >conftest.err
5165 rm -f conftest.er1
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -z "$ac_c_werror_flag"
5170 || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_type_uint64_t=yes
5183 else
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_cv_type_uint64_t=no
5189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5192 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5193 if test $ac_cv_type_uint64_t = yes; then
5195 else
5196 acx_cv_header_stdint_kind="(lacks uint64_t)"
5199 break
5200 done
5201 if test "$acx_cv_header_stdint" = stddef.h; then
5202 acx_cv_header_stdint_kind="(lacks uintptr_t)"
5203 for i in stdint.h $inttype_headers; do
5204 unset ac_cv_type_uint32_t
5205 unset ac_cv_type_uint64_t
5206 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5207 echo "$as_me:$LINENO: checking for uint32_t" >&5
5208 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5209 if test "${ac_cv_type_uint32_t+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 #include <sys/types.h>
5219 #include <$i>
5222 main ()
5224 if ((uint32_t *) 0)
5225 return 0;
5226 if (sizeof (uint32_t))
5227 return 0;
5229 return 0;
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_type_uint32_t=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_type_uint32_t=no
5261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5264 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5265 if test $ac_cv_type_uint32_t = yes; then
5266 acx_cv_header_stdint=$i
5267 else
5268 continue
5271 echo "$as_me:$LINENO: checking for uint64_t" >&5
5272 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5273 if test "${ac_cv_type_uint64_t+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <sys/types.h>
5283 #include <$i>
5286 main ()
5288 if ((uint64_t *) 0)
5289 return 0;
5290 if (sizeof (uint64_t))
5291 return 0;
5293 return 0;
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298 (eval $ac_compile) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag"
5306 || test ! -s conftest.err'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; } &&
5312 { ac_try='test -s conftest.$ac_objext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 ac_cv_type_uint64_t=yes
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_cv_type_uint64_t=no
5325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5327 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5328 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5329 if test $ac_cv_type_uint64_t = yes; then
5331 else
5332 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
5335 break
5336 done
5338 if test "$acx_cv_header_stdint" = stddef.h; then
5339 acx_cv_header_stdint_kind="(u_intXX_t style)"
5340 for i in sys/types.h $inttype_headers; do
5341 unset ac_cv_type_u_int32_t
5342 unset ac_cv_type_u_int64_t
5343 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
5344 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5345 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5346 if test "${ac_cv_type_u_int32_t+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h. */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5355 #include <sys/types.h>
5356 #include <$i>
5359 main ()
5361 if ((u_int32_t *) 0)
5362 return 0;
5363 if (sizeof (u_int32_t))
5364 return 0;
5366 return 0;
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -z "$ac_c_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_cv_type_u_int32_t=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_cv_type_u_int32_t=no
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5400 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5401 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5402 if test $ac_cv_type_u_int32_t = yes; then
5403 acx_cv_header_stdint=$i
5404 else
5405 continue
5408 echo "$as_me:$LINENO: checking for u_int64_t" >&5
5409 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5410 if test "${ac_cv_type_u_int64_t+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 #include <sys/types.h>
5420 #include <$i>
5423 main ()
5425 if ((u_int64_t *) 0)
5426 return 0;
5427 if (sizeof (u_int64_t))
5428 return 0;
5430 return 0;
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag"
5443 || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_type_u_int64_t=yes
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ac_cv_type_u_int64_t=no
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5465 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5466 if test $ac_cv_type_u_int64_t = yes; then
5468 else
5469 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
5472 break
5473 done
5475 if test "$acx_cv_header_stdint" = stddef.h; then
5476 acx_cv_header_stdint_kind="(using manual detection)"
5479 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
5480 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
5481 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
5482 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
5483 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
5485 # ----------------- Summarize what we found so far
5487 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
5488 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
5490 case `$as_basename gstdint.h ||
5491 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
5492 Xgstdint.h : 'X\(//\)$' \| \
5493 Xgstdint.h : 'X\(/\)$' \| \
5494 . : '\(.\)' 2>/dev/null ||
5495 echo X/gstdint.h |
5496 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5497 /^X\/\(\/\/\)$/{ s//\1/; q; }
5498 /^X\/\(\/\).*/{ s//\1/; q; }
5499 s/.*/./; q'` in
5500 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
5501 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
5502 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
5503 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
5504 *) ;;
5505 esac
5507 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
5508 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
5510 # ----------------- done included file, check C basic types --------
5512 # Lacking an uintptr_t? Test size of void *
5513 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
5514 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
5515 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5516 if test "${ac_cv_type_void_p+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 $ac_includes_default
5527 main ()
5529 if ((void * *) 0)
5530 return 0;
5531 if (sizeof (void *))
5532 return 0;
5534 return 0;
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_type_void_p=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_cv_type_void_p=no
5566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5568 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5569 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5571 echo "$as_me:$LINENO: checking size of void *" >&5
5572 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5573 if test "${ac_cv_sizeof_void_p+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 if test "$ac_cv_type_void_p" = yes; then
5577 # The cast to unsigned long works around a bug in the HP C Compiler
5578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5580 # This bug is HP SR number 8606223364.
5581 if test "$cross_compiling" = yes; then
5582 # Depending upon the size, compute the lo and hi bounds.
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 $ac_includes_default
5591 main ()
5593 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5594 test_array [0] = 0
5597 return 0;
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_lo=0 ac_mid=0
5623 while :; do
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 $ac_includes_default
5632 main ()
5634 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5635 test_array [0] = 0
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_hi=$ac_mid; break
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ac_lo=`expr $ac_mid + 1`
5669 if test $ac_lo -le $ac_mid; then
5670 ac_lo= ac_hi=
5671 break
5673 ac_mid=`expr 2 '*' $ac_mid + 1`
5675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5676 done
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5689 main ()
5691 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5692 test_array [0] = 0
5695 return 0;
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest.$ac_objext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_hi=-1 ac_mid=-1
5721 while :; do
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 $ac_includes_default
5730 main ()
5732 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5733 test_array [0] = 0
5736 return 0;
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741 (eval $ac_compile) 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag"
5749 || test ! -s conftest.err'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; } &&
5755 { ac_try='test -s conftest.$ac_objext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_lo=$ac_mid; break
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5766 ac_hi=`expr '(' $ac_mid ')' - 1`
5767 if test $ac_mid -le $ac_hi; then
5768 ac_lo= ac_hi=
5769 break
5771 ac_mid=`expr 2 '*' $ac_mid`
5773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774 done
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_lo= ac_hi=
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5784 # Binary search between lo and hi bounds.
5785 while test "x$ac_lo" != "x$ac_hi"; do
5786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5795 main ()
5797 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5798 test_array [0] = 0
5801 return 0;
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806 (eval $ac_compile) 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest.$ac_objext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_hi=$ac_mid
5827 else
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 ac_lo=`expr '(' $ac_mid ')' + 1`
5833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834 done
5835 case $ac_lo in
5836 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5837 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5838 See \`config.log' for more details." >&5
5839 echo "$as_me: error: cannot compute sizeof (void *), 77
5840 See \`config.log' for more details." >&2;}
5841 { (exit 1); exit 1; }; } ;;
5842 esac
5843 else
5844 if test "$cross_compiling" = yes; then
5845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5846 See \`config.log' for more details." >&5
5847 echo "$as_me: error: cannot run test program while cross compiling
5848 See \`config.log' for more details." >&2;}
5849 { (exit 1); exit 1; }; }
5850 else
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5858 long longval () { return (long) (sizeof (void *)); }
5859 unsigned long ulongval () { return (long) (sizeof (void *)); }
5860 #include <stdio.h>
5861 #include <stdlib.h>
5863 main ()
5866 FILE *f = fopen ("conftest.val", "w");
5867 if (! f)
5868 exit (1);
5869 if (((long) (sizeof (void *))) < 0)
5871 long i = longval ();
5872 if (i != ((long) (sizeof (void *))))
5873 exit (1);
5874 fprintf (f, "%ld\n", i);
5876 else
5878 unsigned long i = ulongval ();
5879 if (i != ((long) (sizeof (void *))))
5880 exit (1);
5881 fprintf (f, "%lu\n", i);
5883 exit (ferror (f) || fclose (f) != 0);
5886 return 0;
5888 _ACEOF
5889 rm -f conftest$ac_exeext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5891 (eval $ac_link) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 ac_cv_sizeof_void_p=`cat conftest.val`
5901 else
5902 echo "$as_me: program exited with status $ac_status" >&5
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 ( exit $ac_status )
5907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5908 See \`config.log' for more details." >&5
5909 echo "$as_me: error: cannot compute sizeof (void *), 77
5910 See \`config.log' for more details." >&2;}
5911 { (exit 1); exit 1; }; }
5913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5916 rm -f conftest.val
5917 else
5918 ac_cv_sizeof_void_p=0
5921 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5922 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5923 cat >>confdefs.h <<_ACEOF
5924 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5925 _ACEOF
5928 esac
5930 # Lacking an uint64_t? Test size of long
5931 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
5932 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
5933 echo $ECHO_N "checking for long... $ECHO_C" >&6
5934 if test "${ac_cv_type_long+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h. */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5945 main ()
5947 if ((long *) 0)
5948 return 0;
5949 if (sizeof (long))
5950 return 0;
5952 return 0;
5954 _ACEOF
5955 rm -f conftest.$ac_objext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5957 (eval $ac_compile) 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } &&
5964 { ac_try='test -z "$ac_c_werror_flag"
5965 || test ! -s conftest.err'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 (eval $ac_try) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; } &&
5971 { ac_try='test -s conftest.$ac_objext'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 (eval $ac_try) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_type_long=yes
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_cv_type_long=no
5984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5987 echo "${ECHO_T}$ac_cv_type_long" >&6
5989 echo "$as_me:$LINENO: checking size of long" >&5
5990 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5991 if test "${ac_cv_sizeof_long+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 if test "$ac_cv_type_long" = yes; then
5995 # The cast to unsigned long works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 if test "$cross_compiling" = yes; then
6000 # Depending upon the size, compute the lo and hi bounds.
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 $ac_includes_default
6009 main ()
6011 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6012 test_array [0] = 0
6015 return 0;
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -z "$ac_c_werror_flag"
6028 || test ! -s conftest.err'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 ac_lo=0 ac_mid=0
6041 while :; do
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6050 main ()
6052 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6053 test_array [0] = 0
6056 return 0;
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_hi=$ac_mid; break
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_lo=`expr $ac_mid + 1`
6087 if test $ac_lo -le $ac_mid; then
6088 ac_lo= ac_hi=
6089 break
6091 ac_mid=`expr 2 '*' $ac_mid + 1`
6093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6094 done
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 $ac_includes_default
6107 main ()
6109 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6110 test_array [0] = 0
6113 return 0;
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_c_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_hi=-1 ac_mid=-1
6139 while :; do
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 $ac_includes_default
6148 main ()
6150 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6151 test_array [0] = 0
6154 return 0;
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_lo=$ac_mid; break
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 ac_hi=`expr '(' $ac_mid ')' - 1`
6185 if test $ac_mid -le $ac_hi; then
6186 ac_lo= ac_hi=
6187 break
6189 ac_mid=`expr 2 '*' $ac_mid`
6191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6192 done
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 ac_lo= ac_hi=
6199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202 # Binary search between lo and hi bounds.
6203 while test "x$ac_lo" != "x$ac_hi"; do
6204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6213 main ()
6215 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6216 test_array [0] = 0
6219 return 0;
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224 (eval $ac_compile) 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -z "$ac_c_werror_flag"
6232 || test ! -s conftest.err'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; } &&
6238 { ac_try='test -s conftest.$ac_objext'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6244 ac_hi=$ac_mid
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 ac_lo=`expr '(' $ac_mid ')' + 1`
6251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252 done
6253 case $ac_lo in
6254 ?*) ac_cv_sizeof_long=$ac_lo;;
6255 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6256 See \`config.log' for more details." >&5
6257 echo "$as_me: error: cannot compute sizeof (long), 77
6258 See \`config.log' for more details." >&2;}
6259 { (exit 1); exit 1; }; } ;;
6260 esac
6261 else
6262 if test "$cross_compiling" = yes; then
6263 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6264 See \`config.log' for more details." >&5
6265 echo "$as_me: error: cannot run test program while cross compiling
6266 See \`config.log' for more details." >&2;}
6267 { (exit 1); exit 1; }; }
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6276 long longval () { return (long) (sizeof (long)); }
6277 unsigned long ulongval () { return (long) (sizeof (long)); }
6278 #include <stdio.h>
6279 #include <stdlib.h>
6281 main ()
6284 FILE *f = fopen ("conftest.val", "w");
6285 if (! f)
6286 exit (1);
6287 if (((long) (sizeof (long))) < 0)
6289 long i = longval ();
6290 if (i != ((long) (sizeof (long))))
6291 exit (1);
6292 fprintf (f, "%ld\n", i);
6294 else
6296 unsigned long i = ulongval ();
6297 if (i != ((long) (sizeof (long))))
6298 exit (1);
6299 fprintf (f, "%lu\n", i);
6301 exit (ferror (f) || fclose (f) != 0);
6304 return 0;
6306 _ACEOF
6307 rm -f conftest$ac_exeext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6309 (eval $ac_link) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_sizeof_long=`cat conftest.val`
6319 else
6320 echo "$as_me: program exited with status $ac_status" >&5
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 ( exit $ac_status )
6325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6326 See \`config.log' for more details." >&5
6327 echo "$as_me: error: cannot compute sizeof (long), 77
6328 See \`config.log' for more details." >&2;}
6329 { (exit 1); exit 1; }; }
6331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6334 rm -f conftest.val
6335 else
6336 ac_cv_sizeof_long=0
6339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6340 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6341 cat >>confdefs.h <<_ACEOF
6342 #define SIZEOF_LONG $ac_cv_sizeof_long
6343 _ACEOF
6346 esac
6348 if test $acx_cv_header_stdint = stddef.h; then
6349 # Lacking a good header? Test size of everything and deduce all types.
6350 echo "$as_me:$LINENO: checking for int" >&5
6351 echo $ECHO_N "checking for int... $ECHO_C" >&6
6352 if test "${ac_cv_type_int+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 $ac_includes_default
6363 main ()
6365 if ((int *) 0)
6366 return 0;
6367 if (sizeof (int))
6368 return 0;
6370 return 0;
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_cv_type_int=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_cv_type_int=no
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6404 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6405 echo "${ECHO_T}$ac_cv_type_int" >&6
6407 echo "$as_me:$LINENO: checking size of int" >&5
6408 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6409 if test "${ac_cv_sizeof_int+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 if test "$ac_cv_type_int" = yes; then
6413 # The cast to unsigned long works around a bug in the HP C Compiler
6414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6416 # This bug is HP SR number 8606223364.
6417 if test "$cross_compiling" = yes; then
6418 # Depending upon the size, compute the lo and hi bounds.
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6427 main ()
6429 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6430 test_array [0] = 0
6433 return 0;
6435 _ACEOF
6436 rm -f conftest.$ac_objext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438 (eval $ac_compile) 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_c_werror_flag"
6446 || test ! -s conftest.err'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; } &&
6452 { ac_try='test -s conftest.$ac_objext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 ac_lo=0 ac_mid=0
6459 while :; do
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6468 main ()
6470 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6471 test_array [0] = 0
6474 return 0;
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_hi=$ac_mid; break
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_lo=`expr $ac_mid + 1`
6505 if test $ac_lo -le $ac_mid; then
6506 ac_lo= ac_hi=
6507 break
6509 ac_mid=`expr 2 '*' $ac_mid + 1`
6511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6512 done
6513 else
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 $ac_includes_default
6525 main ()
6527 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6528 test_array [0] = 0
6531 return 0;
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_hi=-1 ac_mid=-1
6557 while :; do
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 $ac_includes_default
6566 main ()
6568 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6569 test_array [0] = 0
6572 return 0;
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -z "$ac_c_werror_flag"
6585 || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try='test -s conftest.$ac_objext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_lo=$ac_mid; break
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 ac_hi=`expr '(' $ac_mid ')' - 1`
6603 if test $ac_mid -le $ac_hi; then
6604 ac_lo= ac_hi=
6605 break
6607 ac_mid=`expr 2 '*' $ac_mid`
6609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6610 done
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_lo= ac_hi=
6617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 # Binary search between lo and hi bounds.
6621 while test "x$ac_lo" != "x$ac_hi"; do
6622 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6623 cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h. */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6631 main ()
6633 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6634 test_array [0] = 0
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_hi=$ac_mid
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_lo=`expr '(' $ac_mid ')' + 1`
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670 done
6671 case $ac_lo in
6672 ?*) ac_cv_sizeof_int=$ac_lo;;
6673 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6674 See \`config.log' for more details." >&5
6675 echo "$as_me: error: cannot compute sizeof (int), 77
6676 See \`config.log' for more details." >&2;}
6677 { (exit 1); exit 1; }; } ;;
6678 esac
6679 else
6680 if test "$cross_compiling" = yes; then
6681 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6682 See \`config.log' for more details." >&5
6683 echo "$as_me: error: cannot run test program while cross compiling
6684 See \`config.log' for more details." >&2;}
6685 { (exit 1); exit 1; }; }
6686 else
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 $ac_includes_default
6694 long longval () { return (long) (sizeof (int)); }
6695 unsigned long ulongval () { return (long) (sizeof (int)); }
6696 #include <stdio.h>
6697 #include <stdlib.h>
6699 main ()
6702 FILE *f = fopen ("conftest.val", "w");
6703 if (! f)
6704 exit (1);
6705 if (((long) (sizeof (int))) < 0)
6707 long i = longval ();
6708 if (i != ((long) (sizeof (int))))
6709 exit (1);
6710 fprintf (f, "%ld\n", i);
6712 else
6714 unsigned long i = ulongval ();
6715 if (i != ((long) (sizeof (int))))
6716 exit (1);
6717 fprintf (f, "%lu\n", i);
6719 exit (ferror (f) || fclose (f) != 0);
6722 return 0;
6724 _ACEOF
6725 rm -f conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_cv_sizeof_int=`cat conftest.val`
6737 else
6738 echo "$as_me: program exited with status $ac_status" >&5
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ( exit $ac_status )
6743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6744 See \`config.log' for more details." >&5
6745 echo "$as_me: error: cannot compute sizeof (int), 77
6746 See \`config.log' for more details." >&2;}
6747 { (exit 1); exit 1; }; }
6749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6752 rm -f conftest.val
6753 else
6754 ac_cv_sizeof_int=0
6757 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6758 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6759 cat >>confdefs.h <<_ACEOF
6760 #define SIZEOF_INT $ac_cv_sizeof_int
6761 _ACEOF
6764 echo "$as_me:$LINENO: checking for short" >&5
6765 echo $ECHO_N "checking for short... $ECHO_C" >&6
6766 if test "${ac_cv_type_short+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_includes_default
6777 main ()
6779 if ((short *) 0)
6780 return 0;
6781 if (sizeof (short))
6782 return 0;
6784 return 0;
6786 _ACEOF
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 (eval $ac_compile) 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_cv_type_short=yes
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_cv_type_short=no
6816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6819 echo "${ECHO_T}$ac_cv_type_short" >&6
6821 echo "$as_me:$LINENO: checking size of short" >&5
6822 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6823 if test "${ac_cv_sizeof_short+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 if test "$ac_cv_type_short" = yes; then
6827 # The cast to unsigned long works around a bug in the HP C Compiler
6828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6830 # This bug is HP SR number 8606223364.
6831 if test "$cross_compiling" = yes; then
6832 # Depending upon the size, compute the lo and hi bounds.
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6841 main ()
6843 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6844 test_array [0] = 0
6847 return 0;
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_c_werror_flag"
6860 || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_lo=0 ac_mid=0
6873 while :; do
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_includes_default
6882 main ()
6884 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6885 test_array [0] = 0
6888 return 0;
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893 (eval $ac_compile) 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 ac_hi=$ac_mid; break
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 ac_lo=`expr $ac_mid + 1`
6919 if test $ac_lo -le $ac_mid; then
6920 ac_lo= ac_hi=
6921 break
6923 ac_mid=`expr 2 '*' $ac_mid + 1`
6925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6926 done
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6939 main ()
6941 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6942 test_array [0] = 0
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6950 (eval $ac_compile) 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -z "$ac_c_werror_flag"
6958 || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest.$ac_objext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_hi=-1 ac_mid=-1
6971 while :; do
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6980 main ()
6982 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6983 test_array [0] = 0
6986 return 0;
6988 _ACEOF
6989 rm -f conftest.$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest.$ac_objext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_lo=$ac_mid; break
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_hi=`expr '(' $ac_mid ')' - 1`
7017 if test $ac_mid -le $ac_hi; then
7018 ac_lo= ac_hi=
7019 break
7021 ac_mid=`expr 2 '*' $ac_mid`
7023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7024 done
7025 else
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_lo= ac_hi=
7031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034 # Binary search between lo and hi bounds.
7035 while test "x$ac_lo" != "x$ac_hi"; do
7036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 $ac_includes_default
7045 main ()
7047 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7048 test_array [0] = 0
7051 return 0;
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest.$ac_objext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_hi=$ac_mid
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7081 ac_lo=`expr '(' $ac_mid ')' + 1`
7083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084 done
7085 case $ac_lo in
7086 ?*) ac_cv_sizeof_short=$ac_lo;;
7087 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7088 See \`config.log' for more details." >&5
7089 echo "$as_me: error: cannot compute sizeof (short), 77
7090 See \`config.log' for more details." >&2;}
7091 { (exit 1); exit 1; }; } ;;
7092 esac
7093 else
7094 if test "$cross_compiling" = yes; then
7095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7096 See \`config.log' for more details." >&5
7097 echo "$as_me: error: cannot run test program while cross compiling
7098 See \`config.log' for more details." >&2;}
7099 { (exit 1); exit 1; }; }
7100 else
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 $ac_includes_default
7108 long longval () { return (long) (sizeof (short)); }
7109 unsigned long ulongval () { return (long) (sizeof (short)); }
7110 #include <stdio.h>
7111 #include <stdlib.h>
7113 main ()
7116 FILE *f = fopen ("conftest.val", "w");
7117 if (! f)
7118 exit (1);
7119 if (((long) (sizeof (short))) < 0)
7121 long i = longval ();
7122 if (i != ((long) (sizeof (short))))
7123 exit (1);
7124 fprintf (f, "%ld\n", i);
7126 else
7128 unsigned long i = ulongval ();
7129 if (i != ((long) (sizeof (short))))
7130 exit (1);
7131 fprintf (f, "%lu\n", i);
7133 exit (ferror (f) || fclose (f) != 0);
7136 return 0;
7138 _ACEOF
7139 rm -f conftest$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_sizeof_short=`cat conftest.val`
7151 else
7152 echo "$as_me: program exited with status $ac_status" >&5
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ( exit $ac_status )
7157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7158 See \`config.log' for more details." >&5
7159 echo "$as_me: error: cannot compute sizeof (short), 77
7160 See \`config.log' for more details." >&2;}
7161 { (exit 1); exit 1; }; }
7163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166 rm -f conftest.val
7167 else
7168 ac_cv_sizeof_short=0
7171 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7172 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7173 cat >>confdefs.h <<_ACEOF
7174 #define SIZEOF_SHORT $ac_cv_sizeof_short
7175 _ACEOF
7178 echo "$as_me:$LINENO: checking for char" >&5
7179 echo $ECHO_N "checking for char... $ECHO_C" >&6
7180 if test "${ac_cv_type_char+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 $ac_includes_default
7191 main ()
7193 if ((char *) 0)
7194 return 0;
7195 if (sizeof (char))
7196 return 0;
7198 return 0;
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } &&
7210 { ac_try='test -z "$ac_c_werror_flag"
7211 || test ! -s conftest.err'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 (eval $ac_try) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; } &&
7217 { ac_try='test -s conftest.$ac_objext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_cv_type_char=yes
7224 else
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 ac_cv_type_char=no
7230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7232 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7233 echo "${ECHO_T}$ac_cv_type_char" >&6
7235 echo "$as_me:$LINENO: checking size of char" >&5
7236 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7237 if test "${ac_cv_sizeof_char+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240 if test "$ac_cv_type_char" = yes; then
7241 # The cast to unsigned long works around a bug in the HP C Compiler
7242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7244 # This bug is HP SR number 8606223364.
7245 if test "$cross_compiling" = yes; then
7246 # Depending upon the size, compute the lo and hi bounds.
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7255 main ()
7257 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7258 test_array [0] = 0
7261 return 0;
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -z "$ac_c_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_lo=0 ac_mid=0
7287 while :; do
7288 cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h. */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 $ac_includes_default
7296 main ()
7298 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7299 test_array [0] = 0
7302 return 0;
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7307 (eval $ac_compile) 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try='test -z "$ac_c_werror_flag"
7315 || test ! -s conftest.err'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 ac_hi=$ac_mid; break
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_lo=`expr $ac_mid + 1`
7333 if test $ac_lo -le $ac_mid; then
7334 ac_lo= ac_hi=
7335 break
7337 ac_mid=`expr 2 '*' $ac_mid + 1`
7339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7340 done
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h. */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7351 $ac_includes_default
7353 main ()
7355 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7356 test_array [0] = 0
7359 return 0;
7361 _ACEOF
7362 rm -f conftest.$ac_objext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -z "$ac_c_werror_flag"
7372 || test ! -s conftest.err'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest.$ac_objext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 ac_hi=-1 ac_mid=-1
7385 while :; do
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7394 main ()
7396 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7397 test_array [0] = 0
7400 return 0;
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -z "$ac_c_werror_flag"
7413 || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_lo=$ac_mid; break
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 ac_hi=`expr '(' $ac_mid ')' - 1`
7431 if test $ac_mid -le $ac_hi; then
7432 ac_lo= ac_hi=
7433 break
7435 ac_mid=`expr 2 '*' $ac_mid`
7437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7438 done
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_lo= ac_hi=
7445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448 # Binary search between lo and hi bounds.
7449 while test "x$ac_lo" != "x$ac_hi"; do
7450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7459 main ()
7461 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7462 test_array [0] = 0
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_hi=$ac_mid
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_lo=`expr '(' $ac_mid ')' + 1`
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498 done
7499 case $ac_lo in
7500 ?*) ac_cv_sizeof_char=$ac_lo;;
7501 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7502 See \`config.log' for more details." >&5
7503 echo "$as_me: error: cannot compute sizeof (char), 77
7504 See \`config.log' for more details." >&2;}
7505 { (exit 1); exit 1; }; } ;;
7506 esac
7507 else
7508 if test "$cross_compiling" = yes; then
7509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7510 See \`config.log' for more details." >&5
7511 echo "$as_me: error: cannot run test program while cross compiling
7512 See \`config.log' for more details." >&2;}
7513 { (exit 1); exit 1; }; }
7514 else
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h. */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7522 long longval () { return (long) (sizeof (char)); }
7523 unsigned long ulongval () { return (long) (sizeof (char)); }
7524 #include <stdio.h>
7525 #include <stdlib.h>
7527 main ()
7530 FILE *f = fopen ("conftest.val", "w");
7531 if (! f)
7532 exit (1);
7533 if (((long) (sizeof (char))) < 0)
7535 long i = longval ();
7536 if (i != ((long) (sizeof (char))))
7537 exit (1);
7538 fprintf (f, "%ld\n", i);
7540 else
7542 unsigned long i = ulongval ();
7543 if (i != ((long) (sizeof (char))))
7544 exit (1);
7545 fprintf (f, "%lu\n", i);
7547 exit (ferror (f) || fclose (f) != 0);
7550 return 0;
7552 _ACEOF
7553 rm -f conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 ac_cv_sizeof_char=`cat conftest.val`
7565 else
7566 echo "$as_me: program exited with status $ac_status" >&5
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ( exit $ac_status )
7571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7572 See \`config.log' for more details." >&5
7573 echo "$as_me: error: cannot compute sizeof (char), 77
7574 See \`config.log' for more details." >&2;}
7575 { (exit 1); exit 1; }; }
7577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7580 rm -f conftest.val
7581 else
7582 ac_cv_sizeof_char=0
7585 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7586 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
7587 cat >>confdefs.h <<_ACEOF
7588 #define SIZEOF_CHAR $ac_cv_sizeof_char
7589 _ACEOF
7593 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
7594 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
7595 case "$ac_cv_sizeof_char" in
7596 1) acx_cv_type_int8_t=char ;;
7597 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
7598 echo "$as_me: error: no 8-bit type" >&2;}
7599 { (exit please report a bug); exit please report a bug; }; }
7600 esac
7601 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
7602 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
7604 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
7605 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
7606 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
7607 2:*) acx_cv_type_int16_t=int ;;
7608 *:2) acx_cv_type_int16_t=short ;;
7609 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
7610 echo "$as_me: error: no 16-bit type" >&2;}
7611 { (exit please report a bug); exit please report a bug; }; }
7612 esac
7613 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
7614 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
7616 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
7617 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
7618 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
7619 4:*) acx_cv_type_int32_t=int ;;
7620 *:4) acx_cv_type_int32_t=long ;;
7621 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
7622 echo "$as_me: error: no 32-bit type" >&2;}
7623 { (exit please report a bug); exit please report a bug; }; }
7624 esac
7625 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
7626 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
7629 # These tests are here to make the output prettier
7631 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
7632 case "$ac_cv_sizeof_long" in
7633 8) acx_cv_type_int64_t=long ;;
7634 esac
7635 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
7636 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
7637 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
7638 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
7641 # Now we can use the above types
7643 if test "$ac_cv_type_uintptr_t" != yes; then
7644 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
7645 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
7646 case $ac_cv_sizeof_void_p in
7647 2) acx_cv_type_intptr_t=int16_t ;;
7648 4) acx_cv_type_intptr_t=int32_t ;;
7649 8) acx_cv_type_intptr_t=int64_t ;;
7650 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
7651 echo "$as_me: error: no equivalent for intptr_t" >&2;}
7652 { (exit please report a bug); exit please report a bug; }; }
7653 esac
7654 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
7655 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
7658 # ----------------- done all checks, emit header -------------
7659 ac_config_commands="$ac_config_commands gstdint.h"
7664 # Check for target library dependencies
7665 cannot_build=no
7667 echo "$as_me:$LINENO: checking whether math.h conflicts with defining __isinf" >&5
7668 echo $ECHO_N "checking whether math.h conflicts with defining __isinf... $ECHO_C" >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7676 #include "math.h"
7677 int __isinf (double x)
7682 main ()
7685 return __isinf (1.0);
7688 return 0;
7690 _ACEOF
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest$ac_exeext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7714 echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7722 echo "$as_me:$LINENO: result: yes" >&5
7723 echo "${ECHO_T}yes" >&6
7724 cannot_build=yes
7727 rm -f conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7731 # Now check which parts we include in the library.
7733 arch_subdirs=
7734 case "${target}" in
7735 i?86-* | x86_64-* )
7736 # Handle multilib cases
7737 if test "x$target_ilp32" = xyes; then
7738 arch_subdirs="i386"
7739 arch_libraries="i386/libsse2.la"
7740 arch_maps="i386/sse2.map"
7741 fi ;;
7744 esac
7748 if test "$cannot_build" = "yes"; then
7749 arch_subdirs=
7753 if test "x$arch_subdirs" != x; then
7754 BUILD_LIBGCC_MATH_TRUE=
7755 BUILD_LIBGCC_MATH_FALSE='#'
7756 else
7757 BUILD_LIBGCC_MATH_TRUE='#'
7758 BUILD_LIBGCC_MATH_FALSE=
7763 ac_config_files="$ac_config_files Makefile i386/Makefile"
7765 cat >confcache <<\_ACEOF
7766 # This file is a shell script that caches the results of configure
7767 # tests run on this system so they can be shared between configure
7768 # scripts and configure runs, see configure's option --config-cache.
7769 # It is not useful on other systems. If it contains results you don't
7770 # want to keep, you may remove or edit it.
7772 # config.status only pays attention to the cache file if you give it
7773 # the --recheck option to rerun configure.
7775 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7776 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7777 # following values.
7779 _ACEOF
7781 # The following way of writing the cache mishandles newlines in values,
7782 # but we know of no workaround that is simple, portable, and efficient.
7783 # So, don't put newlines in cache variables' values.
7784 # Ultrix sh set writes to stderr and can't be redirected directly,
7785 # and sets the high bit in the cache file unless we assign to the vars.
7787 (set) 2>&1 |
7788 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7789 *ac_space=\ *)
7790 # `set' does not quote correctly, so add quotes (double-quote
7791 # substitution turns \\\\ into \\, and sed turns \\ into \).
7792 sed -n \
7793 "s/'/'\\\\''/g;
7794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7797 # `set' quotes correctly as required by POSIX, so do not add quotes.
7798 sed -n \
7799 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7801 esac;
7803 sed '
7804 t clear
7805 : clear
7806 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7807 t end
7808 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7809 : end' >>confcache
7810 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7811 if test -w $cache_file; then
7812 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7813 cat confcache >$cache_file
7814 else
7815 echo "not updating unwritable cache $cache_file"
7818 rm -f confcache
7820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7821 # Let make expand exec_prefix.
7822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7824 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7825 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7826 # trailing colons and then remove the whole line if VPATH becomes empty
7827 # (actually we leave an empty line to preserve line numbers).
7828 if test "x$srcdir" = x.; then
7829 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7830 s/:*\$(srcdir):*/:/;
7831 s/:*\${srcdir}:*/:/;
7832 s/:*@srcdir@:*/:/;
7833 s/^\([^=]*=[ ]*\):*/\1/;
7834 s/:*$//;
7835 s/^[^=]*=[ ]*$//;
7839 # Transform confdefs.h into DEFS.
7840 # Protect against shell expansion while executing Makefile rules.
7841 # Protect against Makefile macro expansion.
7843 # If the first sed substitution is executed (which looks for macros that
7844 # take arguments), then we branch to the quote section. Otherwise,
7845 # look for a macro that doesn't take arguments.
7846 cat >confdef2opt.sed <<\_ACEOF
7847 t clear
7848 : clear
7849 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7850 t quote
7851 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7852 t quote
7854 : quote
7855 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7856 s,\[,\\&,g
7857 s,\],\\&,g
7858 s,\$,$$,g
7860 _ACEOF
7861 # We use echo to avoid assuming a particular line-breaking character.
7862 # The extra dot is to prevent the shell from consuming trailing
7863 # line-breaks from the sub-command output. A line-break within
7864 # single-quotes doesn't work because, if this script is created in a
7865 # platform that uses two characters for line-breaks (e.g., DOS), tr
7866 # would break.
7867 ac_LF_and_DOT=`echo; echo .`
7868 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7869 rm -f confdef2opt.sed
7872 ac_libobjs=
7873 ac_ltlibobjs=
7874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7875 # 1. Remove the extension, and $U if already installed.
7876 ac_i=`echo "$ac_i" |
7877 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7878 # 2. Add them.
7879 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7880 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7881 done
7882 LIBOBJS=$ac_libobjs
7884 LTLIBOBJS=$ac_ltlibobjs
7887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7888 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7889 Usually this means the macro was only invoked conditionally." >&5
7890 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7891 Usually this means the macro was only invoked conditionally." >&2;}
7892 { (exit 1); exit 1; }; }
7894 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7895 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7896 Usually this means the macro was only invoked conditionally." >&5
7897 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7898 Usually this means the macro was only invoked conditionally." >&2;}
7899 { (exit 1); exit 1; }; }
7901 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7902 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7903 Usually this means the macro was only invoked conditionally." >&5
7904 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7905 Usually this means the macro was only invoked conditionally." >&2;}
7906 { (exit 1); exit 1; }; }
7908 if test -z "${LIBGCCM_USE_SYMVER_TRUE}" && test -z "${LIBGCCM_USE_SYMVER_FALSE}"; then
7909 { { echo "$as_me:$LINENO: error: conditional \"LIBGCCM_USE_SYMVER\" was never defined.
7910 Usually this means the macro was only invoked conditionally." >&5
7911 echo "$as_me: error: conditional \"LIBGCCM_USE_SYMVER\" was never defined.
7912 Usually this means the macro was only invoked conditionally." >&2;}
7913 { (exit 1); exit 1; }; }
7915 if test -z "${TARGET_ILP32_TRUE}" && test -z "${TARGET_ILP32_FALSE}"; then
7916 { { echo "$as_me:$LINENO: error: conditional \"TARGET_ILP32\" was never defined.
7917 Usually this means the macro was only invoked conditionally." >&5
7918 echo "$as_me: error: conditional \"TARGET_ILP32\" was never defined.
7919 Usually this means the macro was only invoked conditionally." >&2;}
7920 { (exit 1); exit 1; }; }
7922 if test -z "${BUILD_LIBGCC_MATH_TRUE}" && test -z "${BUILD_LIBGCC_MATH_FALSE}"; then
7923 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCC_MATH\" was never defined.
7924 Usually this means the macro was only invoked conditionally." >&5
7925 echo "$as_me: error: conditional \"BUILD_LIBGCC_MATH\" was never defined.
7926 Usually this means the macro was only invoked conditionally." >&2;}
7927 { (exit 1); exit 1; }; }
7930 : ${CONFIG_STATUS=./config.status}
7931 ac_clean_files_save=$ac_clean_files
7932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7933 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7934 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7935 cat >$CONFIG_STATUS <<_ACEOF
7936 #! $SHELL
7937 # Generated by $as_me.
7938 # Run this file to recreate the current configuration.
7939 # Compiler output produced by configure, useful for debugging
7940 # configure, is in config.log if it exists.
7942 debug=false
7943 ac_cs_recheck=false
7944 ac_cs_silent=false
7945 SHELL=\${CONFIG_SHELL-$SHELL}
7946 _ACEOF
7948 cat >>$CONFIG_STATUS <<\_ACEOF
7949 ## --------------------- ##
7950 ## M4sh Initialization. ##
7951 ## --------------------- ##
7953 # Be Bourne compatible
7954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7955 emulate sh
7956 NULLCMD=:
7957 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7958 # is contrary to our usage. Disable this feature.
7959 alias -g '${1+"$@"}'='"$@"'
7960 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7961 set -o posix
7963 DUALCASE=1; export DUALCASE # for MKS sh
7965 # Support unset when possible.
7966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7967 as_unset=unset
7968 else
7969 as_unset=false
7973 # Work around bugs in pre-3.0 UWIN ksh.
7974 $as_unset ENV MAIL MAILPATH
7975 PS1='$ '
7976 PS2='> '
7977 PS4='+ '
7979 # NLS nuisances.
7980 for as_var in \
7981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7983 LC_TELEPHONE LC_TIME
7985 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7986 eval $as_var=C; export $as_var
7987 else
7988 $as_unset $as_var
7990 done
7992 # Required to use basename.
7993 if expr a : '\(a\)' >/dev/null 2>&1; then
7994 as_expr=expr
7995 else
7996 as_expr=false
7999 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8000 as_basename=basename
8001 else
8002 as_basename=false
8006 # Name of the executable.
8007 as_me=`$as_basename "$0" ||
8008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8009 X"$0" : 'X\(//\)$' \| \
8010 X"$0" : 'X\(/\)$' \| \
8011 . : '\(.\)' 2>/dev/null ||
8012 echo X/"$0" |
8013 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8014 /^X\/\(\/\/\)$/{ s//\1/; q; }
8015 /^X\/\(\/\).*/{ s//\1/; q; }
8016 s/.*/./; q'`
8019 # PATH needs CR, and LINENO needs CR and PATH.
8020 # Avoid depending upon Character Ranges.
8021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8024 as_cr_digits='0123456789'
8025 as_cr_alnum=$as_cr_Letters$as_cr_digits
8027 # The user is always right.
8028 if test "${PATH_SEPARATOR+set}" != set; then
8029 echo "#! /bin/sh" >conf$$.sh
8030 echo "exit 0" >>conf$$.sh
8031 chmod +x conf$$.sh
8032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8033 PATH_SEPARATOR=';'
8034 else
8035 PATH_SEPARATOR=:
8037 rm -f conf$$.sh
8041 as_lineno_1=$LINENO
8042 as_lineno_2=$LINENO
8043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8044 test "x$as_lineno_1" != "x$as_lineno_2" &&
8045 test "x$as_lineno_3" = "x$as_lineno_2" || {
8046 # Find who we are. Look in the path if we contain no path at all
8047 # relative or not.
8048 case $0 in
8049 *[\\/]* ) as_myself=$0 ;;
8050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8056 done
8059 esac
8060 # We did not find ourselves, most probably we were run as `sh COMMAND'
8061 # in which case we are not to be found in the path.
8062 if test "x$as_myself" = x; then
8063 as_myself=$0
8065 if test ! -f "$as_myself"; then
8066 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8067 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8068 { (exit 1); exit 1; }; }
8070 case $CONFIG_SHELL in
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for as_base in sh bash ksh sh5; do
8078 case $as_dir in
8080 if ("$as_dir/$as_base" -c '
8081 as_lineno_1=$LINENO
8082 as_lineno_2=$LINENO
8083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8084 test "x$as_lineno_1" != "x$as_lineno_2" &&
8085 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8086 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8087 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8088 CONFIG_SHELL=$as_dir/$as_base
8089 export CONFIG_SHELL
8090 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8091 fi;;
8092 esac
8093 done
8094 done
8096 esac
8098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8099 # uniformly replaced by the line number. The first 'sed' inserts a
8100 # line-number line before each line; the second 'sed' does the real
8101 # work. The second script uses 'N' to pair each line-number line
8102 # with the numbered line, and appends trailing '-' during
8103 # substitution so that $LINENO is not a special case at line end.
8104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8105 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8106 sed '=' <$as_myself |
8107 sed '
8109 s,$,-,
8110 : loop
8111 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8112 t loop
8113 s,-$,,
8114 s,^['$as_cr_digits']*\n,,
8115 ' >$as_me.lineno &&
8116 chmod +x $as_me.lineno ||
8117 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8118 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8119 { (exit 1); exit 1; }; }
8121 # Don't try to exec as it changes $[0], causing all sort of problems
8122 # (the dirname of $[0] is not the place where we might find the
8123 # original and so on. Autoconf is especially sensible to this).
8124 . ./$as_me.lineno
8125 # Exit status is that of the last command.
8126 exit
8130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8131 *c*,-n*) ECHO_N= ECHO_C='
8132 ' ECHO_T=' ' ;;
8133 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8134 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8135 esac
8137 if expr a : '\(a\)' >/dev/null 2>&1; then
8138 as_expr=expr
8139 else
8140 as_expr=false
8143 rm -f conf$$ conf$$.exe conf$$.file
8144 echo >conf$$.file
8145 if ln -s conf$$.file conf$$ 2>/dev/null; then
8146 # We could just check for DJGPP; but this test a) works b) is more generic
8147 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8148 if test -f conf$$.exe; then
8149 # Don't use ln at all; we don't have any links
8150 as_ln_s='cp -p'
8151 else
8152 as_ln_s='ln -s'
8154 elif ln conf$$.file conf$$ 2>/dev/null; then
8155 as_ln_s=ln
8156 else
8157 as_ln_s='cp -p'
8159 rm -f conf$$ conf$$.exe conf$$.file
8161 if mkdir -p . 2>/dev/null; then
8162 as_mkdir_p=:
8163 else
8164 test -d ./-p && rmdir ./-p
8165 as_mkdir_p=false
8168 as_executable_p="test -f"
8170 # Sed expression to map a string onto a valid CPP name.
8171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8173 # Sed expression to map a string onto a valid variable name.
8174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8177 # IFS
8178 # We need space, tab and new line, in precisely that order.
8179 as_nl='
8181 IFS=" $as_nl"
8183 # CDPATH.
8184 $as_unset CDPATH
8186 exec 6>&1
8188 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8189 # report actual input values of CONFIG_FILES etc. instead of their
8190 # values after options handling. Logging --version etc. is OK.
8191 exec 5>>config.log
8193 echo
8194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8195 ## Running $as_me. ##
8196 _ASBOX
8197 } >&5
8198 cat >&5 <<_CSEOF
8200 This file was extended by libgcc-math $as_me 1.0, which was
8201 generated by GNU Autoconf 2.59. Invocation command line was
8203 CONFIG_FILES = $CONFIG_FILES
8204 CONFIG_HEADERS = $CONFIG_HEADERS
8205 CONFIG_LINKS = $CONFIG_LINKS
8206 CONFIG_COMMANDS = $CONFIG_COMMANDS
8207 $ $0 $@
8209 _CSEOF
8210 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8211 echo >&5
8212 _ACEOF
8214 # Files that config.status was made for.
8215 if test -n "$ac_config_files"; then
8216 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8219 if test -n "$ac_config_headers"; then
8220 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8223 if test -n "$ac_config_links"; then
8224 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8227 if test -n "$ac_config_commands"; then
8228 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8231 cat >>$CONFIG_STATUS <<\_ACEOF
8233 ac_cs_usage="\
8234 \`$as_me' instantiates files from templates according to the
8235 current configuration.
8237 Usage: $0 [OPTIONS] [FILE]...
8239 -h, --help print this help, then exit
8240 -V, --version print version number, then exit
8241 -q, --quiet do not print progress messages
8242 -d, --debug don't remove temporary files
8243 --recheck update $as_me by reconfiguring in the same conditions
8244 --file=FILE[:TEMPLATE]
8245 instantiate the configuration file FILE
8247 Configuration files:
8248 $config_files
8250 Configuration commands:
8251 $config_commands
8253 Report bugs to <bug-autoconf@gnu.org>."
8254 _ACEOF
8256 cat >>$CONFIG_STATUS <<_ACEOF
8257 ac_cs_version="\\
8258 libgcc-math config.status 1.0
8259 configured by $0, generated by GNU Autoconf 2.59,
8260 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8262 Copyright (C) 2003 Free Software Foundation, Inc.
8263 This config.status script is free software; the Free Software Foundation
8264 gives unlimited permission to copy, distribute and modify it."
8265 srcdir=$srcdir
8266 INSTALL="$INSTALL"
8267 _ACEOF
8269 cat >>$CONFIG_STATUS <<\_ACEOF
8270 # If no file are specified by the user, then we need to provide default
8271 # value. By we need to know if files were specified by the user.
8272 ac_need_defaults=:
8273 while test $# != 0
8275 case $1 in
8276 --*=*)
8277 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8278 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8279 ac_shift=:
8282 ac_option=$1
8283 ac_optarg=$2
8284 ac_shift=shift
8286 *) # This is not an option, so the user has probably given explicit
8287 # arguments.
8288 ac_option=$1
8289 ac_need_defaults=false;;
8290 esac
8292 case $ac_option in
8293 # Handling of the options.
8294 _ACEOF
8295 cat >>$CONFIG_STATUS <<\_ACEOF
8296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8297 ac_cs_recheck=: ;;
8298 --version | --vers* | -V )
8299 echo "$ac_cs_version"; exit 0 ;;
8300 --he | --h)
8301 # Conflict between --help and --header
8302 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8303 Try \`$0 --help' for more information." >&5
8304 echo "$as_me: error: ambiguous option: $1
8305 Try \`$0 --help' for more information." >&2;}
8306 { (exit 1); exit 1; }; };;
8307 --help | --hel | -h )
8308 echo "$ac_cs_usage"; exit 0 ;;
8309 --debug | --d* | -d )
8310 debug=: ;;
8311 --file | --fil | --fi | --f )
8312 $ac_shift
8313 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8314 ac_need_defaults=false;;
8315 --header | --heade | --head | --hea )
8316 $ac_shift
8317 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8318 ac_need_defaults=false;;
8319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8320 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8321 ac_cs_silent=: ;;
8323 # This is an error.
8324 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8325 Try \`$0 --help' for more information." >&5
8326 echo "$as_me: error: unrecognized option: $1
8327 Try \`$0 --help' for more information." >&2;}
8328 { (exit 1); exit 1; }; } ;;
8330 *) ac_config_targets="$ac_config_targets $1" ;;
8332 esac
8333 shift
8334 done
8336 ac_configure_extra_args=
8338 if $ac_cs_silent; then
8339 exec 6>/dev/null
8340 ac_configure_extra_args="$ac_configure_extra_args --silent"
8343 _ACEOF
8344 cat >>$CONFIG_STATUS <<_ACEOF
8345 if \$ac_cs_recheck; then
8346 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8347 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8350 _ACEOF
8352 cat >>$CONFIG_STATUS <<_ACEOF
8354 # INIT-COMMANDS section.
8358 srcdir="$srcdir"
8359 host="$host"
8360 target="$target"
8361 with_multisubdir="$with_multisubdir"
8362 with_multisrctop="$with_multisrctop"
8363 with_target_subdir="$with_target_subdir"
8364 ac_configure_args="${multilib_arg} ${ac_configure_args}"
8365 multi_basedir="$multi_basedir"
8366 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8367 CC="$CC"
8368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8370 GCC="$GCC"
8371 CC="$CC"
8372 acx_cv_header_stdint="$acx_cv_header_stdint"
8373 acx_cv_type_int8_t="$acx_cv_type_int8_t"
8374 acx_cv_type_int16_t="$acx_cv_type_int16_t"
8375 acx_cv_type_int32_t="$acx_cv_type_int32_t"
8376 acx_cv_type_int64_t="$acx_cv_type_int64_t"
8377 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
8378 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
8379 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
8380 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8381 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8382 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
8383 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8384 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8385 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
8388 _ACEOF
8392 cat >>$CONFIG_STATUS <<\_ACEOF
8393 for ac_config_target in $ac_config_targets
8395 case "$ac_config_target" in
8396 # Handling of arguments.
8397 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8398 "i386/Makefile" ) CONFIG_FILES="$CONFIG_FILES i386/Makefile" ;;
8399 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8400 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8401 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
8402 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8403 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8404 { (exit 1); exit 1; }; };;
8405 esac
8406 done
8408 # If the user did not use the arguments to specify the items to instantiate,
8409 # then the envvar interface is used. Set only those that are not.
8410 # We use the long form for the default assignment because of an extremely
8411 # bizarre bug on SunOS 4.1.3.
8412 if $ac_need_defaults; then
8413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8417 # Have a temporary directory for convenience. Make it in the build tree
8418 # simply because there is no reason to put it here, and in addition,
8419 # creating and moving files from /tmp can sometimes cause problems.
8420 # Create a temporary directory, and hook for its removal unless debugging.
8421 $debug ||
8423 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8424 trap '{ (exit 1); exit 1; }' 1 2 13 15
8427 # Create a (secure) tmp directory for tmp files.
8430 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8431 test -n "$tmp" && test -d "$tmp"
8432 } ||
8434 tmp=./confstat$$-$RANDOM
8435 (umask 077 && mkdir $tmp)
8436 } ||
8438 echo "$me: cannot create a temporary directory in ." >&2
8439 { (exit 1); exit 1; }
8442 _ACEOF
8444 cat >>$CONFIG_STATUS <<_ACEOF
8447 # CONFIG_FILES section.
8450 # No need to generate the scripts if there are no CONFIG_FILES.
8451 # This happens for instance when ./config.status config.h
8452 if test -n "\$CONFIG_FILES"; then
8453 # Protect against being on the right side of a sed subst in config.status.
8454 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8455 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8456 s,@SHELL@,$SHELL,;t t
8457 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8458 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8459 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8460 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8461 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8462 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8463 s,@exec_prefix@,$exec_prefix,;t t
8464 s,@prefix@,$prefix,;t t
8465 s,@program_transform_name@,$program_transform_name,;t t
8466 s,@bindir@,$bindir,;t t
8467 s,@sbindir@,$sbindir,;t t
8468 s,@libexecdir@,$libexecdir,;t t
8469 s,@datadir@,$datadir,;t t
8470 s,@sysconfdir@,$sysconfdir,;t t
8471 s,@sharedstatedir@,$sharedstatedir,;t t
8472 s,@localstatedir@,$localstatedir,;t t
8473 s,@libdir@,$libdir,;t t
8474 s,@includedir@,$includedir,;t t
8475 s,@oldincludedir@,$oldincludedir,;t t
8476 s,@infodir@,$infodir,;t t
8477 s,@mandir@,$mandir,;t t
8478 s,@build_alias@,$build_alias,;t t
8479 s,@host_alias@,$host_alias,;t t
8480 s,@target_alias@,$target_alias,;t t
8481 s,@DEFS@,$DEFS,;t t
8482 s,@ECHO_C@,$ECHO_C,;t t
8483 s,@ECHO_N@,$ECHO_N,;t t
8484 s,@ECHO_T@,$ECHO_T,;t t
8485 s,@LIBS@,$LIBS,;t t
8486 s,@build@,$build,;t t
8487 s,@build_cpu@,$build_cpu,;t t
8488 s,@build_vendor@,$build_vendor,;t t
8489 s,@build_os@,$build_os,;t t
8490 s,@host@,$host,;t t
8491 s,@host_cpu@,$host_cpu,;t t
8492 s,@host_vendor@,$host_vendor,;t t
8493 s,@host_os@,$host_os,;t t
8494 s,@target@,$target,;t t
8495 s,@target_cpu@,$target_cpu,;t t
8496 s,@target_vendor@,$target_vendor,;t t
8497 s,@target_os@,$target_os,;t t
8498 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8499 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8500 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8501 s,@CYGPATH_W@,$CYGPATH_W,;t t
8502 s,@PACKAGE@,$PACKAGE,;t t
8503 s,@VERSION@,$VERSION,;t t
8504 s,@ACLOCAL@,$ACLOCAL,;t t
8505 s,@AUTOCONF@,$AUTOCONF,;t t
8506 s,@AUTOMAKE@,$AUTOMAKE,;t t
8507 s,@AUTOHEADER@,$AUTOHEADER,;t t
8508 s,@MAKEINFO@,$MAKEINFO,;t t
8509 s,@install_sh@,$install_sh,;t t
8510 s,@STRIP@,$STRIP,;t t
8511 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8512 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8513 s,@mkdir_p@,$mkdir_p,;t t
8514 s,@AWK@,$AWK,;t t
8515 s,@SET_MAKE@,$SET_MAKE,;t t
8516 s,@am__leading_dot@,$am__leading_dot,;t t
8517 s,@AMTAR@,$AMTAR,;t t
8518 s,@am__tar@,$am__tar,;t t
8519 s,@am__untar@,$am__untar,;t t
8520 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8521 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8522 s,@MAINT@,$MAINT,;t t
8523 s,@multi_basedir@,$multi_basedir,;t t
8524 s,@CC@,$CC,;t t
8525 s,@ac_ct_CC@,$ac_ct_CC,;t t
8526 s,@EXEEXT@,$EXEEXT,;t t
8527 s,@OBJEXT@,$OBJEXT,;t t
8528 s,@DEPDIR@,$DEPDIR,;t t
8529 s,@am__include@,$am__include,;t t
8530 s,@am__quote@,$am__quote,;t t
8531 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8532 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8533 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8534 s,@CCDEPMODE@,$CCDEPMODE,;t t
8535 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8536 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8537 s,@CFLAGS@,$CFLAGS,;t t
8538 s,@CPP@,$CPP,;t t
8539 s,@CPPFLAGS@,$CPPFLAGS,;t t
8540 s,@CCAS@,$CCAS,;t t
8541 s,@CCASFLAGS@,$CCASFLAGS,;t t
8542 s,@LIBGCCM_USE_SYMVER_TRUE@,$LIBGCCM_USE_SYMVER_TRUE,;t t
8543 s,@LIBGCCM_USE_SYMVER_FALSE@,$LIBGCCM_USE_SYMVER_FALSE,;t t
8544 s,@TARGET_ILP32_TRUE@,$TARGET_ILP32_TRUE,;t t
8545 s,@TARGET_ILP32_FALSE@,$TARGET_ILP32_FALSE,;t t
8546 s,@LN_S@,$LN_S,;t t
8547 s,@RANLIB@,$RANLIB,;t t
8548 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8549 s,@LIBTOOL@,$LIBTOOL,;t t
8550 s,@enable_shared@,$enable_shared,;t t
8551 s,@enable_static@,$enable_static,;t t
8552 s,@toolexecdir@,$toolexecdir,;t t
8553 s,@toolexeclibdir@,$toolexeclibdir,;t t
8554 s,@EGREP@,$EGREP,;t t
8555 s,@arch_subdirs@,$arch_subdirs,;t t
8556 s,@arch_libraries@,$arch_libraries,;t t
8557 s,@arch_maps@,$arch_maps,;t t
8558 s,@BUILD_LIBGCC_MATH_TRUE@,$BUILD_LIBGCC_MATH_TRUE,;t t
8559 s,@BUILD_LIBGCC_MATH_FALSE@,$BUILD_LIBGCC_MATH_FALSE,;t t
8560 s,@LIBOBJS@,$LIBOBJS,;t t
8561 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8562 CEOF
8564 _ACEOF
8566 cat >>$CONFIG_STATUS <<\_ACEOF
8567 # Split the substitutions into bite-sized pieces for seds with
8568 # small command number limits, like on Digital OSF/1 and HP-UX.
8569 ac_max_sed_lines=48
8570 ac_sed_frag=1 # Number of current file.
8571 ac_beg=1 # First line for current file.
8572 ac_end=$ac_max_sed_lines # Line after last line for current file.
8573 ac_more_lines=:
8574 ac_sed_cmds=
8575 while $ac_more_lines; do
8576 if test $ac_beg -gt 1; then
8577 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8578 else
8579 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8581 if test ! -s $tmp/subs.frag; then
8582 ac_more_lines=false
8583 else
8584 # The purpose of the label and of the branching condition is to
8585 # speed up the sed processing (if there are no `@' at all, there
8586 # is no need to browse any of the substitutions).
8587 # These are the two extra sed commands mentioned above.
8588 (echo ':t
8589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8590 if test -z "$ac_sed_cmds"; then
8591 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8592 else
8593 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8595 ac_sed_frag=`expr $ac_sed_frag + 1`
8596 ac_beg=$ac_end
8597 ac_end=`expr $ac_end + $ac_max_sed_lines`
8599 done
8600 if test -z "$ac_sed_cmds"; then
8601 ac_sed_cmds=cat
8603 fi # test -n "$CONFIG_FILES"
8605 _ACEOF
8606 cat >>$CONFIG_STATUS <<\_ACEOF
8607 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8608 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8609 case $ac_file in
8610 - | *:- | *:-:* ) # input from stdin
8611 cat >$tmp/stdin
8612 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8614 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8616 * ) ac_file_in=$ac_file.in ;;
8617 esac
8619 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8620 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8622 X"$ac_file" : 'X\(//\)[^/]' \| \
8623 X"$ac_file" : 'X\(//\)$' \| \
8624 X"$ac_file" : 'X\(/\)' \| \
8625 . : '\(.\)' 2>/dev/null ||
8626 echo X"$ac_file" |
8627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8629 /^X\(\/\/\)$/{ s//\1/; q; }
8630 /^X\(\/\).*/{ s//\1/; q; }
8631 s/.*/./; q'`
8632 { if $as_mkdir_p; then
8633 mkdir -p "$ac_dir"
8634 else
8635 as_dir="$ac_dir"
8636 as_dirs=
8637 while test ! -d "$as_dir"; do
8638 as_dirs="$as_dir $as_dirs"
8639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8641 X"$as_dir" : 'X\(//\)[^/]' \| \
8642 X"$as_dir" : 'X\(//\)$' \| \
8643 X"$as_dir" : 'X\(/\)' \| \
8644 . : '\(.\)' 2>/dev/null ||
8645 echo X"$as_dir" |
8646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8648 /^X\(\/\/\)$/{ s//\1/; q; }
8649 /^X\(\/\).*/{ s//\1/; q; }
8650 s/.*/./; q'`
8651 done
8652 test ! -n "$as_dirs" || mkdir $as_dirs
8653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8655 { (exit 1); exit 1; }; }; }
8657 ac_builddir=.
8659 if test "$ac_dir" != .; then
8660 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8661 # A "../" for each directory in $ac_dir_suffix.
8662 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8663 else
8664 ac_dir_suffix= ac_top_builddir=
8667 case $srcdir in
8668 .) # No --srcdir option. We are building in place.
8669 ac_srcdir=.
8670 if test -z "$ac_top_builddir"; then
8671 ac_top_srcdir=.
8672 else
8673 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8674 fi ;;
8675 [\\/]* | ?:[\\/]* ) # Absolute path.
8676 ac_srcdir=$srcdir$ac_dir_suffix;
8677 ac_top_srcdir=$srcdir ;;
8678 *) # Relative path.
8679 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8680 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8681 esac
8683 # Do not use `cd foo && pwd` to compute absolute paths, because
8684 # the directories may not exist.
8685 case `pwd` in
8686 .) ac_abs_builddir="$ac_dir";;
8688 case "$ac_dir" in
8689 .) ac_abs_builddir=`pwd`;;
8690 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8691 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8692 esac;;
8693 esac
8694 case $ac_abs_builddir in
8695 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8697 case ${ac_top_builddir}. in
8698 .) ac_abs_top_builddir=$ac_abs_builddir;;
8699 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8700 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8701 esac;;
8702 esac
8703 case $ac_abs_builddir in
8704 .) ac_abs_srcdir=$ac_srcdir;;
8706 case $ac_srcdir in
8707 .) ac_abs_srcdir=$ac_abs_builddir;;
8708 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8709 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8710 esac;;
8711 esac
8712 case $ac_abs_builddir in
8713 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8715 case $ac_top_srcdir in
8716 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8717 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8718 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8719 esac;;
8720 esac
8723 case $INSTALL in
8724 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8725 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8726 esac
8728 if test x"$ac_file" != x-; then
8729 { echo "$as_me:$LINENO: creating $ac_file" >&5
8730 echo "$as_me: creating $ac_file" >&6;}
8731 rm -f "$ac_file"
8733 # Let's still pretend it is `configure' which instantiates (i.e., don't
8734 # use $as_me), people would be surprised to read:
8735 # /* config.h. Generated by config.status. */
8736 if test x"$ac_file" = x-; then
8737 configure_input=
8738 else
8739 configure_input="$ac_file. "
8741 configure_input=$configure_input"Generated from `echo $ac_file_in |
8742 sed 's,.*/,,'` by configure."
8744 # First look for the input files in the build tree, otherwise in the
8745 # src tree.
8746 ac_file_inputs=`IFS=:
8747 for f in $ac_file_in; do
8748 case $f in
8749 -) echo $tmp/stdin ;;
8750 [\\/$]*)
8751 # Absolute (can't be DOS-style, as IFS=:)
8752 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8753 echo "$as_me: error: cannot find input file: $f" >&2;}
8754 { (exit 1); exit 1; }; }
8755 echo "$f";;
8756 *) # Relative
8757 if test -f "$f"; then
8758 # Build tree
8759 echo "$f"
8760 elif test -f "$srcdir/$f"; then
8761 # Source tree
8762 echo "$srcdir/$f"
8763 else
8764 # /dev/null tree
8765 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8766 echo "$as_me: error: cannot find input file: $f" >&2;}
8767 { (exit 1); exit 1; }; }
8768 fi;;
8769 esac
8770 done` || { (exit 1); exit 1; }
8771 _ACEOF
8772 cat >>$CONFIG_STATUS <<_ACEOF
8773 sed "$ac_vpsub
8774 $extrasub
8775 _ACEOF
8776 cat >>$CONFIG_STATUS <<\_ACEOF
8778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8779 s,@configure_input@,$configure_input,;t t
8780 s,@srcdir@,$ac_srcdir,;t t
8781 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8782 s,@top_srcdir@,$ac_top_srcdir,;t t
8783 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8784 s,@builddir@,$ac_builddir,;t t
8785 s,@abs_builddir@,$ac_abs_builddir,;t t
8786 s,@top_builddir@,$ac_top_builddir,;t t
8787 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8788 s,@INSTALL@,$ac_INSTALL,;t t
8789 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8790 rm -f $tmp/stdin
8791 if test x"$ac_file" != x-; then
8792 mv $tmp/out $ac_file
8793 else
8794 cat $tmp/out
8795 rm -f $tmp/out
8798 done
8799 _ACEOF
8800 cat >>$CONFIG_STATUS <<\_ACEOF
8803 # CONFIG_COMMANDS section.
8805 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8806 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8807 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8808 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8809 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8810 X"$ac_dest" : 'X\(//\)[^/]' \| \
8811 X"$ac_dest" : 'X\(//\)$' \| \
8812 X"$ac_dest" : 'X\(/\)' \| \
8813 . : '\(.\)' 2>/dev/null ||
8814 echo X"$ac_dest" |
8815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8817 /^X\(\/\/\)$/{ s//\1/; q; }
8818 /^X\(\/\).*/{ s//\1/; q; }
8819 s/.*/./; q'`
8820 { if $as_mkdir_p; then
8821 mkdir -p "$ac_dir"
8822 else
8823 as_dir="$ac_dir"
8824 as_dirs=
8825 while test ! -d "$as_dir"; do
8826 as_dirs="$as_dir $as_dirs"
8827 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8829 X"$as_dir" : 'X\(//\)[^/]' \| \
8830 X"$as_dir" : 'X\(//\)$' \| \
8831 X"$as_dir" : 'X\(/\)' \| \
8832 . : '\(.\)' 2>/dev/null ||
8833 echo X"$as_dir" |
8834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8836 /^X\(\/\/\)$/{ s//\1/; q; }
8837 /^X\(\/\).*/{ s//\1/; q; }
8838 s/.*/./; q'`
8839 done
8840 test ! -n "$as_dirs" || mkdir $as_dirs
8841 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8843 { (exit 1); exit 1; }; }; }
8845 ac_builddir=.
8847 if test "$ac_dir" != .; then
8848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8849 # A "../" for each directory in $ac_dir_suffix.
8850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8851 else
8852 ac_dir_suffix= ac_top_builddir=
8855 case $srcdir in
8856 .) # No --srcdir option. We are building in place.
8857 ac_srcdir=.
8858 if test -z "$ac_top_builddir"; then
8859 ac_top_srcdir=.
8860 else
8861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8862 fi ;;
8863 [\\/]* | ?:[\\/]* ) # Absolute path.
8864 ac_srcdir=$srcdir$ac_dir_suffix;
8865 ac_top_srcdir=$srcdir ;;
8866 *) # Relative path.
8867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8869 esac
8871 # Do not use `cd foo && pwd` to compute absolute paths, because
8872 # the directories may not exist.
8873 case `pwd` in
8874 .) ac_abs_builddir="$ac_dir";;
8876 case "$ac_dir" in
8877 .) ac_abs_builddir=`pwd`;;
8878 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8879 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8880 esac;;
8881 esac
8882 case $ac_abs_builddir in
8883 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8885 case ${ac_top_builddir}. in
8886 .) ac_abs_top_builddir=$ac_abs_builddir;;
8887 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8888 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8889 esac;;
8890 esac
8891 case $ac_abs_builddir in
8892 .) ac_abs_srcdir=$ac_srcdir;;
8894 case $ac_srcdir in
8895 .) ac_abs_srcdir=$ac_abs_builddir;;
8896 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8897 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8898 esac;;
8899 esac
8900 case $ac_abs_builddir in
8901 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8903 case $ac_top_srcdir in
8904 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8905 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8906 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8907 esac;;
8908 esac
8911 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8912 echo "$as_me: executing $ac_dest commands" >&6;}
8913 case $ac_dest in
8914 default-1 )
8915 # Only add multilib support code if we just rebuilt the top-level
8916 # Makefile.
8917 case " $CONFIG_FILES " in
8918 *" Makefile "*)
8919 ac_file=Makefile . ${multi_basedir}/config-ml.in
8921 esac ;;
8922 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8923 # Strip MF so we end up with the name of the file.
8924 mf=`echo "$mf" | sed -e 's/:.*$//'`
8925 # Check whether this is an Automake generated Makefile or not.
8926 # We used to match only the files named `Makefile.in', but
8927 # some people rename them; so instead we look at the file content.
8928 # Grep'ing the first line is not enough: some people post-process
8929 # each Makefile.in and add a new line on top of each file to say so.
8930 # So let's grep whole file.
8931 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8932 dirpart=`(dirname "$mf") 2>/dev/null ||
8933 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8934 X"$mf" : 'X\(//\)[^/]' \| \
8935 X"$mf" : 'X\(//\)$' \| \
8936 X"$mf" : 'X\(/\)' \| \
8937 . : '\(.\)' 2>/dev/null ||
8938 echo X"$mf" |
8939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8941 /^X\(\/\/\)$/{ s//\1/; q; }
8942 /^X\(\/\).*/{ s//\1/; q; }
8943 s/.*/./; q'`
8944 else
8945 continue
8947 # Extract the definition of DEPDIR, am__include, and am__quote
8948 # from the Makefile without running `make'.
8949 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8950 test -z "$DEPDIR" && continue
8951 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8952 test -z "am__include" && continue
8953 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8954 # When using ansi2knr, U may be empty or an underscore; expand it
8955 U=`sed -n 's/^U = //p' < "$mf"`
8956 # Find all dependency output files, they are included files with
8957 # $(DEPDIR) in their names. We invoke sed twice because it is the
8958 # simplest approach to changing $(DEPDIR) to its actual value in the
8959 # expansion.
8960 for file in `sed -n "
8961 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8962 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8963 # Make sure the directory exists.
8964 test -f "$dirpart/$file" && continue
8965 fdir=`(dirname "$file") 2>/dev/null ||
8966 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8967 X"$file" : 'X\(//\)[^/]' \| \
8968 X"$file" : 'X\(//\)$' \| \
8969 X"$file" : 'X\(/\)' \| \
8970 . : '\(.\)' 2>/dev/null ||
8971 echo X"$file" |
8972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8974 /^X\(\/\/\)$/{ s//\1/; q; }
8975 /^X\(\/\).*/{ s//\1/; q; }
8976 s/.*/./; q'`
8977 { if $as_mkdir_p; then
8978 mkdir -p $dirpart/$fdir
8979 else
8980 as_dir=$dirpart/$fdir
8981 as_dirs=
8982 while test ! -d "$as_dir"; do
8983 as_dirs="$as_dir $as_dirs"
8984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8986 X"$as_dir" : 'X\(//\)[^/]' \| \
8987 X"$as_dir" : 'X\(//\)$' \| \
8988 X"$as_dir" : 'X\(/\)' \| \
8989 . : '\(.\)' 2>/dev/null ||
8990 echo X"$as_dir" |
8991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8993 /^X\(\/\/\)$/{ s//\1/; q; }
8994 /^X\(\/\).*/{ s//\1/; q; }
8995 s/.*/./; q'`
8996 done
8997 test ! -n "$as_dirs" || mkdir $as_dirs
8998 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8999 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9000 { (exit 1); exit 1; }; }; }
9002 # echo "creating $dirpart/$file"
9003 echo '# dummy' > "$dirpart/$file"
9004 done
9005 done
9007 gstdint.h )
9008 if test "$GCC" = yes; then
9009 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
9010 else
9011 echo "/* generated for $CC */" > tmp-stdint.h
9014 sed 's/^ *//' >> tmp-stdint.h <<EOF
9016 #ifndef GCC_GENERATED_STDINT_H
9017 #define GCC_GENERATED_STDINT_H 1
9019 #include <sys/types.h>
9022 if test "$acx_cv_header_stdint" != stdint.h; then
9023 echo "#include <stddef.h>" >> tmp-stdint.h
9025 if test "$acx_cv_header_stdint" != stddef.h; then
9026 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
9029 sed 's/^ *//' >> tmp-stdint.h <<EOF
9030 /* glibc uses these symbols as guards to prevent redefinitions. */
9031 #ifdef __int8_t_defined
9032 #define _INT8_T
9033 #define _INT16_T
9034 #define _INT32_T
9035 #endif
9036 #ifdef __uint32_t_defined
9037 #define _UINT32_T
9038 #endif
9042 # ----------------- done header, emit basic int types -------------
9043 if test "$acx_cv_header_stdint" = stddef.h; then
9044 sed 's/^ *//' >> tmp-stdint.h <<EOF
9046 #ifndef _UINT8_T
9047 #define _UINT8_T
9048 typedef unsigned $acx_cv_type_int8_t uint8_t;
9049 #endif
9051 #ifndef _UINT16_T
9052 #define _UINT16_T
9053 typedef unsigned $acx_cv_type_int16_t uint16_t;
9054 #endif
9056 #ifndef _UINT32_T
9057 #define _UINT32_T
9058 typedef unsigned $acx_cv_type_int32_t uint32_t;
9059 #endif
9061 #ifndef _INT8_T
9062 #define _INT8_T
9063 typedef $acx_cv_type_int8_t int8_t;
9064 #endif
9066 #ifndef _INT16_T
9067 #define _INT16_T
9068 typedef $acx_cv_type_int16_t int16_t;
9069 #endif
9071 #ifndef _INT32_T
9072 #define _INT32_T
9073 typedef $acx_cv_type_int32_t int32_t;
9074 #endif
9076 elif test "$ac_cv_type_u_int32_t" = yes; then
9077 sed 's/^ *//' >> tmp-stdint.h <<EOF
9079 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
9080 #ifndef _INT8_T
9081 #define _INT8_T
9082 #endif
9083 #ifndef _INT16_T
9084 #define _INT16_T
9085 #endif
9086 #ifndef _INT32_T
9087 #define _INT32_T
9088 #endif
9090 #ifndef _UINT8_T
9091 #define _UINT8_T
9092 typedef u_int8_t uint8_t;
9093 #endif
9095 #ifndef _UINT16_T
9096 #define _UINT16_T
9097 typedef u_int16_t uint16_t;
9098 #endif
9100 #ifndef _UINT32_T
9101 #define _UINT32_T
9102 typedef u_int32_t uint32_t;
9103 #endif
9105 else
9106 sed 's/^ *//' >> tmp-stdint.h <<EOF
9108 /* Some systems have guard macros to prevent redefinitions, define them. */
9109 #ifndef _INT8_T
9110 #define _INT8_T
9111 #endif
9112 #ifndef _INT16_T
9113 #define _INT16_T
9114 #endif
9115 #ifndef _INT32_T
9116 #define _INT32_T
9117 #endif
9118 #ifndef _UINT8_T
9119 #define _UINT8_T
9120 #endif
9121 #ifndef _UINT16_T
9122 #define _UINT16_T
9123 #endif
9124 #ifndef _UINT32_T
9125 #define _UINT32_T
9126 #endif
9130 # ------------- done basic int types, emit int64_t types ------------
9131 if test "$ac_cv_type_uint64_t" = yes; then
9132 sed 's/^ *//' >> tmp-stdint.h <<EOF
9134 /* system headers have good uint64_t and int64_t */
9135 #ifndef _INT64_T
9136 #define _INT64_T
9137 #endif
9138 #ifndef _UINT64_T
9139 #define _UINT64_T
9140 #endif
9142 elif test "$ac_cv_type_u_int64_t" = yes; then
9143 sed 's/^ *//' >> tmp-stdint.h <<EOF
9145 /* system headers have an u_int64_t (and int64_t) */
9146 #ifndef _INT64_T
9147 #define _INT64_T
9148 #endif
9149 #ifndef _UINT64_T
9150 #define _UINT64_T
9151 typedef u_int64_t uint64_t;
9152 #endif
9154 elif test -n "$acx_cv_type_int64_t"; then
9155 sed 's/^ *//' >> tmp-stdint.h <<EOF
9157 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
9158 #ifndef _INT64_T
9159 #define _INT64_T
9160 typedef $acx_cv_type_int64_t int64_t;
9161 #endif
9162 #ifndef _UINT64_T
9163 #define _UINT64_T
9164 typedef unsigned $acx_cv_type_int64_t uint64_t;
9165 #endif
9167 else
9168 sed 's/^ *//' >> tmp-stdint.h <<EOF
9170 /* some common heuristics for int64_t, using compiler-specific tests */
9171 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
9172 #ifndef _INT64_T
9173 #define _INT64_T
9174 typedef long long int64_t;
9175 #endif
9176 #ifndef _UINT64_T
9177 #define _UINT64_T
9178 typedef unsigned long long uint64_t;
9179 #endif
9181 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
9182 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
9183 does not implement __extension__. But that compiler doesn't define
9184 __GNUC_MINOR__. */
9185 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
9186 # define __extension__
9187 # endif
9189 # ifndef _INT64_T
9190 # define _INT64_T
9191 __extension__ typedef long long int64_t;
9192 # endif
9193 # ifndef _UINT64_T
9194 # define _UINT64_T
9195 __extension__ typedef unsigned long long uint64_t;
9196 # endif
9198 #elif !defined __STRICT_ANSI__
9199 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9201 # ifndef _INT64_T
9202 # define _INT64_T
9203 typedef __int64 int64_t;
9204 # endif
9205 # ifndef _UINT64_T
9206 # define _UINT64_T
9207 typedef unsigned __int64 uint64_t;
9208 # endif
9209 # endif /* compiler */
9211 #endif /* ANSI version */
9215 # ------------- done int64_t types, emit intptr types ------------
9216 if test "$ac_cv_type_uintptr_t" != yes; then
9217 sed 's/^ *//' >> tmp-stdint.h <<EOF
9219 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
9220 typedef u$acx_cv_type_intptr_t uintptr_t;
9221 typedef $acx_cv_type_intptr_t intptr_t;
9225 # ------------- done intptr types, emit int_least types ------------
9226 if test "$ac_cv_type_int_least32_t" != yes; then
9227 sed 's/^ *//' >> tmp-stdint.h <<EOF
9229 /* Define int_least types */
9230 typedef int8_t int_least8_t;
9231 typedef int16_t int_least16_t;
9232 typedef int32_t int_least32_t;
9233 #ifdef _INT64_T
9234 typedef int64_t int_least64_t;
9235 #endif
9237 typedef uint8_t uint_least8_t;
9238 typedef uint16_t uint_least16_t;
9239 typedef uint32_t uint_least32_t;
9240 #ifdef _UINT64_T
9241 typedef uint64_t uint_least64_t;
9242 #endif
9246 # ------------- done intptr types, emit int_fast types ------------
9247 if test "$ac_cv_type_int_fast32_t" != yes; then
9248 sed 's/^ *//' >> tmp-stdint.h <<EOF
9250 /* Define int_fast types. short is often slow */
9251 typedef int8_t int_fast8_t;
9252 typedef int int_fast16_t;
9253 typedef int32_t int_fast32_t;
9254 #ifdef _INT64_T
9255 typedef int64_t int_fast64_t;
9256 #endif
9258 typedef uint8_t uint_fast8_t;
9259 typedef unsigned int uint_fast16_t;
9260 typedef uint32_t uint_fast32_t;
9261 #ifdef _UINT64_T
9262 typedef uint64_t uint_fast64_t;
9263 #endif
9267 if test "$ac_cv_type_uintmax_t" != yes; then
9268 sed 's/^ *//' >> tmp-stdint.h <<EOF
9270 /* Define intmax based on what we found */
9271 #ifdef _INT64_T
9272 typedef int64_t intmax_t;
9273 #else
9274 typedef long intmax_t;
9275 #endif
9276 #ifdef _UINT64_T
9277 typedef uint64_t uintmax_t;
9278 #else
9279 typedef unsigned long uintmax_t;
9280 #endif
9284 sed 's/^ *//' >> tmp-stdint.h <<EOF
9286 #endif /* GCC_GENERATED_STDINT_H */
9289 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
9290 rm -f tmp-stdint.h
9291 else
9292 mv -f tmp-stdint.h gstdint.h
9296 esac
9297 done
9298 _ACEOF
9300 cat >>$CONFIG_STATUS <<\_ACEOF
9302 { (exit 0); exit 0; }
9303 _ACEOF
9304 chmod +x $CONFIG_STATUS
9305 ac_clean_files=$ac_clean_files_save
9308 # configure is writing to config.log, and then calls config.status.
9309 # config.status does its own redirection, appending to config.log.
9310 # Unfortunately, on DOS this fails, as config.log is still kept open
9311 # by configure, so config.status won't be able to write to it; its
9312 # output is simply discarded. So we exec the FD to /dev/null,
9313 # effectively closing config.log, so it can be properly (re)opened and
9314 # appended to by config.status. When coming back to configure, we
9315 # need to make the FD available again.
9316 if test "$no_create" != yes; then
9317 ac_cs_success=:
9318 ac_config_status_args=
9319 test "$silent" = yes &&
9320 ac_config_status_args="$ac_config_status_args --quiet"
9321 exec 5>/dev/null
9322 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9323 exec 5>>config.log
9324 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9325 # would make configure fail if this is the last instruction.
9326 $ac_cs_success || { (exit 1); exit 1; }