2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='GNU OpenMP Runtime Library'
269 PACKAGE_TARNAME='libgomp'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r "$srcdir/$ac_unique_file"; then
725 ac_srcdir_defaulted=no
727 if test ! -r "$srcdir/$ac_unique_file"; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
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
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
845 if test -n "$ac_init_help"; then
846 case $ac_init_help in
847 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-version-specific-runtime-libs
855 Specify that runtime libraries should be installed
856 in a compiler-specific directory [default=no]
857 --enable-linux-futex Use the Linux futex system call
859 --enable-generated-files-in-srcdir
860 put copies of generated files in source dir intended
861 for creating source tarballs for users without
862 texinfo bison or flex. [default=no]
863 --enable-multilib build many library versions (default)
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-shared=PKGS build shared libraries default=yes
867 --enable-static=PKGS build static libraries default=yes
868 --enable-fast-install=PKGS optimize for fast installation default=yes
869 --disable-libtool-lock avoid locking (might break parallel builds)
870 --enable-maintainer-mode enable make rules and dependencies not useful
871 (and sometimes confusing) to the casual installer
872 --enable-tls Use thread-local storage [default=yes]
873 --enable-symvers=STYLE enables symbol versioning of the shared library
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-gnu-ld assume the C compiler uses GNU ld default=no
880 --with-pic try to use only PIC/non-PIC objects default=use both
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 FC Fortran compiler command
890 FCFLAGS Fortran compiler flags
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
991 GNU OpenMP Runtime Library configure 1.0
992 generated by GNU Autoconf 2.59
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1006 generated by GNU Autoconf 2.59. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers config.h"
1348 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1349 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1350 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1351 if test "${enable_version_specific_runtime_libs+set}" = set; then
1352 enableval="$enable_version_specific_runtime_libs"
1354 case "$enableval" in
1356 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1357 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1358 { (exit 1); exit 1; }; } ;;
1362 enable_version_specific_runtime_libs=no
1365 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1366 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1368 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1369 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1370 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1371 if test "${enable_linux_futex+set}" = set; then
1372 enableval="$enable_linux_futex"
1374 case "$enableval" in
1376 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1377 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1378 { (exit 1); exit 1; }; } ;;
1382 enable_linux_futex=default
1385 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1386 echo "${ECHO_T}$enable_linux_futex" >&6
1388 # We would like our source tree to be readonly. However when releases or
1389 # pre-releases are generated, the flex/bison generated files as well as the
1390 # various formats of manuals need to be included along with the rest of the
1391 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1393 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1394 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1395 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1396 if test "${enable_generated_files_in_srcdir+set}" = set; then
1397 enableval="$enable_generated_files_in_srcdir"
1399 case "$enableval" in
1401 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1402 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1403 { (exit 1); exit 1; }; } ;;
1407 enable_generated_files_in_srcdir=no
1410 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1411 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1414 if test "$enable_generated_files_in_srcdir" = yes; then
1427 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1429 # You will slowly go insane if you do not grok the following fact: when
1430 # building this library, the top-level /target/ becomes the library's /host/.
1432 # configure then causes --target to default to --host, exactly like any
1433 # other package using autoconf. Therefore, 'target' and 'host' will
1434 # always be the same. This makes sense both for native and cross compilers
1435 # just think about it for a little while. :-)
1437 # Also, if this library is being configured as part of a cross compiler, the
1438 # top-level configure script will pass the "real" host as $with_cross_host.
1440 # Do not delete or change the following two lines. For why, see
1441 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1443 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1444 if test -f $ac_dir/install-sh; then
1446 ac_install_sh="$ac_aux_dir/install-sh -c"
1448 elif test -f $ac_dir/install.sh; then
1450 ac_install_sh="$ac_aux_dir/install.sh -c"
1452 elif test -f $ac_dir/shtool; then
1454 ac_install_sh="$ac_aux_dir/shtool install -c"
1458 if test -z "$ac_aux_dir"; then
1459 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1460 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1461 { (exit 1); exit 1; }; }
1463 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1464 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1465 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1467 # Make sure we can run config.sub.
1468 $ac_config_sub sun4 >/dev/null 2>&1 ||
1469 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1470 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1471 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: checking build system type" >&5
1474 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1475 if test "${ac_cv_build+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 ac_cv_build_alias=$build_alias
1479 test -z "$ac_cv_build_alias" &&
1480 ac_cv_build_alias=`$ac_config_guess`
1481 test -z "$ac_cv_build_alias" &&
1482 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1483 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1484 { (exit 1); exit 1; }; }
1485 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1486 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1487 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1488 { (exit 1); exit 1; }; }
1491 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1492 echo "${ECHO_T}$ac_cv_build" >&6
1494 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1495 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1496 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1499 echo "$as_me:$LINENO: checking host system type" >&5
1500 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1501 if test "${ac_cv_host+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 ac_cv_host_alias=$host_alias
1505 test -z "$ac_cv_host_alias" &&
1506 ac_cv_host_alias=$ac_cv_build_alias
1507 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1508 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1509 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1510 { (exit 1); exit 1; }; }
1513 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1514 echo "${ECHO_T}$ac_cv_host" >&6
1516 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1521 echo "$as_me:$LINENO: checking target system type" >&5
1522 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1523 if test "${ac_cv_target+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 ac_cv_target_alias=$target_alias
1527 test "x$ac_cv_target_alias" = "x" &&
1528 ac_cv_target_alias=$ac_cv_host_alias
1529 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1535 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1536 echo "${ECHO_T}$ac_cv_target" >&6
1537 target=$ac_cv_target
1538 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543 # The aliases save the names the user supplied, while $host etc.
1544 # will get canonicalized.
1545 test -n "$target_alias" &&
1546 test "$program_prefix$program_suffix$program_transform_name" = \
1548 program_prefix=${target_alias}-
1549 target_alias=${target_alias-$host_alias}
1551 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1552 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1553 # 1.9.0: minimum required version
1554 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1555 # of other PACKAGE_* variables will, however, and there's nothing
1556 # we can do about that; they come from AC_INIT).
1557 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1558 # file in the top srcdir, etc, etc), so stop complaining.
1559 # -Wall: turns on all automake warnings...
1560 # -Wno-portability: ...except this one, since GNU make is required.
1561 # -Wno-override: ... and this one, since we do want this in testsuite.
1562 am__api_version="1.9"
1563 # Find a good install program. We prefer a C program (faster),
1564 # so one script is as good as another. But avoid the broken or
1565 # incompatible versions:
1566 # SysV /etc/install, /usr/sbin/install
1567 # SunOS /usr/etc/install
1568 # IRIX /sbin/install
1570 # AmigaOS /C/install, which installs bootblocks on floppy discs
1571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1574 # OS/2's system install, which has a completely different semantic
1575 # ./install, which can be erroneously created by make from ./install.sh.
1576 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1577 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1578 if test -z "$INSTALL"; then
1579 if test "${ac_cv_path_install+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 # Account for people who put trailing slashes in PATH elements.
1589 ./ | .// | /cC/* | \
1590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594 # OSF1 and SCO ODT 3.0 have their own names for install.
1595 # Don't use installbsd from OSF since it installs stuff as root
1597 for ac_prog in ginstall scoinst install; do
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1600 if test $ac_prog = install &&
1601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602 # AIX install. It has an incompatible calling convention.
1604 elif test $ac_prog = install &&
1605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # program-specific install script used by HP pwplus--don't use.
1609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1621 if test "${ac_cv_path_install+set}" = set; then
1622 INSTALL=$ac_cv_path_install
1624 # As a last resort, use the slow shell script. We don't cache a
1625 # path for INSTALL within a source directory, because that will
1626 # break other packages using the cache if that directory is
1627 # removed, or if the path is relative.
1628 INSTALL=$ac_install_sh
1631 echo "$as_me:$LINENO: result: $INSTALL" >&5
1632 echo "${ECHO_T}$INSTALL" >&6
1634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1635 # It thinks the first close brace ends the variable substitution.
1636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1642 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1643 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646 echo timestamp > conftest.file
1647 # Do `set' in a subshell so we don't clobber the current shell's
1648 # arguments. Must try -L first in case configure is actually a
1649 # symlink; some systems play weird games with the mod time of symlinks
1650 # (eg FreeBSD returns the mod time of the symlink's containing
1653 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1654 if test "$*" = "X"; then
1656 set X `ls -t $srcdir/configure conftest.file`
1659 if test "$*" != "X $srcdir/configure conftest.file" \
1660 && test "$*" != "X conftest.file $srcdir/configure"; then
1662 # If neither matched, then we have a broken ls. This can happen
1663 # if, for instance, CONFIG_SHELL is bash and it inherits a
1664 # broken ls alias from the environment. This has actually
1665 # happened. Such a system could not be considered "sane".
1666 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1667 alias in your environment" >&5
1668 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1669 alias in your environment" >&2;}
1670 { (exit 1); exit 1; }; }
1673 test "$2" = conftest.file
1679 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1680 Check your system clock" >&5
1681 echo "$as_me: error: newly created file is older than distributed files!
1682 Check your system clock" >&2;}
1683 { (exit 1); exit 1; }; }
1685 echo "$as_me:$LINENO: result: yes" >&5
1686 echo "${ECHO_T}yes" >&6
1687 test "$program_prefix" != NONE &&
1688 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1689 # Use a double $ so make ignores it.
1690 test "$program_suffix" != NONE &&
1691 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1692 # Double any \ or $. echo might interpret backslashes.
1693 # By default was `s,x,x', remove it if useless.
1694 cat <<\_ACEOF >conftest.sed
1695 s/[\\$]/&&/g;s/;s,x,x,$//
1697 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700 # expand $ac_aux_dir to an absolute path
1701 am_aux_dir=`cd $ac_aux_dir && pwd`
1703 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1704 # Use eval to expand $SHELL
1705 if eval "$MISSING --run true"; then
1706 am_missing_run="$MISSING --run "
1709 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1710 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1714 # We used to keeping the `.' as first argument, in order to
1715 # allow $(mkdir_p) to be used without argument. As in
1716 # $(mkdir_p) $(somedir)
1717 # where $(somedir) is conditionally defined. However this is wrong
1719 # 1. if the package is installed by a user who cannot write `.'
1720 # make install will fail,
1721 # 2. the above comment should most certainly read
1722 # $(mkdir_p) $(DESTDIR)$(somedir)
1723 # so it does not work when $(somedir) is undefined and
1724 # $(DESTDIR) is not.
1725 # To support the latter case, we have to write
1726 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1727 # so the `.' trick is pointless.
1728 mkdir_p='mkdir -p --'
1730 # On NextStep and OpenStep, the `mkdir' command does not
1731 # recognize any option. It will interpret all options as
1732 # directories to create, and then abort because `.' already
1734 for d in ./-p ./--version;
1736 test -d $d && rmdir $d
1738 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1739 if test -f "$ac_aux_dir/mkinstalldirs"; then
1740 mkdir_p='$(mkinstalldirs)'
1742 mkdir_p='$(install_sh) -d'
1746 for ac_prog in gawk mawk nawk awk
1748 # Extract the first word of "$ac_prog", so it can be a program name with args.
1749 set dummy $ac_prog; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_AWK+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$AWK"; then
1756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_AWK="$ac_prog"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 if test -n "$AWK"; then
1776 echo "$as_me:$LINENO: result: $AWK" >&5
1777 echo "${ECHO_T}$AWK" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1783 test -n "$AWK" && break
1786 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1787 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1788 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1789 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 cat >conftest.make <<\_ACEOF
1794 @echo 'ac_maketemp="$(MAKE)"'
1796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1797 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1798 if test -n "$ac_maketemp"; then
1799 eval ac_cv_prog_make_${ac_make}_set=yes
1801 eval ac_cv_prog_make_${ac_make}_set=no
1805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 SET_MAKE="MAKE=${MAKE-make}"
1815 rm -rf .tst 2>/dev/null
1816 mkdir .tst 2>/dev/null
1817 if test -d .tst; then
1822 rmdir .tst 2>/dev/null
1824 # test to see if srcdir already configured
1825 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826 test -f $srcdir/config.status; then
1827 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1828 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1829 { (exit 1); exit 1; }; }
1832 # test whether we have cygpath
1833 if test -z "$CYGPATH_W"; then
1834 if (cygpath --version) >/dev/null 2>/dev/null; then
1835 CYGPATH_W='cygpath -w'
1842 # Define the identity of the package.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE "$PACKAGE"
1852 cat >>confdefs.h <<_ACEOF
1853 #define VERSION "$VERSION"
1856 # Some tools Automake needs.
1858 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1872 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1874 # Installed binaries are usually stripped using `strip' when the user
1875 # run `make install-strip'. However `strip' might not be the right
1876 # tool to use in cross-compilation environments, therefore Automake
1877 # will honor the `STRIP' environment variable to overrule this program.
1878 if test "$cross_compiling" != no; then
1879 if test -n "$ac_tool_prefix"; then
1880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$STRIP"; then
1888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 STRIP=$ac_cv_prog_STRIP
1907 if test -n "$STRIP"; then
1908 echo "$as_me:$LINENO: result: $STRIP" >&5
1909 echo "${ECHO_T}$STRIP" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1916 if test -z "$ac_cv_prog_STRIP"; then
1918 # Extract the first word of "strip", so it can be a program name with args.
1919 set dummy strip; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$ac_ct_STRIP"; then
1926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_ac_ct_STRIP="strip"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1946 if test -n "$ac_ct_STRIP"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1948 echo "${ECHO_T}$ac_ct_STRIP" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1956 STRIP="$ac_cv_prog_STRIP"
1960 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1962 # We need awk for the "check" target. The system "awk" is bad on
1964 # Always define AMTAR for backward compatibility.
1966 AMTAR=${AMTAR-"${am_missing_run}tar"}
1968 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1974 # Default to --enable-multilib
1975 # Check whether --enable-multilib or --disable-multilib was given.
1976 if test "${enable_multilib+set}" = set; then
1977 enableval="$enable_multilib"
1978 case "$enableval" in
1979 yes) multilib=yes ;;
1981 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1982 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1983 { (exit 1); exit 1; }; } ;;
1989 # We may get other options which we leave undocumented:
1990 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1991 # See config-ml.in if you want the gory details.
1993 if test "$srcdir" = "."; then
1994 if test "$with_target_subdir" != "."; then
1995 multi_basedir="$srcdir/$with_multisrctop../.."
1997 multi_basedir="$srcdir/$with_multisrctop.."
2000 multi_basedir="$srcdir/.."
2004 # Even if the default multilib is not a cross compilation,
2005 # it may be that some of the other multilibs are.
2006 if test $cross_compiling = no && test $multilib = yes \
2007 && test "x${with_multisubdir}" != x ; then
2008 cross_compiling=maybe
2011 ac_config_commands="$ac_config_commands default-1"
2014 # Calculate toolexeclibdir
2015 # Also toolexecdir, though it's only used in toolexeclibdir
2016 case ${enable_version_specific_runtime_libs} in
2018 # Need the gcc compiler version to know where to install libraries
2019 # and header files if --enable-version-specific-runtime-libs option
2021 toolexecdir='$(libdir)/gcc/$(target_alias)'
2022 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2025 if test -n "$with_cross_host" &&
2026 test x"$with_cross_host" != x"no"; then
2027 # Install a library built with a cross compiler in tooldir, not libdir.
2028 toolexecdir='$(exec_prefix)/$(target_alias)'
2029 toolexeclibdir='$(toolexecdir)/lib'
2031 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2032 toolexeclibdir='$(libdir)'
2034 multi_os_directory=`$CC -print-multi-os-directory`
2035 case $multi_os_directory in
2036 .) ;; # Avoid trailing /.
2037 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2044 # Check the compiler.
2045 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2046 # We must force CC to /not/ be precious variables; otherwise
2047 # the wrong, non-multilib-adjusted value will be used in multilibs.
2048 # As a side effect, we have to subst CFLAGS ourselves.
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 if test -n "$ac_tool_prefix"; then
2058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_CC+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 if test -n "$CC"; then
2066 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 if test -n "$CC"; then
2086 echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2094 if test -z "$ac_cv_prog_CC"; then
2096 # Extract the first word of "gcc", so it can be a program name with args.
2097 set dummy gcc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_ac_ct_CC="gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2136 if test -z "$CC"; then
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}cc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_CC="${ac_tool_prefix}cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 if test -n "$CC"; then
2166 echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6
2169 echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2174 if test -z "$ac_cv_prog_CC"; then
2176 # Extract the first word of "cc", so it can be a program name with args.
2177 set dummy cc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_ac_ct_CC="cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2217 if test -z "$CC"; then
2218 # Extract the first word of "cc", so it can be a program name with args.
2219 set dummy cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2237 ac_prog_rejected=yes
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 if test $ac_prog_rejected = yes; then
2248 # We found a bogon in the path, so make sure we never use it.
2249 set dummy $ac_cv_prog_CC
2251 if test $# != 0; then
2252 # We chose a different compiler from the bogus one.
2253 # However, it has the same basename, so the bogon will be chosen
2254 # first if we set CC to just the basename; use the full file name.
2256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2262 if test -n "$CC"; then
2263 echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2271 if test -z "$CC"; then
2272 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 if test -n "$CC"; then
2303 echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6
2306 echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2310 test -n "$CC" && break
2313 if test -z "$CC"; then
2317 # Extract the first word of "$ac_prog", so it can be a program name with args.
2318 set dummy $ac_prog; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 if test -n "$ac_ct_CC"; then
2325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334 ac_cv_prog_ac_ct_CC="$ac_prog"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344 if test -n "$ac_ct_CC"; then
2345 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346 echo "${ECHO_T}$ac_ct_CC" >&6
2348 echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2352 test -n "$ac_ct_CC" && break
2361 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev/null >&5) 2>&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev/null >&5) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev/null >&5) 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425 test -f "$ac_file" || continue
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430 # This is the source file.
2433 # We found the default executable, but exeext='' is most
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&2;}
2455 { (exit 77); exit 77; }; }
2458 ac_exeext=$ac_cv_exeext
2459 echo "$as_me:$LINENO: result: $ac_file" >&5
2460 echo "${ECHO_T}$ac_file" >&6
2462 # Check the compiler produces executables we can run. If not, either
2463 # the compiler is broken, or we cross compile.
2464 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2465 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2466 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467 # If not cross compiling, check that we can run a simple program.
2468 if test "$cross_compiling" != yes; then
2469 if { ac_try='./$ac_file'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 if test "$cross_compiling" = maybe; then
2480 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481 If you meant to cross compile, use \`--host'.
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2490 echo "$as_me:$LINENO: result: yes" >&5
2491 echo "${ECHO_T}yes" >&6
2493 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494 ac_clean_files=$ac_clean_files_save
2495 # Check the compiler produces executables we can run. If not, either
2496 # the compiler is broken, or we cross compile.
2497 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500 echo "${ECHO_T}$cross_compiling" >&6
2502 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505 (eval $ac_link) 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511 # work properly (i.e., refer to `conftest.exe'), while it won't with
2513 for ac_file in conftest.exe conftest conftest.*; do
2514 test -f "$ac_file" || continue
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
2531 rm -f conftest$ac_cv_exeext
2532 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533 echo "${ECHO_T}$ac_cv_exeext" >&6
2535 rm -f conftest.$ac_ext
2536 EXEEXT=$ac_cv_exeext
2538 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540 if test "${ac_cv_objext+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 rm -f conftest.o conftest.obj
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; then
2564 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2578 See \`config.log' for more details." >&2;}
2579 { (exit 1); exit 1; }; }
2582 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2585 echo "${ECHO_T}$ac_cv_objext" >&6
2586 OBJEXT=$ac_cv_objext
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1 >conftest.err
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2712 if test "$GCC" = yes; then
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 ac_cv_prog_cc_stdc=no
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2749 s = g (p, va_arg (v,int));
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
2757 as 'x'. The following induces an error, until -std1 is added to get
2758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
2760 that's true only with -std1. */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2772 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX -qlanglvl=ansi
2780 # Ultrix and OSF/1 -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions -Aa -D_HPUX_SOURCE
2783 # SVR4 -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786 CC="$ac_save_CC $ac_arg"
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cc_stdc=$ac_arg
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f conftest.err conftest.$ac_objext
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2823 case "x$ac_cv_prog_cc_stdc" in
2825 echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2828 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 # Some people use a C++ compiler to compile C. Since we use `exit',
2834 # in C++ we need to declare it. In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 for ac_declaration in \
2866 'extern "C" void std::exit (int) throw (); using std::exit;' \
2867 'extern "C" void std::exit (int); using std::exit;' \
2868 'extern "C" void exit (int) throw ();' \
2869 'extern "C" void exit (int);' \
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 DEPDIR="${am__leading_dot}deps"
2983 ac_config_commands="$ac_config_commands depfiles"
2986 am_make=${MAKE-make}
2987 cat > confinc << 'END'
2992 # If we don't find an include directive, just comment out the code.
2993 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2994 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2998 # First try GNU make style include.
2999 echo "include confinc" > confmf
3000 # We grep out `Entering directory' and `Leaving directory'
3001 # messages which can occur if `w' ends up in MAKEFLAGS.
3002 # In particular we don't look at `^make:' because GNU make might
3003 # be invoked under some other name (usually "gmake"), in which
3004 # case it prints its new name instead of `make'.
3005 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3010 # Now try BSD make style include.
3011 if test "$am__include" = "#"; then
3012 echo '.include "confinc"' > confmf
3013 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3014 am__include=.include
3021 echo "$as_me:$LINENO: result: $_am_result" >&5
3022 echo "${ECHO_T}$_am_result" >&6
3023 rm -f confinc confmf
3025 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3026 if test "${enable_dependency_tracking+set}" = set; then
3027 enableval="$enable_dependency_tracking"
3030 if test "x$enable_dependency_tracking" != xno; then
3031 am_depcomp="$ac_aux_dir/depcomp"
3036 if test "x$enable_dependency_tracking" != xno; then
3047 depcc="$CC" am_compiler_list=
3049 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3050 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3055 # We make a subdir and do the tests there. Otherwise we can end up
3056 # making bogus files that we don't know about and never remove. For
3057 # instance it was reported that on HP-UX the gcc test will end up
3058 # making a dummy file named `D' -- because `-MD' means `put the output
3061 # Copy depcomp to subdir because otherwise we won't find it if we're
3062 # using a relative directory.
3063 cp "$am_depcomp" conftest.dir
3065 # We will build objects and dependencies in a subdirectory because
3066 # it helps to detect inapplicable dependency modes. For instance
3067 # both Tru64's cc and ICC support -MD to output dependencies as a
3068 # side effect of compilation, but ICC will put the dependencies in
3069 # the current directory while Tru64 will put them in the object
3073 am_cv_CC_dependencies_compiler_type=none
3074 if test "$am_compiler_list" = ""; then
3075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3077 for depmode in $am_compiler_list; do
3078 # Setup a source with many dependencies, because some compilers
3079 # like to wrap large dependency lists on column 80 (with \), and
3080 # we should not choose a depcomp mode which is confused by this.
3082 # We need to recreate these files for each test, as the compiler may
3083 # overwrite some of them when testing with obscure command lines.
3084 # This happens at least with the AIX C compiler.
3086 for i in 1 2 3 4 5 6; do
3087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3089 # Solaris 8's {/usr,}/bin/sh.
3090 touch sub/conftst$i.h
3092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3096 # after this tag, mechanisms are not by side-effect, so they'll
3097 # only be used when explicitly requested
3098 if test "x$enable_dependency_tracking" = xyes; then
3106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3107 # mode. It turns out that the SunPro C++ compiler does not properly
3108 # handle `-M -o', and we need to detect this.
3109 if depmode=$depmode \
3110 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3112 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3113 >/dev/null 2>conftest.err &&
3114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3115 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3117 # icc doesn't choke on unknown options, it will just issue warnings
3118 # or remarks (even with -Werror). So we grep stderr for any message
3119 # that says an option was ignored or not supported.
3120 # When given -MP, icc 7.0 and 7.1 complain thusly:
3121 # icc: Command line warning: ignoring option '-M'; no argument required
3122 # The diagnosis changed in icc 8.0:
3123 # icc: Command line remark: option '-MP' not supported
3124 if (grep 'ignoring option' conftest.err ||
3125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3126 am_cv_CC_dependencies_compiler_type=$depmode
3135 am_cv_CC_dependencies_compiler_type=none
3139 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3146 test "x$enable_dependency_tracking" != xno \
3147 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3149 am__fastdepCC_FALSE='#'
3151 am__fastdepCC_TRUE='#'
3152 am__fastdepCC_FALSE=
3160 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3161 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3162 # in both places for now and restore CFLAGS at the end of config.
3163 save_CFLAGS="$CFLAGS"
3165 # Add -Wall -Werror if we are using GCC.
3166 if test "x$GCC" = "xyes"; then
3167 XCFLAGS="$XCFLAGS -Wall -Werror"
3170 # Find other programs we need.
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}ar; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_AR+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 if test -n "$AR"; then
3180 ac_cv_prog_AR="$AR" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_AR="${ac_tool_prefix}ar"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$AR"; then
3200 echo "$as_me:$LINENO: result: $AR" >&5
3201 echo "${ECHO_T}$AR" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3208 if test -z "$ac_cv_prog_AR"; then
3210 # Extract the first word of "ar", so it can be a program name with args.
3211 set dummy ar; ac_word=$2
3212 echo "$as_me:$LINENO: checking for $ac_word" >&5
3213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 if test -n "$ac_ct_AR"; then
3218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_ac_ct_AR="ar"
3228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3237 if test -n "$ac_ct_AR"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3239 echo "${ECHO_T}$ac_ct_AR" >&6
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_RANLIB+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 if test -n "$RANLIB"; then
3259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 RANLIB=$ac_cv_prog_RANLIB
3278 if test -n "$RANLIB"; then
3279 echo "$as_me:$LINENO: result: $RANLIB" >&5
3280 echo "${ECHO_T}$RANLIB" >&6
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3287 if test -z "$ac_cv_prog_RANLIB"; then
3288 ac_ct_RANLIB=$RANLIB
3289 # Extract the first word of "ranlib", so it can be a program name with args.
3290 set dummy ranlib; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 if test -n "$ac_ct_RANLIB"; then
3297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_RANLIB="ranlib"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3317 if test -n "$ac_ct_RANLIB"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3319 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3325 RANLIB=$ac_ct_RANLIB
3327 RANLIB="$ac_cv_prog_RANLIB"
3330 # Extract the first word of "perl", so it can be a program name with args.
3331 set dummy perl; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_path_PERL+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3360 PERL=$ac_cv_path_PERL
3362 if test -n "$PERL"; then
3363 echo "$as_me:$LINENO: result: $PERL" >&5
3364 echo "${ECHO_T}$PERL" >&6
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3370 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3372 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3373 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 cat >conftest.make <<\_ACEOF
3378 @echo 'ac_maketemp="$(MAKE)"'
3380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3382 if test -n "$ac_maketemp"; then
3383 eval ac_cv_prog_make_${ac_make}_set=yes
3385 eval ac_cv_prog_make_${ac_make}_set=no
3389 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3390 echo "$as_me:$LINENO: result: yes" >&5
3391 echo "${ECHO_T}yes" >&6
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396 SET_MAKE="MAKE=${MAKE-make}"
3399 # Find a good install program. We prefer a C program (faster),
3400 # so one script is as good as another. But avoid the broken or
3401 # incompatible versions:
3402 # SysV /etc/install, /usr/sbin/install
3403 # SunOS /usr/etc/install
3404 # IRIX /sbin/install
3406 # AmigaOS /C/install, which installs bootblocks on floppy discs
3407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3410 # OS/2's system install, which has a completely different semantic
3411 # ./install, which can be erroneously created by make from ./install.sh.
3412 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3413 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3414 if test -z "$INSTALL"; then
3415 if test "${ac_cv_path_install+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 # Account for people who put trailing slashes in PATH elements.
3425 ./ | .// | /cC/* | \
3426 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3427 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3430 # OSF1 and SCO ODT 3.0 have their own names for install.
3431 # Don't use installbsd from OSF since it installs stuff as root
3433 for ac_prog in ginstall scoinst install; do
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3436 if test $ac_prog = install &&
3437 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438 # AIX install. It has an incompatible calling convention.
3440 elif test $ac_prog = install &&
3441 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3442 # program-specific install script used by HP pwplus--don't use.
3445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3457 if test "${ac_cv_path_install+set}" = set; then
3458 INSTALL=$ac_cv_path_install
3460 # As a last resort, use the slow shell script. We don't cache a
3461 # path for INSTALL within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the path is relative.
3464 INSTALL=$ac_install_sh
3467 echo "$as_me:$LINENO: result: $INSTALL" >&5
3468 echo "${ECHO_T}$INSTALL" >&6
3470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471 # It thinks the first close brace ends the variable substitution.
3472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3479 # See if makeinfo has been installed and is modern enough
3480 # that we can use it.
3482 # Extract the first word of "makeinfo", so it can be a program name with args.
3483 set dummy makeinfo; ac_word=$2
3484 echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3486 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 if test -n "$MAKEINFO"; then
3490 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_MAKEINFO="makeinfo"
3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 MAKEINFO=$ac_cv_prog_MAKEINFO
3509 if test -n "$MAKEINFO"; then
3510 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3511 echo "${ECHO_T}$MAKEINFO" >&6
3513 echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3517 if test -n "$MAKEINFO"; then
3518 # Found it, now check the version.
3519 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3520 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3521 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3525 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3527 case $ac_prog_version in
3528 '') gcc_cv_prog_makeinfo_modern=no;;
3529 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3530 *) gcc_cv_prog_makeinfo_modern=no;;
3533 if test $gcc_cv_prog_makeinfo_modern = no; then
3534 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3538 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3539 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3541 gcc_cv_prog_makeinfo_modern=no
3546 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3548 BUILD_INFO_FALSE='#'
3557 # Check whether --enable-shared or --disable-shared was given.
3558 if test "${enable_shared+set}" = set; then
3559 enableval="$enable_shared"
3560 p=${PACKAGE-default}
3562 yes) enable_shared=yes ;;
3563 no) enable_shared=no ;;
3566 # Look at the argument we got. We use all the common list separators.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3568 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3579 # Check whether --enable-static or --disable-static was given.
3580 if test "${enable_static+set}" = set; then
3581 enableval="$enable_static"
3582 p=${PACKAGE-default}
3584 yes) enable_static=yes ;;
3585 no) enable_static=no ;;
3588 # Look at the argument we got. We use all the common list separators.
3589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3590 for pkg in $enableval; do
3591 if test "X$pkg" = "X$p"; then
3601 # Check whether --enable-fast-install or --disable-fast-install was given.
3602 if test "${enable_fast_install+set}" = set; then
3603 enableval="$enable_fast_install"
3604 p=${PACKAGE-default}
3606 yes) enable_fast_install=yes ;;
3607 no) enable_fast_install=no ;;
3609 enable_fast_install=no
3610 # Look at the argument we got. We use all the common list separators.
3611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3612 for pkg in $enableval; do
3613 if test "X$pkg" = "X$p"; then
3614 enable_fast_install=yes
3621 enable_fast_install=yes
3624 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3625 if test "${with_gnu_ld+set}" = set; then
3626 withval="$with_gnu_ld"
3627 test "$withval" = no || with_gnu_ld=yes
3632 if test "$GCC" = yes; then
3633 # Check if gcc -print-prog-name=ld gives a path.
3634 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3635 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3638 # gcc leaves a trailing carriage return which upsets mingw
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3644 # Accept absolute paths.
3645 [\\/]* | [A-Za-z]:[\\/]*)
3646 re_direlt='/[^/][^/]*/\.\./'
3647 # Canonicalize the path of ld
3648 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3649 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3650 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3652 test -z "$LD" && LD="$ac_prog"
3655 # If it fails, then pretend we aren't using GCC.
3659 # If it is relative, then search for the first ld in PATH.
3663 elif test "$with_gnu_ld" = yes; then
3664 echo "$as_me:$LINENO: checking for GNU ld" >&5
3665 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3667 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3668 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3670 if test "${lt_cv_path_LD+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -z "$LD"; then
3674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3675 for ac_dir in $PATH; do
3676 test -z "$ac_dir" && ac_dir=.
3677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3678 lt_cv_path_LD="$ac_dir/$ac_prog"
3679 # Check to see if the program is GNU ld. I'd rather use --version,
3680 # but apparently some GNU ld's only accept -v.
3681 # Break only if it was the GNU/non-GNU ld that we prefer.
3682 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3683 test "$with_gnu_ld" != no && break
3685 test "$with_gnu_ld" != yes && break
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3696 if test -n "$LD"; then
3697 echo "$as_me:$LINENO: result: $LD" >&5
3698 echo "${ECHO_T}$LD" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705 { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3712 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3713 lt_cv_prog_gnu_ld=yes
3715 lt_cv_prog_gnu_ld=no
3718 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3719 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3720 with_gnu_ld=$lt_cv_prog_gnu_ld
3723 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3724 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3725 if test "${lt_cv_ld_reload_flag+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 lt_cv_ld_reload_flag='-r'
3730 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3731 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3732 reload_flag=$lt_cv_ld_reload_flag
3733 test -n "$reload_flag" && reload_flag=" $reload_flag"
3735 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3736 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3737 if test "${lt_cv_path_NM+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$NM"; then
3741 # Let the user override the test.
3744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3745 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3746 test -z "$ac_dir" && ac_dir=.
3747 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3748 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3749 # Check to see if the nm accepts a BSD-compat flag.
3750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3751 # nm: unknown option "B" ignored
3752 # Tru64's nm complains that /dev/null is an invalid object file
3753 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3754 lt_cv_path_NM="$tmp_nm -B"
3756 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3757 lt_cv_path_NM="$tmp_nm -p"
3760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3761 continue # so that we can try to find one that supports BSD flags
3766 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3771 echo "$as_me:$LINENO: result: $NM" >&5
3772 echo "${ECHO_T}$NM" >&6
3774 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3775 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3777 if test "$LN_S" = "ln -s"; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6
3781 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3782 echo "${ECHO_T}no, using $LN_S" >&6
3785 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3786 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3787 if test "${lt_cv_deplibs_check_method+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 lt_cv_file_magic_cmd='$MAGIC_CMD'
3791 lt_cv_file_magic_test_file=
3792 lt_cv_deplibs_check_method='unknown'
3793 # Need to set the preceding variable on all platforms that support
3794 # interlibrary dependencies.
3795 # 'none' -- dependencies not supported.
3796 # `unknown' -- same as none, but documents that we really don't know.
3797 # 'pass_all' -- all dependencies passed with no checks.
3798 # 'test_compile' -- check by making test program.
3799 # 'file_magic [regex]' -- check by looking for files in library path
3800 # which responds to the $file_magic_cmd with a given egrep regex.
3801 # If you have `file' or equivalent on your system and you're not sure
3802 # whether `pass_all' will *always* work, you probably want this one.
3806 lt_cv_deplibs_check_method=pass_all
3810 lt_cv_deplibs_check_method=pass_all
3814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3815 lt_cv_file_magic_cmd='/usr/bin/file -L'
3816 lt_cv_file_magic_test_file=/shlib/libc.so
3819 cygwin* | mingw* |pw32*)
3820 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3821 lt_cv_file_magic_cmd='$OBJDUMP -f'
3824 darwin* | rhapsody*)
3825 # this will be overwritten by pass_all, but leave it in just in case
3826 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3827 lt_cv_file_magic_cmd='/usr/bin/file -L'
3829 rhapsody* | darwin1.012)
3830 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3833 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3836 lt_cv_deplibs_check_method=pass_all
3839 freebsd* | kfreebsd*-gnu)
3840 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3843 # Not sure whether the presence of OpenBSD here was a mistake.
3844 # Let's accept both of them until this is cleared up.
3845 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3846 lt_cv_file_magic_cmd=/usr/bin/file
3847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3851 lt_cv_deplibs_check_method=pass_all
3856 lt_cv_deplibs_check_method=pass_all
3862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3863 lt_cv_file_magic_cmd=/usr/bin/file
3864 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3868 lt_cv_file_magic_cmd=/usr/bin/file
3869 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3877 # this will be overridden with pass_all, but let us keep it just in case
3878 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3882 *-32|*"-32 ") libmagic=32-bit;;
3883 *-n32|*"-n32 ") libmagic=N32;;
3884 *-64|*"-64 ") libmagic=64-bit;;
3885 *) libmagic=never-match;;
3887 # this will be overridden with pass_all, but let us keep it just in case
3888 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3891 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3892 lt_cv_deplibs_check_method=pass_all
3895 # This must be Linux ELF.
3897 lt_cv_deplibs_check_method=pass_all
3900 netbsd* | knetbsd*-gnu)
3901 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3902 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3904 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3910 lt_cv_file_magic_cmd=/usr/bin/file
3911 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3914 osf3* | osf4* | osf5*)
3915 # this will be overridden with pass_all, but let us keep it just in case
3916 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3917 lt_cv_file_magic_test_file=/shlib/libc.so
3918 lt_cv_deplibs_check_method=pass_all
3922 lt_cv_deplibs_check_method=pass_all
3926 lt_cv_deplibs_check_method=pass_all
3927 lt_cv_file_magic_test_file=/lib/libc.so
3930 sysv5uw[78]* | sysv4*uw2*)
3931 lt_cv_deplibs_check_method=pass_all
3934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3935 case $host_vendor in
3937 lt_cv_deplibs_check_method=pass_all
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3948 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3949 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3950 file_magic_cmd=$lt_cv_file_magic_cmd
3951 deplibs_check_method=$lt_cv_deplibs_check_method
3957 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3959 # find the maximum length of command line arguments
3960 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3961 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3962 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 # On DJGPP, this test can blow up pretty badly due to problems in libc
3971 # (any single argument exceeding 2000 bytes causes a buffer overrun
3972 # during glob expansion). Even if it were fixed, the result of this
3973 # check would be larger than it should be.
3974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3978 # On Win9x/ME, this test blows up -- it succeeds, but takes
3979 # about 5 minutes as the teststring grows exponentially.
3980 # Worse, since 9x/ME are not pre-emptively multitasking,
3981 # you end up with a "frozen" computer, even though with patience
3982 # the test eventually succeeds (with a max line length of 256k).
3983 # Instead, let's just punt: use the minimum linelength reported by
3984 # all of the supported platforms: 8192 (on NT/2K/XP).
3985 lt_cv_sys_max_cmd_len=8192;
3989 # On AmigaOS with pdksh, this test takes hours, literally.
3990 # So we just punt and use a minimum line length of 8192.
3991 lt_cv_sys_max_cmd_len=8192;
3994 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3995 # This has been around since 386BSD, at least. Likely further.
3996 if test -x /sbin/sysctl; then
3997 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3998 elif test -x /usr/sbin/sysctl; then
3999 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4001 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4003 # And add a safety zone
4004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4011 if test -n "$lt_cv_sys_max_cmd_len" ; then
4012 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4013 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4015 echo "$as_me:$LINENO: result: none" >&5
4016 echo "${ECHO_T}none" >&6
4020 # Only perform the check for file, if the check method requires it
4021 case $deplibs_check_method in
4023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4024 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4025 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4034 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4037 ac_save_MAGIC_CMD="$MAGIC_CMD"
4038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4039 ac_dummy="/usr/bin:$PATH"
4040 for ac_dir in $ac_dummy; do
4041 test -z "$ac_dir" && ac_dir=.
4042 if test -f $ac_dir/${ac_tool_prefix}file; then
4043 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4044 if test -n "$file_magic_test_file"; then
4045 case $deplibs_check_method in
4047 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4050 egrep "$file_magic_regex" > /dev/null; then
4055 *** Warning: the command libtool uses to detect shared libraries,
4056 *** $file_magic_cmd, produces output that libtool cannot recognize.
4057 *** The result is that libtool may fail to recognize shared libraries
4058 *** as such. This will affect the creation of libtool libraries that
4059 *** depend on shared libraries, but programs linked with such libtool
4060 *** libraries will work regardless of this problem. Nevertheless, you
4061 *** may want to report the problem to your system manager and/or to
4062 *** bug-libtool@gnu.org
4072 MAGIC_CMD="$ac_save_MAGIC_CMD"
4077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4078 if test -n "$MAGIC_CMD"; then
4079 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4080 echo "${ECHO_T}$MAGIC_CMD" >&6
4082 echo "$as_me:$LINENO: result: no" >&5
4083 echo "${ECHO_T}no" >&6
4086 if test -z "$lt_cv_path_MAGIC_CMD"; then
4087 if test -n "$ac_tool_prefix"; then
4088 echo "$as_me:$LINENO: checking for file" >&5
4089 echo $ECHO_N "checking for file... $ECHO_C" >&6
4090 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4101 ac_save_MAGIC_CMD="$MAGIC_CMD"
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4103 ac_dummy="/usr/bin:$PATH"
4104 for ac_dir in $ac_dummy; do
4105 test -z "$ac_dir" && ac_dir=.
4106 if test -f $ac_dir/file; then
4107 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4108 if test -n "$file_magic_test_file"; then
4109 case $deplibs_check_method in
4111 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4114 egrep "$file_magic_regex" > /dev/null; then
4119 *** Warning: the command libtool uses to detect shared libraries,
4120 *** $file_magic_cmd, produces output that libtool cannot recognize.
4121 *** The result is that libtool may fail to recognize shared libraries
4122 *** as such. This will affect the creation of libtool libraries that
4123 *** depend on shared libraries, but programs linked with such libtool
4124 *** libraries will work regardless of this problem. Nevertheless, you
4125 *** may want to report the problem to your system manager and/or to
4126 *** bug-libtool@gnu.org
4136 MAGIC_CMD="$ac_save_MAGIC_CMD"
4141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4142 if test -n "$MAGIC_CMD"; then
4143 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4144 echo "${ECHO_T}$MAGIC_CMD" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_RANLIB+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 if test -n "$RANLIB"; then
4168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 RANLIB=$ac_cv_prog_RANLIB
4187 if test -n "$RANLIB"; then
4188 echo "$as_me:$LINENO: result: $RANLIB" >&5
4189 echo "${ECHO_T}$RANLIB" >&6
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4196 if test -z "$ac_cv_prog_RANLIB"; then
4197 ac_ct_RANLIB=$RANLIB
4198 # Extract the first word of "ranlib", so it can be a program name with args.
4199 set dummy ranlib; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$ac_ct_RANLIB"; then
4206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_ac_ct_RANLIB="ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4226 if test -n "$ac_ct_RANLIB"; then
4227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4228 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4230 echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4234 RANLIB=$ac_ct_RANLIB
4236 RANLIB="$ac_cv_prog_RANLIB"
4239 if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}strip; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_STRIP+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test -n "$STRIP"; then
4248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 STRIP=$ac_cv_prog_STRIP
4267 if test -n "$STRIP"; then
4268 echo "$as_me:$LINENO: result: $STRIP" >&5
4269 echo "${ECHO_T}$STRIP" >&6
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4276 if test -z "$ac_cv_prog_STRIP"; then
4278 # Extract the first word of "strip", so it can be a program name with args.
4279 set dummy strip; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$ac_ct_STRIP"; then
4286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_ac_ct_STRIP="strip"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4305 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4306 if test -n "$ac_ct_STRIP"; then
4307 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4308 echo "${ECHO_T}$ac_ct_STRIP" >&6
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4316 STRIP="$ac_cv_prog_STRIP"
4320 # Check for any special flags to pass to ltconfig.
4321 libtool_flags="--cache-file=$cache_file"
4322 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4323 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4324 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4325 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4326 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4329 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4330 if test "${enable_libtool_lock+set}" = set; then
4331 enableval="$enable_libtool_lock"
4334 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4335 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4338 # Check whether --with-pic or --without-pic was given.
4339 if test "${with_pic+set}" = set; then
4345 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4346 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4348 # Some flags need to be propagated to the compiler or linker for good
4352 # Find out which ABI we are using.
4353 echo '#line 4349 "configure"' > conftest.$ac_ext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; then
4359 if test "$lt_cv_prog_gnu_ld" = yes; then
4360 case `/usr/bin/file conftest.$ac_objext` in
4362 LD="${LD-ld} -melf32bsmip"
4365 LD="${LD-ld} -melf32bmipn32"
4368 LD="${LD-ld} -melf64bmip"
4372 case `/usr/bin/file conftest.$ac_objext` in
4389 # Find out which ABI we are using.
4390 echo 'int i;' > conftest.$ac_ext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; then
4396 case "`/usr/bin/file conftest.o`" in
4408 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4409 # Find out which ABI we are using.
4410 echo 'int i;' > conftest.$ac_ext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 case "`/usr/bin/file conftest.o`" in
4420 LD="${LD-ld} -m elf_i386"
4422 ppc64-*linux*|powerpc64-*linux*)
4423 LD="${LD-ld} -m elf32ppclinux"
4426 LD="${LD-ld} -m elf_s390"
4429 LD="${LD-ld} -m elf32_sparc"
4436 LD="${LD-ld} -m elf_x86_64"
4438 ppc*-*linux*|powerpc*-*linux*)
4439 LD="${LD-ld} -m elf64ppc"
4442 LD="${LD-ld} -m elf64_s390"
4445 LD="${LD-ld} -m elf64_sparc"
4455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4456 SAVE_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS -belf"
4458 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4459 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4460 if test "${lt_cv_cc_needs_belf+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4486 rm -f conftest.$ac_objext conftest$ac_exeext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488 (eval $ac_link) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest$ac_exeext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 lt_cv_cc_needs_belf=yes
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 lt_cv_cc_needs_belf=no
4515 rm -f conftest.err conftest.$ac_objext \
4516 conftest$ac_exeext conftest.$ac_ext
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4525 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4526 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4527 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4528 CFLAGS="$SAVE_CFLAGS"
4536 # Save cache, so that ltconfig can load it
4537 cat >confcache <<\_ACEOF
4538 # This file is a shell script that caches the results of configure
4539 # tests run on this system so they can be shared between configure
4540 # scripts and configure runs, see configure's option --config-cache.
4541 # It is not useful on other systems. If it contains results you don't
4542 # want to keep, you may remove or edit it.
4544 # config.status only pays attention to the cache file if you give it
4545 # the --recheck option to rerun configure.
4547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4553 # The following way of writing the cache mishandles newlines in values,
4554 # but we know of no workaround that is simple, portable, and efficient.
4555 # So, don't put newlines in cache variables' values.
4556 # Ultrix sh set writes to stderr and can't be redirected directly,
4557 # and sets the high bit in the cache file unless we assign to the vars.
4560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4562 # `set' does not quote correctly, so add quotes (double-quote
4563 # substitution turns \\\\ into \\, and sed turns \\ into \).
4566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4569 # `set' quotes correctly as required by POSIX, so do not add quotes.
4571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4582 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4583 if test -w $cache_file; then
4584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4585 cat confcache >$cache_file
4587 echo "not updating unwritable cache $cache_file"
4592 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4593 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4594 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4595 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4596 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4597 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4598 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4599 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4600 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4601 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4602 echo "$as_me: error: libtool configure failed" >&2;}
4603 { (exit 1); exit 1; }; }
4605 # Reload cache, that may have been modified by ltconfig
4606 if test -r "$cache_file"; then
4607 # Some versions of bash will fail to source /dev/null (special
4608 # files actually), so we avoid doing that.
4609 if test -f "$cache_file"; then
4610 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4611 echo "$as_me: loading cache $cache_file" >&6;}
4613 [\\/]* | ?:[\\/]* ) . $cache_file;;
4614 *) . ./$cache_file;;
4618 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4619 echo "$as_me: creating cache $cache_file" >&6;}
4624 # This can be used to rebuild libtool when needed
4625 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4627 # Always use our own libtool.
4628 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4630 # Redirect the config.log output again, so that the ltconfig log is not
4631 # clobbered by the next message.
4632 exec 5>>./config.log
4642 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4643 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4644 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4645 if test "${enable_maintainer_mode+set}" = set; then
4646 enableval="$enable_maintainer_mode"
4647 USE_MAINTAINER_MODE=$enableval
4649 USE_MAINTAINER_MODE=no
4651 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4652 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4655 if test $USE_MAINTAINER_MODE = yes; then
4656 MAINTAINER_MODE_TRUE=
4657 MAINTAINER_MODE_FALSE='#'
4659 MAINTAINER_MODE_TRUE='#'
4660 MAINTAINER_MODE_FALSE=
4663 MAINT=$MAINTAINER_MODE_TRUE
4667 # We need gfortran to compile parts of the library
4668 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4669 #AC_PROG_FC(gfortran)
4671 ac_ext=${FC_SRCEXT-f}
4672 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4673 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4675 if test -n "$ac_tool_prefix"; then
4676 for ac_prog in gfortran
4678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4680 echo "$as_me:$LINENO: checking for $ac_word" >&5
4681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4682 if test "${ac_cv_prog_FC+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 if test -n "$FC"; then
4686 ac_cv_prog_FC="$FC" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test -n "$FC"; then
4706 echo "$as_me:$LINENO: result: $FC" >&5
4707 echo "${ECHO_T}$FC" >&6
4709 echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6
4713 test -n "$FC" && break
4716 if test -z "$FC"; then
4718 for ac_prog in gfortran
4720 # Extract the first word of "$ac_prog", so it can be a program name with args.
4721 set dummy $ac_prog; ac_word=$2
4722 echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 if test -n "$ac_ct_FC"; then
4728 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737 ac_cv_prog_ac_ct_FC="$ac_prog"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4747 if test -n "$ac_ct_FC"; then
4748 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4749 echo "${ECHO_T}$ac_ct_FC" >&6
4751 echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6
4755 test -n "$ac_ct_FC" && break
4762 # Provide some information about the compiler.
4763 echo "$as_me:4759:" \
4764 "checking for Fortran compiler version" >&5
4765 ac_compiler=`set X $ac_compile; echo $2`
4766 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4767 (eval $ac_compiler --version </dev/null >&5) 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }
4771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4772 (eval $ac_compiler -v </dev/null >&5) 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }
4776 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4777 (eval $ac_compiler -V </dev/null >&5) 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }
4783 # If we don't use `.F' as extension, the preprocessor is not run on the
4784 # input file. (Note that this only needs to work for GNU compilers.)
4787 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4788 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4789 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 cat >conftest.$ac_ext <<_ACEOF
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_fc_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4833 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4834 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4836 ac_test_FFLAGS=${FCFLAGS+set}
4837 ac_save_FFLAGS=$FCFLAGS
4839 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4840 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4841 if test "${ac_cv_prog_fc_g+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
4854 grep -v '^ *+' conftest.er1 >conftest.err
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_fc_werror_flag"
4860 || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4883 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4884 if test "$ac_test_FFLAGS" = set; then
4885 FCFLAGS=$ac_save_FFLAGS
4886 elif test $ac_cv_prog_fc_g = yes; then
4887 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4893 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 FCFLAGS="$FCFLAGS -Wall"
4908 # For libtool versioning info, format is CURRENT:REVISION:AGE
4909 libtool_VERSION=1:0:0
4912 # Check header files.
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4920 # On Suns, sometimes $CPP names a directory.
4921 if test -n "$CPP" && test -d "$CPP"; then
4924 if test -z "$CPP"; then
4925 if test "${ac_cv_prog_CPP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 # Double quotes because CPP needs to be expanded
4929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4932 for ac_c_preproc_warn_flag in '' yes
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 # include <limits.h>
4949 # include <assert.h>
4953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null; then
4961 if test -s conftest.err; then
4962 ac_cpp_err=$ac_c_preproc_warn_flag
4963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4970 if test -z "$ac_cpp_err"; then
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Broken: fails on valid input.
4979 rm -f conftest.err conftest.$ac_ext
4981 # OK, works on sane cases. Now check whether non-existent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_c_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5008 if test -z "$ac_cpp_err"; then
5009 # Broken: success on invalid input.
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 # Passes both tests.
5019 rm -f conftest.err conftest.$ac_ext
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5036 echo "$as_me:$LINENO: result: $CPP" >&5
5037 echo "${ECHO_T}$CPP" >&6
5039 for ac_c_preproc_warn_flag in '' yes
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat >conftest.$ac_ext <<_ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5054 # include <limits.h>
5056 # include <assert.h>
5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5063 grep -v '^ *+' conftest.er1 >conftest.err
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev/null; then
5068 if test -s conftest.err; then
5069 ac_cpp_err=$ac_c_preproc_warn_flag
5070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5077 if test -z "$ac_cpp_err"; then
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 # Broken: fails on valid input.
5086 rm -f conftest.err conftest.$ac_ext
5088 # OK, works on sane cases. Now check whether non-existent headers
5089 # can be detected and how.
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_c_preproc_warn_flag
5108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5115 if test -z "$ac_cpp_err"; then
5116 # Broken: success on invalid input.
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 # Passes both tests.
5126 rm -f conftest.err conftest.$ac_ext
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.$ac_ext
5131 if $ac_preproc_ok; then
5134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; }
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148 echo "$as_me:$LINENO: checking for egrep" >&5
5149 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5150 if test "${ac_cv_prog_egrep+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5154 then ac_cv_prog_egrep='grep -E'
5155 else ac_cv_prog_egrep='egrep'
5158 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5159 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5160 EGREP=$ac_cv_prog_egrep
5163 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5165 if test "${ac_cv_header_stdc+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 cat >conftest.$ac_ext <<_ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>conftest.er1
5191 grep -v '^ *+' conftest.er1 >conftest.err
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -z "$ac_c_werror_flag"
5197 || test ! -s conftest.err'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_header_stdc=yes
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_cv_header_stdc=no
5216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5218 if test $ac_cv_header_stdc = yes; then
5219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230 $EGREP "memchr" >/dev/null 2>&1; then
5233 ac_cv_header_stdc=no
5239 if test $ac_cv_header_stdc = yes; then
5240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5251 $EGREP "free" >/dev/null 2>&1; then
5254 ac_cv_header_stdc=no
5260 if test $ac_cv_header_stdc = yes; then
5261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5262 if test "$cross_compiling" = yes; then
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5272 #if ((' ' & 0x0FF) == 0x020)
5273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5276 # define ISLOWER(c) \
5277 (('a' <= (c) && (c) <= 'i') \
5278 || ('j' <= (c) && (c) <= 'r') \
5279 || ('s' <= (c) && (c) <= 'z'))
5280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5288 for (i = 0; i < 256; i++)
5289 if (XOR (islower (i), ISLOWER (i))
5290 || toupper (i) != TOUPPER (i))
5295 rm -f conftest$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5308 echo "$as_me: program exited with status $ac_status" >&5
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5313 ac_cv_header_stdc=no
5315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5319 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5320 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5321 if test $ac_cv_header_stdc = yes; then
5323 cat >>confdefs.h <<\_ACEOF
5324 #define STDC_HEADERS 1
5329 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5331 if test "${ac_cv_header_time+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <sys/types.h>
5341 #include <sys/time.h>
5347 if ((struct tm *) 0)
5353 rm -f conftest.$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5357 grep -v '^ *+' conftest.er1 >conftest.err
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try='test -z "$ac_c_werror_flag"
5363 || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_cv_header_time=yes
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 ac_cv_header_time=no
5382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5385 echo "${ECHO_T}$ac_cv_header_time" >&6
5386 if test $ac_cv_header_time = yes; then
5388 cat >>confdefs.h <<\_ACEOF
5389 #define TIME_WITH_SYS_TIME 1
5394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5405 inttypes.h stdint.h unistd.h
5407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408 echo "$as_me:$LINENO: checking for $ac_header" >&5
5409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 $ac_includes_default
5421 #include <$ac_header>
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5427 grep -v '^ *+' conftest.er1 >conftest.err
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 eval "$as_ac_Header=yes"
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 eval "$as_ac_Header=no"
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457 cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5482 # Is the header compilable?
5483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5485 cat >conftest.$ac_ext <<_ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5492 #include <$ac_header>
5494 rm -f conftest.$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 ac_header_compiler=yes
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 ac_header_compiler=no
5523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5525 echo "${ECHO_T}$ac_header_compiler" >&6
5527 # Is the header present?
5528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5530 cat >conftest.$ac_ext <<_ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #include <$ac_header>
5538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } >/dev/null; then
5546 if test -s conftest.err; then
5547 ac_cpp_err=$ac_c_preproc_warn_flag
5548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5555 if test -z "$ac_cpp_err"; then
5556 ac_header_preproc=yes
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 ac_header_preproc=no
5563 rm -f conftest.err conftest.$ac_ext
5564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5565 echo "${ECHO_T}$ac_header_preproc" >&6
5567 # So? What about this header?
5568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5574 ac_header_preproc=yes
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5591 ## ----------------------------------------------------- ##
5592 ## Report this to the GNU OpenMP Runtime Library lists. ##
5593 ## ----------------------------------------------------- ##
5596 sed "s/^/$as_me: WARNING: /" >&2
5599 echo "$as_me:$LINENO: checking for $ac_header" >&5
5600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 eval "$as_ac_Header=\$ac_header_preproc"
5606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5611 cat >>confdefs.h <<_ACEOF
5612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5624 acx_cv_header_stdint=stddef.h
5625 acx_cv_header_stdint_kind="(already complete)"
5626 for i in stdint.h $inttype_headers; do
5627 unset ac_cv_type_uintptr_t
5628 unset ac_cv_type_uintmax_t
5629 unset ac_cv_type_int_least32_t
5630 unset ac_cv_type_int_fast32_t
5631 unset ac_cv_type_uint64_t
5632 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5633 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5634 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5635 if test "${ac_cv_type_uintmax_t+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5650 if ((uintmax_t *) 0)
5652 if (sizeof (uintmax_t))
5658 rm -f conftest.$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -z "$ac_c_werror_flag"
5668 || test ! -s conftest.err'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_type_uintmax_t=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_cv_type_uintmax_t=no
5687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5689 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5690 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5691 if test $ac_cv_type_uintmax_t = yes; then
5692 acx_cv_header_stdint=$i
5697 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5698 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5699 if test "${ac_cv_type_uintptr_t+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5714 if ((uintptr_t *) 0)
5716 if (sizeof (uintptr_t))
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag"
5732 || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_type_uintptr_t=yes
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5749 ac_cv_type_uintptr_t=no
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5754 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5755 if test $ac_cv_type_uintptr_t = yes; then
5758 acx_cv_header_stdint_kind="(mostly complete)"
5761 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5762 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5763 if test "${ac_cv_type_int_least32_t+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 #include <sys/types.h>
5778 if ((int_least32_t *) 0)
5780 if (sizeof (int_least32_t))
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_type_int_least32_t=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 ac_cv_type_int_least32_t=no
5815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5817 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5818 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5819 if test $ac_cv_type_int_least32_t = yes; then
5822 acx_cv_header_stdint_kind="(mostly complete)"
5825 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5826 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5827 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 cat >conftest.$ac_ext <<_ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #include <sys/types.h>
5842 if ((int_fast32_t *) 0)
5844 if (sizeof (int_fast32_t))
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag"
5860 || test ! -s conftest.err'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest.$ac_objext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_type_int_fast32_t=yes
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5877 ac_cv_type_int_fast32_t=no
5879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5881 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5882 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5883 if test $ac_cv_type_int_fast32_t = yes; then
5886 acx_cv_header_stdint_kind="(mostly complete)"
5889 echo "$as_me:$LINENO: checking for uint64_t" >&5
5890 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5891 if test "${ac_cv_type_uint64_t+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <sys/types.h>
5908 if (sizeof (uint64_t))
5914 rm -f conftest.$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag"
5924 || test ! -s conftest.err'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_cv_type_uint64_t=yes
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_cv_type_uint64_t=no
5943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5945 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5946 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5947 if test $ac_cv_type_uint64_t = yes; then
5950 acx_cv_header_stdint_kind="(lacks uint64_t)"
5955 if test "$acx_cv_header_stdint" = stddef.h; then
5956 acx_cv_header_stdint_kind="(lacks uintmax_t)"
5957 for i in stdint.h $inttype_headers; do
5958 unset ac_cv_type_uintptr_t
5959 unset ac_cv_type_uint32_t
5960 unset ac_cv_type_uint64_t
5961 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5962 echo "$as_me:$LINENO: checking for uint32_t" >&5
5963 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5964 if test "${ac_cv_type_uint32_t+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5981 if (sizeof (uint32_t))
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_type_uint32_t=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_cv_type_uint32_t=no
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6019 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6020 if test $ac_cv_type_uint32_t = yes; then
6021 acx_cv_header_stdint=$i
6026 echo "$as_me:$LINENO: checking for uint64_t" >&5
6027 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6028 if test "${ac_cv_type_uint64_t+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <sys/types.h>
6045 if (sizeof (uint64_t))
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -z "$ac_c_werror_flag"
6061 || test ! -s conftest.err'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_cv_type_uint64_t=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_cv_type_uint64_t=no
6080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6083 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6085 echo "$as_me:$LINENO: checking for uintptr_t" >&5
6086 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6087 if test "${ac_cv_type_uintptr_t+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6102 if ((uintptr_t *) 0)
6104 if (sizeof (uintptr_t))
6110 rm -f conftest.$ac_objext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112 (eval $ac_compile) 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag"
6120 || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_type_uintptr_t=yes
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_cv_type_uintptr_t=no
6139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6141 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6142 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6147 if test "$acx_cv_header_stdint" = stddef.h; then
6148 acx_cv_header_stdint_kind="(u_intXX_t style)"
6149 for i in sys/types.h $inttype_headers; do
6150 unset ac_cv_type_u_int32_t
6151 unset ac_cv_type_u_int64_t
6152 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6153 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6154 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6155 if test "${ac_cv_type_u_int32_t+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <sys/types.h>
6170 if ((u_int32_t *) 0)
6172 if (sizeof (u_int32_t))
6178 rm -f conftest.$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_type_u_int32_t=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_cv_type_u_int32_t=no
6207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6210 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6211 if test $ac_cv_type_u_int32_t = yes; then
6212 acx_cv_header_stdint=$i
6217 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6218 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6219 if test "${ac_cv_type_u_int64_t+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <sys/types.h>
6234 if ((u_int64_t *) 0)
6236 if (sizeof (u_int64_t))
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6246 grep -v '^ *+' conftest.er1 >conftest.err
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_type_u_int64_t=yes
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ac_cv_type_u_int64_t=no
6271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6273 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6274 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6279 if test "$acx_cv_header_stdint" = stddef.h; then
6280 acx_cv_header_stdint_kind="(using manual detection)"
6283 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6284 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6285 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6286 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6287 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6289 # ----------------- Summarize what we found so far
6291 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6292 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6294 case `$as_basename gstdint.h ||
6295 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6296 Xgstdint.h : 'X\(//\)$' \| \
6297 Xgstdint.h : 'X\(/\)$' \| \
6298 . : '\(.\)' 2>/dev/null ||
6300 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6301 /^X\/\(\/\/\)$/{ s//\1/; q; }
6302 /^X\/\(\/\).*/{ s//\1/; q; }
6304 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6305 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6306 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6307 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6311 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6312 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6314 # ----------------- done included file, check C basic types --------
6316 # Lacking an uintptr_t? Test size of void *
6317 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6318 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6319 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6320 if test "${ac_cv_type_void_p+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 $ac_includes_default
6335 if (sizeof (void *))
6341 rm -f conftest.$ac_objext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_type_void_p=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_cv_type_void_p=no
6370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6373 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6375 echo "$as_me:$LINENO: checking size of void *" >&5
6376 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6377 if test "${ac_cv_sizeof_void_p+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 if test "$ac_cv_type_void_p" = yes; then
6381 # The cast to unsigned long works around a bug in the HP C Compiler
6382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6384 # This bug is HP SR number 8606223364.
6385 if test "$cross_compiling" = yes; then
6386 # Depending upon the size, compute the lo and hi bounds.
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6397 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6438 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6445 rm -f conftest.$ac_objext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447 (eval $ac_compile) 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -z "$ac_c_werror_flag"
6455 || test ! -s conftest.err'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 ac_hi=$ac_mid; break
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 ac_lo=`expr $ac_mid + 1`
6473 if test $ac_lo -le $ac_mid; then
6477 ac_mid=`expr 2 '*' $ac_mid + 1`
6479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6495 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_c_werror_flag"
6512 || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6536 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6543 rm -f conftest.$ac_objext
6544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6545 (eval $ac_compile) 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } &&
6552 { ac_try='test -z "$ac_c_werror_flag"
6553 || test ! -s conftest.err'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; } &&
6559 { ac_try='test -s conftest.$ac_objext'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6565 ac_lo=$ac_mid; break
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 ac_hi=`expr '(' $ac_mid ')' - 1`
6571 if test $ac_mid -le $ac_hi; then
6575 ac_mid=`expr 2 '*' $ac_mid`
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588 # Binary search between lo and hi bounds.
6589 while test "x$ac_lo" != "x$ac_hi"; do
6590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6591 cat >conftest.$ac_ext <<_ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 $ac_includes_default
6601 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6608 rm -f conftest.$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>conftest.er1
6612 grep -v '^ *+' conftest.er1 >conftest.err
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -z "$ac_c_werror_flag"
6618 || test ! -s conftest.err'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 ac_lo=`expr '(' $ac_mid ')' + 1`
6637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6640 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6641 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6642 See \`config.log' for more details." >&5
6643 echo "$as_me: error: cannot compute sizeof (void *), 77
6644 See \`config.log' for more details." >&2;}
6645 { (exit 1); exit 1; }; } ;;
6648 if test "$cross_compiling" = yes; then
6649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6650 See \`config.log' for more details." >&5
6651 echo "$as_me: error: cannot run test program while cross compiling
6652 See \`config.log' for more details." >&2;}
6653 { (exit 1); exit 1; }; }
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 $ac_includes_default
6662 long longval () { return (long) (sizeof (void *)); }
6663 unsigned long ulongval () { return (long) (sizeof (void *)); }
6670 FILE *f = fopen ("conftest.val", "w");
6673 if (((long) (sizeof (void *))) < 0)
6675 long i = longval ();
6676 if (i != ((long) (sizeof (void *))))
6678 fprintf (f, "%ld\n", i);
6682 unsigned long i = ulongval ();
6683 if (i != ((long) (sizeof (void *))))
6685 fprintf (f, "%lu\n", i);
6687 exit (ferror (f) || fclose (f) != 0);
6693 rm -f conftest$ac_exeext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6704 ac_cv_sizeof_void_p=`cat conftest.val`
6706 echo "$as_me: program exited with status $ac_status" >&5
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6712 See \`config.log' for more details." >&5
6713 echo "$as_me: error: cannot compute sizeof (void *), 77
6714 See \`config.log' for more details." >&2;}
6715 { (exit 1); exit 1; }; }
6717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6722 ac_cv_sizeof_void_p=0
6725 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6726 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6727 cat >>confdefs.h <<_ACEOF
6728 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6734 # Lacking an uint64_t? Test size of long
6735 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6736 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6737 echo $ECHO_N "checking for long... $ECHO_C" >&6
6738 if test "${ac_cv_type_long+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 cat >conftest.$ac_ext <<_ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 $ac_includes_default
6759 rm -f conftest.$ac_objext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761 (eval $ac_compile) 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -z "$ac_c_werror_flag"
6769 || test ! -s conftest.err'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6791 echo "${ECHO_T}$ac_cv_type_long" >&6
6793 echo "$as_me:$LINENO: checking size of long" >&5
6794 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6795 if test "${ac_cv_sizeof_long+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 if test "$ac_cv_type_long" = yes; then
6799 # The cast to unsigned long works around a bug in the HP C Compiler
6800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6802 # This bug is HP SR number 8606223364.
6803 if test "$cross_compiling" = yes; then
6804 # Depending upon the size, compute the lo and hi bounds.
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6815 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag"
6832 || test ! -s conftest.err'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6846 cat >conftest.$ac_ext <<_ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 $ac_includes_default
6856 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6863 rm -f conftest.$ac_objext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865 (eval $ac_compile) 2>conftest.er1
6867 grep -v '^ *+' conftest.er1 >conftest.err
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try='test -z "$ac_c_werror_flag"
6873 || test ! -s conftest.err'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; } &&
6879 { ac_try='test -s conftest.$ac_objext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 ac_hi=$ac_mid; break
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6890 ac_lo=`expr $ac_mid + 1`
6891 if test $ac_lo -le $ac_mid; then
6895 ac_mid=`expr 2 '*' $ac_mid + 1`
6897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 cat >conftest.$ac_ext <<_ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 $ac_includes_default
6913 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6920 rm -f conftest.$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>conftest.er1
6924 grep -v '^ *+' conftest.er1 >conftest.err
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -z "$ac_c_werror_flag"
6930 || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6954 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6961 rm -f conftest.$ac_objext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try='test -s conftest.$ac_objext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_lo=$ac_mid; break
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_hi=`expr '(' $ac_mid ')' - 1`
6989 if test $ac_mid -le $ac_hi; then
6993 ac_mid=`expr 2 '*' $ac_mid`
6995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006 # Binary search between lo and hi bounds.
7007 while test "x$ac_lo" != "x$ac_hi"; do
7008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7009 cat >conftest.$ac_ext <<_ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 $ac_includes_default
7019 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7026 rm -f conftest.$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>conftest.er1
7030 grep -v '^ *+' conftest.er1 >conftest.err
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -z "$ac_c_werror_flag"
7036 || test ! -s conftest.err'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; } &&
7042 { ac_try='test -s conftest.$ac_objext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 ac_lo=`expr '(' $ac_mid ')' + 1`
7055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058 ?*) ac_cv_sizeof_long=$ac_lo;;
7059 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7060 See \`config.log' for more details." >&5
7061 echo "$as_me: error: cannot compute sizeof (long), 77
7062 See \`config.log' for more details." >&2;}
7063 { (exit 1); exit 1; }; } ;;
7066 if test "$cross_compiling" = yes; then
7067 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7068 See \`config.log' for more details." >&5
7069 echo "$as_me: error: cannot run test program while cross compiling
7070 See \`config.log' for more details." >&2;}
7071 { (exit 1); exit 1; }; }
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 $ac_includes_default
7080 long longval () { return (long) (sizeof (long)); }
7081 unsigned long ulongval () { return (long) (sizeof (long)); }
7088 FILE *f = fopen ("conftest.val", "w");
7091 if (((long) (sizeof (long))) < 0)
7093 long i = longval ();
7094 if (i != ((long) (sizeof (long))))
7096 fprintf (f, "%ld\n", i);
7100 unsigned long i = ulongval ();
7101 if (i != ((long) (sizeof (long))))
7103 fprintf (f, "%lu\n", i);
7105 exit (ferror (f) || fclose (f) != 0);
7111 rm -f conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_sizeof_long=`cat conftest.val`
7124 echo "$as_me: program exited with status $ac_status" >&5
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7130 See \`config.log' for more details." >&5
7131 echo "$as_me: error: cannot compute sizeof (long), 77
7132 See \`config.log' for more details." >&2;}
7133 { (exit 1); exit 1; }; }
7135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7144 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7145 cat >>confdefs.h <<_ACEOF
7146 #define SIZEOF_LONG $ac_cv_sizeof_long
7152 if test $acx_cv_header_stdint = stddef.h; then
7153 # Lacking a good header? Test size of everything and deduce all types.
7154 echo "$as_me:$LINENO: checking for int" >&5
7155 echo $ECHO_N "checking for int... $ECHO_C" >&6
7156 if test "${ac_cv_type_int+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7177 rm -f conftest.$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7181 grep -v '^ *+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7209 echo "${ECHO_T}$ac_cv_type_int" >&6
7211 echo "$as_me:$LINENO: checking size of int" >&5
7212 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7213 if test "${ac_cv_sizeof_int+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 if test "$ac_cv_type_int" = yes; then
7217 # The cast to unsigned long works around a bug in the HP C Compiler
7218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7220 # This bug is HP SR number 8606223364.
7221 if test "$cross_compiling" = yes; then
7222 # Depending upon the size, compute the lo and hi bounds.
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 $ac_includes_default
7233 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7244 grep -v '^ *+' conftest.er1 >conftest.err
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7274 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_hi=$ac_mid; break
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_lo=`expr $ac_mid + 1`
7309 if test $ac_lo -le $ac_mid; then
7313 ac_mid=`expr 2 '*' $ac_mid + 1`
7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 $ac_includes_default
7331 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7342 grep -v '^ *+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 $ac_includes_default
7372 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7379 rm -f conftest.$ac_objext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>conftest.er1
7383 grep -v '^ *+' conftest.er1 >conftest.err
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -z "$ac_c_werror_flag"
7389 || test ! -s conftest.err'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; } &&
7395 { ac_try='test -s conftest.$ac_objext'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 ac_lo=$ac_mid; break
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 ac_hi=`expr '(' $ac_mid ')' - 1`
7407 if test $ac_mid -le $ac_hi; then
7411 ac_mid=`expr 2 '*' $ac_mid`
7413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 # Binary search between lo and hi bounds.
7425 while test "x$ac_lo" != "x$ac_hi"; do
7426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7427 cat >conftest.$ac_ext <<_ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 $ac_includes_default
7437 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>conftest.er1
7448 grep -v '^ *+' conftest.er1 >conftest.err
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -z "$ac_c_werror_flag"
7454 || test ! -s conftest.err'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; } &&
7460 { ac_try='test -s conftest.$ac_objext'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7471 ac_lo=`expr '(' $ac_mid ')' + 1`
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476 ?*) ac_cv_sizeof_int=$ac_lo;;
7477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7478 See \`config.log' for more details." >&5
7479 echo "$as_me: error: cannot compute sizeof (int), 77
7480 See \`config.log' for more details." >&2;}
7481 { (exit 1); exit 1; }; } ;;
7484 if test "$cross_compiling" = yes; then
7485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7486 See \`config.log' for more details." >&5
7487 echo "$as_me: error: cannot run test program while cross compiling
7488 See \`config.log' for more details." >&2;}
7489 { (exit 1); exit 1; }; }
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 long longval () { return (long) (sizeof (int)); }
7499 unsigned long ulongval () { return (long) (sizeof (int)); }
7506 FILE *f = fopen ("conftest.val", "w");
7509 if (((long) (sizeof (int))) < 0)
7511 long i = longval ();
7512 if (i != ((long) (sizeof (int))))
7514 fprintf (f, "%ld\n", i);
7518 unsigned long i = ulongval ();
7519 if (i != ((long) (sizeof (int))))
7521 fprintf (f, "%lu\n", i);
7523 exit (ferror (f) || fclose (f) != 0);
7529 rm -f conftest$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 ac_cv_sizeof_int=`cat conftest.val`
7542 echo "$as_me: program exited with status $ac_status" >&5
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7548 See \`config.log' for more details." >&5
7549 echo "$as_me: error: cannot compute sizeof (int), 77
7550 See \`config.log' for more details." >&2;}
7551 { (exit 1); exit 1; }; }
7553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7562 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7563 cat >>confdefs.h <<_ACEOF
7564 #define SIZEOF_INT $ac_cv_sizeof_int
7568 echo "$as_me:$LINENO: checking for short" >&5
7569 echo $ECHO_N "checking for short... $ECHO_C" >&6
7570 if test "${ac_cv_type_short+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7595 grep -v '^ *+' conftest.er1 >conftest.err
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -z "$ac_c_werror_flag"
7601 || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 ac_cv_type_short=yes
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7623 echo "${ECHO_T}$ac_cv_type_short" >&6
7625 echo "$as_me:$LINENO: checking size of short" >&5
7626 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7627 if test "${ac_cv_sizeof_short+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 if test "$ac_cv_type_short" = yes; then
7631 # The cast to unsigned long works around a bug in the HP C Compiler
7632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7634 # This bug is HP SR number 8606223364.
7635 if test "$cross_compiling" = yes; then
7636 # Depending upon the size, compute the lo and hi bounds.
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 $ac_includes_default
7647 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7654 rm -f conftest.$ac_objext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656 (eval $ac_compile) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7688 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7695 rm -f conftest.$ac_objext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7697 (eval $ac_compile) 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag"
7705 || test ! -s conftest.err'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest.$ac_objext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_hi=$ac_mid; break
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ac_lo=`expr $ac_mid + 1`
7723 if test $ac_lo -le $ac_mid; then
7727 ac_mid=`expr 2 '*' $ac_mid + 1`
7729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7745 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7752 rm -f conftest.$ac_objext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754 (eval $ac_compile) 2>conftest.er1
7756 grep -v '^ *+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -z "$ac_c_werror_flag"
7762 || test ! -s conftest.err'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; } &&
7768 { ac_try='test -s conftest.$ac_objext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7776 cat >conftest.$ac_ext <<_ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 $ac_includes_default
7786 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7793 rm -f conftest.$ac_objext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795 (eval $ac_compile) 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest.$ac_objext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_lo=$ac_mid; break
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 ac_hi=`expr '(' $ac_mid ')' - 1`
7821 if test $ac_mid -le $ac_hi; then
7825 ac_mid=`expr 2 '*' $ac_mid`
7827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7838 # Binary search between lo and hi bounds.
7839 while test "x$ac_lo" != "x$ac_hi"; do
7840 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 $ac_includes_default
7851 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7858 rm -f conftest.$ac_objext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 (eval $ac_compile) 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag"
7868 || test ! -s conftest.err'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_lo=`expr '(' $ac_mid ')' + 1`
7887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7890 ?*) ac_cv_sizeof_short=$ac_lo;;
7891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7892 See \`config.log' for more details." >&5
7893 echo "$as_me: error: cannot compute sizeof (short), 77
7894 See \`config.log' for more details." >&2;}
7895 { (exit 1); exit 1; }; } ;;
7898 if test "$cross_compiling" = yes; then
7899 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7900 See \`config.log' for more details." >&5
7901 echo "$as_me: error: cannot run test program while cross compiling
7902 See \`config.log' for more details." >&2;}
7903 { (exit 1); exit 1; }; }
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7912 long longval () { return (long) (sizeof (short)); }
7913 unsigned long ulongval () { return (long) (sizeof (short)); }
7920 FILE *f = fopen ("conftest.val", "w");
7923 if (((long) (sizeof (short))) < 0)
7925 long i = longval ();
7926 if (i != ((long) (sizeof (short))))
7928 fprintf (f, "%ld\n", i);
7932 unsigned long i = ulongval ();
7933 if (i != ((long) (sizeof (short))))
7935 fprintf (f, "%lu\n", i);
7937 exit (ferror (f) || fclose (f) != 0);
7943 rm -f conftest$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_sizeof_short=`cat conftest.val`
7956 echo "$as_me: program exited with status $ac_status" >&5
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7962 See \`config.log' for more details." >&5
7963 echo "$as_me: error: cannot compute sizeof (short), 77
7964 See \`config.log' for more details." >&2;}
7965 { (exit 1); exit 1; }; }
7967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7972 ac_cv_sizeof_short=0
7975 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7976 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7977 cat >>confdefs.h <<_ACEOF
7978 #define SIZEOF_SHORT $ac_cv_sizeof_short
7982 echo "$as_me:$LINENO: checking for char" >&5
7983 echo $ECHO_N "checking for char... $ECHO_C" >&6
7984 if test "${ac_cv_type_char+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 $ac_includes_default
8005 rm -f conftest.$ac_objext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8007 (eval $ac_compile) 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag"
8015 || test ! -s conftest.err'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8037 echo "${ECHO_T}$ac_cv_type_char" >&6
8039 echo "$as_me:$LINENO: checking size of char" >&5
8040 echo $ECHO_N "checking size of char... $ECHO_C" >&6
8041 if test "${ac_cv_sizeof_char+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 if test "$ac_cv_type_char" = yes; then
8045 # The cast to unsigned long works around a bug in the HP C Compiler
8046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8048 # This bug is HP SR number 8606223364.
8049 if test "$cross_compiling" = yes; then
8050 # Depending upon the size, compute the lo and hi bounds.
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8061 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag"
8078 || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest.$ac_objext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 $ac_includes_default
8102 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag"
8119 || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_hi=$ac_mid; break
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_lo=`expr $ac_mid + 1`
8137 if test $ac_lo -le $ac_mid; then
8141 ac_mid=`expr 2 '*' $ac_mid + 1`
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8159 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8166 rm -f conftest.$ac_objext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>conftest.er1
8170 grep -v '^ *+' conftest.er1 >conftest.err
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -z "$ac_c_werror_flag"
8176 || test ! -s conftest.err'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest.$ac_objext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8190 cat >conftest.$ac_ext <<_ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8200 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8207 rm -f conftest.$ac_objext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_lo=$ac_mid; break
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_hi=`expr '(' $ac_mid ')' - 1`
8235 if test $ac_mid -le $ac_hi; then
8239 ac_mid=`expr 2 '*' $ac_mid`
8241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8252 # Binary search between lo and hi bounds.
8253 while test "x$ac_lo" != "x$ac_hi"; do
8254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 $ac_includes_default
8265 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 ac_lo=`expr '(' $ac_mid ')' + 1`
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304 ?*) ac_cv_sizeof_char=$ac_lo;;
8305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8306 See \`config.log' for more details." >&5
8307 echo "$as_me: error: cannot compute sizeof (char), 77
8308 See \`config.log' for more details." >&2;}
8309 { (exit 1); exit 1; }; } ;;
8312 if test "$cross_compiling" = yes; then
8313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8314 See \`config.log' for more details." >&5
8315 echo "$as_me: error: cannot run test program while cross compiling
8316 See \`config.log' for more details." >&2;}
8317 { (exit 1); exit 1; }; }
8319 cat >conftest.$ac_ext <<_ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 long longval () { return (long) (sizeof (char)); }
8327 unsigned long ulongval () { return (long) (sizeof (char)); }
8334 FILE *f = fopen ("conftest.val", "w");
8337 if (((long) (sizeof (char))) < 0)
8339 long i = longval ();
8340 if (i != ((long) (sizeof (char))))
8342 fprintf (f, "%ld\n", i);
8346 unsigned long i = ulongval ();
8347 if (i != ((long) (sizeof (char))))
8349 fprintf (f, "%lu\n", i);
8351 exit (ferror (f) || fclose (f) != 0);
8357 rm -f conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 ac_cv_sizeof_char=`cat conftest.val`
8370 echo "$as_me: program exited with status $ac_status" >&5
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8376 See \`config.log' for more details." >&5
8377 echo "$as_me: error: cannot compute sizeof (char), 77
8378 See \`config.log' for more details." >&2;}
8379 { (exit 1); exit 1; }; }
8381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8390 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8391 cat >>confdefs.h <<_ACEOF
8392 #define SIZEOF_CHAR $ac_cv_sizeof_char
8397 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8398 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8399 case "$ac_cv_sizeof_char" in
8400 1) acx_cv_type_int8_t=char ;;
8401 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8402 echo "$as_me: error: no 8-bit type" >&2;}
8403 { (exit please report a bug); exit please report a bug; }; }
8405 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8406 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8408 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8409 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8410 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8411 2:*) acx_cv_type_int16_t=int ;;
8412 *:2) acx_cv_type_int16_t=short ;;
8413 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8414 echo "$as_me: error: no 16-bit type" >&2;}
8415 { (exit please report a bug); exit please report a bug; }; }
8417 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8418 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8420 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8421 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8422 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8423 4:*) acx_cv_type_int32_t=int ;;
8424 *:4) acx_cv_type_int32_t=long ;;
8425 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8426 echo "$as_me: error: no 32-bit type" >&2;}
8427 { (exit please report a bug); exit please report a bug; }; }
8429 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8430 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8433 # These tests are here to make the output prettier
8435 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8436 case "$ac_cv_sizeof_long" in
8437 8) acx_cv_type_int64_t=long ;;
8439 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8440 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8441 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8442 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8445 # Now we can use the above types
8447 if test "$ac_cv_type_uintptr_t" != yes; then
8448 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8449 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8450 case $ac_cv_sizeof_void_p in
8451 2) acx_cv_type_intptr_t=int16_t ;;
8452 4) acx_cv_type_intptr_t=int32_t ;;
8453 8) acx_cv_type_intptr_t=int64_t ;;
8454 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8455 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8456 { (exit please report a bug); exit please report a bug; }; }
8458 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8459 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8462 # ----------------- done all checks, emit header -------------
8463 ac_config_commands="$ac_config_commands gstdint.h"
8468 # Check to see if -pthread or -lpthread is needed. Prefer the former.
8469 # In case the pthread.h system header is not found, this test will fail.
8471 CFLAGS="$CFLAGS -pthread"
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 #include <pthread.h>
8479 void *g(void *d) { return NULL; }
8483 pthread_t t; pthread_create(&t,NULL,g,NULL);
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 XPCFLAGS=" -Wc,-pthread"
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 #include <pthread.h>
8523 void *g(void *d) { return NULL; }
8527 pthread_t t; pthread_create(&t,NULL,g,NULL);
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8560 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8561 { (exit 1); exit 1; }; }
8563 rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8566 rm -f conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8569 # Check for functions needed.
8572 for ac_func in getloadavg clock_gettime
8574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8575 echo "$as_me:$LINENO: checking for $ac_func" >&5
8576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8577 if eval "test \"\${$as_ac_var+set}\" = set"; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8588 #define $ac_func innocuous_$ac_func
8590 /* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char $ac_func (); below.
8592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8593 <limits.h> exists even on freestanding compilers. */
8596 # include <limits.h>
8598 # include <assert.h>
8603 /* Override any gcc2 internal prototype to avoid an error. */
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8611 /* The GNU C library defines this for functions which it implements
8612 to always fail with ENOSYS. Some functions are actually named
8613 something starting with __ and the normal name is an alias. */
8614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8617 char (*f) () = $ac_func;
8626 return f != $ac_func;
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 eval "$as_ac_var=yes"
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 eval "$as_ac_var=no"
8660 rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8665 if test `eval echo '${'$as_ac_var'}'` = yes; then
8666 cat >>confdefs.h <<_ACEOF
8667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8674 # Check for broken semaphore implementation on darwin.
8675 # sem_init returns: sem_init error: Function not implemented.
8679 cat >>confdefs.h <<\_ACEOF
8680 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
8685 case "$enable_linux_futex" in
8687 # If headers don't have gettid/futex syscalls definition, then
8688 # default to no, otherwise there will be compile time failures.
8689 # Otherwise, default to yes. If we don't detect we are
8690 # compiled/linked against NPTL and not cross-compiling, check
8691 # if programs are run by default against NPTL and if not, issue
8693 enable_linux_futex=no
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 #include <sys/syscall.h>
8705 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 #define _GNU_SOURCE 1
8741 #include <pthread.h>
8742 pthread_t th; void *status;
8746 pthread_tryjoin_np (th, &status);
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 enable_linux_futex=yes
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 if test x$cross_compiling = xno; then
8779 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8780 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8781 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8782 If so, please configure with --disable-linux-futex" >&5
8783 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8784 If so, please configure with --disable-linux-futex" >&2;}
8787 enable_linux_futex=yes
8789 rm -f conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8796 rm -f conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 #include <sys/syscall.h>
8811 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8844 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8845 { (exit 1); exit 1; }; }
8847 rm -f conftest.err conftest.$ac_objext \
8848 conftest$ac_exeext conftest.$ac_ext
8854 # At least for glibc, clock_gettime is in librt. But don't pull that
8855 # in if it still doesn't give us the function we want.
8856 if test $ac_cv_func_clock_gettime = no; then
8857 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8858 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8859 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_check_lib_save_LIBS=$LIBS
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 /* Override any gcc2 internal prototype to avoid an error. */
8875 /* We use char because int might match the return type of a gcc2
8876 builtin and then its argument prototype would still apply. */
8877 char clock_gettime ();
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_lib_rt_clock_gettime=yes
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_lib_rt_clock_gettime=no
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_lib_save_LIBS
8919 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8920 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8921 if test $ac_cv_lib_rt_clock_gettime = yes; then
8924 cat >>confdefs.h <<\_ACEOF
8925 #define HAVE_CLOCK_GETTIME 1
8932 # See if we support thread-local storage.
8934 # Check whether --enable-tls or --disable-tls was given.
8935 if test "${enable_tls+set}" = set; then
8936 enableval="$enable_tls"
8938 case "$enableval" in
8940 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8941 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8942 { (exit 1); exit 1; }; } ;;
8949 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8950 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8951 if test "${have_tls+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 if test "$cross_compiling" = yes; then
8956 cat >conftest.$ac_ext <<_ACEOF
8957 __thread int a; int b; int main() { return a = b; }
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8961 (eval $ac_link) 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -z "$ac_c_werror_flag"
8969 || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest$ac_exeext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8988 rm -f conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
8992 cat >conftest.$ac_ext <<_ACEOF
8993 __thread int a; int b; int main() { return a = b; }
8995 rm -f conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 chktls_save_LDFLAGS="$LDFLAGS"
9007 LDFLAGS="-static $LDFLAGS"
9008 cat >conftest.$ac_ext <<_ACEOF
9009 int main() { return 0; }
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013 (eval $ac_link) 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -z "$ac_c_werror_flag"
9021 || test ! -s conftest.err'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 if test "$cross_compiling" = yes; then
9034 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9035 See \`config.log' for more details." >&5
9036 echo "$as_me: error: cannot run test program while cross compiling
9037 See \`config.log' for more details." >&2;}
9038 { (exit 1); exit 1; }; }
9040 cat >conftest.$ac_ext <<_ACEOF
9041 __thread int a; int b; int main() { return a = b; }
9043 rm -f conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9056 echo "$as_me: program exited with status $ac_status" >&5
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9071 rm -f conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 LDFLAGS="$chktls_save_LDFLAGS"
9074 if test $have_tls = yes; then
9075 chktls_save_CFLAGS="$CFLAGS"
9076 thread_CFLAGS=failed
9077 for flag in '' '-pthread' '-lpthread'; do
9078 CFLAGS="$flag $chktls_save_CFLAGS"
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 #include <pthread.h>
9086 void *g(void *d) { return NULL; }
9090 pthread_t t; pthread_create(&t,NULL,g,NULL);
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>conftest.er1
9099 grep -v '^ *+' conftest.er1 >conftest.err
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -z "$ac_c_werror_flag"
9105 || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 thread_CFLAGS="$flag"
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -f conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 if test "X$thread_CFLAGS" != Xfailed; then
9129 CFLAGS="$chktls_save_CFLAGS"
9130 if test "X$thread_CFLAGS" != Xfailed; then
9131 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
9132 if test "$cross_compiling" = yes; then
9133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9134 See \`config.log' for more details." >&5
9135 echo "$as_me: error: cannot run test program while cross compiling
9136 See \`config.log' for more details." >&2;}
9137 { (exit 1); exit 1; }; }
9139 cat >conftest.$ac_ext <<_ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 #include <pthread.h>
9147 static int *a_in_other_thread;
9149 thread_func (void *arg)
9151 a_in_other_thread = &a;
9158 void *thread_retval;
9159 int *a_in_main_thread;
9160 if (pthread_create (&thread, (pthread_attr_t *)0,
9161 thread_func, (void *)0))
9163 a_in_main_thread = &a;
9164 if (pthread_join (thread, &thread_retval))
9166 return (a_in_other_thread == a_in_main_thread);
9171 rm -f conftest$ac_exeext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9184 echo "$as_me: program exited with status $ac_status" >&5
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9193 CFLAGS="$chktls_save_CFLAGS"
9197 echo "$as_me: program exited with status $ac_status" >&5
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9207 echo "$as_me:$LINENO: result: $have_tls" >&5
9208 echo "${ECHO_T}$have_tls" >&6
9209 if test "$enable_tls $have_tls" = "yes yes"; then
9211 cat >>confdefs.h <<\_ACEOF
9217 # See what sort of export controls are availible.
9219 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
9220 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
9221 if test "${have_attribute_visibility+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 save_CFLAGS="$CFLAGS"
9226 CFLAGS="$CFLAGS -Werror"
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 void __attribute__((visibility("hidden"))) foo(void) { }
9242 rm -f conftest.$ac_objext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9244 (eval $ac_compile) 2>conftest.er1
9246 grep -v '^ *+' conftest.er1 >conftest.err
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } &&
9251 { ac_try='test -z "$ac_c_werror_flag"
9252 || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try='test -s conftest.$ac_objext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 have_attribute_visibility=yes
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 have_attribute_visibility=no
9271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9272 CFLAGS="$save_CFLAGS"
9274 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9275 echo "${ECHO_T}$have_attribute_visibility" >&6
9276 if test $have_attribute_visibility = yes; then
9278 cat >>confdefs.h <<\_ACEOF
9279 #define HAVE_ATTRIBUTE_VISIBILITY 1
9284 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9285 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9286 if test "${have_attribute_dllexport+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 save_CFLAGS="$CFLAGS"
9291 CFLAGS="$CFLAGS -Werror"
9292 cat >conftest.$ac_ext <<_ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 void __attribute__((dllexport)) foo(void) { }
9307 rm -f conftest.$ac_objext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9309 (eval $ac_compile) 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -z "$ac_c_werror_flag"
9317 || test ! -s conftest.err'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 have_attribute_dllexport=yes
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 have_attribute_dllexport=no
9336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9337 CFLAGS="$save_CFLAGS"
9339 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9340 echo "${ECHO_T}$have_attribute_dllexport" >&6
9341 if test $have_attribute_dllexport = yes; then
9343 cat >>confdefs.h <<\_ACEOF
9344 #define HAVE_ATTRIBUTE_DLLEXPORT 1
9349 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9350 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9351 if test "${have_attribute_alias+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9363 extern void bar(void) __attribute__((alias("foo")));
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374 (eval $ac_link) 2>conftest.er1
9376 grep -v '^ *+' conftest.er1 >conftest.err
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 have_attribute_alias=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 have_attribute_alias=no
9401 rm -f conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9404 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9405 echo "${ECHO_T}$have_attribute_alias" >&6
9406 if test $have_attribute_alias = yes; then
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_ATTRIBUTE_ALIAS 1
9414 # If we're not using GNU ld, then there's no point in even trying these
9415 # tests. Check for that first. We should have already tested for gld
9416 # by now (in libtool), but require it now just to be safe...
9417 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9418 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9422 # The name set by libtool depends on the version of libtool. Shame on us
9423 # for depending on an impl detail, but c'est la vie. Older versions used
9424 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9425 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9426 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9427 # set (hence we're using an older libtool), then set it.
9428 if test x${with_gnu_ld+set} != xset; then
9429 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9430 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9433 with_gnu_ld=$ac_cv_prog_gnu_ld
9437 # Start by getting the version number. I think the libtool test already
9438 # does some of this, but throws away the result.
9440 ldver=`$LD --version 2>/dev/null | head -1 | \
9441 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9443 libgomp_gnu_ld_version=`echo $ldver | \
9444 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9446 # Set --gc-sections.
9447 if test "$with_gnu_ld" = "notbroken"; then
9448 # GNU ld it is! Joy and bunny rabbits!
9450 # All these tests are for C++; save the language and the compiler flags.
9451 # Need to do this so that g++ won't try to link in libstdc++
9452 ac_test_CFLAGS="${CFLAGS+set}"
9453 ac_save_CFLAGS="$CFLAGS"
9454 CFLAGS='-x c++ -Wl,--gc-sections'
9456 # Check for -Wl,--gc-sections
9457 # XXX This test is broken at the moment, as symbols required for linking
9458 # are now in libsupc++ (not built yet). In addition, this test has
9459 # cored on solaris in the past. In addition, --gc-sections doesn't
9460 # really work at the moment (keeps on discarding used sections, first
9461 # .eh_frame and now some of the glibc sections for iconv).
9462 # Bzzzzt. Thanks for playing, maybe next time.
9463 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9464 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9465 if test "$cross_compiling" = yes; then
9466 ac_sectionLDflags=yes
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9483 rm -f conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485 (eval $ac_link) 2>&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_sectionLDflags=yes
9496 echo "$as_me: program exited with status $ac_status" >&5
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_sectionLDflags=no
9503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9505 if test "$ac_test_CFLAGS" = set; then
9506 CFLAGS="$ac_save_CFLAGS"
9508 # this is the suspicious part
9511 if test "$ac_sectionLDflags" = "yes"; then
9512 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9514 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9515 echo "${ECHO_T}$ac_sectionLDflags" >&6
9518 # Set linker optimization flags.
9519 if test x"$with_gnu_ld" = x"yes"; then
9520 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9528 # Check whether --enable-symvers or --disable-symvers was given.
9529 if test "${enable_symvers+set}" = set; then
9530 enableval="$enable_symvers"
9532 case "$enableval" in
9534 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9535 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9536 { (exit 1); exit 1; }; } ;;
9544 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9545 # don't know enough about $LD to do tricks...
9547 # FIXME The following test is too strict, in theory.
9548 if test $enable_shared = no ||
9550 test x$libgomp_gnu_ld_version = x; then
9554 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9555 if test $enable_symvers != no; then
9556 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9557 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9558 ac_save_CFLAGS="$CFLAGS"
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577 (eval $ac_link) 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag"
9585 || test ! -s conftest.err'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; } &&
9591 { ac_try='test -s conftest$ac_exeext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 libgomp_shared_libgcc=yes
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 libgomp_shared_libgcc=no
9604 rm -f conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9606 CFLAGS="$ac_save_CFLAGS"
9607 if test $libgomp_shared_libgcc = no; then
9608 cat > conftest.c <<EOF
9609 int main (void) { return 0; }
9611 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9612 -shared -shared-libgcc -o conftest.so \
9613 conftest.c -v 2>&1 >/dev/null \
9614 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9615 rm -f conftest.c conftest.so
9616 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9617 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_c_werror_flag"
9643 || test ! -s conftest.err'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest$ac_exeext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 libgomp_shared_libgcc=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9661 rm -f conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 CFLAGS="$ac_save_CFLAGS"
9666 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9667 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9670 # For GNU ld, we need at least this version. The format is described in
9671 # LIBGOMP_CHECK_LINKER_FEATURES above.
9672 libgomp_min_gnu_ld_version=21400
9673 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9675 # Check to see if unspecified "yes" value can win, given results above.
9676 # Change "yes" into either "no" or a style name.
9677 if test $enable_symvers = yes; then
9678 if test $with_gnu_ld = yes &&
9679 test $libgomp_shared_libgcc = yes;
9681 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9684 # The right tools, the right setup, but too old. Fallbacks?
9685 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9686 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9688 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9689 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9690 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9692 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9693 if test $libgomp_gnu_ld_version -ge 21200 ; then
9694 # Globbing fix is present, proper block support is not.
9695 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9696 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9700 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9701 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9707 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9708 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9710 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9712 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9713 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9714 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9721 if test $enable_symvers != no; then
9722 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9723 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9725 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9726 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9729 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9730 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9733 # Get target configury.
9734 . ${srcdir}/configure.tgt
9735 CFLAGS="$save_CFLAGS $XCFLAGS"
9737 # Check for __sync_val_compare_and_swap, but only after the target has
9738 # had a chance to set XCFLAGS.
9740 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9741 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9742 if test "${have_sync_builtins+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9756 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 have_sync_builtins=yes
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 have_sync_builtins=no
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9794 echo "${ECHO_T}$have_sync_builtins" >&6
9795 if test $have_sync_builtins = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_SYNC_BUILTINS 1
9803 XCFLAGS="$XCFLAGS$XPCFLAGS"
9810 CFLAGS="$save_CFLAGS"
9811 cat >confcache <<\_ACEOF
9812 # This file is a shell script that caches the results of configure
9813 # tests run on this system so they can be shared between configure
9814 # scripts and configure runs, see configure's option --config-cache.
9815 # It is not useful on other systems. If it contains results you don't
9816 # want to keep, you may remove or edit it.
9818 # config.status only pays attention to the cache file if you give it
9819 # the --recheck option to rerun configure.
9821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9827 # The following way of writing the cache mishandles newlines in values,
9828 # but we know of no workaround that is simple, portable, and efficient.
9829 # So, don't put newlines in cache variables' values.
9830 # Ultrix sh set writes to stderr and can't be redirected directly,
9831 # and sets the high bit in the cache file unless we assign to the vars.
9834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9836 # `set' does not quote correctly, so add quotes (double-quote
9837 # substitution turns \\\\ into \\, and sed turns \\ into \).
9840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9843 # `set' quotes correctly as required by POSIX, so do not add quotes.
9845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9856 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9857 if test -w $cache_file; then
9858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9859 cat confcache >$cache_file
9861 echo "not updating unwritable cache $cache_file"
9866 if test ${multilib} = yes; then
9867 multilib_arg="--enable-multilib"
9872 # Set up the set of libraries that we need to link against for libgomp.
9873 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9874 # which will force linkage against -lpthread (or equivalent for the system).
9875 # That's not 100% ideal, but about the best we can do easily.
9876 if test $enable_shared = yes; then
9877 link_gomp="-lgomp %{static: $LIBS}"
9879 link_gomp="-lgomp $LIBS"
9885 if test "$ac_cv_fc_compiler_gnu" = yes; then
9887 USE_FORTRAN_FALSE='#'
9889 USE_FORTRAN_TRUE='#'
9894 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9895 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9896 # the underscore here and update the PREREQ. If it doesn't, then we'll
9897 # need to copy this macro to our acinclude.m4.
9898 save_CFLAGS="$CFLAGS"
9899 for i in $config_path; do
9900 if test -f $srcdir/config/$i/omp-lock.h; then
9901 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9906 if test "$cross_compiling" = yes; then
9907 # Depending upon the size, compute the lo and hi bounds.
9908 cat >conftest.$ac_ext <<_ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9918 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9925 rm -f conftest.$ac_objext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9927 (eval $ac_compile) 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9959 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9966 rm -f conftest.$ac_objext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9968 (eval $ac_compile) 2>conftest.er1
9970 grep -v '^ *+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag"
9976 || test ! -s conftest.err'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest.$ac_objext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_hi=$ac_mid; break
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_lo=`expr $ac_mid + 1`
9994 if test $ac_lo -le $ac_mid; then
9998 ac_mid=`expr 2 '*' $ac_mid + 1`
10000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10016 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
10023 rm -f conftest.$ac_objext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest.$ac_objext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10047 cat >conftest.$ac_ext <<_ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10057 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
10064 rm -f conftest.$ac_objext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10066 (eval $ac_compile) 2>conftest.er1
10068 grep -v '^ *+' conftest.er1 >conftest.err
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -z "$ac_c_werror_flag"
10074 || test ! -s conftest.err'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest.$ac_objext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_lo=$ac_mid; break
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_hi=`expr '(' $ac_mid ')' - 1`
10092 if test $ac_mid -le $ac_hi; then
10096 ac_mid=`expr 2 '*' $ac_mid`
10098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10109 # Binary search between lo and hi bounds.
10110 while test "x$ac_lo" != "x$ac_hi"; do
10111 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10122 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag"
10139 || test ! -s conftest.err'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest.$ac_objext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_lo=`expr '(' $ac_mid ')' + 1`
10158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10161 ?*) OMP_LOCK_SIZE=$ac_lo;;
10162 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10163 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10164 { (exit 1); exit 1; }; } ;;
10167 if test "$cross_compiling" = yes; then
10168 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10169 See \`config.log' for more details." >&5
10170 echo "$as_me: error: cannot run test program while cross compiling
10171 See \`config.log' for more details." >&2;}
10172 { (exit 1); exit 1; }; }
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 long longval () { return sizeof (omp_lock_t); }
10182 unsigned long ulongval () { return sizeof (omp_lock_t); }
10184 #include <stdlib.h>
10189 FILE *f = fopen ("conftest.val", "w");
10192 if ((sizeof (omp_lock_t)) < 0)
10194 long i = longval ();
10195 if (i != (sizeof (omp_lock_t)))
10197 fprintf (f, "%ld\n", i);
10201 unsigned long i = ulongval ();
10202 if (i != (sizeof (omp_lock_t)))
10204 fprintf (f, "%lu\n", i);
10206 exit (ferror (f) || fclose (f) != 0);
10212 rm -f conftest$ac_exeext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 OMP_LOCK_SIZE=`cat conftest.val`
10225 echo "$as_me: program exited with status $ac_status" >&5
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ( exit $ac_status )
10230 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10231 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10232 { (exit 1); exit 1; }; }
10234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10238 if test "$cross_compiling" = yes; then
10239 # Depending upon the size, compute the lo and hi bounds.
10240 cat >conftest.$ac_ext <<_ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10250 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10291 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_hi=$ac_mid; break
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_lo=`expr $ac_mid + 1`
10326 if test $ac_lo -le $ac_mid; then
10330 ac_mid=`expr 2 '*' $ac_mid + 1`
10332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 cat >conftest.$ac_ext <<_ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10348 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag"
10365 || test ! -s conftest.err'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; } &&
10371 { ac_try='test -s conftest.$ac_objext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10389 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_lo=$ac_mid; break
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_hi=`expr '(' $ac_mid ')' - 1`
10424 if test $ac_mid -le $ac_hi; then
10428 ac_mid=`expr 2 '*' $ac_mid`
10430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10441 # Binary search between lo and hi bounds.
10442 while test "x$ac_lo" != "x$ac_hi"; do
10443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10454 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_lo=`expr '(' $ac_mid ')' + 1`
10490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10493 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10497 if test "$cross_compiling" = yes; then
10498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10499 See \`config.log' for more details." >&5
10500 echo "$as_me: error: cannot run test program while cross compiling
10501 See \`config.log' for more details." >&2;}
10502 { (exit 1); exit 1; }; }
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 long longval () { return __alignof (omp_lock_t); }
10512 unsigned long ulongval () { return __alignof (omp_lock_t); }
10514 #include <stdlib.h>
10519 FILE *f = fopen ("conftest.val", "w");
10522 if ((__alignof (omp_lock_t)) < 0)
10524 long i = longval ();
10525 if (i != (__alignof (omp_lock_t)))
10527 fprintf (f, "%ld\n", i);
10531 unsigned long i = ulongval ();
10532 if (i != (__alignof (omp_lock_t)))
10534 fprintf (f, "%lu\n", i);
10536 exit (ferror (f) || fclose (f) != 0);
10542 rm -f conftest$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 OMP_LOCK_ALIGN=`cat conftest.val`
10555 echo "$as_me: program exited with status $ac_status" >&5
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10564 if test "$cross_compiling" = yes; then
10565 # Depending upon the size, compute the lo and hi bounds.
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10576 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10583 rm -f conftest.$ac_objext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10585 (eval $ac_compile) 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag"
10593 || test ! -s conftest.err'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; } &&
10599 { ac_try='test -s conftest.$ac_objext'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10617 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>conftest.er1
10628 grep -v '^ *+' conftest.er1 >conftest.err
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try='test -s conftest.$ac_objext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_hi=$ac_mid; break
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_lo=`expr $ac_mid + 1`
10652 if test $ac_lo -le $ac_mid; then
10656 ac_mid=`expr 2 '*' $ac_mid + 1`
10658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 cat >conftest.$ac_ext <<_ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10674 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10685 grep -v '^ *+' conftest.er1 >conftest.err
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10705 cat >conftest.$ac_ext <<_ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10715 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10722 rm -f conftest.$ac_objext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724 (eval $ac_compile) 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag"
10732 || test ! -s conftest.err'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_lo=$ac_mid; break
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_hi=`expr '(' $ac_mid ')' - 1`
10750 if test $ac_mid -le $ac_hi; then
10754 ac_mid=`expr 2 '*' $ac_mid`
10756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10767 # Binary search between lo and hi bounds.
10768 while test "x$ac_lo" != "x$ac_hi"; do
10769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10780 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10787 rm -f conftest.$ac_objext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789 (eval $ac_compile) 2>conftest.er1
10791 grep -v '^ *+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag"
10797 || test ! -s conftest.err'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest.$ac_objext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_lo=`expr '(' $ac_mid ')' + 1`
10816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10819 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10823 if test "$cross_compiling" = yes; then
10824 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10825 See \`config.log' for more details." >&5
10826 echo "$as_me: error: cannot run test program while cross compiling
10827 See \`config.log' for more details." >&2;}
10828 { (exit 1); exit 1; }; }
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10837 long longval () { return sizeof (omp_nest_lock_t); }
10838 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10840 #include <stdlib.h>
10845 FILE *f = fopen ("conftest.val", "w");
10848 if ((sizeof (omp_nest_lock_t)) < 0)
10850 long i = longval ();
10851 if (i != (sizeof (omp_nest_lock_t)))
10853 fprintf (f, "%ld\n", i);
10857 unsigned long i = ulongval ();
10858 if (i != (sizeof (omp_nest_lock_t)))
10860 fprintf (f, "%lu\n", i);
10862 exit (ferror (f) || fclose (f) != 0);
10868 rm -f conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10881 echo "$as_me: program exited with status $ac_status" >&5
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10886 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10890 if test "$cross_compiling" = yes; then
10891 # Depending upon the size, compute the lo and hi bounds.
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10902 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10909 rm -f conftest.$ac_objext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10911 (eval $ac_compile) 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest.$ac_objext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10933 cat >conftest.$ac_ext <<_ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10943 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10950 rm -f conftest.$ac_objext
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952 (eval $ac_compile) 2>conftest.er1
10954 grep -v '^ *+' conftest.er1 >conftest.err
10956 cat conftest.err >&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
10959 { ac_try='test -z "$ac_c_werror_flag"
10960 || test ! -s conftest.err'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; } &&
10966 { ac_try='test -s conftest.$ac_objext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 ac_hi=$ac_mid; break
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ac_lo=`expr $ac_mid + 1`
10978 if test $ac_lo -le $ac_mid; then
10982 ac_mid=`expr 2 '*' $ac_mid + 1`
10984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
11000 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
11007 rm -f conftest.$ac_objext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11031 cat >conftest.$ac_ext <<_ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11041 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
11048 rm -f conftest.$ac_objext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050 (eval $ac_compile) 2>conftest.er1
11052 grep -v '^ *+' conftest.er1 >conftest.err
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_lo=$ac_mid; break
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_hi=`expr '(' $ac_mid ')' - 1`
11076 if test $ac_mid -le $ac_hi; then
11080 ac_mid=`expr 2 '*' $ac_mid`
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11093 # Binary search between lo and hi bounds.
11094 while test "x$ac_lo" != "x$ac_hi"; do
11095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11106 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 ac_lo=`expr '(' $ac_mid ')' + 1`
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11145 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
11149 if test "$cross_compiling" = yes; then
11150 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11151 See \`config.log' for more details." >&5
11152 echo "$as_me: error: cannot run test program while cross compiling
11153 See \`config.log' for more details." >&2;}
11154 { (exit 1); exit 1; }; }
11156 cat >conftest.$ac_ext <<_ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11163 long longval () { return __alignof (omp_nest_lock_t); }
11164 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
11166 #include <stdlib.h>
11171 FILE *f = fopen ("conftest.val", "w");
11174 if ((__alignof (omp_nest_lock_t)) < 0)
11176 long i = longval ();
11177 if (i != (__alignof (omp_nest_lock_t)))
11179 fprintf (f, "%ld\n", i);
11183 unsigned long i = ulongval ();
11184 if (i != (__alignof (omp_nest_lock_t)))
11186 fprintf (f, "%lu\n", i);
11188 exit (ferror (f) || fclose (f) != 0);
11194 rm -f conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
11207 echo "$as_me: program exited with status $ac_status" >&5
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11217 # If the lock fits in an integer, then arrange for Fortran to use that
11218 # integer. If it doesn't, then arrange for Fortran to use a pointer.
11219 # Except that we don't have a way at present to multi-lib the installed
11220 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
11222 OMP_LOCK_KIND=$OMP_LOCK_SIZE
11223 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
11224 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
11227 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
11228 OMP_NEST_LOCK_KIND=8
11237 CFLAGS="$save_CFLAGS"
11239 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
11241 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
11243 cat >confcache <<\_ACEOF
11244 # This file is a shell script that caches the results of configure
11245 # tests run on this system so they can be shared between configure
11246 # scripts and configure runs, see configure's option --config-cache.
11247 # It is not useful on other systems. If it contains results you don't
11248 # want to keep, you may remove or edit it.
11250 # config.status only pays attention to the cache file if you give it
11251 # the --recheck option to rerun configure.
11253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11255 # following values.
11259 # The following way of writing the cache mishandles newlines in values,
11260 # but we know of no workaround that is simple, portable, and efficient.
11261 # So, don't put newlines in cache variables' values.
11262 # Ultrix sh set writes to stderr and can't be redirected directly,
11263 # and sets the high bit in the cache file unless we assign to the vars.
11266 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11268 # `set' does not quote correctly, so add quotes (double-quote
11269 # substitution turns \\\\ into \\, and sed turns \\ into \).
11272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11275 # `set' quotes correctly as required by POSIX, so do not add quotes.
11277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11286 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11288 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11289 if test -w $cache_file; then
11290 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11291 cat confcache >$cache_file
11293 echo "not updating unwritable cache $cache_file"
11298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11299 # Let make expand exec_prefix.
11300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11304 # trailing colons and then remove the whole line if VPATH becomes empty
11305 # (actually we leave an empty line to preserve line numbers).
11306 if test "x$srcdir" = x.; then
11307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11308 s/:*\$(srcdir):*/:/;
11309 s/:*\${srcdir}:*/:/;
11311 s/^\([^=]*=[ ]*\):*/\1/;
11317 DEFS=-DHAVE_CONFIG_H
11321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11322 # 1. Remove the extension, and $U if already installed.
11323 ac_i=`echo "$ac_i" |
11324 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11326 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11327 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11329 LIBOBJS=$ac_libobjs
11331 LTLIBOBJS=$ac_ltlibobjs
11334 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
11335 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
11336 Usually this means the macro was only invoked conditionally." >&5
11337 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
11338 Usually this means the macro was only invoked conditionally." >&2;}
11339 { (exit 1); exit 1; }; }
11341 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11342 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11343 Usually this means the macro was only invoked conditionally." >&5
11344 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11345 Usually this means the macro was only invoked conditionally." >&2;}
11346 { (exit 1); exit 1; }; }
11348 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11349 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11350 Usually this means the macro was only invoked conditionally." >&5
11351 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11352 Usually this means the macro was only invoked conditionally." >&2;}
11353 { (exit 1); exit 1; }; }
11355 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
11356 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
11357 Usually this means the macro was only invoked conditionally." >&5
11358 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
11359 Usually this means the macro was only invoked conditionally." >&2;}
11360 { (exit 1); exit 1; }; }
11362 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11363 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11364 Usually this means the macro was only invoked conditionally." >&5
11365 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11366 Usually this means the macro was only invoked conditionally." >&2;}
11367 { (exit 1); exit 1; }; }
11369 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11370 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11371 Usually this means the macro was only invoked conditionally." >&5
11372 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11373 Usually this means the macro was only invoked conditionally." >&2;}
11374 { (exit 1); exit 1; }; }
11376 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11377 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11378 Usually this means the macro was only invoked conditionally." >&5
11379 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11380 Usually this means the macro was only invoked conditionally." >&2;}
11381 { (exit 1); exit 1; }; }
11384 : ${CONFIG_STATUS=./config.status}
11385 ac_clean_files_save=$ac_clean_files
11386 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11387 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11388 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11389 cat >$CONFIG_STATUS <<_ACEOF
11391 # Generated by $as_me.
11392 # Run this file to recreate the current configuration.
11393 # Compiler output produced by configure, useful for debugging
11394 # configure, is in config.log if it exists.
11397 ac_cs_recheck=false
11399 SHELL=\${CONFIG_SHELL-$SHELL}
11402 cat >>$CONFIG_STATUS <<\_ACEOF
11403 ## --------------------- ##
11404 ## M4sh Initialization. ##
11405 ## --------------------- ##
11407 # Be Bourne compatible
11408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11411 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11412 # is contrary to our usage. Disable this feature.
11413 alias -g '${1+"$@"}'='"$@"'
11414 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11417 DUALCASE=1; export DUALCASE # for MKS sh
11419 # Support unset when possible.
11420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11427 # Work around bugs in pre-3.0 UWIN ksh.
11428 $as_unset ENV MAIL MAILPATH
11435 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11436 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11437 LC_TELEPHONE LC_TIME
11439 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11440 eval $as_var=C; export $as_var
11446 # Required to use basename.
11447 if expr a : '\(a\)' >/dev/null 2>&1; then
11453 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11454 as_basename=basename
11460 # Name of the executable.
11461 as_me=`$as_basename "$0" ||
11462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11463 X"$0" : 'X\(//\)$' \| \
11464 X"$0" : 'X\(/\)$' \| \
11465 . : '\(.\)' 2>/dev/null ||
11467 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11468 /^X\/\(\/\/\)$/{ s//\1/; q; }
11469 /^X\/\(\/\).*/{ s//\1/; q; }
11473 # PATH needs CR, and LINENO needs CR and PATH.
11474 # Avoid depending upon Character Ranges.
11475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11478 as_cr_digits='0123456789'
11479 as_cr_alnum=$as_cr_Letters$as_cr_digits
11481 # The user is always right.
11482 if test "${PATH_SEPARATOR+set}" != set; then
11483 echo "#! /bin/sh" >conf$$.sh
11484 echo "exit 0" >>conf$$.sh
11486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11495 as_lineno_1=$LINENO
11496 as_lineno_2=$LINENO
11497 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11498 test "x$as_lineno_1" != "x$as_lineno_2" &&
11499 test "x$as_lineno_3" = "x$as_lineno_2" || {
11500 # Find who we are. Look in the path if we contain no path at all
11503 *[\\/]* ) as_myself=$0 ;;
11504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11508 test -z "$as_dir" && as_dir=.
11509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11514 # We did not find ourselves, most probably we were run as `sh COMMAND'
11515 # in which case we are not to be found in the path.
11516 if test "x$as_myself" = x; then
11519 if test ! -f "$as_myself"; then
11520 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11521 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11522 { (exit 1); exit 1; }; }
11524 case $CONFIG_SHELL in
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11530 test -z "$as_dir" && as_dir=.
11531 for as_base in sh bash ksh sh5; do
11534 if ("$as_dir/$as_base" -c '
11535 as_lineno_1=$LINENO
11536 as_lineno_2=$LINENO
11537 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11538 test "x$as_lineno_1" != "x$as_lineno_2" &&
11539 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11540 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11541 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11542 CONFIG_SHELL=$as_dir/$as_base
11543 export CONFIG_SHELL
11544 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11552 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11553 # uniformly replaced by the line number. The first 'sed' inserts a
11554 # line-number line before each line; the second 'sed' does the real
11555 # work. The second script uses 'N' to pair each line-number line
11556 # with the numbered line, and appends trailing '-' during
11557 # substitution so that $LINENO is not a special case at line end.
11558 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11559 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11560 sed '=' <$as_myself |
11565 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11568 s,^['$as_cr_digits']*\n,,
11569 ' >$as_me.lineno &&
11570 chmod +x $as_me.lineno ||
11571 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11572 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11573 { (exit 1); exit 1; }; }
11575 # Don't try to exec as it changes $[0], causing all sort of problems
11576 # (the dirname of $[0] is not the place where we might find the
11577 # original and so on. Autoconf is especially sensible to this).
11579 # Exit status is that of the last command.
11584 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11585 *c*,-n*) ECHO_N= ECHO_C='
11587 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11588 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11591 if expr a : '\(a\)' >/dev/null 2>&1; then
11597 rm -f conf$$ conf$$.exe conf$$.file
11599 if ln -s conf$$.file conf$$ 2>/dev/null; then
11600 # We could just check for DJGPP; but this test a) works b) is more generic
11601 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11602 if test -f conf$$.exe; then
11603 # Don't use ln at all; we don't have any links
11608 elif ln conf$$.file conf$$ 2>/dev/null; then
11613 rm -f conf$$ conf$$.exe conf$$.file
11615 if mkdir -p . 2>/dev/null; then
11618 test -d ./-p && rmdir ./-p
11622 as_executable_p="test -f"
11624 # Sed expression to map a string onto a valid CPP name.
11625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11627 # Sed expression to map a string onto a valid variable name.
11628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11632 # We need space, tab and new line, in precisely that order.
11642 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11643 # report actual input values of CONFIG_FILES etc. instead of their
11644 # values after options handling. Logging --version etc. is OK.
11648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11649 ## Running $as_me. ##
11654 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11655 generated by GNU Autoconf 2.59. Invocation command line was
11657 CONFIG_FILES = $CONFIG_FILES
11658 CONFIG_HEADERS = $CONFIG_HEADERS
11659 CONFIG_LINKS = $CONFIG_LINKS
11660 CONFIG_COMMANDS = $CONFIG_COMMANDS
11664 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11668 # Files that config.status was made for.
11669 if test -n "$ac_config_files"; then
11670 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11673 if test -n "$ac_config_headers"; then
11674 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11677 if test -n "$ac_config_links"; then
11678 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11681 if test -n "$ac_config_commands"; then
11682 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11685 cat >>$CONFIG_STATUS <<\_ACEOF
11688 \`$as_me' instantiates files from templates according to the
11689 current configuration.
11691 Usage: $0 [OPTIONS] [FILE]...
11693 -h, --help print this help, then exit
11694 -V, --version print version number, then exit
11695 -q, --quiet do not print progress messages
11696 -d, --debug don't remove temporary files
11697 --recheck update $as_me by reconfiguring in the same conditions
11698 --file=FILE[:TEMPLATE]
11699 instantiate the configuration file FILE
11700 --header=FILE[:TEMPLATE]
11701 instantiate the configuration header FILE
11703 Configuration files:
11706 Configuration headers:
11709 Configuration commands:
11712 Report bugs to <bug-autoconf@gnu.org>."
11715 cat >>$CONFIG_STATUS <<_ACEOF
11717 GNU OpenMP Runtime Library config.status 1.0
11718 configured by $0, generated by GNU Autoconf 2.59,
11719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11721 Copyright (C) 2003 Free Software Foundation, Inc.
11722 This config.status script is free software; the Free Software Foundation
11723 gives unlimited permission to copy, distribute and modify it."
11728 cat >>$CONFIG_STATUS <<\_ACEOF
11729 # If no file are specified by the user, then we need to provide default
11730 # value. By we need to know if files were specified by the user.
11736 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11737 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11745 *) # This is not an option, so the user has probably given explicit
11748 ac_need_defaults=false;;
11752 # Handling of the options.
11754 cat >>$CONFIG_STATUS <<\_ACEOF
11755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11757 --version | --vers* | -V )
11758 echo "$ac_cs_version"; exit 0 ;;
11760 # Conflict between --help and --header
11761 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11762 Try \`$0 --help' for more information." >&5
11763 echo "$as_me: error: ambiguous option: $1
11764 Try \`$0 --help' for more information." >&2;}
11765 { (exit 1); exit 1; }; };;
11766 --help | --hel | -h )
11767 echo "$ac_cs_usage"; exit 0 ;;
11768 --debug | --d* | -d )
11770 --file | --fil | --fi | --f )
11772 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11773 ac_need_defaults=false;;
11774 --header | --heade | --head | --hea )
11776 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11777 ac_need_defaults=false;;
11778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11779 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11782 # This is an error.
11783 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11784 Try \`$0 --help' for more information." >&5
11785 echo "$as_me: error: unrecognized option: $1
11786 Try \`$0 --help' for more information." >&2;}
11787 { (exit 1); exit 1; }; } ;;
11789 *) ac_config_targets="$ac_config_targets $1" ;;
11795 ac_configure_extra_args=
11797 if $ac_cs_silent; then
11799 ac_configure_extra_args="$ac_configure_extra_args --silent"
11803 cat >>$CONFIG_STATUS <<_ACEOF
11804 if \$ac_cs_recheck; then
11805 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11806 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11811 cat >>$CONFIG_STATUS <<_ACEOF
11813 # INIT-COMMANDS section.
11820 with_multisubdir="$with_multisubdir"
11821 with_multisrctop="$with_multisrctop"
11822 with_target_subdir="$with_target_subdir"
11823 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11824 multi_basedir="$multi_basedir"
11825 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11827 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11831 acx_cv_header_stdint="$acx_cv_header_stdint"
11832 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11833 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11834 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11835 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11836 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11837 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11838 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11839 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11840 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11841 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11842 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11843 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11844 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11851 cat >>$CONFIG_STATUS <<\_ACEOF
11852 for ac_config_target in $ac_config_targets
11854 case "$ac_config_target" in
11855 # Handling of arguments.
11856 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11857 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11858 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11859 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11860 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11861 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11862 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11863 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11864 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11865 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11866 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11867 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11868 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11869 { (exit 1); exit 1; }; };;
11873 # If the user did not use the arguments to specify the items to instantiate,
11874 # then the envvar interface is used. Set only those that are not.
11875 # We use the long form for the default assignment because of an extremely
11876 # bizarre bug on SunOS 4.1.3.
11877 if $ac_need_defaults; then
11878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11880 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11883 # Have a temporary directory for convenience. Make it in the build tree
11884 # simply because there is no reason to put it here, and in addition,
11885 # creating and moving files from /tmp can sometimes cause problems.
11886 # Create a temporary directory, and hook for its removal unless debugging.
11889 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11890 trap '{ (exit 1); exit 1; }' 1 2 13 15
11893 # Create a (secure) tmp directory for tmp files.
11896 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11897 test -n "$tmp" && test -d "$tmp"
11900 tmp=./confstat$$-$RANDOM
11901 (umask 077 && mkdir $tmp)
11904 echo "$me: cannot create a temporary directory in ." >&2
11905 { (exit 1); exit 1; }
11910 cat >>$CONFIG_STATUS <<_ACEOF
11913 # CONFIG_FILES section.
11916 # No need to generate the scripts if there are no CONFIG_FILES.
11917 # This happens for instance when ./config.status config.h
11918 if test -n "\$CONFIG_FILES"; then
11919 # Protect against being on the right side of a sed subst in config.status.
11920 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11921 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11922 s,@SHELL@,$SHELL,;t t
11923 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11924 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11925 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11926 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11927 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11928 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11929 s,@exec_prefix@,$exec_prefix,;t t
11930 s,@prefix@,$prefix,;t t
11931 s,@program_transform_name@,$program_transform_name,;t t
11932 s,@bindir@,$bindir,;t t
11933 s,@sbindir@,$sbindir,;t t
11934 s,@libexecdir@,$libexecdir,;t t
11935 s,@datadir@,$datadir,;t t
11936 s,@sysconfdir@,$sysconfdir,;t t
11937 s,@sharedstatedir@,$sharedstatedir,;t t
11938 s,@localstatedir@,$localstatedir,;t t
11939 s,@libdir@,$libdir,;t t
11940 s,@includedir@,$includedir,;t t
11941 s,@oldincludedir@,$oldincludedir,;t t
11942 s,@infodir@,$infodir,;t t
11943 s,@mandir@,$mandir,;t t
11944 s,@build_alias@,$build_alias,;t t
11945 s,@host_alias@,$host_alias,;t t
11946 s,@target_alias@,$target_alias,;t t
11947 s,@DEFS@,$DEFS,;t t
11948 s,@ECHO_C@,$ECHO_C,;t t
11949 s,@ECHO_N@,$ECHO_N,;t t
11950 s,@ECHO_T@,$ECHO_T,;t t
11951 s,@LIBS@,$LIBS,;t t
11952 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
11953 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
11954 s,@build@,$build,;t t
11955 s,@build_cpu@,$build_cpu,;t t
11956 s,@build_vendor@,$build_vendor,;t t
11957 s,@build_os@,$build_os,;t t
11958 s,@host@,$host,;t t
11959 s,@host_cpu@,$host_cpu,;t t
11960 s,@host_vendor@,$host_vendor,;t t
11961 s,@host_os@,$host_os,;t t
11962 s,@target@,$target,;t t
11963 s,@target_cpu@,$target_cpu,;t t
11964 s,@target_vendor@,$target_vendor,;t t
11965 s,@target_os@,$target_os,;t t
11966 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11967 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11968 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11969 s,@CYGPATH_W@,$CYGPATH_W,;t t
11970 s,@PACKAGE@,$PACKAGE,;t t
11971 s,@VERSION@,$VERSION,;t t
11972 s,@ACLOCAL@,$ACLOCAL,;t t
11973 s,@AUTOCONF@,$AUTOCONF,;t t
11974 s,@AUTOMAKE@,$AUTOMAKE,;t t
11975 s,@AUTOHEADER@,$AUTOHEADER,;t t
11976 s,@MAKEINFO@,$MAKEINFO,;t t
11977 s,@install_sh@,$install_sh,;t t
11978 s,@STRIP@,$STRIP,;t t
11979 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11980 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11981 s,@mkdir_p@,$mkdir_p,;t t
11983 s,@SET_MAKE@,$SET_MAKE,;t t
11984 s,@am__leading_dot@,$am__leading_dot,;t t
11985 s,@AMTAR@,$AMTAR,;t t
11986 s,@am__tar@,$am__tar,;t t
11987 s,@am__untar@,$am__untar,;t t
11988 s,@multi_basedir@,$multi_basedir,;t t
11989 s,@toolexecdir@,$toolexecdir,;t t
11990 s,@toolexeclibdir@,$toolexeclibdir,;t t
11992 s,@ac_ct_CC@,$ac_ct_CC,;t t
11993 s,@EXEEXT@,$EXEEXT,;t t
11994 s,@OBJEXT@,$OBJEXT,;t t
11995 s,@DEPDIR@,$DEPDIR,;t t
11996 s,@am__include@,$am__include,;t t
11997 s,@am__quote@,$am__quote,;t t
11998 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11999 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12000 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12001 s,@CCDEPMODE@,$CCDEPMODE,;t t
12002 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12003 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12004 s,@CFLAGS@,$CFLAGS,;t t
12006 s,@ac_ct_AR@,$ac_ct_AR,;t t
12007 s,@RANLIB@,$RANLIB,;t t
12008 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12009 s,@PERL@,$PERL,;t t
12010 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
12011 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
12012 s,@LN_S@,$LN_S,;t t
12013 s,@LIBTOOL@,$LIBTOOL,;t t
12014 s,@enable_shared@,$enable_shared,;t t
12015 s,@enable_static@,$enable_static,;t t
12016 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12017 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12018 s,@MAINT@,$MAINT,;t t
12020 s,@FCFLAGS@,$FCFLAGS,;t t
12021 s,@LDFLAGS@,$LDFLAGS,;t t
12022 s,@ac_ct_FC@,$ac_ct_FC,;t t
12023 s,@libtool_VERSION@,$libtool_VERSION,;t t
12025 s,@CPPFLAGS@,$CPPFLAGS,;t t
12026 s,@EGREP@,$EGREP,;t t
12027 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
12028 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
12029 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
12030 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
12031 s,@config_path@,$config_path,;t t
12032 s,@XCFLAGS@,$XCFLAGS,;t t
12033 s,@XLDFLAGS@,$XLDFLAGS,;t t
12034 s,@link_gomp@,$link_gomp,;t t
12035 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
12036 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
12037 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
12038 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
12039 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
12040 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
12041 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
12042 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
12043 s,@LIBOBJS@,$LIBOBJS,;t t
12044 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12049 cat >>$CONFIG_STATUS <<\_ACEOF
12050 # Split the substitutions into bite-sized pieces for seds with
12051 # small command number limits, like on Digital OSF/1 and HP-UX.
12052 ac_max_sed_lines=48
12053 ac_sed_frag=1 # Number of current file.
12054 ac_beg=1 # First line for current file.
12055 ac_end=$ac_max_sed_lines # Line after last line for current file.
12058 while $ac_more_lines; do
12059 if test $ac_beg -gt 1; then
12060 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12062 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12064 if test ! -s $tmp/subs.frag; then
12065 ac_more_lines=false
12067 # The purpose of the label and of the branching condition is to
12068 # speed up the sed processing (if there are no `@' at all, there
12069 # is no need to browse any of the substitutions).
12070 # These are the two extra sed commands mentioned above.
12072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12073 if test -z "$ac_sed_cmds"; then
12074 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12076 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12078 ac_sed_frag=`expr $ac_sed_frag + 1`
12080 ac_end=`expr $ac_end + $ac_max_sed_lines`
12083 if test -z "$ac_sed_cmds"; then
12086 fi # test -n "$CONFIG_FILES"
12089 cat >>$CONFIG_STATUS <<\_ACEOF
12090 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12093 - | *:- | *:-:* ) # input from stdin
12095 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12096 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12097 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12099 * ) ac_file_in=$ac_file.in ;;
12102 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12105 X"$ac_file" : 'X\(//\)[^/]' \| \
12106 X"$ac_file" : 'X\(//\)$' \| \
12107 X"$ac_file" : 'X\(/\)' \| \
12108 . : '\(.\)' 2>/dev/null ||
12110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12112 /^X\(\/\/\)$/{ s//\1/; q; }
12113 /^X\(\/\).*/{ s//\1/; q; }
12115 { if $as_mkdir_p; then
12120 while test ! -d "$as_dir"; do
12121 as_dirs="$as_dir $as_dirs"
12122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12124 X"$as_dir" : 'X\(//\)[^/]' \| \
12125 X"$as_dir" : 'X\(//\)$' \| \
12126 X"$as_dir" : 'X\(/\)' \| \
12127 . : '\(.\)' 2>/dev/null ||
12129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12131 /^X\(\/\/\)$/{ s//\1/; q; }
12132 /^X\(\/\).*/{ s//\1/; q; }
12135 test ! -n "$as_dirs" || mkdir $as_dirs
12136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12138 { (exit 1); exit 1; }; }; }
12142 if test "$ac_dir" != .; then
12143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12144 # A "../" for each directory in $ac_dir_suffix.
12145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12147 ac_dir_suffix= ac_top_builddir=
12151 .) # No --srcdir option. We are building in place.
12153 if test -z "$ac_top_builddir"; then
12156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12158 [\\/]* | ?:[\\/]* ) # Absolute path.
12159 ac_srcdir=$srcdir$ac_dir_suffix;
12160 ac_top_srcdir=$srcdir ;;
12161 *) # Relative path.
12162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12166 # Do not use `cd foo && pwd` to compute absolute paths, because
12167 # the directories may not exist.
12169 .) ac_abs_builddir="$ac_dir";;
12172 .) ac_abs_builddir=`pwd`;;
12173 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12174 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12177 case $ac_abs_builddir in
12178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12180 case ${ac_top_builddir}. in
12181 .) ac_abs_top_builddir=$ac_abs_builddir;;
12182 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12183 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12186 case $ac_abs_builddir in
12187 .) ac_abs_srcdir=$ac_srcdir;;
12190 .) ac_abs_srcdir=$ac_abs_builddir;;
12191 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12192 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12195 case $ac_abs_builddir in
12196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12198 case $ac_top_srcdir in
12199 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12200 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12201 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12208 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12211 if test x"$ac_file" != x-; then
12212 { echo "$as_me:$LINENO: creating $ac_file" >&5
12213 echo "$as_me: creating $ac_file" >&6;}
12216 # Let's still pretend it is `configure' which instantiates (i.e., don't
12217 # use $as_me), people would be surprised to read:
12218 # /* config.h. Generated by config.status. */
12219 if test x"$ac_file" = x-; then
12222 configure_input="$ac_file. "
12224 configure_input=$configure_input"Generated from `echo $ac_file_in |
12225 sed 's,.*/,,'` by configure."
12227 # First look for the input files in the build tree, otherwise in the
12229 ac_file_inputs=`IFS=:
12230 for f in $ac_file_in; do
12232 -) echo $tmp/stdin ;;
12234 # Absolute (can't be DOS-style, as IFS=:)
12235 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12236 echo "$as_me: error: cannot find input file: $f" >&2;}
12237 { (exit 1); exit 1; }; }
12240 if test -f "$f"; then
12243 elif test -f "$srcdir/$f"; then
12248 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12249 echo "$as_me: error: cannot find input file: $f" >&2;}
12250 { (exit 1); exit 1; }; }
12253 done` || { (exit 1); exit 1; }
12255 cat >>$CONFIG_STATUS <<_ACEOF
12259 cat >>$CONFIG_STATUS <<\_ACEOF
12261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12262 s,@configure_input@,$configure_input,;t t
12263 s,@srcdir@,$ac_srcdir,;t t
12264 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12265 s,@top_srcdir@,$ac_top_srcdir,;t t
12266 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12267 s,@builddir@,$ac_builddir,;t t
12268 s,@abs_builddir@,$ac_abs_builddir,;t t
12269 s,@top_builddir@,$ac_top_builddir,;t t
12270 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12271 s,@INSTALL@,$ac_INSTALL,;t t
12272 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12274 if test x"$ac_file" != x-; then
12275 mv $tmp/out $ac_file
12283 cat >>$CONFIG_STATUS <<\_ACEOF
12286 # CONFIG_HEADER section.
12289 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12290 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12292 # ac_d sets the value in "#define NAME VALUE" lines.
12293 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12294 ac_dB='[ ].*$,\1#\2'
12297 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12298 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12299 ac_uB='$,\1#\2define\3'
12303 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12306 - | *:- | *:-:* ) # input from stdin
12308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12312 * ) ac_file_in=$ac_file.in ;;
12315 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12316 echo "$as_me: creating $ac_file" >&6;}
12318 # First look for the input files in the build tree, otherwise in the
12320 ac_file_inputs=`IFS=:
12321 for f in $ac_file_in; do
12323 -) echo $tmp/stdin ;;
12325 # Absolute (can't be DOS-style, as IFS=:)
12326 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12327 echo "$as_me: error: cannot find input file: $f" >&2;}
12328 { (exit 1); exit 1; }; }
12329 # Do quote $f, to prevent DOS paths from being IFS'd.
12332 if test -f "$f"; then
12335 elif test -f "$srcdir/$f"; then
12340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12341 echo "$as_me: error: cannot find input file: $f" >&2;}
12342 { (exit 1); exit 1; }; }
12345 done` || { (exit 1); exit 1; }
12346 # Remove the trailing spaces.
12347 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12351 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12352 # `conftest.undefs', that substitutes the proper values into
12353 # config.h.in to produce config.h. The first handles `#define'
12354 # templates, and the second `#undef' templates.
12355 # And first: Protect against being on the right side of a sed subst in
12356 # config.status. Protect against being in an unquoted here document
12357 # in config.status.
12358 rm -f conftest.defines conftest.undefs
12359 # Using a here document instead of a string reduces the quoting nightmare.
12360 # Putting comments in sed scripts is not portable.
12362 # `end' is used to avoid that the second main sed command (meant for
12363 # 0-ary CPP macros) applies to n-ary macro definitions.
12364 # See the Autoconf documentation for `clear'.
12365 cat >confdef2sed.sed <<\_ACEOF
12370 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12372 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12375 # If some macros were called several times there might be several times
12376 # the same #defines, which is useless. Nevertheless, we may not want to
12377 # sort them, since we want the *last* AC-DEFINE to be honored.
12378 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12379 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12380 rm -f confdef2sed.sed
12382 # This sed command replaces #undef with comments. This is necessary, for
12383 # example, in the case of _POSIX_SOURCE, which is predefined and required
12384 # on some systems where configure will not decide to define it.
12385 cat >>conftest.undefs <<\_ACEOF
12386 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12389 # Break up conftest.defines because some shells have a limit on the size
12390 # of here documents, and old seds have small limits too (100 cmds).
12391 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12392 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12393 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12394 echo ' :' >>$CONFIG_STATUS
12395 rm -f conftest.tail
12396 while grep . conftest.defines >/dev/null
12398 # Write a limited-size here document to $tmp/defines.sed.
12399 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12400 # Speed up: don't consider the non `#define' lines.
12401 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12402 # Work around the forget-to-reset-the-flag bug.
12403 echo 't clr' >>$CONFIG_STATUS
12404 echo ': clr' >>$CONFIG_STATUS
12405 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12407 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12409 mv $tmp/out $tmp/in
12411 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12412 rm -f conftest.defines
12413 mv conftest.tail conftest.defines
12415 rm -f conftest.defines
12416 echo ' fi # grep' >>$CONFIG_STATUS
12417 echo >>$CONFIG_STATUS
12419 # Break up conftest.undefs because some shells have a limit on the size
12420 # of here documents, and old seds have small limits too (100 cmds).
12421 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12422 rm -f conftest.tail
12423 while grep . conftest.undefs >/dev/null
12425 # Write a limited-size here document to $tmp/undefs.sed.
12426 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12427 # Speed up: don't consider the non `#undef'
12428 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12429 # Work around the forget-to-reset-the-flag bug.
12430 echo 't clr' >>$CONFIG_STATUS
12431 echo ': clr' >>$CONFIG_STATUS
12432 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12434 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12436 mv $tmp/out $tmp/in
12438 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12439 rm -f conftest.undefs
12440 mv conftest.tail conftest.undefs
12442 rm -f conftest.undefs
12444 cat >>$CONFIG_STATUS <<\_ACEOF
12445 # Let's still pretend it is `configure' which instantiates (i.e., don't
12446 # use $as_me), people would be surprised to read:
12447 # /* config.h. Generated by config.status. */
12448 if test x"$ac_file" = x-; then
12449 echo "/* Generated by configure. */" >$tmp/config.h
12451 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12453 cat $tmp/in >>$tmp/config.h
12455 if test x"$ac_file" != x-; then
12456 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12457 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12458 echo "$as_me: $ac_file is unchanged" >&6;}
12460 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12462 X"$ac_file" : 'X\(//\)[^/]' \| \
12463 X"$ac_file" : 'X\(//\)$' \| \
12464 X"$ac_file" : 'X\(/\)' \| \
12465 . : '\(.\)' 2>/dev/null ||
12467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12469 /^X\(\/\/\)$/{ s//\1/; q; }
12470 /^X\(\/\).*/{ s//\1/; q; }
12472 { if $as_mkdir_p; then
12477 while test ! -d "$as_dir"; do
12478 as_dirs="$as_dir $as_dirs"
12479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12481 X"$as_dir" : 'X\(//\)[^/]' \| \
12482 X"$as_dir" : 'X\(//\)$' \| \
12483 X"$as_dir" : 'X\(/\)' \| \
12484 . : '\(.\)' 2>/dev/null ||
12486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12488 /^X\(\/\/\)$/{ s//\1/; q; }
12489 /^X\(\/\).*/{ s//\1/; q; }
12492 test ! -n "$as_dirs" || mkdir $as_dirs
12493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12495 { (exit 1); exit 1; }; }; }
12498 mv $tmp/config.h $ac_file
12502 rm -f $tmp/config.h
12504 # Compute $ac_file's index in $config_headers.
12506 for _am_header in $config_headers :; do
12507 case $_am_header in
12508 $ac_file | $ac_file:* )
12511 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12514 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12515 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12516 X$ac_file : 'X\(//\)[^/]' \| \
12517 X$ac_file : 'X\(//\)$' \| \
12518 X$ac_file : 'X\(/\)' \| \
12519 . : '\(.\)' 2>/dev/null ||
12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12523 /^X\(\/\/\)$/{ s//\1/; q; }
12524 /^X\(\/\).*/{ s//\1/; q; }
12525 s/.*/./; q'`/stamp-h$_am_stamp_count
12528 cat >>$CONFIG_STATUS <<\_ACEOF
12531 # CONFIG_COMMANDS section.
12533 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12534 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12535 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12536 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12537 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12538 X"$ac_dest" : 'X\(//\)[^/]' \| \
12539 X"$ac_dest" : 'X\(//\)$' \| \
12540 X"$ac_dest" : 'X\(/\)' \| \
12541 . : '\(.\)' 2>/dev/null ||
12543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12545 /^X\(\/\/\)$/{ s//\1/; q; }
12546 /^X\(\/\).*/{ s//\1/; q; }
12548 { if $as_mkdir_p; then
12553 while test ! -d "$as_dir"; do
12554 as_dirs="$as_dir $as_dirs"
12555 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12557 X"$as_dir" : 'X\(//\)[^/]' \| \
12558 X"$as_dir" : 'X\(//\)$' \| \
12559 X"$as_dir" : 'X\(/\)' \| \
12560 . : '\(.\)' 2>/dev/null ||
12562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12564 /^X\(\/\/\)$/{ s//\1/; q; }
12565 /^X\(\/\).*/{ s//\1/; q; }
12568 test ! -n "$as_dirs" || mkdir $as_dirs
12569 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12571 { (exit 1); exit 1; }; }; }
12575 if test "$ac_dir" != .; then
12576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12577 # A "../" for each directory in $ac_dir_suffix.
12578 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12580 ac_dir_suffix= ac_top_builddir=
12584 .) # No --srcdir option. We are building in place.
12586 if test -z "$ac_top_builddir"; then
12589 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12591 [\\/]* | ?:[\\/]* ) # Absolute path.
12592 ac_srcdir=$srcdir$ac_dir_suffix;
12593 ac_top_srcdir=$srcdir ;;
12594 *) # Relative path.
12595 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12596 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12599 # Do not use `cd foo && pwd` to compute absolute paths, because
12600 # the directories may not exist.
12602 .) ac_abs_builddir="$ac_dir";;
12605 .) ac_abs_builddir=`pwd`;;
12606 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12607 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12610 case $ac_abs_builddir in
12611 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12613 case ${ac_top_builddir}. in
12614 .) ac_abs_top_builddir=$ac_abs_builddir;;
12615 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12616 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12619 case $ac_abs_builddir in
12620 .) ac_abs_srcdir=$ac_srcdir;;
12623 .) ac_abs_srcdir=$ac_abs_builddir;;
12624 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12625 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12628 case $ac_abs_builddir in
12629 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12631 case $ac_top_srcdir in
12632 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12633 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12634 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12639 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12640 echo "$as_me: executing $ac_dest commands" >&6;}
12643 # Only add multilib support code if we just rebuilt the top-level
12645 case " $CONFIG_FILES " in
12647 ac_file=Makefile . ${multi_basedir}/config-ml.in
12650 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12651 # Strip MF so we end up with the name of the file.
12652 mf=`echo "$mf" | sed -e 's/:.*$//'`
12653 # Check whether this is an Automake generated Makefile or not.
12654 # We used to match only the files named `Makefile.in', but
12655 # some people rename them; so instead we look at the file content.
12656 # Grep'ing the first line is not enough: some people post-process
12657 # each Makefile.in and add a new line on top of each file to say so.
12658 # So let's grep whole file.
12659 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12660 dirpart=`(dirname "$mf") 2>/dev/null ||
12661 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12662 X"$mf" : 'X\(//\)[^/]' \| \
12663 X"$mf" : 'X\(//\)$' \| \
12664 X"$mf" : 'X\(/\)' \| \
12665 . : '\(.\)' 2>/dev/null ||
12667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12669 /^X\(\/\/\)$/{ s//\1/; q; }
12670 /^X\(\/\).*/{ s//\1/; q; }
12675 # Extract the definition of DEPDIR, am__include, and am__quote
12676 # from the Makefile without running `make'.
12677 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12678 test -z "$DEPDIR" && continue
12679 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12680 test -z "am__include" && continue
12681 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12682 # When using ansi2knr, U may be empty or an underscore; expand it
12683 U=`sed -n 's/^U = //p' < "$mf"`
12684 # Find all dependency output files, they are included files with
12685 # $(DEPDIR) in their names. We invoke sed twice because it is the
12686 # simplest approach to changing $(DEPDIR) to its actual value in the
12688 for file in `sed -n "
12689 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12690 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12691 # Make sure the directory exists.
12692 test -f "$dirpart/$file" && continue
12693 fdir=`(dirname "$file") 2>/dev/null ||
12694 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12695 X"$file" : 'X\(//\)[^/]' \| \
12696 X"$file" : 'X\(//\)$' \| \
12697 X"$file" : 'X\(/\)' \| \
12698 . : '\(.\)' 2>/dev/null ||
12700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12702 /^X\(\/\/\)$/{ s//\1/; q; }
12703 /^X\(\/\).*/{ s//\1/; q; }
12705 { if $as_mkdir_p; then
12706 mkdir -p $dirpart/$fdir
12708 as_dir=$dirpart/$fdir
12710 while test ! -d "$as_dir"; do
12711 as_dirs="$as_dir $as_dirs"
12712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12714 X"$as_dir" : 'X\(//\)[^/]' \| \
12715 X"$as_dir" : 'X\(//\)$' \| \
12716 X"$as_dir" : 'X\(/\)' \| \
12717 . : '\(.\)' 2>/dev/null ||
12719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12721 /^X\(\/\/\)$/{ s//\1/; q; }
12722 /^X\(\/\).*/{ s//\1/; q; }
12725 test ! -n "$as_dirs" || mkdir $as_dirs
12726 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12727 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12728 { (exit 1); exit 1; }; }; }
12730 # echo "creating $dirpart/$file"
12731 echo '# dummy' > "$dirpart/$file"
12736 if test "$GCC" = yes; then
12737 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12739 echo "/* generated for $CC */" > tmp-stdint.h
12742 sed 's/^ *//' >> tmp-stdint.h <<EOF
12744 #ifndef GCC_GENERATED_STDINT_H
12745 #define GCC_GENERATED_STDINT_H 1
12747 #include <sys/types.h>
12750 if test "$acx_cv_header_stdint" != stdint.h; then
12751 echo "#include <stddef.h>" >> tmp-stdint.h
12753 if test "$acx_cv_header_stdint" != stddef.h; then
12754 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12757 sed 's/^ *//' >> tmp-stdint.h <<EOF
12758 /* glibc uses these symbols as guards to prevent redefinitions. */
12759 #ifdef __int8_t_defined
12764 #ifdef __uint32_t_defined
12770 # ----------------- done header, emit basic int types -------------
12771 if test "$acx_cv_header_stdint" = stddef.h; then
12772 sed 's/^ *//' >> tmp-stdint.h <<EOF
12776 typedef unsigned $acx_cv_type_int8_t uint8_t;
12781 typedef unsigned $acx_cv_type_int16_t uint16_t;
12786 typedef unsigned $acx_cv_type_int32_t uint32_t;
12791 typedef $acx_cv_type_int8_t int8_t;
12796 typedef $acx_cv_type_int16_t int16_t;
12801 typedef $acx_cv_type_int32_t int32_t;
12804 elif test "$ac_cv_type_u_int32_t" = yes; then
12805 sed 's/^ *//' >> tmp-stdint.h <<EOF
12807 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12820 typedef u_int8_t uint8_t;
12825 typedef u_int16_t uint16_t;
12830 typedef u_int32_t uint32_t;
12834 sed 's/^ *//' >> tmp-stdint.h <<EOF
12836 /* Some systems have guard macros to prevent redefinitions, define them. */
12858 # ------------- done basic int types, emit int64_t types ------------
12859 if test "$ac_cv_type_uint64_t" = yes; then
12860 sed 's/^ *//' >> tmp-stdint.h <<EOF
12862 /* system headers have good uint64_t and int64_t */
12870 elif test "$ac_cv_type_u_int64_t" = yes; then
12871 sed 's/^ *//' >> tmp-stdint.h <<EOF
12873 /* system headers have an u_int64_t (and int64_t) */
12879 typedef u_int64_t uint64_t;
12882 elif test -n "$acx_cv_type_int64_t"; then
12883 sed 's/^ *//' >> tmp-stdint.h <<EOF
12885 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12888 typedef $acx_cv_type_int64_t int64_t;
12892 typedef unsigned $acx_cv_type_int64_t uint64_t;
12896 sed 's/^ *//' >> tmp-stdint.h <<EOF
12898 /* some common heuristics for int64_t, using compiler-specific tests */
12899 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12902 typedef long long int64_t;
12906 typedef unsigned long long uint64_t;
12909 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12910 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12911 does not implement __extension__. But that compiler doesn't define
12913 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12914 # define __extension__
12919 __extension__ typedef long long int64_t;
12923 __extension__ typedef unsigned long long uint64_t;
12926 #elif !defined __STRICT_ANSI__
12927 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12931 typedef __int64 int64_t;
12935 typedef unsigned __int64 uint64_t;
12937 # endif /* compiler */
12939 #endif /* ANSI version */
12943 # ------------- done int64_t types, emit intptr types ------------
12944 if test "$ac_cv_type_uintptr_t" != yes; then
12945 sed 's/^ *//' >> tmp-stdint.h <<EOF
12947 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12948 typedef u$acx_cv_type_intptr_t uintptr_t;
12949 typedef $acx_cv_type_intptr_t intptr_t;
12953 # ------------- done intptr types, emit int_least types ------------
12954 if test "$ac_cv_type_int_least32_t" != yes; then
12955 sed 's/^ *//' >> tmp-stdint.h <<EOF
12957 /* Define int_least types */
12958 typedef int8_t int_least8_t;
12959 typedef int16_t int_least16_t;
12960 typedef int32_t int_least32_t;
12962 typedef int64_t int_least64_t;
12965 typedef uint8_t uint_least8_t;
12966 typedef uint16_t uint_least16_t;
12967 typedef uint32_t uint_least32_t;
12969 typedef uint64_t uint_least64_t;
12974 # ------------- done intptr types, emit int_fast types ------------
12975 if test "$ac_cv_type_int_fast32_t" != yes; then
12976 sed 's/^ *//' >> tmp-stdint.h <<EOF
12978 /* Define int_fast types. short is often slow */
12979 typedef int8_t int_fast8_t;
12980 typedef int int_fast16_t;
12981 typedef int32_t int_fast32_t;
12983 typedef int64_t int_fast64_t;
12986 typedef uint8_t uint_fast8_t;
12987 typedef unsigned int uint_fast16_t;
12988 typedef uint32_t uint_fast32_t;
12990 typedef uint64_t uint_fast64_t;
12995 if test "$ac_cv_type_uintmax_t" != yes; then
12996 sed 's/^ *//' >> tmp-stdint.h <<EOF
12998 /* Define intmax based on what we found */
13000 typedef int64_t intmax_t;
13002 typedef long intmax_t;
13005 typedef uint64_t uintmax_t;
13007 typedef unsigned long uintmax_t;
13012 sed 's/^ *//' >> tmp-stdint.h <<EOF
13014 #endif /* GCC_GENERATED_STDINT_H */
13017 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
13020 mv -f tmp-stdint.h gstdint.h
13028 cat >>$CONFIG_STATUS <<\_ACEOF
13030 { (exit 0); exit 0; }
13032 chmod +x $CONFIG_STATUS
13033 ac_clean_files=$ac_clean_files_save
13036 # configure is writing to config.log, and then calls config.status.
13037 # config.status does its own redirection, appending to config.log.
13038 # Unfortunately, on DOS this fails, as config.log is still kept open
13039 # by configure, so config.status won't be able to write to it; its
13040 # output is simply discarded. So we exec the FD to /dev/null,
13041 # effectively closing config.log, so it can be properly (re)opened and
13042 # appended to by config.status. When coming back to configure, we
13043 # need to make the FD available again.
13044 if test "$no_create" != yes; then
13046 ac_config_status_args=
13047 test "$silent" = yes &&
13048 ac_config_status_args="$ac_config_status_args --quiet"
13050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13053 # would make configure fail if this is the last instruction.
13054 $ac_cs_success || { (exit 1); exit 1; }