Add missing function comments.
[official-gcc/Ramakrishna.git] / libpcp / configure
blob6507e0b537c54db6cb07463615236606f2c04483
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libpcp Polyhedral Compilation Package Library .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='libpcp'
271 PACKAGE_TARNAME='libpcp'
272 PACKAGE_VERSION='Polyhedral Compilation Package Library '
273 PACKAGE_STRING='libpcp Polyhedral Compilation Package Library '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="pcp.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR CPP EGREP MAINT CXX CXXFLAGS ac_ct_CXX GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316 ac_pwd=`pwd`
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_GMPLIBS_set=${GMPLIBS+set}
785 ac_env_GMPLIBS_value=$GMPLIBS
786 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
787 ac_cv_env_GMPLIBS_value=$GMPLIBS
788 ac_env_GMPINC_set=${GMPINC+set}
789 ac_env_GMPINC_value=$GMPINC
790 ac_cv_env_GMPINC_set=${GMPINC+set}
791 ac_cv_env_GMPINC_value=$GMPINC
792 ac_env_PPLLIBS_set=${PPLLIBS+set}
793 ac_env_PPLLIBS_value=$PPLLIBS
794 ac_cv_env_PPLLIBS_set=${PPLLIBS+set}
795 ac_cv_env_PPLLIBS_value=$PPLLIBS
796 ac_env_PPLINC_set=${PPLINC+set}
797 ac_env_PPLINC_value=$PPLINC
798 ac_cv_env_PPLINC_set=${PPLINC+set}
799 ac_cv_env_PPLINC_value=$PPLINC
800 ac_env_CLOOGLIBS_set=${CLOOGLIBS+set}
801 ac_env_CLOOGLIBS_value=$CLOOGLIBS
802 ac_cv_env_CLOOGLIBS_set=${CLOOGLIBS+set}
803 ac_cv_env_CLOOGLIBS_value=$CLOOGLIBS
804 ac_env_CLOOGINC_set=${CLOOGINC+set}
805 ac_env_CLOOGINC_value=$CLOOGINC
806 ac_cv_env_CLOOGINC_set=${CLOOGINC+set}
807 ac_cv_env_CLOOGINC_value=$CLOOGINC
810 # Report the --help message.
812 if test "$ac_init_help" = "long"; then
813 # Omit some internal or obsolete options to make the list less imposing.
814 # This message is too long to be a string in the A/UX 3.1 sh.
815 cat <<_ACEOF
816 \`configure' configures libpcp Polyhedral Compilation Package Library to adapt to many kinds of systems.
818 Usage: $0 [OPTION]... [VAR=VALUE]...
820 To assign environment variables (e.g., CC, CFLAGS...), specify them as
821 VAR=VALUE. See below for descriptions of some of the useful variables.
823 Defaults for the options are specified in brackets.
825 Configuration:
826 -h, --help display this help and exit
827 --help=short display options specific to this package
828 --help=recursive display the short help of all the included packages
829 -V, --version display version information and exit
830 -q, --quiet, --silent do not print \`checking...' messages
831 --cache-file=FILE cache test results in FILE [disabled]
832 -C, --config-cache alias for \`--cache-file=config.cache'
833 -n, --no-create do not create output files
834 --srcdir=DIR find the sources in DIR [configure dir or \`..']
836 _ACEOF
838 cat <<_ACEOF
839 Installation directories:
840 --prefix=PREFIX install architecture-independent files in PREFIX
841 [$ac_default_prefix]
842 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
843 [PREFIX]
845 By default, \`make install' will install all the files in
846 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
847 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
848 for instance \`--prefix=\$HOME'.
850 For better control, use the options below.
852 Fine tuning of the installation directories:
853 --bindir=DIR user executables [EPREFIX/bin]
854 --sbindir=DIR system admin executables [EPREFIX/sbin]
855 --libexecdir=DIR program executables [EPREFIX/libexec]
856 --datadir=DIR read-only architecture-independent data [PREFIX/share]
857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
859 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
860 --libdir=DIR object code libraries [EPREFIX/lib]
861 --includedir=DIR C header files [PREFIX/include]
862 --oldincludedir=DIR C header files for non-gcc [/usr/include]
863 --infodir=DIR info documentation [PREFIX/info]
864 --mandir=DIR man documentation [PREFIX/man]
865 _ACEOF
867 cat <<\_ACEOF
868 _ACEOF
871 if test -n "$ac_init_help"; then
872 case $ac_init_help in
873 short | recursive ) echo "Configuration of libpcp Polyhedral Compilation Package Library :";;
874 esac
875 cat <<\_ACEOF
877 Optional Features:
878 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
879 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
880 --enable-werror-always enable -Werror despite compiler version
881 --enable-maintainer-mode enable rules only needed by maintainers
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CPP C preprocessor
891 CXX C++ compiler command
892 CXXFLAGS C++ compiler flags
893 GMPLIBS How to link GMP
894 GMPINC How to find GMP include files
895 PPLLIBS How to link PPL
896 PPLINC How to find PPL include files
897 CLOOGLIBS How to link CLOOG
898 CLOOGINC How to find CLOOG include files
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 Report bugs to <gcc-bugs@gcc.gnu.org>.
904 _ACEOF
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
909 ac_popdir=`pwd`
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
912 ac_builddir=.
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 else
919 ac_dir_suffix= ac_top_builddir=
922 case $srcdir in
923 .) # No --srcdir option. We are building in place.
924 ac_srcdir=.
925 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=.
927 else
928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 fi ;;
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
933 *) # Relative path.
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
936 esac
938 # Do not use `cd foo && pwd` to compute absolute paths, because
939 # the directories may not exist.
940 case `pwd` in
941 .) ac_abs_builddir="$ac_dir";;
943 case "$ac_dir" in
944 .) ac_abs_builddir=`pwd`;;
945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
952 case ${ac_top_builddir}. in
953 .) ac_abs_top_builddir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_srcdir=$ac_srcdir;;
961 case $ac_srcdir in
962 .) ac_abs_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
970 case $ac_top_srcdir in
971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 esac;;
975 esac
977 cd $ac_dir
978 # Check for guested configure; otherwise get Cygnus style configure.
979 if test -f $ac_srcdir/configure.gnu; then
980 echo
981 $SHELL $ac_srcdir/configure.gnu --help=recursive
982 elif test -f $ac_srcdir/configure; then
983 echo
984 $SHELL $ac_srcdir/configure --help=recursive
985 elif test -f $ac_srcdir/configure.ac ||
986 test -f $ac_srcdir/configure.in; then
987 echo
988 $ac_configure --help
989 else
990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 cd $ac_popdir
993 done
996 test -n "$ac_init_help" && exit 0
997 if $ac_init_version; then
998 cat <<\_ACEOF
999 libpcp configure Polyhedral Compilation Package Library
1000 generated by GNU Autoconf 2.59
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006 exit 0
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by libpcp $as_me Polyhedral Compilation Package Library , which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1016 $ $0 $@
1018 _ACEOF
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042 _ASUNAME
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050 done
1052 } >&5
1054 cat >&5 <<_ACEOF
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1061 _ACEOF
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1076 for ac_arg
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1109 esac
1110 done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1123 echo
1125 cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 esac;
1146 echo
1148 cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1245 . "$ac_site_file"
1247 done
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1260 else
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 # differences in whitespace do not lead to failure.
1288 ac_old_val_w=`echo x $ac_old_val`
1289 ac_new_val_w=`echo x $ac_new_val`
1290 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 ac_cache_corrupted=:
1294 else
1295 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1296 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1297 eval $ac_var=\$ac_old_val
1299 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1300 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1301 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1302 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1303 fi;;
1304 esac
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1307 case $ac_new_val in
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1311 esac
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315 esac
1317 done
1318 if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1320 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1367 # Checks for programs.
1368 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1369 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1370 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1371 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374 cat >conftest.make <<\_ACEOF
1375 all:
1376 @echo 'ac_maketemp="$(MAKE)"'
1377 _ACEOF
1378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1379 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1380 if test -n "$ac_maketemp"; then
1381 eval ac_cv_prog_make_${ac_make}_set=yes
1382 else
1383 eval ac_cv_prog_make_${ac_make}_set=no
1385 rm -f conftest.make
1387 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1388 echo "$as_me:$LINENO: result: yes" >&5
1389 echo "${ECHO_T}yes" >&6
1390 SET_MAKE=
1391 else
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1394 SET_MAKE="MAKE=${MAKE-make}"
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1424 done
1425 done
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1476 CC=$ac_ct_CC
1477 else
1478 CC="$ac_cv_prog_CC"
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_CC="${ac_tool_prefix}cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1504 done
1505 done
1509 CC=$ac_cv_prog_CC
1510 if test -n "$CC"; then
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1513 else
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$ac_cv_prog_CC"; then
1520 ac_ct_CC=$CC
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1542 done
1543 done
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1556 CC=$ac_ct_CC
1557 else
1558 CC="$ac_cv_prog_CC"
1562 if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564 set dummy cc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1572 else
1573 ac_prog_rejected=no
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1583 continue
1585 ac_cv_prog_CC="cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1589 done
1590 done
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1595 shift
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1600 shift
1601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1606 CC=$ac_cv_prog_CC
1607 if test -n "$CC"; then
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1618 for ac_prog in cl
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1641 done
1642 done
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$CC" && break
1656 done
1658 if test -z "$CC"; then
1659 ac_ct_CC=$CC
1660 for ac_prog in cl
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663 set dummy $ac_prog; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 else
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_ac_ct_CC="$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1683 done
1684 done
1688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689 if test -n "$ac_ct_CC"; then
1690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691 echo "${ECHO_T}$ac_ct_CC" >&6
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1697 test -n "$ac_ct_CC" && break
1698 done
1700 CC=$ac_ct_CC
1706 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1709 See \`config.log' for more details." >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH
1711 See \`config.log' for more details." >&2;}
1712 { (exit 1); exit 1; }; }; }
1714 # Provide some information about the compiler.
1715 echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
1717 ac_compiler=`set X $ac_compile; echo $2`
1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
1725 ac_status=$?
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1734 cat >conftest.$ac_ext <<_ACEOF
1735 /* confdefs.h. */
1736 _ACEOF
1737 cat confdefs.h >>conftest.$ac_ext
1738 cat >>conftest.$ac_ext <<_ACEOF
1739 /* end confdefs.h. */
1742 main ()
1746 return 0;
1748 _ACEOF
1749 ac_clean_files_save=$ac_clean_files
1750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1751 # Try to create an executable without -o first, disregard a.out.
1752 # It will help us diagnose broken compilers, and finding out an intuition
1753 # of exeext.
1754 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758 (eval $ac_link_default) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
1762 # Find the output, starting from the most likely. This scheme is
1763 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1764 # resort.
1766 # Be careful to initialize this variable, since it used to be cached.
1767 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1768 ac_cv_exeext=
1769 # b.out is created by i960 compilers.
1770 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1772 test -f "$ac_file" || continue
1773 case $ac_file in
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1776 conftest.$ac_ext )
1777 # This is the source file.
1779 [ab].out )
1780 # We found the default executable, but exeext='' is most
1781 # certainly right.
1782 break;;
1783 *.* )
1784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785 # FIXME: I believe we export ac_cv_exeext for Libtool,
1786 # but it would be cool to find out if it's true. Does anybody
1787 # maintain Libtool? --akim.
1788 export ac_cv_exeext
1789 break;;
1791 break;;
1792 esac
1793 done
1794 else
1795 echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: C compiler cannot create executables
1803 See \`config.log' for more details." >&2;}
1804 { (exit 77); exit 77; }; }; }
1807 ac_exeext=$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_file" >&5
1809 echo "${ECHO_T}$ac_file" >&6
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816 # If not cross compiling, check that we can run a simple program.
1817 if test "$cross_compiling" != yes; then
1818 if { ac_try='./$ac_file'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1824 cross_compiling=no
1825 else
1826 if test "$cross_compiling" = maybe; then
1827 cross_compiling=yes
1828 else
1829 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot run C compiled programs.
1835 If you meant to cross compile, use \`--host'.
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }; }
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1844 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1845 ac_clean_files=$ac_clean_files_save
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851 echo "${ECHO_T}$cross_compiling" >&6
1853 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1856 (eval $ac_link) 2>&5
1857 ac_status=$?
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1862 # work properly (i.e., refer to `conftest.exe'), while it won't with
1863 # `rm'.
1864 for ac_file in conftest.exe conftest conftest.*; do
1865 test -f "$ac_file" || continue
1866 case $ac_file in
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 export ac_cv_exeext
1870 break;;
1871 * ) break;;
1872 esac
1873 done
1874 else
1875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }; }
1884 rm -f conftest$ac_cv_exeext
1885 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886 echo "${ECHO_T}$ac_cv_exeext" >&6
1888 rm -f conftest.$ac_ext
1889 EXEEXT=$ac_cv_exeext
1890 ac_exeext=$EXEEXT
1891 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1893 if test "${ac_cv_objext+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896 cat >conftest.$ac_ext <<_ACEOF
1897 /* confdefs.h. */
1898 _ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h. */
1904 main ()
1908 return 0;
1910 _ACEOF
1911 rm -f conftest.o conftest.obj
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1918 case $ac_file in
1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1921 break;;
1922 esac
1923 done
1924 else
1925 echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }; }
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1942 ac_objext=$OBJEXT
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 cat >conftest.$ac_ext <<_ACEOF
1949 /* confdefs.h. */
1950 _ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1956 main ()
1958 #ifndef __GNUC__
1959 choke me
1960 #endif
1963 return 0;
1965 _ACEOF
1966 rm -f conftest.$ac_objext
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1969 ac_status=$?
1970 grep -v '^ *+' conftest.er1 >conftest.err
1971 rm -f conftest.er1
1972 cat conftest.err >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978 (eval $ac_try) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1988 ac_compiler_gnu=yes
1989 else
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 ac_compiler_gnu=no
1995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1999 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2001 GCC=`test $ac_compiler_gnu = yes && echo yes`
2002 ac_test_CFLAGS=${CFLAGS+set}
2003 ac_save_CFLAGS=$CFLAGS
2004 CFLAGS="-g"
2005 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_g+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h. */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2018 main ()
2022 return 0;
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>conftest.er1
2028 ac_status=$?
2029 grep -v '^ *+' conftest.er1 >conftest.err
2030 rm -f conftest.er1
2031 cat conftest.err >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
2034 { ac_try='test -z "$ac_c_werror_flag"
2035 || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2047 ac_cv_prog_cc_g=yes
2048 else
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2052 ac_cv_prog_cc_g=no
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2066 else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 ac_cv_prog_cc_stdc=no
2079 ac_save_CC=$CC
2080 cat >conftest.$ac_ext <<_ACEOF
2081 /* confdefs.h. */
2082 _ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2086 #include <stdarg.h>
2087 #include <stdio.h>
2088 #include <sys/types.h>
2089 #include <sys/stat.h>
2090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2091 struct buf { int x; };
2092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093 static char *e (p, i)
2094 char **p;
2095 int i;
2097 return p[i];
2099 static char *f (char * (*g) (char **, int), char **p, ...)
2101 char *s;
2102 va_list v;
2103 va_start (v,p);
2104 s = g (p, va_arg (v,int));
2105 va_end (v);
2106 return s;
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not '\xHH' hex character constants.
2111 These don't provoke an error unfortunately, instead are silently treated
2112 as 'x'. The following induces an error, until -std1 is added to get
2113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2114 array size at least. It's necessary to write '\x00'==0 to get something
2115 that's true only with -std1. */
2116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2118 int test (int i, double x);
2119 struct s1 {int (*f) (int a);};
2120 struct s2 {int (*f) (double a);};
2121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122 int argc;
2123 char **argv;
2125 main ()
2127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2129 return 0;
2131 _ACEOF
2132 # Don't try gcc -ansi; that turns off useful extensions and
2133 # breaks some systems' header files.
2134 # AIX -qlanglvl=ansi
2135 # Ultrix and OSF/1 -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions -Aa -D_HPUX_SOURCE
2138 # SVR4 -Xc -D__EXTENSIONS__
2139 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_cv_prog_cc_stdc=$ac_arg
2165 break
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2171 rm -f conftest.err conftest.$ac_objext
2172 done
2173 rm -f conftest.$ac_ext conftest.$ac_objext
2174 CC=$ac_save_CC
2178 case "x$ac_cv_prog_cc_stdc" in
2179 x|xno)
2180 echo "$as_me:$LINENO: result: none needed" >&5
2181 echo "${ECHO_T}none needed" >&6 ;;
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185 CC="$CC $ac_cv_prog_cc_stdc" ;;
2186 esac
2188 # Some people use a C++ compiler to compile C. Since we use `exit',
2189 # in C++ we need to declare it. In case someone uses the same compiler
2190 # for both compiling C and C++ we need to have the C++ compiler decide
2191 # the declaration of exit, since it's the most demanding environment.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #ifndef __cplusplus
2194 choke me
2195 #endif
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2200 ac_status=$?
2201 grep -v '^ *+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 for ac_declaration in \
2220 '' \
2221 'extern "C" void std::exit (int) throw (); using std::exit;' \
2222 'extern "C" void std::exit (int); using std::exit;' \
2223 'extern "C" void exit (int) throw ();' \
2224 'extern "C" void exit (int);' \
2225 'void exit (int);'
2227 cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233 $ac_declaration
2234 #include <stdlib.h>
2236 main ()
2238 exit (42);
2240 return 0;
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2270 continue
2272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h. */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2279 $ac_declaration
2281 main ()
2283 exit (42);
2285 return 0;
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2291 ac_status=$?
2292 grep -v '^ *+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 break
2311 else
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 done
2318 rm -f conftest*
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2325 else
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 if test -n "$ac_tool_prefix"; then
2338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2340 echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342 if test "${ac_cv_prog_RANLIB+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test -n "$RANLIB"; then
2346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2359 done
2360 done
2364 RANLIB=$ac_cv_prog_RANLIB
2365 if test -n "$RANLIB"; then
2366 echo "$as_me:$LINENO: result: $RANLIB" >&5
2367 echo "${ECHO_T}$RANLIB" >&6
2368 else
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2374 if test -z "$ac_cv_prog_RANLIB"; then
2375 ac_ct_RANLIB=$RANLIB
2376 # Extract the first word of "ranlib", so it can be a program name with args.
2377 set dummy ranlib; ac_word=$2
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 if test -n "$ac_ct_RANLIB"; then
2384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_ac_ct_RANLIB="ranlib"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2397 done
2398 done
2400 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2404 if test -n "$ac_ct_RANLIB"; then
2405 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2406 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2407 else
2408 echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2412 RANLIB=$ac_ct_RANLIB
2413 else
2414 RANLIB="$ac_cv_prog_RANLIB"
2418 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2419 for ac_prog in aclocal
2421 # Extract the first word of "$ac_prog", so it can be a program name with args.
2422 set dummy $ac_prog; ac_word=$2
2423 echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 if test -n "$ACLOCAL"; then
2429 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438 ac_cv_prog_ACLOCAL="$ac_prog"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2442 done
2443 done
2447 ACLOCAL=$ac_cv_prog_ACLOCAL
2448 if test -n "$ACLOCAL"; then
2449 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2450 echo "${ECHO_T}$ACLOCAL" >&6
2451 else
2452 echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6
2456 test -n "$ACLOCAL" && break
2457 done
2458 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2460 for ac_prog in autoconf
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 if test -n "$AUTOCONF"; then
2470 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_AUTOCONF="$ac_prog"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2483 done
2484 done
2488 AUTOCONF=$ac_cv_prog_AUTOCONF
2489 if test -n "$AUTOCONF"; then
2490 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2491 echo "${ECHO_T}$AUTOCONF" >&6
2492 else
2493 echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2497 test -n "$AUTOCONF" && break
2498 done
2499 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2501 for ac_prog in autoheader
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 if test -n "$AUTOHEADER"; then
2511 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_AUTOHEADER="$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2524 done
2525 done
2529 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2530 if test -n "$AUTOHEADER"; then
2531 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2532 echo "${ECHO_T}$AUTOHEADER" >&6
2533 else
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 test -n "$AUTOHEADER" && break
2539 done
2540 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2543 # Figure out what compiler warnings we can enable.
2544 # See config/warnings.m4 for details.
2547 WARN_CFLAGS=
2548 save_CFLAGS="$CFLAGS"
2549 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2550 -Wmissing-prototypes -Wold-style-definition \
2551 -Wmissing-format-attribute -Wcast-qual; do
2552 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2554 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2555 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2556 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 CFLAGS="$option"
2560 cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h. */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2568 main ()
2572 return 0;
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>conftest.er1
2578 ac_status=$?
2579 grep -v '^ *+' conftest.er1 >conftest.err
2580 rm -f conftest.er1
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_c_werror_flag"
2585 || test ! -s conftest.err'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 (eval $ac_try) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 eval "$as_acx_Woption=yes"
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 eval "$as_acx_Woption=no"
2604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2608 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2609 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2610 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2613 done
2614 CFLAGS="$save_CFLAGS"
2616 WARN_PEDANTIC=
2617 if test "$GCC" = yes; then
2618 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2619 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2620 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 save_CFLAGS="$CFLAGS"
2624 CFLAGS="-pedantic -Wno-long-long"
2625 cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h. */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2633 main ()
2637 return 0;
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2643 ac_status=$?
2644 grep -v '^ *+' conftest.er1 >conftest.err
2645 rm -f conftest.er1
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 acx_cv_prog_cc_pedantic__Wno_long_long=no
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 CFLAGS="$save_CFLAGS"
2672 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2673 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2674 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2675 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2683 # Only enable with --enable-werror-always until existing warnings are
2684 # corrected.
2685 WERROR=
2686 # Check whether --enable-werror-always or --disable-werror-always was given.
2687 if test "${enable_werror_always+set}" = set; then
2688 enableval="$enable_werror_always"
2690 else
2691 enable_werror_always=no
2693 if test $enable_werror_always = yes; then
2694 WERROR="$WERROR${WERROR:+ }-Werror"
2700 # Checks for header files.
2701 ac_ext=c
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2707 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2708 # On Suns, sometimes $CPP names a directory.
2709 if test -n "$CPP" && test -d "$CPP"; then
2710 CPP=
2712 if test -z "$CPP"; then
2713 if test "${ac_cv_prog_CPP+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 # Double quotes because CPP needs to be expanded
2717 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2719 ac_preproc_ok=false
2720 for ac_c_preproc_warn_flag in '' yes
2722 # Use a header file that comes with gcc, so configuring glibc
2723 # with a fresh cross-compiler works.
2724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725 # <limits.h> exists even on freestanding compilers.
2726 # On the NeXT, cc -E runs the code through the compiler's parser,
2727 # not just through cpp. "Syntax error" is here to catch this case.
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 #ifdef __STDC__
2735 # include <limits.h>
2736 #else
2737 # include <assert.h>
2738 #endif
2739 Syntax error
2740 _ACEOF
2741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } >/dev/null; then
2749 if test -s conftest.err; then
2750 ac_cpp_err=$ac_c_preproc_warn_flag
2751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2752 else
2753 ac_cpp_err=
2755 else
2756 ac_cpp_err=yes
2758 if test -z "$ac_cpp_err"; then
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 # Broken: fails on valid input.
2765 continue
2767 rm -f conftest.err conftest.$ac_ext
2769 # OK, works on sane cases. Now check whether non-existent headers
2770 # can be detected and how.
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777 #include <ac_nonexistent.h>
2778 _ACEOF
2779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2787 if test -s conftest.err; then
2788 ac_cpp_err=$ac_c_preproc_warn_flag
2789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2790 else
2791 ac_cpp_err=
2793 else
2794 ac_cpp_err=yes
2796 if test -z "$ac_cpp_err"; then
2797 # Broken: success on invalid input.
2798 continue
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 # Passes both tests.
2804 ac_preproc_ok=:
2805 break
2807 rm -f conftest.err conftest.$ac_ext
2809 done
2810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2811 rm -f conftest.err conftest.$ac_ext
2812 if $ac_preproc_ok; then
2813 break
2816 done
2817 ac_cv_prog_CPP=$CPP
2820 CPP=$ac_cv_prog_CPP
2821 else
2822 ac_cv_prog_CPP=$CPP
2824 echo "$as_me:$LINENO: result: $CPP" >&5
2825 echo "${ECHO_T}$CPP" >&6
2826 ac_preproc_ok=false
2827 for ac_c_preproc_warn_flag in '' yes
2829 # Use a header file that comes with gcc, so configuring glibc
2830 # with a fresh cross-compiler works.
2831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2832 # <limits.h> exists even on freestanding compilers.
2833 # On the NeXT, cc -E runs the code through the compiler's parser,
2834 # not just through cpp. "Syntax error" is here to catch this case.
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 #ifdef __STDC__
2842 # include <limits.h>
2843 #else
2844 # include <assert.h>
2845 #endif
2846 Syntax error
2847 _ACEOF
2848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev/null; then
2856 if test -s conftest.err; then
2857 ac_cpp_err=$ac_c_preproc_warn_flag
2858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2859 else
2860 ac_cpp_err=
2862 else
2863 ac_cpp_err=yes
2865 if test -z "$ac_cpp_err"; then
2867 else
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2871 # Broken: fails on valid input.
2872 continue
2874 rm -f conftest.err conftest.$ac_ext
2876 # OK, works on sane cases. Now check whether non-existent headers
2877 # can be detected and how.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <ac_nonexistent.h>
2885 _ACEOF
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_c_preproc_warn_flag
2896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2897 else
2898 ac_cpp_err=
2900 else
2901 ac_cpp_err=yes
2903 if test -z "$ac_cpp_err"; then
2904 # Broken: success on invalid input.
2905 continue
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2910 # Passes both tests.
2911 ac_preproc_ok=:
2912 break
2914 rm -f conftest.err conftest.$ac_ext
2916 done
2917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2918 rm -f conftest.err conftest.$ac_ext
2919 if $ac_preproc_ok; then
2921 else
2922 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2923 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }; }
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking for egrep" >&5
2939 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2940 if test "${ac_cv_prog_egrep+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2944 then ac_cv_prog_egrep='grep -E'
2945 else ac_cv_prog_egrep='egrep'
2948 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2949 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2950 EGREP=$ac_cv_prog_egrep
2953 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2954 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2955 if test "${ac_cv_header_stdc+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <stdlib.h>
2965 #include <stdarg.h>
2966 #include <string.h>
2967 #include <float.h>
2970 main ()
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 ac_cv_header_stdc=yes
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 ac_cv_header_stdc=no
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3008 if test $ac_cv_header_stdc = yes; then
3009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #include <string.h>
3018 _ACEOF
3019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3020 $EGREP "memchr" >/dev/null 2>&1; then
3022 else
3023 ac_cv_header_stdc=no
3025 rm -f conftest*
3029 if test $ac_cv_header_stdc = yes; then
3030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 #include <stdlib.h>
3039 _ACEOF
3040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041 $EGREP "free" >/dev/null 2>&1; then
3043 else
3044 ac_cv_header_stdc=no
3046 rm -f conftest*
3050 if test $ac_cv_header_stdc = yes; then
3051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3052 if test "$cross_compiling" = yes; then
3054 else
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061 #include <ctype.h>
3062 #if ((' ' & 0x0FF) == 0x020)
3063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3065 #else
3066 # define ISLOWER(c) \
3067 (('a' <= (c) && (c) <= 'i') \
3068 || ('j' <= (c) && (c) <= 'r') \
3069 || ('s' <= (c) && (c) <= 'z'))
3070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3071 #endif
3073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3075 main ()
3077 int i;
3078 for (i = 0; i < 256; i++)
3079 if (XOR (islower (i), ISLOWER (i))
3080 || toupper (i) != TOUPPER (i))
3081 exit(2);
3082 exit (0);
3084 _ACEOF
3085 rm -f conftest$ac_exeext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087 (eval $ac_link) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 (eval $ac_try) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3097 else
3098 echo "$as_me: program exited with status $ac_status" >&5
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 ( exit $ac_status )
3103 ac_cv_header_stdc=no
3105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3109 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3110 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3111 if test $ac_cv_header_stdc = yes; then
3113 cat >>confdefs.h <<\_ACEOF
3114 #define STDC_HEADERS 1
3115 _ACEOF
3119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3130 inttypes.h stdint.h unistd.h
3132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3133 echo "$as_me:$LINENO: checking for $ac_header" >&5
3134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 $ac_includes_default
3146 #include <$ac_header>
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>conftest.er1
3151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag"
3158 || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 eval "$as_ac_Header=yes"
3171 else
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 eval "$as_ac_Header=no"
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3182 cat >>confdefs.h <<_ACEOF
3183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3184 _ACEOF
3188 done
3194 for ac_header in stddef.h string.h stdio.h
3196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3198 echo "$as_me:$LINENO: checking for $ac_header" >&5
3199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3205 else
3206 # Is the header compilable?
3207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 $ac_includes_default
3216 #include <$ac_header>
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try='test -z "$ac_c_werror_flag"
3228 || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_header_compiler=yes
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_header_compiler=no
3247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3249 echo "${ECHO_T}$ac_header_compiler" >&6
3251 # Is the header present?
3252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 #include <$ac_header>
3261 _ACEOF
3262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_c_preproc_warn_flag
3272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3273 else
3274 ac_cpp_err=
3276 else
3277 ac_cpp_err=yes
3279 if test -z "$ac_cpp_err"; then
3280 ac_header_preproc=yes
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_header_preproc=no
3287 rm -f conftest.err conftest.$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3289 echo "${ECHO_T}$ac_header_preproc" >&6
3291 # So? What about this header?
3292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3293 yes:no: )
3294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3298 ac_header_preproc=yes
3300 no:yes:* )
3301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3314 cat <<\_ASBOX
3315 ## ----------------------------------- ##
3316 ## Report this to gcc-bugs@gcc.gnu.org ##
3317 ## ----------------------------------- ##
3318 _ASBOX
3320 sed "s/^/$as_me: WARNING: /" >&2
3322 esac
3323 echo "$as_me:$LINENO: checking for $ac_header" >&5
3324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 eval "$as_ac_Header=\$ac_header_preproc"
3330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3335 cat >>confdefs.h <<_ACEOF
3336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3337 _ACEOF
3341 done
3345 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
3347 acx_cv_header_stdint=stddef.h
3348 acx_cv_header_stdint_kind="(already complete)"
3349 for i in stdint.h $inttype_headers; do
3350 unset ac_cv_type_uintptr_t
3351 unset ac_cv_type_uintmax_t
3352 unset ac_cv_type_int_least32_t
3353 unset ac_cv_type_int_fast32_t
3354 unset ac_cv_type_uint64_t
3355 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
3356 echo "$as_me:$LINENO: checking for uintmax_t" >&5
3357 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
3358 if test "${ac_cv_type_uintmax_t+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #include <sys/types.h>
3368 #include <$i>
3371 main ()
3373 if ((uintmax_t *) 0)
3374 return 0;
3375 if (sizeof (uintmax_t))
3376 return 0;
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_type_uintmax_t=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_type_uintmax_t=no
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
3413 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
3414 if test $ac_cv_type_uintmax_t = yes; then
3415 acx_cv_header_stdint=$i
3416 else
3417 continue
3420 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3421 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3422 if test "${ac_cv_type_uintptr_t+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <sys/types.h>
3432 #include <$i>
3435 main ()
3437 if ((uintptr_t *) 0)
3438 return 0;
3439 if (sizeof (uintptr_t))
3440 return 0;
3442 return 0;
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -z "$ac_c_werror_flag"
3455 || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_cv_type_uintptr_t=yes
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 ac_cv_type_uintptr_t=no
3474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3476 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3477 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3478 if test $ac_cv_type_uintptr_t = yes; then
3480 else
3481 acx_cv_header_stdint_kind="(mostly complete)"
3484 echo "$as_me:$LINENO: checking for int_least32_t" >&5
3485 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
3486 if test "${ac_cv_type_int_least32_t+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <sys/types.h>
3496 #include <$i>
3499 main ()
3501 if ((int_least32_t *) 0)
3502 return 0;
3503 if (sizeof (int_least32_t))
3504 return 0;
3506 return 0;
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_cv_type_int_least32_t=yes
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 ac_cv_type_int_least32_t=no
3538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3540 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
3541 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
3542 if test $ac_cv_type_int_least32_t = yes; then
3544 else
3545 acx_cv_header_stdint_kind="(mostly complete)"
3548 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
3549 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
3550 if test "${ac_cv_type_int_fast32_t+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 #include <$i>
3563 main ()
3565 if ((int_fast32_t *) 0)
3566 return 0;
3567 if (sizeof (int_fast32_t))
3568 return 0;
3570 return 0;
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag"
3583 || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_type_int_fast32_t=yes
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3600 ac_cv_type_int_fast32_t=no
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
3605 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
3606 if test $ac_cv_type_int_fast32_t = yes; then
3608 else
3609 acx_cv_header_stdint_kind="(mostly complete)"
3612 echo "$as_me:$LINENO: checking for uint64_t" >&5
3613 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3614 if test "${ac_cv_type_uint64_t+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <sys/types.h>
3624 #include <$i>
3627 main ()
3629 if ((uint64_t *) 0)
3630 return 0;
3631 if (sizeof (uint64_t))
3632 return 0;
3634 return 0;
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_cv_type_uint64_t=yes
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 ac_cv_type_uint64_t=no
3666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3668 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3669 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3670 if test $ac_cv_type_uint64_t = yes; then
3672 else
3673 acx_cv_header_stdint_kind="(lacks uint64_t)"
3676 break
3677 done
3678 if test "$acx_cv_header_stdint" = stddef.h; then
3679 acx_cv_header_stdint_kind="(lacks uintmax_t)"
3680 for i in stdint.h $inttype_headers; do
3681 unset ac_cv_type_uintptr_t
3682 unset ac_cv_type_uint32_t
3683 unset ac_cv_type_uint64_t
3684 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
3685 echo "$as_me:$LINENO: checking for uint32_t" >&5
3686 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3687 if test "${ac_cv_type_uint32_t+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 #include <sys/types.h>
3697 #include <$i>
3700 main ()
3702 if ((uint32_t *) 0)
3703 return 0;
3704 if (sizeof (uint32_t))
3705 return 0;
3707 return 0;
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_type_uint32_t=yes
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ac_cv_type_uint32_t=no
3739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3741 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
3742 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3743 if test $ac_cv_type_uint32_t = yes; then
3744 acx_cv_header_stdint=$i
3745 else
3746 continue
3749 echo "$as_me:$LINENO: checking for uint64_t" >&5
3750 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3751 if test "${ac_cv_type_uint64_t+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 #include <sys/types.h>
3761 #include <$i>
3764 main ()
3766 if ((uint64_t *) 0)
3767 return 0;
3768 if (sizeof (uint64_t))
3769 return 0;
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest.$ac_objext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_cv_type_uint64_t=yes
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 ac_cv_type_uint64_t=no
3803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3806 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3808 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3809 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3810 if test "${ac_cv_type_uintptr_t+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <sys/types.h>
3820 #include <$i>
3823 main ()
3825 if ((uintptr_t *) 0)
3826 return 0;
3827 if (sizeof (uintptr_t))
3828 return 0;
3830 return 0;
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3835 (eval $ac_compile) 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try='test -z "$ac_c_werror_flag"
3843 || test ! -s conftest.err'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try='test -s conftest.$ac_objext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 (eval $ac_try) 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 ac_cv_type_uintptr_t=yes
3856 else
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 ac_cv_type_uintptr_t=no
3862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3864 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3865 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3867 break
3868 done
3870 if test "$acx_cv_header_stdint" = stddef.h; then
3871 acx_cv_header_stdint_kind="(u_intXX_t style)"
3872 for i in sys/types.h $inttype_headers; do
3873 unset ac_cv_type_u_int32_t
3874 unset ac_cv_type_u_int64_t
3875 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
3876 echo "$as_me:$LINENO: checking for u_int32_t" >&5
3877 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3878 if test "${ac_cv_type_u_int32_t+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <sys/types.h>
3888 #include <$i>
3891 main ()
3893 if ((u_int32_t *) 0)
3894 return 0;
3895 if (sizeof (u_int32_t))
3896 return 0;
3898 return 0;
3900 _ACEOF
3901 rm -f conftest.$ac_objext
3902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -z "$ac_c_werror_flag"
3911 || test ! -s conftest.err'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 (eval $ac_try) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; } &&
3917 { ac_try='test -s conftest.$ac_objext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_cv_type_u_int32_t=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_type_u_int32_t=no
3930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
3933 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3934 if test $ac_cv_type_u_int32_t = yes; then
3935 acx_cv_header_stdint=$i
3936 else
3937 continue
3940 echo "$as_me:$LINENO: checking for u_int64_t" >&5
3941 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3942 if test "${ac_cv_type_u_int64_t+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <sys/types.h>
3952 #include <$i>
3955 main ()
3957 if ((u_int64_t *) 0)
3958 return 0;
3959 if (sizeof (u_int64_t))
3960 return 0;
3962 return 0;
3964 _ACEOF
3965 rm -f conftest.$ac_objext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>conftest.er1
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } &&
3974 { ac_try='test -z "$ac_c_werror_flag"
3975 || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_cv_type_u_int64_t=yes
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 ac_cv_type_u_int64_t=no
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
3997 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3999 break
4000 done
4002 if test "$acx_cv_header_stdint" = stddef.h; then
4003 acx_cv_header_stdint_kind="(using manual detection)"
4006 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
4007 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
4008 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
4009 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
4010 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
4012 # ----------------- Summarize what we found so far
4014 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
4015 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
4017 case `$as_basename gstdint.h ||
4018 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
4019 Xgstdint.h : 'X\(//\)$' \| \
4020 Xgstdint.h : 'X\(/\)$' \| \
4021 . : '\(.\)' 2>/dev/null ||
4022 echo X/gstdint.h |
4023 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4024 /^X\/\(\/\/\)$/{ s//\1/; q; }
4025 /^X\/\(\/\).*/{ s//\1/; q; }
4026 s/.*/./; q'` in
4027 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
4028 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4029 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
4030 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4031 *) ;;
4032 esac
4034 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
4035 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4037 # ----------------- done included file, check C basic types --------
4039 # Lacking an uintptr_t? Test size of void *
4040 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
4041 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
4042 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4043 if test "${ac_cv_type_void_p+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 $ac_includes_default
4054 main ()
4056 if ((void * *) 0)
4057 return 0;
4058 if (sizeof (void *))
4059 return 0;
4061 return 0;
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_type_void_p=yes
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ac_cv_type_void_p=no
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4096 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4098 echo "$as_me:$LINENO: checking size of void *" >&5
4099 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4100 if test "${ac_cv_sizeof_void_p+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 if test "$ac_cv_type_void_p" = yes; then
4104 # The cast to unsigned long works around a bug in the HP C Compiler
4105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4107 # This bug is HP SR number 8606223364.
4108 if test "$cross_compiling" = yes; then
4109 # Depending upon the size, compute the lo and hi bounds.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 $ac_includes_default
4118 main ()
4120 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4121 test_array [0] = 0
4124 return 0;
4126 _ACEOF
4127 rm -f conftest.$ac_objext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_lo=0 ac_mid=0
4150 while :; do
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 $ac_includes_default
4159 main ()
4161 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4162 test_array [0] = 0
4165 return 0;
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_hi=$ac_mid; break
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_lo=`expr $ac_mid + 1`
4196 if test $ac_lo -le $ac_mid; then
4197 ac_lo= ac_hi=
4198 break
4200 ac_mid=`expr 2 '*' $ac_mid + 1`
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203 done
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 $ac_includes_default
4216 main ()
4218 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4219 test_array [0] = 0
4222 return 0;
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_hi=-1 ac_mid=-1
4248 while :; do
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4257 main ()
4259 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4260 test_array [0] = 0
4263 return 0;
4265 _ACEOF
4266 rm -f conftest.$ac_objext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4268 (eval $ac_compile) 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag"
4276 || test ! -s conftest.err'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_lo=$ac_mid; break
4289 else
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_hi=`expr '(' $ac_mid ')' - 1`
4294 if test $ac_mid -le $ac_hi; then
4295 ac_lo= ac_hi=
4296 break
4298 ac_mid=`expr 2 '*' $ac_mid`
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301 done
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 ac_lo= ac_hi=
4308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311 # Binary search between lo and hi bounds.
4312 while test "x$ac_lo" != "x$ac_hi"; do
4313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4322 main ()
4324 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4325 test_array [0] = 0
4328 return 0;
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333 (eval $ac_compile) 2>conftest.er1
4334 ac_status=$?
4335 grep -v '^ *+' conftest.er1 >conftest.err
4336 rm -f conftest.er1
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } &&
4340 { ac_try='test -z "$ac_c_werror_flag"
4341 || test ! -s conftest.err'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; } &&
4347 { ac_try='test -s conftest.$ac_objext'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_hi=$ac_mid
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 ac_lo=`expr '(' $ac_mid ')' + 1`
4360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 done
4362 case $ac_lo in
4363 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4364 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4365 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4366 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4367 See \`config.log' for more details." >&5
4368 echo "$as_me: error: cannot compute sizeof (void *), 77
4369 See \`config.log' for more details." >&2;}
4370 { (exit 1); exit 1; }; }; } ;;
4371 esac
4372 else
4373 if test "$cross_compiling" = yes; then
4374 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4375 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4376 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: cannot run test program while cross compiling
4379 See \`config.log' for more details." >&2;}
4380 { (exit 1); exit 1; }; }; }
4381 else
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4389 long longval () { return (long) (sizeof (void *)); }
4390 unsigned long ulongval () { return (long) (sizeof (void *)); }
4391 #include <stdio.h>
4392 #include <stdlib.h>
4394 main ()
4397 FILE *f = fopen ("conftest.val", "w");
4398 if (! f)
4399 exit (1);
4400 if (((long) (sizeof (void *))) < 0)
4402 long i = longval ();
4403 if (i != ((long) (sizeof (void *))))
4404 exit (1);
4405 fprintf (f, "%ld\n", i);
4407 else
4409 unsigned long i = ulongval ();
4410 if (i != ((long) (sizeof (void *))))
4411 exit (1);
4412 fprintf (f, "%lu\n", i);
4414 exit (ferror (f) || fclose (f) != 0);
4417 return 0;
4419 _ACEOF
4420 rm -f conftest$ac_exeext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4422 (eval $ac_link) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_sizeof_void_p=`cat conftest.val`
4432 else
4433 echo "$as_me: program exited with status $ac_status" >&5
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ( exit $ac_status )
4438 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4439 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4441 See \`config.log' for more details." >&5
4442 echo "$as_me: error: cannot compute sizeof (void *), 77
4443 See \`config.log' for more details." >&2;}
4444 { (exit 1); exit 1; }; }; }
4446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4449 rm -f conftest.val
4450 else
4451 ac_cv_sizeof_void_p=0
4454 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4455 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4456 cat >>confdefs.h <<_ACEOF
4457 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4458 _ACEOF
4461 esac
4463 # Lacking an uint64_t? Test size of long
4464 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4465 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
4466 echo $ECHO_N "checking for long... $ECHO_C" >&6
4467 if test "${ac_cv_type_long+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 $ac_includes_default
4478 main ()
4480 if ((long *) 0)
4481 return 0;
4482 if (sizeof (long))
4483 return 0;
4485 return 0;
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_cv_type_long=yes
4511 else
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ac_cv_type_long=no
4517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4520 echo "${ECHO_T}$ac_cv_type_long" >&6
4522 echo "$as_me:$LINENO: checking size of long" >&5
4523 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4524 if test "${ac_cv_sizeof_long+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 if test "$ac_cv_type_long" = yes; then
4528 # The cast to unsigned long works around a bug in the HP C Compiler
4529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4531 # This bug is HP SR number 8606223364.
4532 if test "$cross_compiling" = yes; then
4533 # Depending upon the size, compute the lo and hi bounds.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4542 main ()
4544 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4545 test_array [0] = 0
4548 return 0;
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag"
4561 || test ! -s conftest.err'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_lo=0 ac_mid=0
4574 while :; do
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 $ac_includes_default
4583 main ()
4585 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4586 test_array [0] = 0
4589 return 0;
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_c_werror_flag"
4602 || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_hi=$ac_mid; break
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_lo=`expr $ac_mid + 1`
4620 if test $ac_lo -le $ac_mid; then
4621 ac_lo= ac_hi=
4622 break
4624 ac_mid=`expr 2 '*' $ac_mid + 1`
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 done
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4640 main ()
4642 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4643 test_array [0] = 0
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_hi=-1 ac_mid=-1
4672 while :; do
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 $ac_includes_default
4681 main ()
4683 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4684 test_array [0] = 0
4687 return 0;
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_lo=$ac_mid; break
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_hi=`expr '(' $ac_mid ')' - 1`
4718 if test $ac_mid -le $ac_hi; then
4719 ac_lo= ac_hi=
4720 break
4722 ac_mid=`expr 2 '*' $ac_mid`
4724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4725 done
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 ac_lo= ac_hi=
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 # Binary search between lo and hi bounds.
4736 while test "x$ac_lo" != "x$ac_hi"; do
4737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4746 main ()
4748 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4749 test_array [0] = 0
4752 return 0;
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
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); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_hi=$ac_mid
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_lo=`expr '(' $ac_mid ')' + 1`
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 done
4786 case $ac_lo in
4787 ?*) ac_cv_sizeof_long=$ac_lo;;
4788 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4789 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: cannot compute sizeof (long), 77
4793 See \`config.log' for more details." >&2;}
4794 { (exit 1); exit 1; }; }; } ;;
4795 esac
4796 else
4797 if test "$cross_compiling" = yes; then
4798 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4799 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4800 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4801 See \`config.log' for more details." >&5
4802 echo "$as_me: error: cannot run test program while cross compiling
4803 See \`config.log' for more details." >&2;}
4804 { (exit 1); exit 1; }; }; }
4805 else
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4813 long longval () { return (long) (sizeof (long)); }
4814 unsigned long ulongval () { return (long) (sizeof (long)); }
4815 #include <stdio.h>
4816 #include <stdlib.h>
4818 main ()
4821 FILE *f = fopen ("conftest.val", "w");
4822 if (! f)
4823 exit (1);
4824 if (((long) (sizeof (long))) < 0)
4826 long i = longval ();
4827 if (i != ((long) (sizeof (long))))
4828 exit (1);
4829 fprintf (f, "%ld\n", i);
4831 else
4833 unsigned long i = ulongval ();
4834 if (i != ((long) (sizeof (long))))
4835 exit (1);
4836 fprintf (f, "%lu\n", i);
4838 exit (ferror (f) || fclose (f) != 0);
4841 return 0;
4843 _ACEOF
4844 rm -f conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846 (eval $ac_link) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_sizeof_long=`cat conftest.val`
4856 else
4857 echo "$as_me: program exited with status $ac_status" >&5
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ( exit $ac_status )
4862 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4863 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4864 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4865 See \`config.log' for more details." >&5
4866 echo "$as_me: error: cannot compute sizeof (long), 77
4867 See \`config.log' for more details." >&2;}
4868 { (exit 1); exit 1; }; }; }
4870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4873 rm -f conftest.val
4874 else
4875 ac_cv_sizeof_long=0
4878 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4879 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4880 cat >>confdefs.h <<_ACEOF
4881 #define SIZEOF_LONG $ac_cv_sizeof_long
4882 _ACEOF
4885 esac
4887 if test $acx_cv_header_stdint = stddef.h; then
4888 # Lacking a good header? Test size of everything and deduce all types.
4889 echo "$as_me:$LINENO: checking for int" >&5
4890 echo $ECHO_N "checking for int... $ECHO_C" >&6
4891 if test "${ac_cv_type_int+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4902 main ()
4904 if ((int *) 0)
4905 return 0;
4906 if (sizeof (int))
4907 return 0;
4909 return 0;
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_type_int=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 ac_cv_type_int=no
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4944 echo "${ECHO_T}$ac_cv_type_int" >&6
4946 echo "$as_me:$LINENO: checking size of int" >&5
4947 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4948 if test "${ac_cv_sizeof_int+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 if test "$ac_cv_type_int" = yes; then
4952 # The cast to unsigned long works around a bug in the HP C Compiler
4953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4955 # This bug is HP SR number 8606223364.
4956 if test "$cross_compiling" = yes; then
4957 # Depending upon the size, compute the lo and hi bounds.
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4966 main ()
4968 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4969 test_array [0] = 0
4972 return 0;
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -z "$ac_c_werror_flag"
4985 || test ! -s conftest.err'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_lo=0 ac_mid=0
4998 while :; do
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 $ac_includes_default
5007 main ()
5009 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5010 test_array [0] = 0
5013 return 0;
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_hi=$ac_mid; break
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 ac_lo=`expr $ac_mid + 1`
5044 if test $ac_lo -le $ac_mid; then
5045 ac_lo= ac_hi=
5046 break
5048 ac_mid=`expr 2 '*' $ac_mid + 1`
5050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051 done
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h. */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 $ac_includes_default
5064 main ()
5066 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5067 test_array [0] = 0
5070 return 0;
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag"
5083 || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest.$ac_objext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 ac_hi=-1 ac_mid=-1
5096 while :; do
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 $ac_includes_default
5105 main ()
5107 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5108 test_array [0] = 0
5111 return 0;
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest.$ac_objext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_lo=$ac_mid; break
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_hi=`expr '(' $ac_mid ')' - 1`
5142 if test $ac_mid -le $ac_hi; then
5143 ac_lo= ac_hi=
5144 break
5146 ac_mid=`expr 2 '*' $ac_mid`
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 done
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_lo= ac_hi=
5156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5159 # Binary search between lo and hi bounds.
5160 while test "x$ac_lo" != "x$ac_hi"; do
5161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 $ac_includes_default
5170 main ()
5172 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5173 test_array [0] = 0
5176 return 0;
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_hi=$ac_mid
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_lo=`expr '(' $ac_mid ')' + 1`
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209 done
5210 case $ac_lo in
5211 ?*) ac_cv_sizeof_int=$ac_lo;;
5212 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5213 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5215 See \`config.log' for more details." >&5
5216 echo "$as_me: error: cannot compute sizeof (int), 77
5217 See \`config.log' for more details." >&2;}
5218 { (exit 1); exit 1; }; }; } ;;
5219 esac
5220 else
5221 if test "$cross_compiling" = yes; then
5222 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5223 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: cannot run test program while cross compiling
5227 See \`config.log' for more details." >&2;}
5228 { (exit 1); exit 1; }; }; }
5229 else
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 $ac_includes_default
5237 long longval () { return (long) (sizeof (int)); }
5238 unsigned long ulongval () { return (long) (sizeof (int)); }
5239 #include <stdio.h>
5240 #include <stdlib.h>
5242 main ()
5245 FILE *f = fopen ("conftest.val", "w");
5246 if (! f)
5247 exit (1);
5248 if (((long) (sizeof (int))) < 0)
5250 long i = longval ();
5251 if (i != ((long) (sizeof (int))))
5252 exit (1);
5253 fprintf (f, "%ld\n", i);
5255 else
5257 unsigned long i = ulongval ();
5258 if (i != ((long) (sizeof (int))))
5259 exit (1);
5260 fprintf (f, "%lu\n", i);
5262 exit (ferror (f) || fclose (f) != 0);
5265 return 0;
5267 _ACEOF
5268 rm -f conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270 (eval $ac_link) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_sizeof_int=`cat conftest.val`
5280 else
5281 echo "$as_me: program exited with status $ac_status" >&5
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ( exit $ac_status )
5286 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5287 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5288 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5289 See \`config.log' for more details." >&5
5290 echo "$as_me: error: cannot compute sizeof (int), 77
5291 See \`config.log' for more details." >&2;}
5292 { (exit 1); exit 1; }; }; }
5294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5297 rm -f conftest.val
5298 else
5299 ac_cv_sizeof_int=0
5302 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5303 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5304 cat >>confdefs.h <<_ACEOF
5305 #define SIZEOF_INT $ac_cv_sizeof_int
5306 _ACEOF
5309 echo "$as_me:$LINENO: checking for short" >&5
5310 echo $ECHO_N "checking for short... $ECHO_C" >&6
5311 if test "${ac_cv_type_short+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 $ac_includes_default
5322 main ()
5324 if ((short *) 0)
5325 return 0;
5326 if (sizeof (short))
5327 return 0;
5329 return 0;
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_type_short=yes
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_type_short=no
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5364 echo "${ECHO_T}$ac_cv_type_short" >&6
5366 echo "$as_me:$LINENO: checking size of short" >&5
5367 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5368 if test "${ac_cv_sizeof_short+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 if test "$ac_cv_type_short" = yes; then
5372 # The cast to unsigned long works around a bug in the HP C Compiler
5373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5375 # This bug is HP SR number 8606223364.
5376 if test "$cross_compiling" = yes; then
5377 # Depending upon the size, compute the lo and hi bounds.
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5386 main ()
5388 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5389 test_array [0] = 0
5392 return 0;
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_lo=0 ac_mid=0
5418 while :; do
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5427 main ()
5429 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5430 test_array [0] = 0
5433 return 0;
5435 _ACEOF
5436 rm -f conftest.$ac_objext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 ac_hi=$ac_mid; break
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_lo=`expr $ac_mid + 1`
5464 if test $ac_lo -le $ac_mid; then
5465 ac_lo= ac_hi=
5466 break
5468 ac_mid=`expr 2 '*' $ac_mid + 1`
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 done
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5484 main ()
5486 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5487 test_array [0] = 0
5490 return 0;
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_hi=-1 ac_mid=-1
5516 while :; do
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5525 main ()
5527 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5528 test_array [0] = 0
5531 return 0;
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536 (eval $ac_compile) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_lo=$ac_mid; break
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 ac_hi=`expr '(' $ac_mid ')' - 1`
5562 if test $ac_mid -le $ac_hi; then
5563 ac_lo= ac_hi=
5564 break
5566 ac_mid=`expr 2 '*' $ac_mid`
5568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5569 done
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_lo= ac_hi=
5576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5579 # Binary search between lo and hi bounds.
5580 while test "x$ac_lo" != "x$ac_hi"; do
5581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5590 main ()
5592 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5593 test_array [0] = 0
5596 return 0;
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -z "$ac_c_werror_flag"
5609 || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_hi=$ac_mid
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_lo=`expr '(' $ac_mid ')' + 1`
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 done
5630 case $ac_lo in
5631 ?*) ac_cv_sizeof_short=$ac_lo;;
5632 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5633 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5635 See \`config.log' for more details." >&5
5636 echo "$as_me: error: cannot compute sizeof (short), 77
5637 See \`config.log' for more details." >&2;}
5638 { (exit 1); exit 1; }; }; } ;;
5639 esac
5640 else
5641 if test "$cross_compiling" = yes; then
5642 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5643 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5645 See \`config.log' for more details." >&5
5646 echo "$as_me: error: cannot run test program while cross compiling
5647 See \`config.log' for more details." >&2;}
5648 { (exit 1); exit 1; }; }; }
5649 else
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 $ac_includes_default
5657 long longval () { return (long) (sizeof (short)); }
5658 unsigned long ulongval () { return (long) (sizeof (short)); }
5659 #include <stdio.h>
5660 #include <stdlib.h>
5662 main ()
5665 FILE *f = fopen ("conftest.val", "w");
5666 if (! f)
5667 exit (1);
5668 if (((long) (sizeof (short))) < 0)
5670 long i = longval ();
5671 if (i != ((long) (sizeof (short))))
5672 exit (1);
5673 fprintf (f, "%ld\n", i);
5675 else
5677 unsigned long i = ulongval ();
5678 if (i != ((long) (sizeof (short))))
5679 exit (1);
5680 fprintf (f, "%lu\n", i);
5682 exit (ferror (f) || fclose (f) != 0);
5685 return 0;
5687 _ACEOF
5688 rm -f conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_sizeof_short=`cat conftest.val`
5700 else
5701 echo "$as_me: program exited with status $ac_status" >&5
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ( exit $ac_status )
5706 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5707 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5708 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5709 See \`config.log' for more details." >&5
5710 echo "$as_me: error: cannot compute sizeof (short), 77
5711 See \`config.log' for more details." >&2;}
5712 { (exit 1); exit 1; }; }; }
5714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5717 rm -f conftest.val
5718 else
5719 ac_cv_sizeof_short=0
5722 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5723 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5724 cat >>confdefs.h <<_ACEOF
5725 #define SIZEOF_SHORT $ac_cv_sizeof_short
5726 _ACEOF
5729 echo "$as_me:$LINENO: checking for char" >&5
5730 echo $ECHO_N "checking for char... $ECHO_C" >&6
5731 if test "${ac_cv_type_char+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 $ac_includes_default
5742 main ()
5744 if ((char *) 0)
5745 return 0;
5746 if (sizeof (char))
5747 return 0;
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_type_char=yes
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_cv_type_char=no
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5784 echo "${ECHO_T}$ac_cv_type_char" >&6
5786 echo "$as_me:$LINENO: checking size of char" >&5
5787 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5788 if test "${ac_cv_sizeof_char+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 if test "$ac_cv_type_char" = yes; then
5792 # The cast to unsigned long works around a bug in the HP C Compiler
5793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5795 # This bug is HP SR number 8606223364.
5796 if test "$cross_compiling" = yes; then
5797 # Depending upon the size, compute the lo and hi bounds.
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5806 main ()
5808 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5809 test_array [0] = 0
5812 return 0;
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_lo=0 ac_mid=0
5838 while :; do
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5847 main ()
5849 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5850 test_array [0] = 0
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_hi=$ac_mid; break
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_lo=`expr $ac_mid + 1`
5884 if test $ac_lo -le $ac_mid; then
5885 ac_lo= ac_hi=
5886 break
5888 ac_mid=`expr 2 '*' $ac_mid + 1`
5890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5891 done
5892 else
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 $ac_includes_default
5904 main ()
5906 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5907 test_array [0] = 0
5910 return 0;
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag"
5923 || test ! -s conftest.err'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_hi=-1 ac_mid=-1
5936 while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5948 test_array [0] = 0
5951 return 0;
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag"
5964 || test ! -s conftest.err'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_lo=$ac_mid; break
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_hi=`expr '(' $ac_mid ')' - 1`
5982 if test $ac_mid -le $ac_hi; then
5983 ac_lo= ac_hi=
5984 break
5986 ac_mid=`expr 2 '*' $ac_mid`
5988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5989 done
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 ac_lo= ac_hi=
5996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5999 # Binary search between lo and hi bounds.
6000 while test "x$ac_lo" != "x$ac_hi"; do
6001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6010 main ()
6012 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6013 test_array [0] = 0
6016 return 0;
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest.$ac_objext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_hi=$ac_mid
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 ac_lo=`expr '(' $ac_mid ')' + 1`
6048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6049 done
6050 case $ac_lo in
6051 ?*) ac_cv_sizeof_char=$ac_lo;;
6052 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6053 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6054 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6055 See \`config.log' for more details." >&5
6056 echo "$as_me: error: cannot compute sizeof (char), 77
6057 See \`config.log' for more details." >&2;}
6058 { (exit 1); exit 1; }; }; } ;;
6059 esac
6060 else
6061 if test "$cross_compiling" = yes; then
6062 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6063 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6065 See \`config.log' for more details." >&5
6066 echo "$as_me: error: cannot run test program while cross compiling
6067 See \`config.log' for more details." >&2;}
6068 { (exit 1); exit 1; }; }; }
6069 else
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 $ac_includes_default
6077 long longval () { return (long) (sizeof (char)); }
6078 unsigned long ulongval () { return (long) (sizeof (char)); }
6079 #include <stdio.h>
6080 #include <stdlib.h>
6082 main ()
6085 FILE *f = fopen ("conftest.val", "w");
6086 if (! f)
6087 exit (1);
6088 if (((long) (sizeof (char))) < 0)
6090 long i = longval ();
6091 if (i != ((long) (sizeof (char))))
6092 exit (1);
6093 fprintf (f, "%ld\n", i);
6095 else
6097 unsigned long i = ulongval ();
6098 if (i != ((long) (sizeof (char))))
6099 exit (1);
6100 fprintf (f, "%lu\n", i);
6102 exit (ferror (f) || fclose (f) != 0);
6105 return 0;
6107 _ACEOF
6108 rm -f conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 (eval $ac_try) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_cv_sizeof_char=`cat conftest.val`
6120 else
6121 echo "$as_me: program exited with status $ac_status" >&5
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ( exit $ac_status )
6126 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6127 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6129 See \`config.log' for more details." >&5
6130 echo "$as_me: error: cannot compute sizeof (char), 77
6131 See \`config.log' for more details." >&2;}
6132 { (exit 1); exit 1; }; }; }
6134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6137 rm -f conftest.val
6138 else
6139 ac_cv_sizeof_char=0
6142 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6143 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6144 cat >>confdefs.h <<_ACEOF
6145 #define SIZEOF_CHAR $ac_cv_sizeof_char
6146 _ACEOF
6150 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
6151 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
6152 case "$ac_cv_sizeof_char" in
6153 1) acx_cv_type_int8_t=char ;;
6154 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
6155 echo "$as_me: error: no 8-bit type" >&2;}
6156 { (exit please report a bug); exit please report a bug; }; }
6157 esac
6158 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
6159 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
6161 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
6162 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
6163 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
6164 2:*) acx_cv_type_int16_t=int ;;
6165 *:2) acx_cv_type_int16_t=short ;;
6166 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
6167 echo "$as_me: error: no 16-bit type" >&2;}
6168 { (exit please report a bug); exit please report a bug; }; }
6169 esac
6170 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
6171 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
6173 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
6174 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
6175 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
6176 4:*) acx_cv_type_int32_t=int ;;
6177 *:4) acx_cv_type_int32_t=long ;;
6178 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
6179 echo "$as_me: error: no 32-bit type" >&2;}
6180 { (exit please report a bug); exit please report a bug; }; }
6181 esac
6182 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
6183 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
6186 # These tests are here to make the output prettier
6188 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
6189 case "$ac_cv_sizeof_long" in
6190 8) acx_cv_type_int64_t=long ;;
6191 esac
6192 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
6193 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
6194 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
6195 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
6198 # Now we can use the above types
6200 if test "$ac_cv_type_uintptr_t" != yes; then
6201 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
6202 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
6203 case $ac_cv_sizeof_void_p in
6204 2) acx_cv_type_intptr_t=int16_t ;;
6205 4) acx_cv_type_intptr_t=int32_t ;;
6206 8) acx_cv_type_intptr_t=int64_t ;;
6207 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
6208 echo "$as_me: error: no equivalent for intptr_t" >&2;}
6209 { (exit please report a bug); exit please report a bug; }; }
6210 esac
6211 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
6212 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
6215 # ----------------- done all checks, emit header -------------
6216 ac_config_commands="$ac_config_commands gstdint.h"
6221 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6222 if test "${enable_maintainer_mode+set}" = set; then
6223 enableval="$enable_maintainer_mode"
6225 else
6226 enable_maintainer_mode=no
6229 if test "x$enable_maintainer_mode" = xno; then
6230 MAINT='#'
6231 else
6232 MAINT=
6237 # Checks for typedefs, structures, and compiler characteristics.
6238 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6240 if test "${ac_cv_c_const+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6251 main ()
6253 /* FIXME: Include the comments suggested by Paul. */
6254 #ifndef __cplusplus
6255 /* Ultrix mips cc rejects this. */
6256 typedef int charset[2];
6257 const charset x;
6258 /* SunOS 4.1.1 cc rejects this. */
6259 char const *const *ccp;
6260 char **p;
6261 /* NEC SVR4.0.2 mips cc rejects this. */
6262 struct point {int x, y;};
6263 static struct point const zero = {0,0};
6264 /* AIX XL C 1.02.0.0 rejects this.
6265 It does not let you subtract one const X* pointer from another in
6266 an arm of an if-expression whose if-part is not a constant
6267 expression */
6268 const char *g = "string";
6269 ccp = &g + (g ? g-g : 0);
6270 /* HPUX 7.0 cc rejects these. */
6271 ++ccp;
6272 p = (char**) ccp;
6273 ccp = (char const *const *) p;
6274 { /* SCO 3.2v4 cc rejects this. */
6275 char *t;
6276 char const *s = 0 ? (char *) 0 : (char const *) 0;
6278 *t++ = 0;
6280 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6281 int x[] = {25, 17};
6282 const int *foo = &x[0];
6283 ++foo;
6285 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6286 typedef const int *iptr;
6287 iptr p = 0;
6288 ++p;
6290 { /* AIX XL C 1.02.0.0 rejects this saying
6291 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6292 struct s { int j; const int *ap[3]; };
6293 struct s *b; b->j = 5;
6295 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6296 const int foo = 10;
6298 #endif
6301 return 0;
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_c_werror_flag"
6314 || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_cv_c_const=yes
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_cv_c_const=no
6333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6336 echo "${ECHO_T}$ac_cv_c_const" >&6
6337 if test $ac_cv_c_const = no; then
6339 cat >>confdefs.h <<\_ACEOF
6340 #define const
6341 _ACEOF
6345 echo "$as_me:$LINENO: checking for inline" >&5
6346 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6347 if test "${ac_cv_c_inline+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 ac_cv_c_inline=no
6351 for ac_kw in inline __inline__ __inline; do
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 #ifndef __cplusplus
6359 typedef int foo_t;
6360 static $ac_kw foo_t static_foo () {return 0; }
6361 $ac_kw foo_t foo () {return 0; }
6362 #endif
6364 _ACEOF
6365 rm -f conftest.$ac_objext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6367 (eval $ac_compile) 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } &&
6374 { ac_try='test -z "$ac_c_werror_flag"
6375 || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_cv_c_inline=$ac_kw; break
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394 done
6397 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6398 echo "${ECHO_T}$ac_cv_c_inline" >&6
6401 case $ac_cv_c_inline in
6402 inline | yes) ;;
6404 case $ac_cv_c_inline in
6405 no) ac_val=;;
6406 *) ac_val=$ac_cv_c_inline;;
6407 esac
6408 cat >>confdefs.h <<_ACEOF
6409 #ifndef __cplusplus
6410 #define inline $ac_val
6411 #endif
6412 _ACEOF
6414 esac
6416 ac_ext=cc
6417 ac_cpp='$CXXCPP $CPPFLAGS'
6418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6421 if test -n "$ac_tool_prefix"; then
6422 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6428 if test "${ac_cv_prog_CXX+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 if test -n "$CXX"; then
6432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6445 done
6446 done
6450 CXX=$ac_cv_prog_CXX
6451 if test -n "$CXX"; then
6452 echo "$as_me:$LINENO: result: $CXX" >&5
6453 echo "${ECHO_T}$CXX" >&6
6454 else
6455 echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6
6459 test -n "$CXX" && break
6460 done
6462 if test -z "$CXX"; then
6463 ac_ct_CXX=$CXX
6464 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6466 # Extract the first word of "$ac_prog", so it can be a program name with args.
6467 set dummy $ac_prog; ac_word=$2
6468 echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6470 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 if test -n "$ac_ct_CXX"; then
6474 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6483 ac_cv_prog_ac_ct_CXX="$ac_prog"
6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6487 done
6488 done
6492 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6493 if test -n "$ac_ct_CXX"; then
6494 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6495 echo "${ECHO_T}$ac_ct_CXX" >&6
6496 else
6497 echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6
6501 test -n "$ac_ct_CXX" && break
6502 done
6503 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6505 CXX=$ac_ct_CXX
6509 # Provide some information about the compiler.
6510 echo "$as_me:$LINENO:" \
6511 "checking for C++ compiler version" >&5
6512 ac_compiler=`set X $ac_compile; echo $2`
6513 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6514 (eval $ac_compiler --version </dev/null >&5) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }
6518 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6519 (eval $ac_compiler -v </dev/null >&5) 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }
6523 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6524 (eval $ac_compiler -V </dev/null >&5) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }
6529 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6530 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6531 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6542 main ()
6544 #ifndef __GNUC__
6545 choke me
6546 #endif
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_cxx_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_compiler_gnu=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 ac_compiler_gnu=no
6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6585 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6586 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6587 GXX=`test $ac_compiler_gnu = yes && echo yes`
6588 ac_test_CXXFLAGS=${CXXFLAGS+set}
6589 ac_save_CXXFLAGS=$CXXFLAGS
6590 CXXFLAGS="-g"
6591 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6592 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6593 if test "${ac_cv_prog_cxx_g+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6604 main ()
6608 return 0;
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -z "$ac_cxx_werror_flag"
6621 || test ! -s conftest.err'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 (eval $ac_try) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; } &&
6627 { ac_try='test -s conftest.$ac_objext'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 ac_cv_prog_cxx_g=yes
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 ac_cv_prog_cxx_g=no
6640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6642 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6643 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6644 if test "$ac_test_CXXFLAGS" = set; then
6645 CXXFLAGS=$ac_save_CXXFLAGS
6646 elif test $ac_cv_prog_cxx_g = yes; then
6647 if test "$GXX" = yes; then
6648 CXXFLAGS="-g -O2"
6649 else
6650 CXXFLAGS="-g"
6652 else
6653 if test "$GXX" = yes; then
6654 CXXFLAGS="-O2"
6655 else
6656 CXXFLAGS=
6659 for ac_declaration in \
6660 '' \
6661 'extern "C" void std::exit (int) throw (); using std::exit;' \
6662 'extern "C" void std::exit (int); using std::exit;' \
6663 'extern "C" void exit (int) throw ();' \
6664 'extern "C" void exit (int);' \
6665 'void exit (int);'
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 $ac_declaration
6674 #include <stdlib.h>
6676 main ()
6678 exit (42);
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685 (eval $ac_compile) 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
6692 { ac_try='test -z "$ac_cxx_werror_flag"
6693 || test ! -s conftest.err'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; } &&
6699 { ac_try='test -s conftest.$ac_objext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 continue
6712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_declaration
6721 main ()
6723 exit (42);
6725 return 0;
6727 _ACEOF
6728 rm -f conftest.$ac_objext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } &&
6737 { ac_try='test -z "$ac_cxx_werror_flag"
6738 || test ! -s conftest.err'
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 (eval $ac_try) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; } &&
6744 { ac_try='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 break
6751 else
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6757 done
6758 rm -f conftest*
6759 if test -n "$ac_declaration"; then
6760 echo '#ifdef __cplusplus' >>confdefs.h
6761 echo $ac_declaration >>confdefs.h
6762 echo '#endif' >>confdefs.h
6765 ac_ext=c
6766 ac_cpp='$CPP $CPPFLAGS'
6767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6771 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6772 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6773 if test "${ac_cv_header_stdbool_h+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6783 #include <stdbool.h>
6784 #ifndef bool
6785 # error bool is not defined
6786 #endif
6787 #ifndef false
6788 # error false is not defined
6789 #endif
6790 #if false
6791 # error false is not 0
6792 #endif
6793 #ifndef true
6794 # error true is not defined
6795 #endif
6796 #if true != 1
6797 # error true is not 1
6798 #endif
6799 #ifndef __bool_true_false_are_defined
6800 # error __bool_true_false_are_defined is not defined
6801 #endif
6803 struct s { _Bool s: 1; _Bool t; } s;
6805 char a[true == 1 ? 1 : -1];
6806 char b[false == 0 ? 1 : -1];
6807 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6808 char d[(bool) -0.5 == true ? 1 : -1];
6809 bool e = &s;
6810 char f[(_Bool) -0.0 == false ? 1 : -1];
6811 char g[true];
6812 char h[sizeof (_Bool)];
6813 char i[sizeof s.t];
6816 main ()
6818 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6820 return 0;
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6825 (eval $ac_compile) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag"
6833 || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest.$ac_objext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 ac_cv_header_stdbool_h=yes
6846 else
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 ac_cv_header_stdbool_h=no
6852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6855 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6856 echo "$as_me:$LINENO: checking for _Bool" >&5
6857 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6858 if test "${ac_cv_type__Bool+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6869 main ()
6871 if ((_Bool *) 0)
6872 return 0;
6873 if (sizeof (_Bool))
6874 return 0;
6876 return 0;
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881 (eval $ac_compile) 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -z "$ac_c_werror_flag"
6889 || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_type__Bool=yes
6902 else
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_type__Bool=no
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6910 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6911 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6912 if test $ac_cv_type__Bool = yes; then
6914 cat >>confdefs.h <<_ACEOF
6915 #define HAVE__BOOL 1
6916 _ACEOF
6921 if test $ac_cv_header_stdbool_h = yes; then
6923 cat >>confdefs.h <<\_ACEOF
6924 #define HAVE_STDBOOL_H 1
6925 _ACEOF
6930 for ac_func in floor
6932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6933 echo "$as_me:$LINENO: checking for $ac_func" >&5
6934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6935 if eval "test \"\${$as_ac_var+set}\" = set"; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6946 #define $ac_func innocuous_$ac_func
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char $ac_func (); below.
6950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 <limits.h> exists even on freestanding compilers. */
6953 #ifdef __STDC__
6954 # include <limits.h>
6955 #else
6956 # include <assert.h>
6957 #endif
6959 #undef $ac_func
6961 /* Override any gcc2 internal prototype to avoid an error. */
6962 #ifdef __cplusplus
6963 extern "C"
6965 #endif
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6968 char $ac_func ();
6969 /* The GNU C library defines this for functions which it implements
6970 to always fail with ENOSYS. Some functions are actually named
6971 something starting with __ and the normal name is an alias. */
6972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6973 choke me
6974 #else
6975 char (*f) () = $ac_func;
6976 #endif
6977 #ifdef __cplusplus
6979 #endif
6982 main ()
6984 return f != $ac_func;
6986 return 0;
6988 _ACEOF
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 eval "$as_ac_var=no"
7018 rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7023 if test `eval echo '${'$as_ac_var'}'` = yes; then
7024 cat >>confdefs.h <<_ACEOF
7025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7026 _ACEOF
7029 done
7041 if test x${CLOOGLIBS} = x ; then
7042 { { echo "$as_me:$LINENO: error: cannot build libPCP without CLooG" >&5
7043 echo "$as_me: error: cannot build libPCP without CLooG" >&2;}
7044 { (exit 1); exit 1; }; }
7047 # Output.
7049 ac_config_headers="$ac_config_headers config.h:config.in"
7051 ac_config_files="$ac_config_files Makefile"
7053 cat >confcache <<\_ACEOF
7054 # This file is a shell script that caches the results of configure
7055 # tests run on this system so they can be shared between configure
7056 # scripts and configure runs, see configure's option --config-cache.
7057 # It is not useful on other systems. If it contains results you don't
7058 # want to keep, you may remove or edit it.
7060 # config.status only pays attention to the cache file if you give it
7061 # the --recheck option to rerun configure.
7063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7065 # following values.
7067 _ACEOF
7069 # The following way of writing the cache mishandles newlines in values,
7070 # but we know of no workaround that is simple, portable, and efficient.
7071 # So, don't put newlines in cache variables' values.
7072 # Ultrix sh set writes to stderr and can't be redirected directly,
7073 # and sets the high bit in the cache file unless we assign to the vars.
7075 (set) 2>&1 |
7076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7077 *ac_space=\ *)
7078 # `set' does not quote correctly, so add quotes (double-quote
7079 # substitution turns \\\\ into \\, and sed turns \\ into \).
7080 sed -n \
7081 "s/'/'\\\\''/g;
7082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7085 # `set' quotes correctly as required by POSIX, so do not add quotes.
7086 sed -n \
7087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7089 esac;
7091 sed '
7092 t clear
7093 : clear
7094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7095 t end
7096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7097 : end' >>confcache
7098 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7099 if test -w $cache_file; then
7100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7101 cat confcache >$cache_file
7102 else
7103 echo "not updating unwritable cache $cache_file"
7106 rm -f confcache
7108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7109 # Let make expand exec_prefix.
7110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7114 # trailing colons and then remove the whole line if VPATH becomes empty
7115 # (actually we leave an empty line to preserve line numbers).
7116 if test "x$srcdir" = x.; then
7117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7118 s/:*\$(srcdir):*/:/;
7119 s/:*\${srcdir}:*/:/;
7120 s/:*@srcdir@:*/:/;
7121 s/^\([^=]*=[ ]*\):*/\1/;
7122 s/:*$//;
7123 s/^[^=]*=[ ]*$//;
7127 DEFS=-DHAVE_CONFIG_H
7129 ac_libobjs=
7130 ac_ltlibobjs=
7131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7132 # 1. Remove the extension, and $U if already installed.
7133 ac_i=`echo "$ac_i" |
7134 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7135 # 2. Add them.
7136 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7137 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7138 done
7139 LIBOBJS=$ac_libobjs
7141 LTLIBOBJS=$ac_ltlibobjs
7145 : ${CONFIG_STATUS=./config.status}
7146 ac_clean_files_save=$ac_clean_files
7147 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7148 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7149 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7150 cat >$CONFIG_STATUS <<_ACEOF
7151 #! $SHELL
7152 # Generated by $as_me.
7153 # Run this file to recreate the current configuration.
7154 # Compiler output produced by configure, useful for debugging
7155 # configure, is in config.log if it exists.
7157 debug=false
7158 ac_cs_recheck=false
7159 ac_cs_silent=false
7160 SHELL=\${CONFIG_SHELL-$SHELL}
7161 _ACEOF
7163 cat >>$CONFIG_STATUS <<\_ACEOF
7164 ## --------------------- ##
7165 ## M4sh Initialization. ##
7166 ## --------------------- ##
7168 # Be Bourne compatible
7169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7170 emulate sh
7171 NULLCMD=:
7172 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7173 # is contrary to our usage. Disable this feature.
7174 alias -g '${1+"$@"}'='"$@"'
7175 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7176 set -o posix
7178 DUALCASE=1; export DUALCASE # for MKS sh
7180 # Support unset when possible.
7181 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7182 as_unset=unset
7183 else
7184 as_unset=false
7188 # Work around bugs in pre-3.0 UWIN ksh.
7189 $as_unset ENV MAIL MAILPATH
7190 PS1='$ '
7191 PS2='> '
7192 PS4='+ '
7194 # NLS nuisances.
7195 for as_var in \
7196 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7197 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7198 LC_TELEPHONE LC_TIME
7200 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7201 eval $as_var=C; export $as_var
7202 else
7203 $as_unset $as_var
7205 done
7207 # Required to use basename.
7208 if expr a : '\(a\)' >/dev/null 2>&1; then
7209 as_expr=expr
7210 else
7211 as_expr=false
7214 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7215 as_basename=basename
7216 else
7217 as_basename=false
7221 # Name of the executable.
7222 as_me=`$as_basename "$0" ||
7223 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7224 X"$0" : 'X\(//\)$' \| \
7225 X"$0" : 'X\(/\)$' \| \
7226 . : '\(.\)' 2>/dev/null ||
7227 echo X/"$0" |
7228 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7229 /^X\/\(\/\/\)$/{ s//\1/; q; }
7230 /^X\/\(\/\).*/{ s//\1/; q; }
7231 s/.*/./; q'`
7234 # PATH needs CR, and LINENO needs CR and PATH.
7235 # Avoid depending upon Character Ranges.
7236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7239 as_cr_digits='0123456789'
7240 as_cr_alnum=$as_cr_Letters$as_cr_digits
7242 # The user is always right.
7243 if test "${PATH_SEPARATOR+set}" != set; then
7244 echo "#! /bin/sh" >conf$$.sh
7245 echo "exit 0" >>conf$$.sh
7246 chmod +x conf$$.sh
7247 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7248 PATH_SEPARATOR=';'
7249 else
7250 PATH_SEPARATOR=:
7252 rm -f conf$$.sh
7256 as_lineno_1=$LINENO
7257 as_lineno_2=$LINENO
7258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7259 test "x$as_lineno_1" != "x$as_lineno_2" &&
7260 test "x$as_lineno_3" = "x$as_lineno_2" || {
7261 # Find who we are. Look in the path if we contain no path at all
7262 # relative or not.
7263 case $0 in
7264 *[\\/]* ) as_myself=$0 ;;
7265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7271 done
7274 esac
7275 # We did not find ourselves, most probably we were run as `sh COMMAND'
7276 # in which case we are not to be found in the path.
7277 if test "x$as_myself" = x; then
7278 as_myself=$0
7280 if test ! -f "$as_myself"; then
7281 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7282 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7283 { (exit 1); exit 1; }; }
7285 case $CONFIG_SHELL in
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for as_base in sh bash ksh sh5; do
7293 case $as_dir in
7295 if ("$as_dir/$as_base" -c '
7296 as_lineno_1=$LINENO
7297 as_lineno_2=$LINENO
7298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7299 test "x$as_lineno_1" != "x$as_lineno_2" &&
7300 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7301 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7302 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7303 CONFIG_SHELL=$as_dir/$as_base
7304 export CONFIG_SHELL
7305 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7306 fi;;
7307 esac
7308 done
7309 done
7311 esac
7313 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7314 # uniformly replaced by the line number. The first 'sed' inserts a
7315 # line-number line before each line; the second 'sed' does the real
7316 # work. The second script uses 'N' to pair each line-number line
7317 # with the numbered line, and appends trailing '-' during
7318 # substitution so that $LINENO is not a special case at line end.
7319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7320 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7321 sed '=' <$as_myself |
7322 sed '
7324 s,$,-,
7325 : loop
7326 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7327 t loop
7328 s,-$,,
7329 s,^['$as_cr_digits']*\n,,
7330 ' >$as_me.lineno &&
7331 chmod +x $as_me.lineno ||
7332 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7333 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7334 { (exit 1); exit 1; }; }
7336 # Don't try to exec as it changes $[0], causing all sort of problems
7337 # (the dirname of $[0] is not the place where we might find the
7338 # original and so on. Autoconf is especially sensible to this).
7339 . ./$as_me.lineno
7340 # Exit status is that of the last command.
7341 exit
7345 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7346 *c*,-n*) ECHO_N= ECHO_C='
7347 ' ECHO_T=' ' ;;
7348 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7349 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7350 esac
7352 if expr a : '\(a\)' >/dev/null 2>&1; then
7353 as_expr=expr
7354 else
7355 as_expr=false
7358 rm -f conf$$ conf$$.exe conf$$.file
7359 echo >conf$$.file
7360 if ln -s conf$$.file conf$$ 2>/dev/null; then
7361 # We could just check for DJGPP; but this test a) works b) is more generic
7362 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7363 if test -f conf$$.exe; then
7364 # Don't use ln at all; we don't have any links
7365 as_ln_s='cp -p'
7366 else
7367 as_ln_s='ln -s'
7369 elif ln conf$$.file conf$$ 2>/dev/null; then
7370 as_ln_s=ln
7371 else
7372 as_ln_s='cp -p'
7374 rm -f conf$$ conf$$.exe conf$$.file
7376 if mkdir -p . 2>/dev/null; then
7377 as_mkdir_p=:
7378 else
7379 test -d ./-p && rmdir ./-p
7380 as_mkdir_p=false
7383 as_executable_p="test -f"
7385 # Sed expression to map a string onto a valid CPP name.
7386 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7388 # Sed expression to map a string onto a valid variable name.
7389 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7392 # IFS
7393 # We need space, tab and new line, in precisely that order.
7394 as_nl='
7396 IFS=" $as_nl"
7398 # CDPATH.
7399 $as_unset CDPATH
7401 exec 6>&1
7403 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7404 # report actual input values of CONFIG_FILES etc. instead of their
7405 # values after options handling. Logging --version etc. is OK.
7406 exec 5>>config.log
7408 echo
7409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7410 ## Running $as_me. ##
7411 _ASBOX
7412 } >&5
7413 cat >&5 <<_CSEOF
7415 This file was extended by libpcp $as_me Polyhedral Compilation Package Library , which was
7416 generated by GNU Autoconf 2.59. Invocation command line was
7418 CONFIG_FILES = $CONFIG_FILES
7419 CONFIG_HEADERS = $CONFIG_HEADERS
7420 CONFIG_LINKS = $CONFIG_LINKS
7421 CONFIG_COMMANDS = $CONFIG_COMMANDS
7422 $ $0 $@
7424 _CSEOF
7425 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7426 echo >&5
7427 _ACEOF
7429 # Files that config.status was made for.
7430 if test -n "$ac_config_files"; then
7431 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7434 if test -n "$ac_config_headers"; then
7435 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7438 if test -n "$ac_config_links"; then
7439 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7442 if test -n "$ac_config_commands"; then
7443 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7446 cat >>$CONFIG_STATUS <<\_ACEOF
7448 ac_cs_usage="\
7449 \`$as_me' instantiates files from templates according to the
7450 current configuration.
7452 Usage: $0 [OPTIONS] [FILE]...
7454 -h, --help print this help, then exit
7455 -V, --version print version number, then exit
7456 -q, --quiet do not print progress messages
7457 -d, --debug don't remove temporary files
7458 --recheck update $as_me by reconfiguring in the same conditions
7459 --file=FILE[:TEMPLATE]
7460 instantiate the configuration file FILE
7461 --header=FILE[:TEMPLATE]
7462 instantiate the configuration header FILE
7464 Configuration files:
7465 $config_files
7467 Configuration headers:
7468 $config_headers
7470 Configuration commands:
7471 $config_commands
7473 Report bugs to <bug-autoconf@gnu.org>."
7474 _ACEOF
7476 cat >>$CONFIG_STATUS <<_ACEOF
7477 ac_cs_version="\\
7478 libpcp config.status Polyhedral Compilation Package Library
7479 configured by $0, generated by GNU Autoconf 2.59,
7480 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7482 Copyright (C) 2003 Free Software Foundation, Inc.
7483 This config.status script is free software; the Free Software Foundation
7484 gives unlimited permission to copy, distribute and modify it."
7485 srcdir=$srcdir
7486 _ACEOF
7488 cat >>$CONFIG_STATUS <<\_ACEOF
7489 # If no file are specified by the user, then we need to provide default
7490 # value. By we need to know if files were specified by the user.
7491 ac_need_defaults=:
7492 while test $# != 0
7494 case $1 in
7495 --*=*)
7496 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7497 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7498 ac_shift=:
7501 ac_option=$1
7502 ac_optarg=$2
7503 ac_shift=shift
7505 *) # This is not an option, so the user has probably given explicit
7506 # arguments.
7507 ac_option=$1
7508 ac_need_defaults=false;;
7509 esac
7511 case $ac_option in
7512 # Handling of the options.
7513 _ACEOF
7514 cat >>$CONFIG_STATUS <<\_ACEOF
7515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7516 ac_cs_recheck=: ;;
7517 --version | --vers* | -V )
7518 echo "$ac_cs_version"; exit 0 ;;
7519 --he | --h)
7520 # Conflict between --help and --header
7521 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7522 Try \`$0 --help' for more information." >&5
7523 echo "$as_me: error: ambiguous option: $1
7524 Try \`$0 --help' for more information." >&2;}
7525 { (exit 1); exit 1; }; };;
7526 --help | --hel | -h )
7527 echo "$ac_cs_usage"; exit 0 ;;
7528 --debug | --d* | -d )
7529 debug=: ;;
7530 --file | --fil | --fi | --f )
7531 $ac_shift
7532 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7533 ac_need_defaults=false;;
7534 --header | --heade | --head | --hea )
7535 $ac_shift
7536 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7537 ac_need_defaults=false;;
7538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7539 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7540 ac_cs_silent=: ;;
7542 # This is an error.
7543 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7544 Try \`$0 --help' for more information." >&5
7545 echo "$as_me: error: unrecognized option: $1
7546 Try \`$0 --help' for more information." >&2;}
7547 { (exit 1); exit 1; }; } ;;
7549 *) ac_config_targets="$ac_config_targets $1" ;;
7551 esac
7552 shift
7553 done
7555 ac_configure_extra_args=
7557 if $ac_cs_silent; then
7558 exec 6>/dev/null
7559 ac_configure_extra_args="$ac_configure_extra_args --silent"
7562 _ACEOF
7563 cat >>$CONFIG_STATUS <<_ACEOF
7564 if \$ac_cs_recheck; then
7565 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7566 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7569 _ACEOF
7571 cat >>$CONFIG_STATUS <<_ACEOF
7573 # INIT-COMMANDS section.
7577 GCC="$GCC"
7578 CC="$CC"
7579 acx_cv_header_stdint="$acx_cv_header_stdint"
7580 acx_cv_type_int8_t="$acx_cv_type_int8_t"
7581 acx_cv_type_int16_t="$acx_cv_type_int16_t"
7582 acx_cv_type_int32_t="$acx_cv_type_int32_t"
7583 acx_cv_type_int64_t="$acx_cv_type_int64_t"
7584 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
7585 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
7586 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
7587 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
7588 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
7589 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
7590 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
7591 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
7592 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
7595 _ACEOF
7599 cat >>$CONFIG_STATUS <<\_ACEOF
7600 for ac_config_target in $ac_config_targets
7602 case "$ac_config_target" in
7603 # Handling of arguments.
7604 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7605 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
7606 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
7607 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7608 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7609 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7610 { (exit 1); exit 1; }; };;
7611 esac
7612 done
7614 # If the user did not use the arguments to specify the items to instantiate,
7615 # then the envvar interface is used. Set only those that are not.
7616 # We use the long form for the default assignment because of an extremely
7617 # bizarre bug on SunOS 4.1.3.
7618 if $ac_need_defaults; then
7619 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7620 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7621 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7624 # Have a temporary directory for convenience. Make it in the build tree
7625 # simply because there is no reason to put it here, and in addition,
7626 # creating and moving files from /tmp can sometimes cause problems.
7627 # Create a temporary directory, and hook for its removal unless debugging.
7628 $debug ||
7630 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7631 trap '{ (exit 1); exit 1; }' 1 2 13 15
7634 # Create a (secure) tmp directory for tmp files.
7637 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7638 test -n "$tmp" && test -d "$tmp"
7639 } ||
7641 tmp=./confstat$$-$RANDOM
7642 (umask 077 && mkdir $tmp)
7643 } ||
7645 echo "$me: cannot create a temporary directory in ." >&2
7646 { (exit 1); exit 1; }
7649 _ACEOF
7651 cat >>$CONFIG_STATUS <<_ACEOF
7654 # CONFIG_FILES section.
7657 # No need to generate the scripts if there are no CONFIG_FILES.
7658 # This happens for instance when ./config.status config.h
7659 if test -n "\$CONFIG_FILES"; then
7660 # Protect against being on the right side of a sed subst in config.status.
7661 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7662 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7663 s,@SHELL@,$SHELL,;t t
7664 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7665 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7666 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7667 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7668 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7669 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7670 s,@exec_prefix@,$exec_prefix,;t t
7671 s,@prefix@,$prefix,;t t
7672 s,@program_transform_name@,$program_transform_name,;t t
7673 s,@bindir@,$bindir,;t t
7674 s,@sbindir@,$sbindir,;t t
7675 s,@libexecdir@,$libexecdir,;t t
7676 s,@datadir@,$datadir,;t t
7677 s,@sysconfdir@,$sysconfdir,;t t
7678 s,@sharedstatedir@,$sharedstatedir,;t t
7679 s,@localstatedir@,$localstatedir,;t t
7680 s,@libdir@,$libdir,;t t
7681 s,@includedir@,$includedir,;t t
7682 s,@oldincludedir@,$oldincludedir,;t t
7683 s,@infodir@,$infodir,;t t
7684 s,@mandir@,$mandir,;t t
7685 s,@build_alias@,$build_alias,;t t
7686 s,@host_alias@,$host_alias,;t t
7687 s,@target_alias@,$target_alias,;t t
7688 s,@DEFS@,$DEFS,;t t
7689 s,@ECHO_C@,$ECHO_C,;t t
7690 s,@ECHO_N@,$ECHO_N,;t t
7691 s,@ECHO_T@,$ECHO_T,;t t
7692 s,@LIBS@,$LIBS,;t t
7693 s,@SET_MAKE@,$SET_MAKE,;t t
7694 s,@CC@,$CC,;t t
7695 s,@CFLAGS@,$CFLAGS,;t t
7696 s,@LDFLAGS@,$LDFLAGS,;t t
7697 s,@CPPFLAGS@,$CPPFLAGS,;t t
7698 s,@ac_ct_CC@,$ac_ct_CC,;t t
7699 s,@EXEEXT@,$EXEEXT,;t t
7700 s,@OBJEXT@,$OBJEXT,;t t
7701 s,@RANLIB@,$RANLIB,;t t
7702 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7703 s,@ACLOCAL@,$ACLOCAL,;t t
7704 s,@AUTOCONF@,$AUTOCONF,;t t
7705 s,@AUTOHEADER@,$AUTOHEADER,;t t
7706 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7707 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
7708 s,@WERROR@,$WERROR,;t t
7709 s,@CPP@,$CPP,;t t
7710 s,@EGREP@,$EGREP,;t t
7711 s,@MAINT@,$MAINT,;t t
7712 s,@CXX@,$CXX,;t t
7713 s,@CXXFLAGS@,$CXXFLAGS,;t t
7714 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7715 s,@GMPLIBS@,$GMPLIBS,;t t
7716 s,@GMPINC@,$GMPINC,;t t
7717 s,@PPLLIBS@,$PPLLIBS,;t t
7718 s,@PPLINC@,$PPLINC,;t t
7719 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
7720 s,@CLOOGINC@,$CLOOGINC,;t t
7721 s,@LIBOBJS@,$LIBOBJS,;t t
7722 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7723 CEOF
7725 _ACEOF
7727 cat >>$CONFIG_STATUS <<\_ACEOF
7728 # Split the substitutions into bite-sized pieces for seds with
7729 # small command number limits, like on Digital OSF/1 and HP-UX.
7730 ac_max_sed_lines=48
7731 ac_sed_frag=1 # Number of current file.
7732 ac_beg=1 # First line for current file.
7733 ac_end=$ac_max_sed_lines # Line after last line for current file.
7734 ac_more_lines=:
7735 ac_sed_cmds=
7736 while $ac_more_lines; do
7737 if test $ac_beg -gt 1; then
7738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7739 else
7740 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7742 if test ! -s $tmp/subs.frag; then
7743 ac_more_lines=false
7744 else
7745 # The purpose of the label and of the branching condition is to
7746 # speed up the sed processing (if there are no `@' at all, there
7747 # is no need to browse any of the substitutions).
7748 # These are the two extra sed commands mentioned above.
7749 (echo ':t
7750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7751 if test -z "$ac_sed_cmds"; then
7752 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7753 else
7754 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7756 ac_sed_frag=`expr $ac_sed_frag + 1`
7757 ac_beg=$ac_end
7758 ac_end=`expr $ac_end + $ac_max_sed_lines`
7760 done
7761 if test -z "$ac_sed_cmds"; then
7762 ac_sed_cmds=cat
7764 fi # test -n "$CONFIG_FILES"
7766 _ACEOF
7767 cat >>$CONFIG_STATUS <<\_ACEOF
7768 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7770 case $ac_file in
7771 - | *:- | *:-:* ) # input from stdin
7772 cat >$tmp/stdin
7773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7777 * ) ac_file_in=$ac_file.in ;;
7778 esac
7780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7781 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7783 X"$ac_file" : 'X\(//\)[^/]' \| \
7784 X"$ac_file" : 'X\(//\)$' \| \
7785 X"$ac_file" : 'X\(/\)' \| \
7786 . : '\(.\)' 2>/dev/null ||
7787 echo X"$ac_file" |
7788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7790 /^X\(\/\/\)$/{ s//\1/; q; }
7791 /^X\(\/\).*/{ s//\1/; q; }
7792 s/.*/./; q'`
7793 { if $as_mkdir_p; then
7794 mkdir -p "$ac_dir"
7795 else
7796 as_dir="$ac_dir"
7797 as_dirs=
7798 while test ! -d "$as_dir"; do
7799 as_dirs="$as_dir $as_dirs"
7800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7802 X"$as_dir" : 'X\(//\)[^/]' \| \
7803 X"$as_dir" : 'X\(//\)$' \| \
7804 X"$as_dir" : 'X\(/\)' \| \
7805 . : '\(.\)' 2>/dev/null ||
7806 echo X"$as_dir" |
7807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7809 /^X\(\/\/\)$/{ s//\1/; q; }
7810 /^X\(\/\).*/{ s//\1/; q; }
7811 s/.*/./; q'`
7812 done
7813 test ! -n "$as_dirs" || mkdir $as_dirs
7814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7816 { (exit 1); exit 1; }; }; }
7818 ac_builddir=.
7820 if test "$ac_dir" != .; then
7821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7822 # A "../" for each directory in $ac_dir_suffix.
7823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7824 else
7825 ac_dir_suffix= ac_top_builddir=
7828 case $srcdir in
7829 .) # No --srcdir option. We are building in place.
7830 ac_srcdir=.
7831 if test -z "$ac_top_builddir"; then
7832 ac_top_srcdir=.
7833 else
7834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7835 fi ;;
7836 [\\/]* | ?:[\\/]* ) # Absolute path.
7837 ac_srcdir=$srcdir$ac_dir_suffix;
7838 ac_top_srcdir=$srcdir ;;
7839 *) # Relative path.
7840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7842 esac
7844 # Do not use `cd foo && pwd` to compute absolute paths, because
7845 # the directories may not exist.
7846 case `pwd` in
7847 .) ac_abs_builddir="$ac_dir";;
7849 case "$ac_dir" in
7850 .) ac_abs_builddir=`pwd`;;
7851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7852 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7853 esac;;
7854 esac
7855 case $ac_abs_builddir in
7856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7858 case ${ac_top_builddir}. in
7859 .) ac_abs_top_builddir=$ac_abs_builddir;;
7860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7862 esac;;
7863 esac
7864 case $ac_abs_builddir in
7865 .) ac_abs_srcdir=$ac_srcdir;;
7867 case $ac_srcdir in
7868 .) ac_abs_srcdir=$ac_abs_builddir;;
7869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7871 esac;;
7872 esac
7873 case $ac_abs_builddir in
7874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7876 case $ac_top_srcdir in
7877 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7880 esac;;
7881 esac
7885 if test x"$ac_file" != x-; then
7886 { echo "$as_me:$LINENO: creating $ac_file" >&5
7887 echo "$as_me: creating $ac_file" >&6;}
7888 rm -f "$ac_file"
7890 # Let's still pretend it is `configure' which instantiates (i.e., don't
7891 # use $as_me), people would be surprised to read:
7892 # /* config.h. Generated by config.status. */
7893 if test x"$ac_file" = x-; then
7894 configure_input=
7895 else
7896 configure_input="$ac_file. "
7898 configure_input=$configure_input"Generated from `echo $ac_file_in |
7899 sed 's,.*/,,'` by configure."
7901 # First look for the input files in the build tree, otherwise in the
7902 # src tree.
7903 ac_file_inputs=`IFS=:
7904 for f in $ac_file_in; do
7905 case $f in
7906 -) echo $tmp/stdin ;;
7907 [\\/$]*)
7908 # Absolute (can't be DOS-style, as IFS=:)
7909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7910 echo "$as_me: error: cannot find input file: $f" >&2;}
7911 { (exit 1); exit 1; }; }
7912 echo "$f";;
7913 *) # Relative
7914 if test -f "$f"; then
7915 # Build tree
7916 echo "$f"
7917 elif test -f "$srcdir/$f"; then
7918 # Source tree
7919 echo "$srcdir/$f"
7920 else
7921 # /dev/null tree
7922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7923 echo "$as_me: error: cannot find input file: $f" >&2;}
7924 { (exit 1); exit 1; }; }
7925 fi;;
7926 esac
7927 done` || { (exit 1); exit 1; }
7928 _ACEOF
7929 cat >>$CONFIG_STATUS <<_ACEOF
7930 sed "$ac_vpsub
7931 $extrasub
7932 _ACEOF
7933 cat >>$CONFIG_STATUS <<\_ACEOF
7935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7936 s,@configure_input@,$configure_input,;t t
7937 s,@srcdir@,$ac_srcdir,;t t
7938 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7939 s,@top_srcdir@,$ac_top_srcdir,;t t
7940 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7941 s,@builddir@,$ac_builddir,;t t
7942 s,@abs_builddir@,$ac_abs_builddir,;t t
7943 s,@top_builddir@,$ac_top_builddir,;t t
7944 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7945 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7946 rm -f $tmp/stdin
7947 if test x"$ac_file" != x-; then
7948 mv $tmp/out $ac_file
7949 else
7950 cat $tmp/out
7951 rm -f $tmp/out
7954 done
7955 _ACEOF
7956 cat >>$CONFIG_STATUS <<\_ACEOF
7959 # CONFIG_HEADER section.
7962 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7963 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7965 # ac_d sets the value in "#define NAME VALUE" lines.
7966 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7967 ac_dB='[ ].*$,\1#\2'
7968 ac_dC=' '
7969 ac_dD=',;t'
7970 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7971 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7972 ac_uB='$,\1#\2define\3'
7973 ac_uC=' '
7974 ac_uD=',;t'
7976 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7978 case $ac_file in
7979 - | *:- | *:-:* ) # input from stdin
7980 cat >$tmp/stdin
7981 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7982 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7983 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7985 * ) ac_file_in=$ac_file.in ;;
7986 esac
7988 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7989 echo "$as_me: creating $ac_file" >&6;}
7991 # First look for the input files in the build tree, otherwise in the
7992 # src tree.
7993 ac_file_inputs=`IFS=:
7994 for f in $ac_file_in; do
7995 case $f in
7996 -) echo $tmp/stdin ;;
7997 [\\/$]*)
7998 # Absolute (can't be DOS-style, as IFS=:)
7999 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8000 echo "$as_me: error: cannot find input file: $f" >&2;}
8001 { (exit 1); exit 1; }; }
8002 # Do quote $f, to prevent DOS paths from being IFS'd.
8003 echo "$f";;
8004 *) # Relative
8005 if test -f "$f"; then
8006 # Build tree
8007 echo "$f"
8008 elif test -f "$srcdir/$f"; then
8009 # Source tree
8010 echo "$srcdir/$f"
8011 else
8012 # /dev/null tree
8013 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8014 echo "$as_me: error: cannot find input file: $f" >&2;}
8015 { (exit 1); exit 1; }; }
8016 fi;;
8017 esac
8018 done` || { (exit 1); exit 1; }
8019 # Remove the trailing spaces.
8020 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8022 _ACEOF
8024 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8025 # `conftest.undefs', that substitutes the proper values into
8026 # config.h.in to produce config.h. The first handles `#define'
8027 # templates, and the second `#undef' templates.
8028 # And first: Protect against being on the right side of a sed subst in
8029 # config.status. Protect against being in an unquoted here document
8030 # in config.status.
8031 rm -f conftest.defines conftest.undefs
8032 # Using a here document instead of a string reduces the quoting nightmare.
8033 # Putting comments in sed scripts is not portable.
8035 # `end' is used to avoid that the second main sed command (meant for
8036 # 0-ary CPP macros) applies to n-ary macro definitions.
8037 # See the Autoconf documentation for `clear'.
8038 cat >confdef2sed.sed <<\_ACEOF
8039 s/[\\&,]/\\&/g
8040 s,[\\$`],\\&,g
8041 t clear
8042 : clear
8043 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8044 t end
8045 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8046 : end
8047 _ACEOF
8048 # If some macros were called several times there might be several times
8049 # the same #defines, which is useless. Nevertheless, we may not want to
8050 # sort them, since we want the *last* AC-DEFINE to be honored.
8051 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8052 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8053 rm -f confdef2sed.sed
8055 # This sed command replaces #undef with comments. This is necessary, for
8056 # example, in the case of _POSIX_SOURCE, which is predefined and required
8057 # on some systems where configure will not decide to define it.
8058 cat >>conftest.undefs <<\_ACEOF
8059 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8060 _ACEOF
8062 # Break up conftest.defines because some shells have a limit on the size
8063 # of here documents, and old seds have small limits too (100 cmds).
8064 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8065 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8066 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8067 echo ' :' >>$CONFIG_STATUS
8068 rm -f conftest.tail
8069 while grep . conftest.defines >/dev/null
8071 # Write a limited-size here document to $tmp/defines.sed.
8072 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8073 # Speed up: don't consider the non `#define' lines.
8074 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8075 # Work around the forget-to-reset-the-flag bug.
8076 echo 't clr' >>$CONFIG_STATUS
8077 echo ': clr' >>$CONFIG_STATUS
8078 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8079 echo 'CEOF
8080 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8081 rm -f $tmp/in
8082 mv $tmp/out $tmp/in
8083 ' >>$CONFIG_STATUS
8084 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8085 rm -f conftest.defines
8086 mv conftest.tail conftest.defines
8087 done
8088 rm -f conftest.defines
8089 echo ' fi # grep' >>$CONFIG_STATUS
8090 echo >>$CONFIG_STATUS
8092 # Break up conftest.undefs because some shells have a limit on the size
8093 # of here documents, and old seds have small limits too (100 cmds).
8094 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8095 rm -f conftest.tail
8096 while grep . conftest.undefs >/dev/null
8098 # Write a limited-size here document to $tmp/undefs.sed.
8099 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8100 # Speed up: don't consider the non `#undef'
8101 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8102 # Work around the forget-to-reset-the-flag bug.
8103 echo 't clr' >>$CONFIG_STATUS
8104 echo ': clr' >>$CONFIG_STATUS
8105 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8106 echo 'CEOF
8107 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8108 rm -f $tmp/in
8109 mv $tmp/out $tmp/in
8110 ' >>$CONFIG_STATUS
8111 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8112 rm -f conftest.undefs
8113 mv conftest.tail conftest.undefs
8114 done
8115 rm -f conftest.undefs
8117 cat >>$CONFIG_STATUS <<\_ACEOF
8118 # Let's still pretend it is `configure' which instantiates (i.e., don't
8119 # use $as_me), people would be surprised to read:
8120 # /* config.h. Generated by config.status. */
8121 if test x"$ac_file" = x-; then
8122 echo "/* Generated by configure. */" >$tmp/config.h
8123 else
8124 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8126 cat $tmp/in >>$tmp/config.h
8127 rm -f $tmp/in
8128 if test x"$ac_file" != x-; then
8129 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8130 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8131 echo "$as_me: $ac_file is unchanged" >&6;}
8132 else
8133 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8135 X"$ac_file" : 'X\(//\)[^/]' \| \
8136 X"$ac_file" : 'X\(//\)$' \| \
8137 X"$ac_file" : 'X\(/\)' \| \
8138 . : '\(.\)' 2>/dev/null ||
8139 echo X"$ac_file" |
8140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8142 /^X\(\/\/\)$/{ s//\1/; q; }
8143 /^X\(\/\).*/{ s//\1/; q; }
8144 s/.*/./; q'`
8145 { if $as_mkdir_p; then
8146 mkdir -p "$ac_dir"
8147 else
8148 as_dir="$ac_dir"
8149 as_dirs=
8150 while test ! -d "$as_dir"; do
8151 as_dirs="$as_dir $as_dirs"
8152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154 X"$as_dir" : 'X\(//\)[^/]' \| \
8155 X"$as_dir" : 'X\(//\)$' \| \
8156 X"$as_dir" : 'X\(/\)' \| \
8157 . : '\(.\)' 2>/dev/null ||
8158 echo X"$as_dir" |
8159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8161 /^X\(\/\/\)$/{ s//\1/; q; }
8162 /^X\(\/\).*/{ s//\1/; q; }
8163 s/.*/./; q'`
8164 done
8165 test ! -n "$as_dirs" || mkdir $as_dirs
8166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8168 { (exit 1); exit 1; }; }; }
8170 rm -f $ac_file
8171 mv $tmp/config.h $ac_file
8173 else
8174 cat $tmp/config.h
8175 rm -f $tmp/config.h
8177 # Run the commands associated with the file.
8178 case $ac_file in
8179 config.h ) echo timestamp > stamp-h1 ;;
8180 esac
8181 done
8182 _ACEOF
8183 cat >>$CONFIG_STATUS <<\_ACEOF
8186 # CONFIG_COMMANDS section.
8188 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8189 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8190 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8191 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8192 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8193 X"$ac_dest" : 'X\(//\)[^/]' \| \
8194 X"$ac_dest" : 'X\(//\)$' \| \
8195 X"$ac_dest" : 'X\(/\)' \| \
8196 . : '\(.\)' 2>/dev/null ||
8197 echo X"$ac_dest" |
8198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8200 /^X\(\/\/\)$/{ s//\1/; q; }
8201 /^X\(\/\).*/{ s//\1/; q; }
8202 s/.*/./; q'`
8203 { if $as_mkdir_p; then
8204 mkdir -p "$ac_dir"
8205 else
8206 as_dir="$ac_dir"
8207 as_dirs=
8208 while test ! -d "$as_dir"; do
8209 as_dirs="$as_dir $as_dirs"
8210 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8212 X"$as_dir" : 'X\(//\)[^/]' \| \
8213 X"$as_dir" : 'X\(//\)$' \| \
8214 X"$as_dir" : 'X\(/\)' \| \
8215 . : '\(.\)' 2>/dev/null ||
8216 echo X"$as_dir" |
8217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8219 /^X\(\/\/\)$/{ s//\1/; q; }
8220 /^X\(\/\).*/{ s//\1/; q; }
8221 s/.*/./; q'`
8222 done
8223 test ! -n "$as_dirs" || mkdir $as_dirs
8224 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8225 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8226 { (exit 1); exit 1; }; }; }
8228 ac_builddir=.
8230 if test "$ac_dir" != .; then
8231 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8232 # A "../" for each directory in $ac_dir_suffix.
8233 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8234 else
8235 ac_dir_suffix= ac_top_builddir=
8238 case $srcdir in
8239 .) # No --srcdir option. We are building in place.
8240 ac_srcdir=.
8241 if test -z "$ac_top_builddir"; then
8242 ac_top_srcdir=.
8243 else
8244 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8245 fi ;;
8246 [\\/]* | ?:[\\/]* ) # Absolute path.
8247 ac_srcdir=$srcdir$ac_dir_suffix;
8248 ac_top_srcdir=$srcdir ;;
8249 *) # Relative path.
8250 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8251 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8252 esac
8254 # Do not use `cd foo && pwd` to compute absolute paths, because
8255 # the directories may not exist.
8256 case `pwd` in
8257 .) ac_abs_builddir="$ac_dir";;
8259 case "$ac_dir" in
8260 .) ac_abs_builddir=`pwd`;;
8261 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8262 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8263 esac;;
8264 esac
8265 case $ac_abs_builddir in
8266 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8268 case ${ac_top_builddir}. in
8269 .) ac_abs_top_builddir=$ac_abs_builddir;;
8270 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8271 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8272 esac;;
8273 esac
8274 case $ac_abs_builddir in
8275 .) ac_abs_srcdir=$ac_srcdir;;
8277 case $ac_srcdir in
8278 .) ac_abs_srcdir=$ac_abs_builddir;;
8279 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8280 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8281 esac;;
8282 esac
8283 case $ac_abs_builddir in
8284 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8286 case $ac_top_srcdir in
8287 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8288 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8289 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8290 esac;;
8291 esac
8294 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8295 echo "$as_me: executing $ac_dest commands" >&6;}
8296 case $ac_dest in
8297 gstdint.h )
8298 if test "$GCC" = yes; then
8299 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
8300 else
8301 echo "/* generated for $CC */" > tmp-stdint.h
8304 sed 's/^ *//' >> tmp-stdint.h <<EOF
8306 #ifndef GCC_GENERATED_STDINT_H
8307 #define GCC_GENERATED_STDINT_H 1
8309 #include <sys/types.h>
8312 if test "$acx_cv_header_stdint" != stdint.h; then
8313 echo "#include <stddef.h>" >> tmp-stdint.h
8315 if test "$acx_cv_header_stdint" != stddef.h; then
8316 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
8319 sed 's/^ *//' >> tmp-stdint.h <<EOF
8320 /* glibc uses these symbols as guards to prevent redefinitions. */
8321 #ifdef __int8_t_defined
8322 #define _INT8_T
8323 #define _INT16_T
8324 #define _INT32_T
8325 #endif
8326 #ifdef __uint32_t_defined
8327 #define _UINT32_T
8328 #endif
8332 # ----------------- done header, emit basic int types -------------
8333 if test "$acx_cv_header_stdint" = stddef.h; then
8334 sed 's/^ *//' >> tmp-stdint.h <<EOF
8336 #ifndef _UINT8_T
8337 #define _UINT8_T
8338 #ifndef __uint8_t_defined
8339 #define __uint8_t_defined
8340 typedef unsigned $acx_cv_type_int8_t uint8_t;
8341 #endif
8342 #endif
8344 #ifndef _UINT16_T
8345 #define _UINT16_T
8346 #ifndef __uint16_t_defined
8347 #define __uint16_t_defined
8348 typedef unsigned $acx_cv_type_int16_t uint16_t;
8349 #endif
8350 #endif
8352 #ifndef _UINT32_T
8353 #define _UINT32_T
8354 #ifndef __uint32_t_defined
8355 #define __uint32_t_defined
8356 typedef unsigned $acx_cv_type_int32_t uint32_t;
8357 #endif
8358 #endif
8360 #ifndef _INT8_T
8361 #define _INT8_T
8362 #ifndef __int8_t_defined
8363 #define __int8_t_defined
8364 typedef $acx_cv_type_int8_t int8_t;
8365 #endif
8366 #endif
8368 #ifndef _INT16_T
8369 #define _INT16_T
8370 #ifndef __int16_t_defined
8371 #define __int16_t_defined
8372 typedef $acx_cv_type_int16_t int16_t;
8373 #endif
8374 #endif
8376 #ifndef _INT32_T
8377 #define _INT32_T
8378 #ifndef __int32_t_defined
8379 #define __int32_t_defined
8380 typedef $acx_cv_type_int32_t int32_t;
8381 #endif
8382 #endif
8384 elif test "$ac_cv_type_u_int32_t" = yes; then
8385 sed 's/^ *//' >> tmp-stdint.h <<EOF
8387 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
8388 #ifndef _INT8_T
8389 #define _INT8_T
8390 #endif
8391 #ifndef _INT16_T
8392 #define _INT16_T
8393 #endif
8394 #ifndef _INT32_T
8395 #define _INT32_T
8396 #endif
8398 #ifndef _UINT8_T
8399 #define _UINT8_T
8400 #ifndef __uint8_t_defined
8401 #define __uint8_t_defined
8402 typedef u_int8_t uint8_t;
8403 #endif
8404 #endif
8406 #ifndef _UINT16_T
8407 #define _UINT16_T
8408 #ifndef __uint16_t_defined
8409 #define __uint16_t_defined
8410 typedef u_int16_t uint16_t;
8411 #endif
8412 #endif
8414 #ifndef _UINT32_T
8415 #define _UINT32_T
8416 #ifndef __uint32_t_defined
8417 #define __uint32_t_defined
8418 typedef u_int32_t uint32_t;
8419 #endif
8420 #endif
8422 else
8423 sed 's/^ *//' >> tmp-stdint.h <<EOF
8425 /* Some systems have guard macros to prevent redefinitions, define them. */
8426 #ifndef _INT8_T
8427 #define _INT8_T
8428 #endif
8429 #ifndef _INT16_T
8430 #define _INT16_T
8431 #endif
8432 #ifndef _INT32_T
8433 #define _INT32_T
8434 #endif
8435 #ifndef _UINT8_T
8436 #define _UINT8_T
8437 #endif
8438 #ifndef _UINT16_T
8439 #define _UINT16_T
8440 #endif
8441 #ifndef _UINT32_T
8442 #define _UINT32_T
8443 #endif
8447 # ------------- done basic int types, emit int64_t types ------------
8448 if test "$ac_cv_type_uint64_t" = yes; then
8449 sed 's/^ *//' >> tmp-stdint.h <<EOF
8451 /* system headers have good uint64_t and int64_t */
8452 #ifndef _INT64_T
8453 #define _INT64_T
8454 #endif
8455 #ifndef _UINT64_T
8456 #define _UINT64_T
8457 #endif
8459 elif test "$ac_cv_type_u_int64_t" = yes; then
8460 sed 's/^ *//' >> tmp-stdint.h <<EOF
8462 /* system headers have an u_int64_t (and int64_t) */
8463 #ifndef _INT64_T
8464 #define _INT64_T
8465 #endif
8466 #ifndef _UINT64_T
8467 #define _UINT64_T
8468 #ifndef __uint64_t_defined
8469 #define __uint64_t_defined
8470 typedef u_int64_t uint64_t;
8471 #endif
8472 #endif
8474 elif test -n "$acx_cv_type_int64_t"; then
8475 sed 's/^ *//' >> tmp-stdint.h <<EOF
8477 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
8478 #ifndef _INT64_T
8479 #define _INT64_T
8480 typedef $acx_cv_type_int64_t int64_t;
8481 #endif
8482 #ifndef _UINT64_T
8483 #define _UINT64_T
8484 #ifndef __uint64_t_defined
8485 #define __uint64_t_defined
8486 typedef unsigned $acx_cv_type_int64_t uint64_t;
8487 #endif
8488 #endif
8490 else
8491 sed 's/^ *//' >> tmp-stdint.h <<EOF
8493 /* some common heuristics for int64_t, using compiler-specific tests */
8494 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
8495 #ifndef _INT64_T
8496 #define _INT64_T
8497 #ifndef __int64_t_defined
8498 typedef long long int64_t;
8499 #endif
8500 #endif
8501 #ifndef _UINT64_T
8502 #define _UINT64_T
8503 typedef unsigned long long uint64_t;
8504 #endif
8506 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
8507 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
8508 does not implement __extension__. But that compiler doesn't define
8509 __GNUC_MINOR__. */
8510 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
8511 # define __extension__
8512 # endif
8514 # ifndef _INT64_T
8515 # define _INT64_T
8516 __extension__ typedef long long int64_t;
8517 # endif
8518 # ifndef _UINT64_T
8519 # define _UINT64_T
8520 __extension__ typedef unsigned long long uint64_t;
8521 # endif
8523 #elif !defined __STRICT_ANSI__
8524 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
8526 # ifndef _INT64_T
8527 # define _INT64_T
8528 typedef __int64 int64_t;
8529 # endif
8530 # ifndef _UINT64_T
8531 # define _UINT64_T
8532 typedef unsigned __int64 uint64_t;
8533 # endif
8534 # endif /* compiler */
8536 #endif /* ANSI version */
8540 # ------------- done int64_t types, emit intptr types ------------
8541 if test "$ac_cv_type_uintptr_t" != yes; then
8542 sed 's/^ *//' >> tmp-stdint.h <<EOF
8544 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
8545 #ifndef __uintptr_t_defined
8546 typedef u$acx_cv_type_intptr_t uintptr_t;
8547 #endif
8548 #ifndef __intptr_t_defined
8549 typedef $acx_cv_type_intptr_t intptr_t;
8550 #endif
8554 # ------------- done intptr types, emit int_least types ------------
8555 if test "$ac_cv_type_int_least32_t" != yes; then
8556 sed 's/^ *//' >> tmp-stdint.h <<EOF
8558 /* Define int_least types */
8559 typedef int8_t int_least8_t;
8560 typedef int16_t int_least16_t;
8561 typedef int32_t int_least32_t;
8562 #ifdef _INT64_T
8563 typedef int64_t int_least64_t;
8564 #endif
8566 typedef uint8_t uint_least8_t;
8567 typedef uint16_t uint_least16_t;
8568 typedef uint32_t uint_least32_t;
8569 #ifdef _UINT64_T
8570 typedef uint64_t uint_least64_t;
8571 #endif
8575 # ------------- done intptr types, emit int_fast types ------------
8576 if test "$ac_cv_type_int_fast32_t" != yes; then
8577 sed 's/^ *//' >> tmp-stdint.h <<EOF
8579 /* Define int_fast types. short is often slow */
8580 typedef int8_t int_fast8_t;
8581 typedef int int_fast16_t;
8582 typedef int32_t int_fast32_t;
8583 #ifdef _INT64_T
8584 typedef int64_t int_fast64_t;
8585 #endif
8587 typedef uint8_t uint_fast8_t;
8588 typedef unsigned int uint_fast16_t;
8589 typedef uint32_t uint_fast32_t;
8590 #ifdef _UINT64_T
8591 typedef uint64_t uint_fast64_t;
8592 #endif
8596 if test "$ac_cv_type_uintmax_t" != yes; then
8597 sed 's/^ *//' >> tmp-stdint.h <<EOF
8599 /* Define intmax based on what we found */
8600 #ifdef _INT64_T
8601 typedef int64_t intmax_t;
8602 #else
8603 typedef long intmax_t;
8604 #endif
8605 #ifdef _UINT64_T
8606 typedef uint64_t uintmax_t;
8607 #else
8608 typedef unsigned long uintmax_t;
8609 #endif
8613 sed 's/^ *//' >> tmp-stdint.h <<EOF
8615 #endif /* GCC_GENERATED_STDINT_H */
8618 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
8619 rm -f tmp-stdint.h
8620 else
8621 mv -f tmp-stdint.h gstdint.h
8625 esac
8626 done
8627 _ACEOF
8629 cat >>$CONFIG_STATUS <<\_ACEOF
8631 { (exit 0); exit 0; }
8632 _ACEOF
8633 chmod +x $CONFIG_STATUS
8634 ac_clean_files=$ac_clean_files_save
8637 # configure is writing to config.log, and then calls config.status.
8638 # config.status does its own redirection, appending to config.log.
8639 # Unfortunately, on DOS this fails, as config.log is still kept open
8640 # by configure, so config.status won't be able to write to it; its
8641 # output is simply discarded. So we exec the FD to /dev/null,
8642 # effectively closing config.log, so it can be properly (re)opened and
8643 # appended to by config.status. When coming back to configure, we
8644 # need to make the FD available again.
8645 if test "$no_create" != yes; then
8646 ac_cs_success=:
8647 ac_config_status_args=
8648 test "$silent" = yes &&
8649 ac_config_status_args="$ac_config_status_args --quiet"
8650 exec 5>/dev/null
8651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8652 exec 5>>config.log
8653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8654 # would make configure fail if this is the last instruction.
8655 $ac_cs_success || { (exit 1); exit 1; }