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 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 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 _g_switchUse the Linux futex system call
858 permit yes|no [default=yes]
859 --enable-multilib build many library versions (default)
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --enable-maintainer-mode enable make rules and dependencies not useful
867 (and sometimes confusing) to the casual installer
868 _g_switchUse thread-local storage
870 --enable-symvers=STYLE enables symbol versioning of the shared library
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-pic try to use only PIC/non-PIC objects default=use both
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 FC Fortran compiler command
887 FCFLAGS Fortran compiler flags
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
930 .) ac_abs_builddir="$ac_dir";;
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
988 GNU OpenMP Runtime Library configure 1.0
989 generated by GNU Autoconf 2.59
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h; then
1172 sed "/^$/d" confdefs.h | sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers config.h"
1345 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1346 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1347 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1348 if test "${enable_version_specific_runtime_libs+set}" = set; then
1349 enableval="$enable_version_specific_runtime_libs"
1351 case "$enableval" in
1353 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1354 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1355 { (exit 1); exit 1; }; } ;;
1359 enable_version_specific_runtime_libs=no
1362 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1363 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1365 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1366 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1367 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1368 if test "${enable_linux_futex+set}" = set; then
1369 enableval="$enable_linux_futex"
1371 case "$enableval" in
1373 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable linux-futex must be yes or no" >&5
1374 echo "$as_me: error: Argument to enable/disable linux-futex must be yes or no" >&2;}
1375 { (exit 1); exit 1; }; } ;;
1379 enable_linux_futex=yes
1382 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1383 echo "${ECHO_T}$enable_linux_futex" >&6
1388 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1390 # You will slowly go insane if you do not grok the following fact: when
1391 # building this library, the top-level /target/ becomes the library's /host/.
1393 # configure then causes --target to default to --host, exactly like any
1394 # other package using autoconf. Therefore, 'target' and 'host' will
1395 # always be the same. This makes sense both for native and cross compilers
1396 # just think about it for a little while. :-)
1398 # Also, if this library is being configured as part of a cross compiler, the
1399 # top-level configure script will pass the "real" host as $with_cross_host.
1401 # Do not delete or change the following two lines. For why, see
1402 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1509 program_prefix=${target_alias}-
1510 target_alias=${target_alias-$host_alias}
1512 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1513 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1514 # 1.9.0: minimum required version
1515 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1516 # of other PACKAGE_* variables will, however, and there's nothing
1517 # we can do about that; they come from AC_INIT).
1518 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1519 # file in the top srcdir, etc, etc), so stop complaining.
1520 # no-dependencies: turns off auto dependency generation (just for now)
1521 # -Wall: turns on all automake warnings...
1522 # -Wno-portability: ...except this one, since GNU make is required.
1523 # -Wno-override: ... and this one, since we do want this in testsuite.
1524 am__api_version="1.9"
1525 # Find a good install program. We prefer a C program (faster),
1526 # so one script is as good as another. But avoid the broken or
1527 # incompatible versions:
1528 # SysV /etc/install, /usr/sbin/install
1529 # SunOS /usr/etc/install
1530 # IRIX /sbin/install
1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # OS/2's system install, which has a completely different semantic
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540 if test -z "$INSTALL"; then
1541 if test "${ac_cv_path_install+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 test -z "$as_dir" && as_dir=.
1549 # Account for people who put trailing slashes in PATH elements.
1551 ./ | .// | /cC/* | \
1552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1559 for ac_prog in ginstall scoinst install; do
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562 if test $ac_prog = install &&
1563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564 # AIX install. It has an incompatible calling convention.
1566 elif test $ac_prog = install &&
1567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # program-specific install script used by HP pwplus--don't use.
1571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1583 if test "${ac_cv_path_install+set}" = set; then
1584 INSTALL=$ac_cv_path_install
1586 # As a last resort, use the slow shell script. We don't cache a
1587 # path for INSTALL within a source directory, because that will
1588 # break other packages using the cache if that directory is
1589 # removed, or if the path is relative.
1590 INSTALL=$ac_install_sh
1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
1594 echo "${ECHO_T}$INSTALL" >&6
1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597 # It thinks the first close brace ends the variable substitution.
1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1608 echo timestamp > conftest.file
1609 # Do `set' in a subshell so we don't clobber the current shell's
1610 # arguments. Must try -L first in case configure is actually a
1611 # symlink; some systems play weird games with the mod time of symlinks
1612 # (eg FreeBSD returns the mod time of the symlink's containing
1615 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616 if test "$*" = "X"; then
1618 set X `ls -t $srcdir/configure conftest.file`
1621 if test "$*" != "X $srcdir/configure conftest.file" \
1622 && test "$*" != "X conftest.file $srcdir/configure"; then
1624 # If neither matched, then we have a broken ls. This can happen
1625 # if, for instance, CONFIG_SHELL is bash and it inherits a
1626 # broken ls alias from the environment. This has actually
1627 # happened. Such a system could not be considered "sane".
1628 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&5
1630 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&2;}
1632 { (exit 1); exit 1; }; }
1635 test "$2" = conftest.file
1641 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642 Check your system clock" >&5
1643 echo "$as_me: error: newly created file is older than distributed files!
1644 Check your system clock" >&2;}
1645 { (exit 1); exit 1; }; }
1647 echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649 test "$program_prefix" != NONE &&
1650 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651 # Use a double $ so make ignores it.
1652 test "$program_suffix" != NONE &&
1653 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654 # Double any \ or $. echo might interpret backslashes.
1655 # By default was `s,x,x', remove it if useless.
1656 cat <<\_ACEOF >conftest.sed
1657 s/[\\$]/&&/g;s/;s,x,x,$//
1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1662 # expand $ac_aux_dir to an absolute path
1663 am_aux_dir=`cd $ac_aux_dir && pwd`
1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666 # Use eval to expand $SHELL
1667 if eval "$MISSING --run true"; then
1668 am_missing_run="$MISSING --run "
1671 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676 # We used to keeping the `.' as first argument, in order to
1677 # allow $(mkdir_p) to be used without argument. As in
1678 # $(mkdir_p) $(somedir)
1679 # where $(somedir) is conditionally defined. However this is wrong
1681 # 1. if the package is installed by a user who cannot write `.'
1682 # make install will fail,
1683 # 2. the above comment should most certainly read
1684 # $(mkdir_p) $(DESTDIR)$(somedir)
1685 # so it does not work when $(somedir) is undefined and
1686 # $(DESTDIR) is not.
1687 # To support the latter case, we have to write
1688 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689 # so the `.' trick is pointless.
1690 mkdir_p='mkdir -p --'
1692 # On NextStep and OpenStep, the `mkdir' command does not
1693 # recognize any option. It will interpret all options as
1694 # directories to create, and then abort because `.' already
1696 for d in ./-p ./--version;
1698 test -d $d && rmdir $d
1700 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701 if test -f "$ac_aux_dir/mkinstalldirs"; then
1702 mkdir_p='$(mkinstalldirs)'
1704 mkdir_p='$(install_sh) -d'
1708 for ac_prog in gawk mawk nawk awk
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$AWK"; then
1718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_AWK="$ac_prog"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 if test -n "$AWK"; then
1738 echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1745 test -n "$AWK" && break
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 cat >conftest.make <<\_ACEOF
1756 @echo 'ac_maketemp="$(MAKE)"'
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761 eval ac_cv_prog_make_${ac_make}_set=yes
1763 eval ac_cv_prog_make_${ac_make}_set=no
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 SET_MAKE="MAKE=${MAKE-make}"
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1784 rmdir .tst 2>/dev/null
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788 test -f $srcdir/config.status; then
1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791 { (exit 1); exit 1; }; }
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796 if (cygpath --version) >/dev/null 2>/dev/null; then
1797 CYGPATH_W='cygpath -w'
1804 # Define the identity of the package.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836 # Installed binaries are usually stripped using `strip' when the user
1837 # run `make install-strip'. However `strip' might not be the right
1838 # tool to use in cross-compilation environments, therefore Automake
1839 # will honor the `STRIP' environment variable to overrule this program.
1840 if test "$cross_compiling" != no; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$STRIP"; then
1850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 STRIP=$ac_cv_prog_STRIP
1869 if test -n "$STRIP"; then
1870 echo "$as_me:$LINENO: result: $STRIP" >&5
1871 echo "${ECHO_T}$STRIP" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_STRIP"; then
1880 # Extract the first word of "strip", so it can be a program name with args.
1881 set dummy 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_ac_ct_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$ac_ct_STRIP"; then
1888 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908 if test -n "$ac_ct_STRIP"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1918 STRIP="$ac_cv_prog_STRIP"
1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924 # We need awk for the "check" target. The system "awk" is bad on
1926 # Always define AMTAR for backward compatibility.
1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1936 # Default to --enable-multilib
1937 # Check whether --enable-multilib or --disable-multilib was given.
1938 if test "${enable_multilib+set}" = set; then
1939 enableval="$enable_multilib"
1940 case "$enableval" in
1941 yes) multilib=yes ;;
1943 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1944 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1945 { (exit 1); exit 1; }; } ;;
1951 # We may get other options which we leave undocumented:
1952 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1953 # See config-ml.in if you want the gory details.
1955 if test "$srcdir" = "."; then
1956 if test "$with_target_subdir" != "."; then
1957 multi_basedir="$srcdir/$with_multisrctop../.."
1959 multi_basedir="$srcdir/$with_multisrctop.."
1962 multi_basedir="$srcdir/.."
1966 ac_config_commands="$ac_config_commands default-1"
1969 # Calculate toolexeclibdir
1970 # Also toolexecdir, though it's only used in toolexeclibdir
1971 case ${enable_version_specific_runtime_libs} in
1973 # Need the gcc compiler version to know where to install libraries
1974 # and header files if --enable-version-specific-runtime-libs option
1976 toolexecdir='$(libdir)/gcc/$(target_alias)'
1977 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1980 if test -n "$with_cross_host" &&
1981 test x"$with_cross_host" != x"no"; then
1982 # Install a library built with a cross compiler in tooldir, not libdir.
1983 toolexecdir='$(exec_prefix)/$(target_alias)'
1984 toolexeclibdir='$(toolexecdir)/lib'
1986 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1987 toolexeclibdir='$(libdir)'
1989 multi_os_directory=`$CC -print-multi-os-directory`
1990 case $multi_os_directory in
1991 .) ;; # Avoid trailing /.
1992 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1999 # Check the compiler.
2000 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2001 # We must force CC to /not/ be precious variables; otherwise
2002 # the wrong, non-multilib-adjusted value will be used in multilibs.
2003 # As a side effect, we have to subst CFLAGS ourselves.
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$ac_cv_prog_CC"; then
2051 # Extract the first word of "gcc", so it can be a program name with args.
2052 set dummy gcc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="gcc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2091 if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2129 if test -z "$ac_cv_prog_CC"; then
2131 # Extract the first word of "cc", so it can be a program name with args.
2132 set dummy cc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2172 if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2217 if test -n "$CC"; then
2218 echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6
2221 echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2226 if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 if test -n "$CC"; then
2258 echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2265 test -n "$CC" && break
2268 if test -z "$CC"; then
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299 if test -n "$ac_ct_CC"; then
2300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2301 echo "${ECHO_T}$ac_ct_CC" >&6
2303 echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2307 test -n "$ac_ct_CC" && break
2316 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: no acceptable C compiler found in \$PATH
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2322 # Provide some information about the compiler.
2323 echo "$as_me:$LINENO:" \
2324 "checking for C compiler version" >&5
2325 ac_compiler=`set X $ac_compile; echo $2`
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2327 (eval $ac_compiler --version </dev/null >&5) 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2332 (eval $ac_compiler -v </dev/null >&5) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2337 (eval $ac_compiler -V </dev/null >&5) 2>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2342 cat >conftest.$ac_ext <<_ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2357 ac_clean_files_save=$ac_clean_files
2358 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2359 # Try to create an executable without -o first, disregard a.out.
2360 # It will help us diagnose broken compilers, and finding out an intuition
2362 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2364 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2365 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2366 (eval $ac_link_default) 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # Find the output, starting from the most likely. This scheme is
2371 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2374 # Be careful to initialize this variable, since it used to be cached.
2375 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2377 # b.out is created by i960 compilers.
2378 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2380 test -f "$ac_file" || continue
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2385 # This is the source file.
2388 # We found the default executable, but exeext='' is most
2392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393 # FIXME: I believe we export ac_cv_exeext for Libtool,
2394 # but it would be cool to find out if it's true. Does anybody
2395 # maintain Libtool? --akim.
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: C compiler cannot create executables
2409 See \`config.log' for more details." >&2;}
2410 { (exit 77); exit 77; }; }
2413 ac_exeext=$ac_cv_exeext
2414 echo "$as_me:$LINENO: result: $ac_file" >&5
2415 echo "${ECHO_T}$ac_file" >&6
2417 # Check the compiler produces executables we can run. If not, either
2418 # the compiler is broken, or we cross compile.
2419 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2420 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2421 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2422 # If not cross compiling, check that we can run a simple program.
2423 if test "$cross_compiling" != yes; then
2424 if { ac_try='./$ac_file'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 if test "$cross_compiling" = maybe; then
2435 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot run C compiled programs.
2439 If you meant to cross compile, use \`--host'.
2440 See \`config.log' for more details." >&2;}
2441 { (exit 1); exit 1; }; }
2445 echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6
2448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449 ac_clean_files=$ac_clean_files_save
2450 # Check the compiler produces executables we can run. If not, either
2451 # the compiler is broken, or we cross compile.
2452 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2454 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455 echo "${ECHO_T}$cross_compiling" >&6
2457 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; then
2464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2465 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2466 # work properly (i.e., refer to `conftest.exe'), while it won't with
2468 for ac_file in conftest.exe conftest conftest.*; do
2469 test -f "$ac_file" || continue
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2486 rm -f conftest$ac_cv_exeext
2487 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2493 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2495 if test "${ac_cv_objext+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2513 rm -f conftest.o conftest.obj
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; then
2519 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2539 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2540 echo "${ECHO_T}$ac_cv_objext" >&6
2541 OBJEXT=$ac_cv_objext
2543 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2544 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2545 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 cat >conftest.$ac_ext <<_ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2598 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2599 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2600 GCC=`test $ac_compiler_gnu = yes && echo yes`
2601 ac_test_CFLAGS=${CFLAGS+set}
2602 ac_save_CFLAGS=$CFLAGS
2604 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2605 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2606 if test "${ac_cv_prog_cc_g+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2656 if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659 if test "$GCC" = yes; then
2665 if test "$GCC" = yes; then
2671 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2672 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2673 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 ac_cv_prog_cc_stdc=no
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2702 s = g (p, va_arg (v,int));
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not '\xHH' hex character constants.
2709 These don't provoke an error unfortunately, instead are silently treated
2710 as 'x'. The following induces an error, until -std1 is added to get
2711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2712 array size at least. It's necessary to write '\x00'==0 to get something
2713 that's true only with -std1. */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2730 # Don't try gcc -ansi; that turns off useful extensions and
2731 # breaks some systems' header files.
2732 # AIX -qlanglvl=ansi
2733 # Ultrix and OSF/1 -std1
2734 # HP-UX 10.20 and later -Ae
2735 # HP-UX older versions -Aa -D_HPUX_SOURCE
2736 # SVR4 -Xc -D__EXTENSIONS__
2737 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2739 CC="$ac_save_CC $ac_arg"
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cc_stdc=$ac_arg
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2768 rm -f conftest.err conftest.$ac_objext
2770 rm -f conftest.$ac_ext conftest.$ac_objext
2775 case "x$ac_cv_prog_cc_stdc" in
2777 echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6 ;;
2780 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2781 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2782 CC="$CC $ac_cv_prog_cc_stdc" ;;
2785 # Some people use a C++ compiler to compile C. Since we use `exit',
2786 # in C++ we need to declare it. In case someone uses the same compiler
2787 # for both compiling C and C++ we need to have the C++ compiler decide
2788 # the declaration of exit, since it's the most demanding environment.
2789 cat >conftest.$ac_ext <<_ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 for ac_declaration in \
2817 'extern "C" void std::exit (int) throw (); using std::exit;' \
2818 'extern "C" void std::exit (int); using std::exit;' \
2819 'extern "C" void exit (int) throw ();' \
2820 'extern "C" void exit (int);' \
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>conftest.er1
2887 grep -v '^ *+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; } &&
2898 { ac_try='test -s conftest.$ac_objext'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 if test -n "$ac_declaration"; then
2914 echo '#ifdef __cplusplus' >>confdefs.h
2915 echo $ac_declaration >>confdefs.h
2916 echo '#endif' >>confdefs.h
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 DEPDIR="${am__leading_dot}deps"
2932 ac_config_commands="$ac_config_commands depfiles"
2935 am_make=${MAKE-make}
2936 cat > confinc << 'END'
2941 # If we don't find an include directive, just comment out the code.
2942 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2943 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2947 # First try GNU make style include.
2948 echo "include confinc" > confmf
2949 # We grep out `Entering directory' and `Leaving directory'
2950 # messages which can occur if `w' ends up in MAKEFLAGS.
2951 # In particular we don't look at `^make:' because GNU make might
2952 # be invoked under some other name (usually "gmake"), in which
2953 # case it prints its new name instead of `make'.
2954 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2959 # Now try BSD make style include.
2960 if test "$am__include" = "#"; then
2961 echo '.include "confinc"' > confmf
2962 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2963 am__include=.include
2970 echo "$as_me:$LINENO: result: $_am_result" >&5
2971 echo "${ECHO_T}$_am_result" >&6
2972 rm -f confinc confmf
2974 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2975 if test "${enable_dependency_tracking+set}" = set; then
2976 enableval="$enable_dependency_tracking"
2979 if test "x$enable_dependency_tracking" != xno; then
2980 am_depcomp="$ac_aux_dir/depcomp"
2985 if test "x$enable_dependency_tracking" != xno; then
2996 depcc="$CC" am_compiler_list=
2998 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2999 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3004 # We make a subdir and do the tests there. Otherwise we can end up
3005 # making bogus files that we don't know about and never remove. For
3006 # instance it was reported that on HP-UX the gcc test will end up
3007 # making a dummy file named `D' -- because `-MD' means `put the output
3010 # Copy depcomp to subdir because otherwise we won't find it if we're
3011 # using a relative directory.
3012 cp "$am_depcomp" conftest.dir
3014 # We will build objects and dependencies in a subdirectory because
3015 # it helps to detect inapplicable dependency modes. For instance
3016 # both Tru64's cc and ICC support -MD to output dependencies as a
3017 # side effect of compilation, but ICC will put the dependencies in
3018 # the current directory while Tru64 will put them in the object
3022 am_cv_CC_dependencies_compiler_type=none
3023 if test "$am_compiler_list" = ""; then
3024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3026 for depmode in $am_compiler_list; do
3027 # Setup a source with many dependencies, because some compilers
3028 # like to wrap large dependency lists on column 80 (with \), and
3029 # we should not choose a depcomp mode which is confused by this.
3031 # We need to recreate these files for each test, as the compiler may
3032 # overwrite some of them when testing with obscure command lines.
3033 # This happens at least with the AIX C compiler.
3035 for i in 1 2 3 4 5 6; do
3036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3038 # Solaris 8's {/usr,}/bin/sh.
3039 touch sub/conftst$i.h
3041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3045 # after this tag, mechanisms are not by side-effect, so they'll
3046 # only be used when explicitly requested
3047 if test "x$enable_dependency_tracking" = xyes; then
3055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3056 # mode. It turns out that the SunPro C++ compiler does not properly
3057 # handle `-M -o', and we need to detect this.
3058 if depmode=$depmode \
3059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3062 >/dev/null 2>conftest.err &&
3063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3064 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3066 # icc doesn't choke on unknown options, it will just issue warnings
3067 # or remarks (even with -Werror). So we grep stderr for any message
3068 # that says an option was ignored or not supported.
3069 # When given -MP, icc 7.0 and 7.1 complain thusly:
3070 # icc: Command line warning: ignoring option '-M'; no argument required
3071 # The diagnosis changed in icc 8.0:
3072 # icc: Command line remark: option '-MP' not supported
3073 if (grep 'ignoring option' conftest.err ||
3074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3075 am_cv_CC_dependencies_compiler_type=$depmode
3084 am_cv_CC_dependencies_compiler_type=none
3088 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3089 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3095 test "x$enable_dependency_tracking" != xno \
3096 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3098 am__fastdepCC_FALSE='#'
3100 am__fastdepCC_TRUE='#'
3101 am__fastdepCC_FALSE=
3109 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3110 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3111 # in both places for now and restore CFLAGS at the end of config.
3112 save_CFLAGS="$CFLAGS"
3114 # Add -Wall -Werror if we are using GCC.
3115 if test "x$GCC" = "xyes"; then
3116 XCFLAGS="$XCFLAGS -Wall -Werror"
3119 # Find other programs we need.
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}ar; ac_word=$2
3123 echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_AR+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 if test -n "$AR"; then
3129 ac_cv_prog_AR="$AR" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_AR="${ac_tool_prefix}ar"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$AR"; then
3149 echo "$as_me:$LINENO: result: $AR" >&5
3150 echo "${ECHO_T}$AR" >&6
3152 echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3157 if test -z "$ac_cv_prog_AR"; then
3159 # Extract the first word of "ar", so it can be a program name with args.
3160 set dummy ar; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$ac_ct_AR"; then
3167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_AR="ar"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3186 if test -n "$ac_ct_AR"; then
3187 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3188 echo "${ECHO_T}$ac_ct_AR" >&6
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_RANLIB+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if test -n "$RANLIB"; then
3208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 RANLIB=$ac_cv_prog_RANLIB
3227 if test -n "$RANLIB"; then
3228 echo "$as_me:$LINENO: result: $RANLIB" >&5
3229 echo "${ECHO_T}$RANLIB" >&6
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3236 if test -z "$ac_cv_prog_RANLIB"; then
3237 ac_ct_RANLIB=$RANLIB
3238 # Extract the first word of "ranlib", so it can be a program name with args.
3239 set dummy ranlib; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 if test -n "$ac_ct_RANLIB"; then
3246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_RANLIB="ranlib"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3266 if test -n "$ac_ct_RANLIB"; then
3267 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3268 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3274 RANLIB=$ac_ct_RANLIB
3276 RANLIB="$ac_cv_prog_RANLIB"
3279 # Extract the first word of "perl", so it can be a program name with args.
3280 set dummy perl; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_path_PERL+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3309 PERL=$ac_cv_path_PERL
3311 if test -n "$PERL"; then
3312 echo "$as_me:$LINENO: result: $PERL" >&5
3313 echo "${ECHO_T}$PERL" >&6
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3319 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3320 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3321 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3322 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.make <<\_ACEOF
3327 @echo 'ac_maketemp="$(MAKE)"'
3329 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3330 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3331 if test -n "$ac_maketemp"; then
3332 eval ac_cv_prog_make_${ac_make}_set=yes
3334 eval ac_cv_prog_make_${ac_make}_set=no
3338 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3339 echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3345 SET_MAKE="MAKE=${MAKE-make}"
3348 # Find a good install program. We prefer a C program (faster),
3349 # so one script is as good as another. But avoid the broken or
3350 # incompatible versions:
3351 # SysV /etc/install, /usr/sbin/install
3352 # SunOS /usr/etc/install
3353 # IRIX /sbin/install
3355 # AmigaOS /C/install, which installs bootblocks on floppy discs
3356 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3357 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3358 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3359 # OS/2's system install, which has a completely different semantic
3360 # ./install, which can be erroneously created by make from ./install.sh.
3361 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3362 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3363 if test -z "$INSTALL"; then
3364 if test "${ac_cv_path_install+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 # Account for people who put trailing slashes in PATH elements.
3374 ./ | .// | /cC/* | \
3375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3376 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3379 # OSF1 and SCO ODT 3.0 have their own names for install.
3380 # Don't use installbsd from OSF since it installs stuff as root
3382 for ac_prog in ginstall scoinst install; do
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3385 if test $ac_prog = install &&
3386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3387 # AIX install. It has an incompatible calling convention.
3389 elif test $ac_prog = install &&
3390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3391 # program-specific install script used by HP pwplus--don't use.
3394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3406 if test "${ac_cv_path_install+set}" = set; then
3407 INSTALL=$ac_cv_path_install
3409 # As a last resort, use the slow shell script. We don't cache a
3410 # path for INSTALL within a source directory, because that will
3411 # break other packages using the cache if that directory is
3412 # removed, or if the path is relative.
3413 INSTALL=$ac_install_sh
3416 echo "$as_me:$LINENO: result: $INSTALL" >&5
3417 echo "${ECHO_T}$INSTALL" >&6
3419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3420 # It thinks the first close brace ends the variable substitution.
3421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3429 # Check whether --enable-shared or --disable-shared was given.
3430 if test "${enable_shared+set}" = set; then
3431 enableval="$enable_shared"
3432 p=${PACKAGE-default}
3434 yes) enable_shared=yes ;;
3435 no) enable_shared=no ;;
3438 # Look at the argument we got. We use all the common list separators.
3439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3440 for pkg in $enableval; do
3441 if test "X$pkg" = "X$p"; then
3451 # Check whether --enable-static or --disable-static was given.
3452 if test "${enable_static+set}" = set; then
3453 enableval="$enable_static"
3454 p=${PACKAGE-default}
3456 yes) enable_static=yes ;;
3457 no) enable_static=no ;;
3460 # Look at the argument we got. We use all the common list separators.
3461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3462 for pkg in $enableval; do
3463 if test "X$pkg" = "X$p"; then
3473 # Check whether --enable-fast-install or --disable-fast-install was given.
3474 if test "${enable_fast_install+set}" = set; then
3475 enableval="$enable_fast_install"
3476 p=${PACKAGE-default}
3478 yes) enable_fast_install=yes ;;
3479 no) enable_fast_install=no ;;
3481 enable_fast_install=no
3482 # Look at the argument we got. We use all the common list separators.
3483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3484 for pkg in $enableval; do
3485 if test "X$pkg" = "X$p"; then
3486 enable_fast_install=yes
3493 enable_fast_install=yes
3496 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3497 if test "${with_gnu_ld+set}" = set; then
3498 withval="$with_gnu_ld"
3499 test "$withval" = no || with_gnu_ld=yes
3504 if test "$GCC" = yes; then
3505 # Check if gcc -print-prog-name=ld gives a path.
3506 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3507 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3510 # gcc leaves a trailing carriage return which upsets mingw
3511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3516 # Accept absolute paths.
3517 [\\/]* | [A-Za-z]:[\\/]*)
3518 re_direlt='/[^/][^/]*/\.\./'
3519 # Canonicalize the path of ld
3520 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3521 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3522 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3524 test -z "$LD" && LD="$ac_prog"
3527 # If it fails, then pretend we aren't using GCC.
3531 # If it is relative, then search for the first ld in PATH.
3535 elif test "$with_gnu_ld" = yes; then
3536 echo "$as_me:$LINENO: checking for GNU ld" >&5
3537 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3539 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3540 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3542 if test "${lt_cv_path_LD+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -z "$LD"; then
3546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3547 for ac_dir in $PATH; do
3548 test -z "$ac_dir" && ac_dir=.
3549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3550 lt_cv_path_LD="$ac_dir/$ac_prog"
3551 # Check to see if the program is GNU ld. I'd rather use --version,
3552 # but apparently some GNU ld's only accept -v.
3553 # Break only if it was the GNU/non-GNU ld that we prefer.
3554 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3555 test "$with_gnu_ld" != no && break
3557 test "$with_gnu_ld" != yes && break
3563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3568 if test -n "$LD"; then
3569 echo "$as_me:$LINENO: result: $LD" >&5
3570 echo "${ECHO_T}$LD" >&6
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3577 { (exit 1); exit 1; }; }
3578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3584 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3585 lt_cv_prog_gnu_ld=yes
3587 lt_cv_prog_gnu_ld=no
3590 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3591 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3592 with_gnu_ld=$lt_cv_prog_gnu_ld
3595 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3596 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3597 if test "${lt_cv_ld_reload_flag+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 lt_cv_ld_reload_flag='-r'
3602 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3603 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3604 reload_flag=$lt_cv_ld_reload_flag
3605 test -n "$reload_flag" && reload_flag=" $reload_flag"
3607 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3608 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3609 if test "${lt_cv_path_NM+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -n "$NM"; then
3613 # Let the user override the test.
3616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3617 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3618 test -z "$ac_dir" && ac_dir=.
3619 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3620 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3621 # Check to see if the nm accepts a BSD-compat flag.
3622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3623 # nm: unknown option "B" ignored
3624 # Tru64's nm complains that /dev/null is an invalid object file
3625 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3626 lt_cv_path_NM="$tmp_nm -B"
3628 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3629 lt_cv_path_NM="$tmp_nm -p"
3632 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3633 continue # so that we can try to find one that supports BSD flags
3638 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3643 echo "$as_me:$LINENO: result: $NM" >&5
3644 echo "${ECHO_T}$NM" >&6
3646 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3649 if test "$LN_S" = "ln -s"; then
3650 echo "$as_me:$LINENO: result: yes" >&5
3651 echo "${ECHO_T}yes" >&6
3653 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3654 echo "${ECHO_T}no, using $LN_S" >&6
3657 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3658 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3659 if test "${lt_cv_deplibs_check_method+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 lt_cv_file_magic_cmd='$MAGIC_CMD'
3663 lt_cv_file_magic_test_file=
3664 lt_cv_deplibs_check_method='unknown'
3665 # Need to set the preceding variable on all platforms that support
3666 # interlibrary dependencies.
3667 # 'none' -- dependencies not supported.
3668 # `unknown' -- same as none, but documents that we really don't know.
3669 # 'pass_all' -- all dependencies passed with no checks.
3670 # 'test_compile' -- check by making test program.
3671 # 'file_magic [regex]' -- check by looking for files in library path
3672 # which responds to the $file_magic_cmd with a given egrep regex.
3673 # If you have `file' or equivalent on your system and you're not sure
3674 # whether `pass_all' will *always* work, you probably want this one.
3678 lt_cv_deplibs_check_method=pass_all
3682 lt_cv_deplibs_check_method=pass_all
3686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3687 lt_cv_file_magic_cmd='/usr/bin/file -L'
3688 lt_cv_file_magic_test_file=/shlib/libc.so
3691 cygwin* | mingw* |pw32*)
3692 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3693 lt_cv_file_magic_cmd='$OBJDUMP -f'
3696 darwin* | rhapsody*)
3697 # this will be overwritten by pass_all, but leave it in just in case
3698 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3699 lt_cv_file_magic_cmd='/usr/bin/file -L'
3701 rhapsody* | darwin1.012)
3702 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3705 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3708 lt_cv_deplibs_check_method=pass_all
3711 freebsd* | kfreebsd*-gnu)
3712 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3715 # Not sure whether the presence of OpenBSD here was a mistake.
3716 # Let's accept both of them until this is cleared up.
3717 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3718 lt_cv_file_magic_cmd=/usr/bin/file
3719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3723 lt_cv_deplibs_check_method=pass_all
3728 lt_cv_deplibs_check_method=pass_all
3734 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3735 lt_cv_file_magic_cmd=/usr/bin/file
3736 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3740 lt_cv_file_magic_cmd=/usr/bin/file
3741 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3749 # this will be overridden with pass_all, but let us keep it just in case
3750 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3754 *-32|*"-32 ") libmagic=32-bit;;
3755 *-n32|*"-n32 ") libmagic=N32;;
3756 *-64|*"-64 ") libmagic=64-bit;;
3757 *) libmagic=never-match;;
3759 # this will be overridden with pass_all, but let us keep it just in case
3760 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3763 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3764 lt_cv_deplibs_check_method=pass_all
3767 # This must be Linux ELF.
3769 lt_cv_deplibs_check_method=pass_all
3772 netbsd* | knetbsd*-gnu)
3773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3774 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3776 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3782 lt_cv_file_magic_cmd=/usr/bin/file
3783 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3786 osf3* | osf4* | osf5*)
3787 # this will be overridden with pass_all, but let us keep it just in case
3788 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3789 lt_cv_file_magic_test_file=/shlib/libc.so
3790 lt_cv_deplibs_check_method=pass_all
3794 lt_cv_deplibs_check_method=pass_all
3798 lt_cv_deplibs_check_method=pass_all
3799 lt_cv_file_magic_test_file=/lib/libc.so
3802 sysv5uw[78]* | sysv4*uw2*)
3803 lt_cv_deplibs_check_method=pass_all
3806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3807 case $host_vendor in
3809 lt_cv_deplibs_check_method=pass_all
3812 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]'
3813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3820 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3821 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3822 file_magic_cmd=$lt_cv_file_magic_cmd
3823 deplibs_check_method=$lt_cv_deplibs_check_method
3829 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3831 # find the maximum length of command line arguments
3832 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3833 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3834 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 # On DJGPP, this test can blow up pretty badly due to problems in libc
3843 # (any single argument exceeding 2000 bytes causes a buffer overrun
3844 # during glob expansion). Even if it were fixed, the result of this
3845 # check would be larger than it should be.
3846 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3850 # On Win9x/ME, this test blows up -- it succeeds, but takes
3851 # about 5 minutes as the teststring grows exponentially.
3852 # Worse, since 9x/ME are not pre-emptively multitasking,
3853 # you end up with a "frozen" computer, even though with patience
3854 # the test eventually succeeds (with a max line length of 256k).
3855 # Instead, let's just punt: use the minimum linelength reported by
3856 # all of the supported platforms: 8192 (on NT/2K/XP).
3857 lt_cv_sys_max_cmd_len=8192;
3861 # On AmigaOS with pdksh, this test takes hours, literally.
3862 # So we just punt and use a minimum line length of 8192.
3863 lt_cv_sys_max_cmd_len=8192;
3866 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3867 # This has been around since 386BSD, at least. Likely further.
3868 if test -x /sbin/sysctl; then
3869 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3870 elif test -x /usr/sbin/sysctl; then
3871 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3873 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3875 # And add a safety zone
3876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3883 if test -n "$lt_cv_sys_max_cmd_len" ; then
3884 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3885 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3887 echo "$as_me:$LINENO: result: none" >&5
3888 echo "${ECHO_T}none" >&6
3892 # Only perform the check for file, if the check method requires it
3893 case $deplibs_check_method in
3895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3896 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3897 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3909 ac_save_MAGIC_CMD="$MAGIC_CMD"
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 ac_dummy="/usr/bin:$PATH"
3912 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/${ac_tool_prefix}file; then
3915 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3916 if test -n "$file_magic_test_file"; then
3917 case $deplibs_check_method in
3919 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3922 egrep "$file_magic_regex" > /dev/null; then
3927 *** Warning: the command libtool uses to detect shared libraries,
3928 *** $file_magic_cmd, produces output that libtool cannot recognize.
3929 *** The result is that libtool may fail to recognize shared libraries
3930 *** as such. This will affect the creation of libtool libraries that
3931 *** depend on shared libraries, but programs linked with such libtool
3932 *** libraries will work regardless of this problem. Nevertheless, you
3933 *** may want to report the problem to your system manager and/or to
3934 *** bug-libtool@gnu.org
3944 MAGIC_CMD="$ac_save_MAGIC_CMD"
3949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3950 if test -n "$MAGIC_CMD"; then
3951 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3952 echo "${ECHO_T}$MAGIC_CMD" >&6
3954 echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3958 if test -z "$lt_cv_path_MAGIC_CMD"; then
3959 if test -n "$ac_tool_prefix"; then
3960 echo "$as_me:$LINENO: checking for file" >&5
3961 echo $ECHO_N "checking for file... $ECHO_C" >&6
3962 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3973 ac_save_MAGIC_CMD="$MAGIC_CMD"
3974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3975 ac_dummy="/usr/bin:$PATH"
3976 for ac_dir in $ac_dummy; do
3977 test -z "$ac_dir" && ac_dir=.
3978 if test -f $ac_dir/file; then
3979 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3980 if test -n "$file_magic_test_file"; then
3981 case $deplibs_check_method in
3983 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3986 egrep "$file_magic_regex" > /dev/null; then
3991 *** Warning: the command libtool uses to detect shared libraries,
3992 *** $file_magic_cmd, produces output that libtool cannot recognize.
3993 *** The result is that libtool may fail to recognize shared libraries
3994 *** as such. This will affect the creation of libtool libraries that
3995 *** depend on shared libraries, but programs linked with such libtool
3996 *** libraries will work regardless of this problem. Nevertheless, you
3997 *** may want to report the problem to your system manager and/or to
3998 *** bug-libtool@gnu.org
4008 MAGIC_CMD="$ac_save_MAGIC_CMD"
4013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4014 if test -n "$MAGIC_CMD"; then
4015 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4016 echo "${ECHO_T}$MAGIC_CMD" >&6
4018 echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4031 if test -n "$ac_tool_prefix"; then
4032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_prog_RANLIB+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 if test -n "$RANLIB"; then
4040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 RANLIB=$ac_cv_prog_RANLIB
4059 if test -n "$RANLIB"; then
4060 echo "$as_me:$LINENO: result: $RANLIB" >&5
4061 echo "${ECHO_T}$RANLIB" >&6
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4068 if test -z "$ac_cv_prog_RANLIB"; then
4069 ac_ct_RANLIB=$RANLIB
4070 # Extract the first word of "ranlib", so it can be a program name with args.
4071 set dummy ranlib; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 if test -n "$ac_ct_RANLIB"; then
4078 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_ac_ct_RANLIB="ranlib"
4088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4097 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4098 if test -n "$ac_ct_RANLIB"; then
4099 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4100 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4106 RANLIB=$ac_ct_RANLIB
4108 RANLIB="$ac_cv_prog_RANLIB"
4111 if test -n "$ac_tool_prefix"; then
4112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4113 set dummy ${ac_tool_prefix}strip; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_STRIP+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test -n "$STRIP"; then
4120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 STRIP=$ac_cv_prog_STRIP
4139 if test -n "$STRIP"; then
4140 echo "$as_me:$LINENO: result: $STRIP" >&5
4141 echo "${ECHO_T}$STRIP" >&6
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4148 if test -z "$ac_cv_prog_STRIP"; then
4150 # Extract the first word of "strip", so it can be a program name with args.
4151 set dummy strip; ac_word=$2
4152 echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 if test -n "$ac_ct_STRIP"; then
4158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_ac_ct_STRIP="strip"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4178 if test -n "$ac_ct_STRIP"; then
4179 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4180 echo "${ECHO_T}$ac_ct_STRIP" >&6
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4188 STRIP="$ac_cv_prog_STRIP"
4192 # Check for any special flags to pass to ltconfig.
4193 libtool_flags="--cache-file=$cache_file"
4194 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4195 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4196 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4197 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4198 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4201 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4202 if test "${enable_libtool_lock+set}" = set; then
4203 enableval="$enable_libtool_lock"
4206 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4207 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4210 # Check whether --with-pic or --without-pic was given.
4211 if test "${with_pic+set}" = set; then
4217 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4218 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4220 # Some flags need to be propagated to the compiler or linker for good
4224 # Find out which ABI we are using.
4225 echo '#line 4225 "configure"' > conftest.$ac_ext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; then
4231 if test "$lt_cv_prog_gnu_ld" = yes; then
4232 case `/usr/bin/file conftest.$ac_objext` in
4234 LD="${LD-ld} -melf32bsmip"
4237 LD="${LD-ld} -melf32bmipn32"
4240 LD="${LD-ld} -melf64bmip"
4244 case `/usr/bin/file conftest.$ac_objext` in
4261 # Find out which ABI we are using.
4262 echo 'int i;' > conftest.$ac_ext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; then
4268 case "`/usr/bin/file conftest.o`" in
4280 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4281 # Find out which ABI we are using.
4282 echo 'int i;' > conftest.$ac_ext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; then
4288 case "`/usr/bin/file conftest.o`" in
4292 LD="${LD-ld} -m elf_i386"
4294 ppc64-*linux*|powerpc64-*linux*)
4295 LD="${LD-ld} -m elf32ppclinux"
4298 LD="${LD-ld} -m elf_s390"
4301 LD="${LD-ld} -m elf32_sparc"
4308 LD="${LD-ld} -m elf_x86_64"
4310 ppc*-*linux*|powerpc*-*linux*)
4311 LD="${LD-ld} -m elf64ppc"
4314 LD="${LD-ld} -m elf64_s390"
4317 LD="${LD-ld} -m elf64_sparc"
4327 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4328 SAVE_CFLAGS="$CFLAGS"
4329 CFLAGS="$CFLAGS -belf"
4330 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4331 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4332 if test "${lt_cv_cc_needs_belf+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4358 rm -f conftest.$ac_objext conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest$ac_exeext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 lt_cv_cc_needs_belf=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 lt_cv_cc_needs_belf=no
4386 rm -f conftest.err conftest.$ac_objext \
4387 conftest$ac_exeext conftest.$ac_ext
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4396 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4397 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4398 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4399 CFLAGS="$SAVE_CFLAGS"
4407 # Save cache, so that ltconfig can load it
4408 cat >confcache <<\_ACEOF
4409 # This file is a shell script that caches the results of configure
4410 # tests run on this system so they can be shared between configure
4411 # scripts and configure runs, see configure's option --config-cache.
4412 # It is not useful on other systems. If it contains results you don't
4413 # want to keep, you may remove or edit it.
4415 # config.status only pays attention to the cache file if you give it
4416 # the --recheck option to rerun configure.
4418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4424 # The following way of writing the cache mishandles newlines in values,
4425 # but we know of no workaround that is simple, portable, and efficient.
4426 # So, don't put newlines in cache variables' values.
4427 # Ultrix sh set writes to stderr and can't be redirected directly,
4428 # and sets the high bit in the cache file unless we assign to the vars.
4431 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4433 # `set' does not quote correctly, so add quotes (double-quote
4434 # substitution turns \\\\ into \\, and sed turns \\ into \).
4437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4440 # `set' quotes correctly as required by POSIX, so do not add quotes.
4442 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4451 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4453 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4454 if test -w $cache_file; then
4455 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4456 cat confcache >$cache_file
4458 echo "not updating unwritable cache $cache_file"
4463 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4464 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4465 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4466 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4467 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4468 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4469 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4470 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4471 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4472 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4473 echo "$as_me: error: libtool configure failed" >&2;}
4474 { (exit 1); exit 1; }; }
4476 # Reload cache, that may have been modified by ltconfig
4477 if test -r "$cache_file"; then
4478 # Some versions of bash will fail to source /dev/null (special
4479 # files actually), so we avoid doing that.
4480 if test -f "$cache_file"; then
4481 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4482 echo "$as_me: loading cache $cache_file" >&6;}
4484 [\\/]* | ?:[\\/]* ) . $cache_file;;
4485 *) . ./$cache_file;;
4489 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4490 echo "$as_me: creating cache $cache_file" >&6;}
4495 # This can be used to rebuild libtool when needed
4496 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4498 # Always use our own libtool.
4499 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4501 # Redirect the config.log output again, so that the ltconfig log is not
4502 # clobbered by the next message.
4503 exec 5>>./config.log
4513 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4514 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4515 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4516 if test "${enable_maintainer_mode+set}" = set; then
4517 enableval="$enable_maintainer_mode"
4518 USE_MAINTAINER_MODE=$enableval
4520 USE_MAINTAINER_MODE=no
4522 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4523 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4526 if test $USE_MAINTAINER_MODE = yes; then
4527 MAINTAINER_MODE_TRUE=
4528 MAINTAINER_MODE_FALSE='#'
4530 MAINTAINER_MODE_TRUE='#'
4531 MAINTAINER_MODE_FALSE=
4534 MAINT=$MAINTAINER_MODE_TRUE
4538 # We need gfortran to compile parts of the library
4539 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4540 #AC_PROG_FC(gfortran)
4542 ac_ext=${FC_SRCEXT-f}
4543 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4544 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in gfortran
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_prog_FC+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 if test -n "$FC"; then
4557 ac_cv_prog_FC="$FC" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 if test -n "$FC"; then
4577 echo "$as_me:$LINENO: result: $FC" >&5
4578 echo "${ECHO_T}$FC" >&6
4580 echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6
4584 test -n "$FC" && break
4587 if test -z "$FC"; then
4589 for ac_prog in gfortran
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 if test -n "$ac_ct_FC"; then
4599 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_ac_ct_FC="$ac_prog"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4618 if test -n "$ac_ct_FC"; then
4619 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4620 echo "${ECHO_T}$ac_ct_FC" >&6
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4626 test -n "$ac_ct_FC" && break
4633 # Provide some information about the compiler.
4634 echo "$as_me:4634:" \
4635 "checking for Fortran compiler version" >&5
4636 ac_compiler=`set X $ac_compile; echo $2`
4637 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4638 (eval $ac_compiler --version </dev/null >&5) 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }
4642 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4643 (eval $ac_compiler -v </dev/null >&5) 2>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }
4647 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4648 (eval $ac_compiler -V </dev/null >&5) 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }
4654 # If we don't use `.F' as extension, the preprocessor is not run on the
4655 # input file. (Note that this only needs to work for GNU compilers.)
4658 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4659 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4660 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4675 grep -v '^ *+' conftest.er1 >conftest.err
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4703 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4704 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4706 ac_test_FFLAGS=${FCFLAGS+set}
4707 ac_save_FFLAGS=$FCFLAGS
4709 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4710 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4711 if test "${ac_cv_prog_fc_g+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 cat >conftest.$ac_ext <<_ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1 >conftest.err
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; } &&
4735 { ac_try='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4751 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4752 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4753 if test "$ac_test_FFLAGS" = set; then
4754 FCFLAGS=$ac_save_FFLAGS
4755 elif test $ac_cv_prog_fc_g = yes; then
4756 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4762 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 FCFLAGS="$FCFLAGS -Wall"
4777 # For libtool versioning info, format is CURRENT:REVISION:AGE
4778 libtool_VERSION=1:0:0
4781 # Check header files.
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4789 # On Suns, sometimes $CPP names a directory.
4790 if test -n "$CPP" && test -d "$CPP"; then
4793 if test -z "$CPP"; then
4794 if test "${ac_cv_prog_CPP+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 # Double quotes because CPP needs to be expanded
4798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4801 for ac_c_preproc_warn_flag in '' yes
4803 # Use a header file that comes with gcc, so configuring glibc
4804 # with a fresh cross-compiler works.
4805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 # <limits.h> exists even on freestanding compilers.
4807 # On the NeXT, cc -E runs the code through the compiler's parser,
4808 # not just through cpp. "Syntax error" is here to catch this case.
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4816 # include <limits.h>
4818 # include <assert.h>
4822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4825 grep -v '^ *+' conftest.er1 >conftest.err
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null; then
4830 if test -s conftest.err; then
4831 ac_cpp_err=$ac_c_preproc_warn_flag
4832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4839 if test -z "$ac_cpp_err"; then
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 # Broken: fails on valid input.
4848 rm -f conftest.err conftest.$ac_ext
4850 # OK, works on sane cases. Now check whether non-existent headers
4851 # can be detected and how.
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <ac_nonexistent.h>
4860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null; then
4868 if test -s conftest.err; then
4869 ac_cpp_err=$ac_c_preproc_warn_flag
4870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4877 if test -z "$ac_cpp_err"; then
4878 # Broken: success on invalid input.
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 # Passes both tests.
4888 rm -f conftest.err conftest.$ac_ext
4891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892 rm -f conftest.err conftest.$ac_ext
4893 if $ac_preproc_ok; then
4905 echo "$as_me:$LINENO: result: $CPP" >&5
4906 echo "${ECHO_T}$CPP" >&6
4908 for ac_c_preproc_warn_flag in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4923 # include <limits.h>
4925 # include <assert.h>
4929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4932 grep -v '^ *+' conftest.er1 >conftest.err
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null; then
4937 if test -s conftest.err; then
4938 ac_cpp_err=$ac_c_preproc_warn_flag
4939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4946 if test -z "$ac_cpp_err"; then
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 # Broken: fails on valid input.
4955 rm -f conftest.err conftest.$ac_ext
4957 # OK, works on sane cases. Now check whether non-existent headers
4958 # can be detected and how.
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 #include <ac_nonexistent.h>
4967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } >/dev/null; then
4975 if test -s conftest.err; then
4976 ac_cpp_err=$ac_c_preproc_warn_flag
4977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4984 if test -z "$ac_cpp_err"; then
4985 # Broken: success on invalid input.
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 # Passes both tests.
4995 rm -f conftest.err conftest.$ac_ext
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.err conftest.$ac_ext
5000 if $ac_preproc_ok; then
5003 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5006 See \`config.log' for more details." >&2;}
5007 { (exit 1); exit 1; }; }
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 echo "$as_me:$LINENO: checking for egrep" >&5
5018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5019 if test "${ac_cv_prog_egrep+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5023 then ac_cv_prog_egrep='grep -E'
5024 else ac_cv_prog_egrep='egrep'
5027 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5028 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5029 EGREP=$ac_cv_prog_egrep
5032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5034 if test "${ac_cv_header_stdc+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 ac_cv_header_stdc=yes
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 ac_cv_header_stdc=no
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 if test $ac_cv_header_stdc = yes; then
5087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5098 $EGREP "memchr" >/dev/null 2>&1; then
5101 ac_cv_header_stdc=no
5107 if test $ac_cv_header_stdc = yes; then
5108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119 $EGREP "free" >/dev/null 2>&1; then
5122 ac_cv_header_stdc=no
5128 if test $ac_cv_header_stdc = yes; then
5129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5130 if test "$cross_compiling" = yes; then
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5140 #if ((' ' & 0x0FF) == 0x020)
5141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5144 # define ISLOWER(c) \
5145 (('a' <= (c) && (c) <= 'i') \
5146 || ('j' <= (c) && (c) <= 'r') \
5147 || ('s' <= (c) && (c) <= 'z'))
5148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5156 for (i = 0; i < 256; i++)
5157 if (XOR (islower (i), ISLOWER (i))
5158 || toupper (i) != TOUPPER (i))
5163 rm -f conftest$ac_exeext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5176 echo "$as_me: program exited with status $ac_status" >&5
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5181 ac_cv_header_stdc=no
5183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5189 if test $ac_cv_header_stdc = yes; then
5191 cat >>confdefs.h <<\_ACEOF
5192 #define STDC_HEADERS 1
5197 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5198 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5199 if test "${ac_cv_header_time+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 #include <sys/types.h>
5209 #include <sys/time.h>
5215 if ((struct tm *) 0)
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_header_time=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_cv_header_time=no
5249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5251 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5252 echo "${ECHO_T}$ac_cv_header_time" >&6
5253 if test $ac_cv_header_time = yes; then
5255 cat >>confdefs.h <<\_ACEOF
5256 #define TIME_WITH_SYS_TIME 1
5261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5272 inttypes.h stdint.h unistd.h
5274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275 echo "$as_me:$LINENO: checking for $ac_header" >&5
5276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5288 #include <$ac_header>
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_Header=yes"
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 eval "$as_ac_Header=no"
5318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5323 cat >>confdefs.h <<_ACEOF
5324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340 echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5348 # Is the header compilable?
5349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5358 #include <$ac_header>
5360 rm -f conftest.$ac_objext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362 (eval $ac_compile) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 ac_header_compiler=yes
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_header_compiler=no
5388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5390 echo "${ECHO_T}$ac_header_compiler" >&6
5392 # Is the header present?
5393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5395 cat >conftest.$ac_ext <<_ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #include <$ac_header>
5403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } >/dev/null; then
5411 if test -s conftest.err; then
5412 ac_cpp_err=$ac_c_preproc_warn_flag
5413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5420 if test -z "$ac_cpp_err"; then
5421 ac_header_preproc=yes
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 ac_header_preproc=no
5428 rm -f conftest.err conftest.$ac_ext
5429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5430 echo "${ECHO_T}$ac_header_preproc" >&6
5432 # So? What about this header?
5433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5439 ac_header_preproc=yes
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5456 ## ----------------------------------------------------- ##
5457 ## Report this to the GNU OpenMP Runtime Library lists. ##
5458 ## ----------------------------------------------------- ##
5461 sed "s/^/$as_me: WARNING: /" >&2
5464 echo "$as_me:$LINENO: checking for $ac_header" >&5
5465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 eval "$as_ac_Header=\$ac_header_preproc"
5471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5489 acx_cv_header_stdint=stddef.h
5490 acx_cv_header_stdint_kind="(already complete)"
5491 for i in stdint.h $inttype_headers; do
5492 unset ac_cv_type_uintptr_t
5493 unset ac_cv_type_uintmax_t
5494 unset ac_cv_type_int_least32_t
5495 unset ac_cv_type_int_fast32_t
5496 unset ac_cv_type_uint64_t
5497 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5498 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5499 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5500 if test "${ac_cv_type_uintmax_t+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <sys/types.h>
5515 if ((uintmax_t *) 0)
5517 if (sizeof (uintmax_t))
5523 rm -f conftest.$ac_objext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_type_uintmax_t=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_cv_type_uintmax_t=no
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5554 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5555 if test $ac_cv_type_uintmax_t = yes; then
5556 acx_cv_header_stdint=$i
5561 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5562 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5563 if test "${ac_cv_type_uintptr_t+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <sys/types.h>
5578 if ((uintptr_t *) 0)
5580 if (sizeof (uintptr_t))
5586 rm -f conftest.$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest.$ac_objext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_type_uintptr_t=yes
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ac_cv_type_uintptr_t=no
5614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5616 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5617 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5618 if test $ac_cv_type_uintptr_t = yes; then
5621 acx_cv_header_stdint_kind="(mostly complete)"
5624 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5625 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5626 if test "${ac_cv_type_int_least32_t+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5641 if ((int_least32_t *) 0)
5643 if (sizeof (int_least32_t))
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; } &&
5664 { ac_try='test -s conftest.$ac_objext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 ac_cv_type_int_least32_t=yes
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 ac_cv_type_int_least32_t=no
5677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5680 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5681 if test $ac_cv_type_int_least32_t = yes; then
5684 acx_cv_header_stdint_kind="(mostly complete)"
5687 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5688 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5689 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #include <sys/types.h>
5704 if ((int_fast32_t *) 0)
5706 if (sizeof (int_fast32_t))
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_type_int_fast32_t=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cv_type_int_fast32_t=no
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5743 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5744 if test $ac_cv_type_int_fast32_t = yes; then
5747 acx_cv_header_stdint_kind="(mostly complete)"
5750 echo "$as_me:$LINENO: checking for uint64_t" >&5
5751 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5752 if test "${ac_cv_type_uint64_t+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5769 if (sizeof (uint64_t))
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5779 grep -v '^ *+' conftest.er1 >conftest.err
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_cv_type_uint64_t=yes
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_cv_type_uint64_t=no
5803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5806 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5807 if test $ac_cv_type_uint64_t = yes; then
5810 acx_cv_header_stdint_kind="(lacks uint64_t)"
5815 if test "$acx_cv_header_stdint" = stddef.h; then
5816 acx_cv_header_stdint_kind="(lacks uintptr_t)"
5817 for i in stdint.h $inttype_headers; do
5818 unset ac_cv_type_uint32_t
5819 unset ac_cv_type_uint64_t
5820 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5821 echo "$as_me:$LINENO: checking for uint32_t" >&5
5822 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5823 if test "${ac_cv_type_uint32_t+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5840 if (sizeof (uint32_t))
5846 rm -f conftest.$ac_objext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848 (eval $ac_compile) 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; } &&
5861 { ac_try='test -s conftest.$ac_objext'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 ac_cv_type_uint32_t=yes
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 ac_cv_type_uint32_t=no
5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5877 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5878 if test $ac_cv_type_uint32_t = yes; then
5879 acx_cv_header_stdint=$i
5884 echo "$as_me:$LINENO: checking for uint64_t" >&5
5885 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5886 if test "${ac_cv_type_uint64_t+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5903 if (sizeof (uint64_t))
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest.$ac_objext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_type_uint64_t=yes
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_cv_type_uint64_t=no
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5940 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5941 if test $ac_cv_type_uint64_t = yes; then
5944 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
5950 if test "$acx_cv_header_stdint" = stddef.h; then
5951 acx_cv_header_stdint_kind="(u_intXX_t style)"
5952 for i in sys/types.h $inttype_headers; do
5953 unset ac_cv_type_u_int32_t
5954 unset ac_cv_type_u_int64_t
5955 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
5956 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5957 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5958 if test "${ac_cv_type_u_int32_t+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 #include <sys/types.h>
5973 if ((u_int32_t *) 0)
5975 if (sizeof (u_int32_t))
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_cv_type_u_int32_t=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_type_u_int32_t=no
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6012 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6013 if test $ac_cv_type_u_int32_t = yes; then
6014 acx_cv_header_stdint=$i
6019 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6020 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6021 if test "${ac_cv_type_u_int64_t+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <sys/types.h>
6036 if ((u_int64_t *) 0)
6038 if (sizeof (u_int64_t))
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_type_u_int64_t=yes
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_cv_type_u_int64_t=no
6072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6075 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6076 if test $ac_cv_type_u_int64_t = yes; then
6079 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
6085 if test "$acx_cv_header_stdint" = stddef.h; then
6086 acx_cv_header_stdint_kind="(using manual detection)"
6089 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6090 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6091 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6092 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6093 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6095 # ----------------- Summarize what we found so far
6097 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6098 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6100 case `$as_basename gstdint.h ||
6101 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6102 Xgstdint.h : 'X\(//\)$' \| \
6103 Xgstdint.h : 'X\(/\)$' \| \
6104 . : '\(.\)' 2>/dev/null ||
6106 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6107 /^X\/\(\/\/\)$/{ s//\1/; q; }
6108 /^X\/\(\/\).*/{ s//\1/; q; }
6110 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6111 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6112 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6113 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6117 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6118 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6120 # ----------------- done included file, check C basic types --------
6122 # Lacking an uintptr_t? Test size of void *
6123 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6124 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6125 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6126 if test "${ac_cv_type_void_p+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 $ac_includes_default
6141 if (sizeof (void *))
6147 rm -f conftest.$ac_objext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149 (eval $ac_compile) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_type_void_p=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_type_void_p=no
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6177 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6178 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6180 echo "$as_me:$LINENO: checking size of void *" >&5
6181 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6182 if test "${ac_cv_sizeof_void_p+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 if test "$ac_cv_type_void_p" = yes; then
6186 # The cast to unsigned long works around a bug in the HP C Compiler
6187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6189 # This bug is HP SR number 8606223364.
6190 if test "$cross_compiling" = yes; then
6191 # Depending upon the size, compute the lo and hi bounds.
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6202 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; } &&
6224 { ac_try='test -s conftest.$ac_objext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6232 cat >conftest.$ac_ext <<_ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6242 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_hi=$ac_mid; break
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_lo=`expr $ac_mid + 1`
6276 if test $ac_lo -le $ac_mid; then
6280 ac_mid=`expr 2 '*' $ac_mid + 1`
6282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 $ac_includes_default
6298 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6338 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 ac_lo=$ac_mid; break
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_hi=`expr '(' $ac_mid ')' - 1`
6372 if test $ac_mid -le $ac_hi; then
6376 ac_mid=`expr 2 '*' $ac_mid`
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6389 # Binary search between lo and hi bounds.
6390 while test "x$ac_lo" != "x$ac_hi"; do
6391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6402 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_lo=`expr '(' $ac_mid ')' + 1`
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6441 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6442 See \`config.log' for more details." >&5
6443 echo "$as_me: error: cannot compute sizeof (void *), 77
6444 See \`config.log' for more details." >&2;}
6445 { (exit 1); exit 1; }; } ;;
6448 if test "$cross_compiling" = yes; then
6449 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6450 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6451 { (exit 1); exit 1; }; }
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6460 long longval () { return (long) (sizeof (void *)); }
6461 unsigned long ulongval () { return (long) (sizeof (void *)); }
6468 FILE *f = fopen ("conftest.val", "w");
6471 if (((long) (sizeof (void *))) < 0)
6473 long i = longval ();
6474 if (i != ((long) (sizeof (void *))))
6476 fprintf (f, "%ld\n", i);
6480 unsigned long i = ulongval ();
6481 if (i != ((long) (sizeof (void *))))
6483 fprintf (f, "%lu\n", i);
6485 exit (ferror (f) || fclose (f) != 0);
6491 rm -f conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_sizeof_void_p=`cat conftest.val`
6504 echo "$as_me: program exited with status $ac_status" >&5
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6510 See \`config.log' for more details." >&5
6511 echo "$as_me: error: cannot compute sizeof (void *), 77
6512 See \`config.log' for more details." >&2;}
6513 { (exit 1); exit 1; }; }
6515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6520 ac_cv_sizeof_void_p=0
6523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6524 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6525 cat >>confdefs.h <<_ACEOF
6526 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6532 # Lacking an uint64_t? Test size of long
6533 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6534 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6535 echo $ECHO_N "checking for long... $ECHO_C" >&6
6536 if test "${ac_cv_type_long+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 cat >conftest.$ac_ext <<_ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 $ac_includes_default
6557 rm -f conftest.$ac_objext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6559 (eval $ac_compile) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; } &&
6572 { ac_try='test -s conftest.$ac_objext'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
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 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6588 echo "${ECHO_T}$ac_cv_type_long" >&6
6590 echo "$as_me:$LINENO: checking size of long" >&5
6591 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6592 if test "${ac_cv_sizeof_long+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 if test "$ac_cv_type_long" = yes; then
6596 # The cast to unsigned long works around a bug in the HP C Compiler
6597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6599 # This bug is HP SR number 8606223364.
6600 if test "$cross_compiling" = yes; then
6601 # Depending upon the size, compute the lo and hi bounds.
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 $ac_includes_default
6612 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1 >conftest.err
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 $ac_includes_default
6652 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try='test -s conftest.$ac_objext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_hi=$ac_mid; break
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 ac_lo=`expr $ac_mid + 1`
6686 if test $ac_lo -le $ac_mid; then
6690 ac_mid=`expr 2 '*' $ac_mid + 1`
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6698 cat >conftest.$ac_ext <<_ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6708 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>conftest.er1
6719 grep -v '^ *+' conftest.er1 >conftest.err
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6748 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_lo=$ac_mid; break
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_hi=`expr '(' $ac_mid ')' - 1`
6782 if test $ac_mid -le $ac_hi; then
6786 ac_mid=`expr 2 '*' $ac_mid`
6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6799 # Binary search between lo and hi bounds.
6800 while test "x$ac_lo" != "x$ac_hi"; do
6801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 $ac_includes_default
6812 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest.$ac_objext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_lo=`expr '(' $ac_mid ')' + 1`
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850 ?*) ac_cv_sizeof_long=$ac_lo;;
6851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6852 See \`config.log' for more details." >&5
6853 echo "$as_me: error: cannot compute sizeof (long), 77
6854 See \`config.log' for more details." >&2;}
6855 { (exit 1); exit 1; }; } ;;
6858 if test "$cross_compiling" = yes; then
6859 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6860 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6861 { (exit 1); exit 1; }; }
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 $ac_includes_default
6870 long longval () { return (long) (sizeof (long)); }
6871 unsigned long ulongval () { return (long) (sizeof (long)); }
6878 FILE *f = fopen ("conftest.val", "w");
6881 if (((long) (sizeof (long))) < 0)
6883 long i = longval ();
6884 if (i != ((long) (sizeof (long))))
6886 fprintf (f, "%ld\n", i);
6890 unsigned long i = ulongval ();
6891 if (i != ((long) (sizeof (long))))
6893 fprintf (f, "%lu\n", i);
6895 exit (ferror (f) || fclose (f) != 0);
6901 rm -f conftest$ac_exeext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903 (eval $ac_link) 2>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_sizeof_long=`cat conftest.val`
6914 echo "$as_me: program exited with status $ac_status" >&5
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6920 See \`config.log' for more details." >&5
6921 echo "$as_me: error: cannot compute sizeof (long), 77
6922 See \`config.log' for more details." >&2;}
6923 { (exit 1); exit 1; }; }
6925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6933 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6934 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6935 cat >>confdefs.h <<_ACEOF
6936 #define SIZEOF_LONG $ac_cv_sizeof_long
6942 if test $acx_cv_header_stdint = stddef.h; then
6943 # Lacking a good header? Test size of everything and deduce all types.
6944 echo "$as_me:$LINENO: checking for int" >&5
6945 echo $ECHO_N "checking for int... $ECHO_C" >&6
6946 if test "${ac_cv_type_int+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 $ac_includes_default
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969 (eval $ac_compile) 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; } &&
6982 { ac_try='test -s conftest.$ac_objext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6998 echo "${ECHO_T}$ac_cv_type_int" >&6
7000 echo "$as_me:$LINENO: checking size of int" >&5
7001 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7002 if test "${ac_cv_sizeof_int+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 if test "$ac_cv_type_int" = yes; then
7006 # The cast to unsigned long works around a bug in the HP C Compiler
7007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7009 # This bug is HP SR number 8606223364.
7010 if test "$cross_compiling" = yes; then
7011 # Depending upon the size, compute the lo and hi bounds.
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7022 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7029 rm -f conftest.$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031 (eval $ac_compile) 2>conftest.er1
7033 grep -v '^ *+' conftest.er1 >conftest.err
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7052 cat >conftest.$ac_ext <<_ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 $ac_includes_default
7062 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_hi=$ac_mid; break
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 ac_lo=`expr $ac_mid + 1`
7096 if test $ac_lo -le $ac_mid; then
7100 ac_mid=`expr 2 '*' $ac_mid + 1`
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 cat >conftest.$ac_ext <<_ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7118 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest.$ac_objext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7158 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7165 rm -f conftest.$ac_objext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167 (eval $ac_compile) 2>conftest.er1
7169 grep -v '^ *+' conftest.er1 >conftest.err
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } &&
7174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; } &&
7180 { ac_try='test -s conftest.$ac_objext'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 ac_lo=$ac_mid; break
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_hi=`expr '(' $ac_mid ')' - 1`
7192 if test $ac_mid -le $ac_hi; then
7196 ac_mid=`expr 2 '*' $ac_mid`
7198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7209 # Binary search between lo and hi bounds.
7210 while test "x$ac_lo" != "x$ac_hi"; do
7211 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7212 cat >conftest.$ac_ext <<_ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 $ac_includes_default
7222 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231 (eval $ac_compile) 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_lo=`expr '(' $ac_mid ')' + 1`
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7260 ?*) ac_cv_sizeof_int=$ac_lo;;
7261 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7262 See \`config.log' for more details." >&5
7263 echo "$as_me: error: cannot compute sizeof (int), 77
7264 See \`config.log' for more details." >&2;}
7265 { (exit 1); exit 1; }; } ;;
7268 if test "$cross_compiling" = yes; then
7269 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7270 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7271 { (exit 1); exit 1; }; }
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 $ac_includes_default
7280 long longval () { return (long) (sizeof (int)); }
7281 unsigned long ulongval () { return (long) (sizeof (int)); }
7288 FILE *f = fopen ("conftest.val", "w");
7291 if (((long) (sizeof (int))) < 0)
7293 long i = longval ();
7294 if (i != ((long) (sizeof (int))))
7296 fprintf (f, "%ld\n", i);
7300 unsigned long i = ulongval ();
7301 if (i != ((long) (sizeof (int))))
7303 fprintf (f, "%lu\n", i);
7305 exit (ferror (f) || fclose (f) != 0);
7311 rm -f conftest$ac_exeext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313 (eval $ac_link) 2>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_cv_sizeof_int=`cat conftest.val`
7324 echo "$as_me: program exited with status $ac_status" >&5
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7330 See \`config.log' for more details." >&5
7331 echo "$as_me: error: cannot compute sizeof (int), 77
7332 See \`config.log' for more details." >&2;}
7333 { (exit 1); exit 1; }; }
7335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7343 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7344 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7345 cat >>confdefs.h <<_ACEOF
7346 #define SIZEOF_INT $ac_cv_sizeof_int
7350 echo "$as_me:$LINENO: checking for short" >&5
7351 echo $ECHO_N "checking for short... $ECHO_C" >&6
7352 if test "${ac_cv_type_short+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 cat >conftest.$ac_ext <<_ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 $ac_includes_default
7373 rm -f conftest.$ac_objext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7375 (eval $ac_compile) 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_cv_type_short=yes
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7404 echo "${ECHO_T}$ac_cv_type_short" >&6
7406 echo "$as_me:$LINENO: checking size of short" >&5
7407 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7408 if test "${ac_cv_sizeof_short+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 if test "$ac_cv_type_short" = yes; then
7412 # The cast to unsigned long works around a bug in the HP C Compiler
7413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7415 # This bug is HP SR number 8606223364.
7416 if test "$cross_compiling" = yes; then
7417 # Depending upon the size, compute the lo and hi bounds.
7418 cat >conftest.$ac_ext <<_ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 $ac_includes_default
7428 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437 (eval $ac_compile) 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7458 cat >conftest.$ac_ext <<_ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 $ac_includes_default
7468 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7475 rm -f conftest.$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_hi=$ac_mid; break
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 ac_lo=`expr $ac_mid + 1`
7502 if test $ac_lo -le $ac_mid; then
7506 ac_mid=`expr 2 '*' $ac_mid + 1`
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7514 cat >conftest.$ac_ext <<_ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 $ac_includes_default
7564 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7571 rm -f conftest.$ac_objext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573 (eval $ac_compile) 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_lo=$ac_mid; break
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_hi=`expr '(' $ac_mid ')' - 1`
7598 if test $ac_mid -le $ac_hi; then
7602 ac_mid=`expr 2 '*' $ac_mid`
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7615 # Binary search between lo and hi bounds.
7616 while test "x$ac_lo" != "x$ac_hi"; do
7617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7618 cat >conftest.$ac_ext <<_ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7628 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>conftest.er1
7639 grep -v '^ *+' conftest.er1 >conftest.err
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try='test -s conftest.$ac_objext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_lo=`expr '(' $ac_mid ')' + 1`
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 ?*) ac_cv_sizeof_short=$ac_lo;;
7667 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7668 See \`config.log' for more details." >&5
7669 echo "$as_me: error: cannot compute sizeof (short), 77
7670 See \`config.log' for more details." >&2;}
7671 { (exit 1); exit 1; }; } ;;
7674 if test "$cross_compiling" = yes; then
7675 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7676 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7677 { (exit 1); exit 1; }; }
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 $ac_includes_default
7686 long longval () { return (long) (sizeof (short)); }
7687 unsigned long ulongval () { return (long) (sizeof (short)); }
7694 FILE *f = fopen ("conftest.val", "w");
7697 if (((long) (sizeof (short))) < 0)
7699 long i = longval ();
7700 if (i != ((long) (sizeof (short))))
7702 fprintf (f, "%ld\n", i);
7706 unsigned long i = ulongval ();
7707 if (i != ((long) (sizeof (short))))
7709 fprintf (f, "%lu\n", i);
7711 exit (ferror (f) || fclose (f) != 0);
7717 rm -f conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 ac_cv_sizeof_short=`cat conftest.val`
7730 echo "$as_me: program exited with status $ac_status" >&5
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7736 See \`config.log' for more details." >&5
7737 echo "$as_me: error: cannot compute sizeof (short), 77
7738 See \`config.log' for more details." >&2;}
7739 { (exit 1); exit 1; }; }
7741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7746 ac_cv_sizeof_short=0
7749 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7750 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7751 cat >>confdefs.h <<_ACEOF
7752 #define SIZEOF_SHORT $ac_cv_sizeof_short
7756 echo "$as_me:$LINENO: checking for char" >&5
7757 echo $ECHO_N "checking for char... $ECHO_C" >&6
7758 if test "${ac_cv_type_char+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 $ac_includes_default
7779 rm -f conftest.$ac_objext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781 (eval $ac_compile) 2>conftest.er1
7783 grep -v '^ *+' conftest.er1 >conftest.err
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7809 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7810 echo "${ECHO_T}$ac_cv_type_char" >&6
7812 echo "$as_me:$LINENO: checking size of char" >&5
7813 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7814 if test "${ac_cv_sizeof_char+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 if test "$ac_cv_type_char" = yes; then
7818 # The cast to unsigned long works around a bug in the HP C Compiler
7819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7821 # This bug is HP SR number 8606223364.
7822 if test "$cross_compiling" = yes; then
7823 # Depending upon the size, compute the lo and hi bounds.
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7830 $ac_includes_default
7834 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7845 grep -v '^ *+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try='test -s conftest.$ac_objext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7864 cat >conftest.$ac_ext <<_ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7874 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1 >conftest.err
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_hi=$ac_mid; break
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_lo=`expr $ac_mid + 1`
7908 if test $ac_lo -le $ac_mid; then
7912 ac_mid=`expr 2 '*' $ac_mid + 1`
7914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 $ac_includes_default
7930 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7970 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7977 rm -f conftest.$ac_objext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest.$ac_objext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_lo=$ac_mid; break
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_hi=`expr '(' $ac_mid ')' - 1`
8004 if test $ac_mid -le $ac_hi; then
8008 ac_mid=`expr 2 '*' $ac_mid`
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8021 # Binary search between lo and hi bounds.
8022 while test "x$ac_lo" != "x$ac_hi"; do
8023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8024 cat >conftest.$ac_ext <<_ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 $ac_includes_default
8034 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8041 rm -f conftest.$ac_objext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043 (eval $ac_compile) 2>conftest.er1
8045 grep -v '^ *+' conftest.er1 >conftest.err
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_lo=`expr '(' $ac_mid ')' + 1`
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8072 ?*) ac_cv_sizeof_char=$ac_lo;;
8073 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8074 See \`config.log' for more details." >&5
8075 echo "$as_me: error: cannot compute sizeof (char), 77
8076 See \`config.log' for more details." >&2;}
8077 { (exit 1); exit 1; }; } ;;
8080 if test "$cross_compiling" = yes; then
8081 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8082 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8083 { (exit 1); exit 1; }; }
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 $ac_includes_default
8092 long longval () { return (long) (sizeof (char)); }
8093 unsigned long ulongval () { return (long) (sizeof (char)); }
8100 FILE *f = fopen ("conftest.val", "w");
8103 if (((long) (sizeof (char))) < 0)
8105 long i = longval ();
8106 if (i != ((long) (sizeof (char))))
8108 fprintf (f, "%ld\n", i);
8112 unsigned long i = ulongval ();
8113 if (i != ((long) (sizeof (char))))
8115 fprintf (f, "%lu\n", i);
8117 exit (ferror (f) || fclose (f) != 0);
8123 rm -f conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_sizeof_char=`cat conftest.val`
8136 echo "$as_me: program exited with status $ac_status" >&5
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8142 See \`config.log' for more details." >&5
8143 echo "$as_me: error: cannot compute sizeof (char), 77
8144 See \`config.log' for more details." >&2;}
8145 { (exit 1); exit 1; }; }
8147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8156 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8157 cat >>confdefs.h <<_ACEOF
8158 #define SIZEOF_CHAR $ac_cv_sizeof_char
8163 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8164 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8165 case "$ac_cv_sizeof_char" in
8166 1) acx_cv_type_int8_t=char ;;
8167 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8168 echo "$as_me: error: no 8-bit type" >&2;}
8169 { (exit please report a bug); exit please report a bug; }; }
8171 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8172 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8174 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8175 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8176 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8177 2:*) acx_cv_type_int16_t=int ;;
8178 *:2) acx_cv_type_int16_t=short ;;
8179 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8180 echo "$as_me: error: no 16-bit type" >&2;}
8181 { (exit please report a bug); exit please report a bug; }; }
8183 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8184 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8186 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8187 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8188 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8189 4:*) acx_cv_type_int32_t=int ;;
8190 *:4) acx_cv_type_int32_t=long ;;
8191 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8192 echo "$as_me: error: no 32-bit type" >&2;}
8193 { (exit please report a bug); exit please report a bug; }; }
8195 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8196 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8199 # These tests are here to make the output prettier
8201 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8202 case "$ac_cv_sizeof_long" in
8203 8) acx_cv_type_int64_t=long ;;
8205 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8206 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8207 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8208 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8211 # Now we can use the above types
8213 if test "$ac_cv_type_uintptr_t" != yes; then
8214 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8215 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8216 case $ac_cv_sizeof_void_p in
8217 2) acx_cv_type_intptr_t=int16_t ;;
8218 4) acx_cv_type_intptr_t=int32_t ;;
8219 8) acx_cv_type_intptr_t=int64_t ;;
8220 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8221 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8222 { (exit please report a bug); exit please report a bug; }; }
8224 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8225 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8228 # ----------------- done all checks, emit header -------------
8229 ac_config_commands="$ac_config_commands gstdint.h"
8234 # Check to see if -pthread or -lpthread is needed. Prefer the former.
8235 # In case the pthread.h system header is not found, this test will fail.
8237 CFLAGS="$CFLAGS -pthread"
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 #include <pthread.h>
8245 void *g(void *d) { return NULL; }
8249 pthread_t t; pthread_create(&t,NULL,g,NULL);
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256 (eval $ac_link) 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 XPCFLAGS=" -Wc,-pthread"
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 #include <pthread.h>
8288 void *g(void *d) { return NULL; }
8292 pthread_t t; pthread_create(&t,NULL,g,NULL);
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8324 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8325 { (exit 1); exit 1; }; }
8327 rm -f conftest.err conftest.$ac_objext \
8328 conftest$ac_exeext conftest.$ac_ext
8330 rm -f conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8333 # Check for functions needed.
8336 for ac_func in getloadavg clock_gettime
8338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8339 echo "$as_me:$LINENO: checking for $ac_func" >&5
8340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8341 if eval "test \"\${$as_ac_var+set}\" = set"; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8352 #define $ac_func innocuous_$ac_func
8354 /* System header to define __stub macros and hopefully few prototypes,
8355 which can conflict with char $ac_func (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8360 # include <limits.h>
8362 # include <assert.h>
8367 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8381 char (*f) () = $ac_func;
8390 return f != $ac_func;
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 eval "$as_ac_var=yes"
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 eval "$as_ac_var=no"
8423 rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8428 if test `eval echo '${'$as_ac_var'}'` = yes; then
8429 cat >>confdefs.h <<_ACEOF
8430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8437 # At least for glibc, clock_gettime is in librt. But don't pull that
8438 # in if it still doesn't give us the function we want.
8439 if test $ac_cv_func_clock_gettime = no; then
8440 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8441 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8442 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_check_lib_save_LIBS=$LIBS
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8454 /* Override any gcc2 internal prototype to avoid an error. */
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460 char clock_gettime ();
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471 (eval $ac_link) 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest$ac_exeext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_cv_lib_rt_clock_gettime=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_lib_rt_clock_gettime=no
8497 rm -f conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8501 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8502 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8503 if test $ac_cv_lib_rt_clock_gettime = yes; then
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_CLOCK_GETTIME Define to 1 if you have the `clock_gettime' function.
8513 # See if we support thread-local storage.
8515 # Check whether --enable-tls or --disable-tls was given.
8516 if test "${enable_tls+set}" = set; then
8517 enableval="$enable_tls"
8519 case "$enableval" in
8521 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8522 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8523 { (exit 1); exit 1; }; } ;;
8530 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8531 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8532 if test "${have_tls+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 have_tls=$enable_tls
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8581 echo "$as_me:$LINENO: result: $have_tls" >&5
8582 echo "${ECHO_T}$have_tls" >&6
8583 if test $have_tls = yes; then
8585 cat >>confdefs.h <<\_ACEOF
8591 # See what sort of export controls are availible.
8593 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
8594 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
8595 if test "${have_attribute_visibility+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 save_CFLAGS="$CFLAGS"
8600 CFLAGS="$CFLAGS -Werror"
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 void __attribute__((visibility("hidden"))) foo(void) { }
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 have_attribute_visibility=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 have_attribute_visibility=no
8644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645 CFLAGS="$save_CFLAGS"
8647 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
8648 echo "${ECHO_T}$have_attribute_visibility" >&6
8649 if test $have_attribute_visibility = yes; then
8651 cat >>confdefs.h <<\_ACEOF
8652 #define HAVE_ATTRIBUTE_VISIBILITY 1
8657 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
8658 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
8659 if test "${have_attribute_dllexport+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 save_CFLAGS="$CFLAGS"
8664 CFLAGS="$CFLAGS -Werror"
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 void __attribute__((dllexport)) foo(void) { }
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682 (eval $ac_compile) 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 have_attribute_dllexport=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 have_attribute_dllexport=no
8708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709 CFLAGS="$save_CFLAGS"
8711 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
8712 echo "${ECHO_T}$have_attribute_dllexport" >&6
8713 if test $have_attribute_dllexport = yes; then
8715 cat >>confdefs.h <<\_ACEOF
8716 #define HAVE_ATTRIBUTE_DLLEXPORT 1
8721 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
8722 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
8723 if test "${have_attribute_alias+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8734 #define ULP STR1(__USER_LABEL_PREFIX__)
8735 #define STR1(x) STR2(x)
8738 extern void bar(void) __attribute__((alias(ULP "foo")));
8747 rm -f conftest.$ac_objext conftest$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749 (eval $ac_link) 2>conftest.er1
8751 grep -v '^ *+' conftest.er1 >conftest.err
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 have_attribute_alias=yes
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 have_attribute_alias=no
8775 rm -f conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
8779 echo "${ECHO_T}$have_attribute_alias" >&6
8780 if test $have_attribute_alias = yes; then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_ATTRIBUTE_ALIAS 1
8788 # If we're not using GNU ld, then there's no point in even trying these
8789 # tests. Check for that first. We should have already tested for gld
8790 # by now (in libtool), but require it now just to be safe...
8791 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8792 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8796 # The name set by libtool depends on the version of libtool. Shame on us
8797 # for depending on an impl detail, but c'est la vie. Older versions used
8798 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8799 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8800 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8801 # set (hence we're using an older libtool), then set it.
8802 if test x${with_gnu_ld+set} != xset; then
8803 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8804 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8807 with_gnu_ld=$ac_cv_prog_gnu_ld
8811 # Start by getting the version number. I think the libtool test already
8812 # does some of this, but throws away the result.
8814 ldver=`$LD --version 2>/dev/null | head -1 | \
8815 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8817 libgomp_gnu_ld_version=`echo $ldver | \
8818 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8820 # Set --gc-sections.
8821 if test "$with_gnu_ld" = "notbroken"; then
8822 # GNU ld it is! Joy and bunny rabbits!
8824 # All these tests are for C++; save the language and the compiler flags.
8825 # Need to do this so that g++ won't try to link in libstdc++
8826 ac_test_CFLAGS="${CFLAGS+set}"
8827 ac_save_CFLAGS="$CFLAGS"
8828 CFLAGS='-x c++ -Wl,--gc-sections'
8830 # Check for -Wl,--gc-sections
8831 # XXX This test is broken at the moment, as symbols required for linking
8832 # are now in libsupc++ (not built yet). In addition, this test has
8833 # cored on solaris in the past. In addition, --gc-sections doesn't
8834 # really work at the moment (keeps on discarding used sections, first
8835 # .eh_frame and now some of the glibc sections for iconv).
8836 # Bzzzzt. Thanks for playing, maybe next time.
8837 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8838 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8839 if test "$cross_compiling" = yes; then
8840 ac_sectionLDflags=yes
8842 cat >conftest.$ac_ext <<_ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8857 rm -f conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_sectionLDflags=yes
8870 echo "$as_me: program exited with status $ac_status" >&5
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8875 ac_sectionLDflags=no
8877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8879 if test "$ac_test_CFLAGS" = set; then
8880 CFLAGS="$ac_save_CFLAGS"
8882 # this is the suspicious part
8885 if test "$ac_sectionLDflags" = "yes"; then
8886 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8888 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8889 echo "${ECHO_T}$ac_sectionLDflags" >&6
8892 # Set linker optimization flags.
8893 if test x"$with_gnu_ld" = x"yes"; then
8894 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8902 # Check whether --enable-symvers or --disable-symvers was given.
8903 if test "${enable_symvers+set}" = set; then
8904 enableval="$enable_symvers"
8906 case "$enableval" in
8908 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
8909 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
8910 { (exit 1); exit 1; }; } ;;
8918 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
8919 # don't know enough about $LD to do tricks...
8921 # FIXME The following test is too strict, in theory.
8922 if test $enable_shared = no ||
8924 test x$libgomp_gnu_ld_version = x; then
8928 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
8929 if test $enable_symvers != no; then
8930 echo "$as_me:$LINENO: checking for shared libgcc" >&5
8931 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
8932 ac_save_CFLAGS="$CFLAGS"
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951 (eval $ac_link) 2>conftest.er1
8953 grep -v '^ *+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } &&
8958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest$ac_exeext'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 libgomp_shared_libgcc=yes
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 libgomp_shared_libgcc=no
8977 rm -f conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 CFLAGS="$ac_save_CFLAGS"
8980 if test $libgomp_shared_libgcc = no; then
8981 cat > conftest.c <<EOF
8982 int main (void) { return 0; }
8984 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
8985 -shared -shared-libgcc -o conftest.so \
8986 conftest.c -v 2>&1 >/dev/null \
8987 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
8988 rm -f conftest.c conftest.so
8989 if test x${libgomp_libgcc_s_suffix+set} = xset; then
8990 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
8991 cat >conftest.$ac_ext <<_ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008 (eval $ac_link) 2>conftest.er1
9010 grep -v '^ *+' conftest.er1 >conftest.err
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 libgomp_shared_libgcc=yes
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9033 rm -f conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 CFLAGS="$ac_save_CFLAGS"
9038 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9039 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9042 # For GNU ld, we need at least this version. The format is described in
9043 # LIBGOMP_CHECK_LINKER_FEATURES above.
9044 libgomp_min_gnu_ld_version=21400
9045 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9047 # Check to see if unspecified "yes" value can win, given results above.
9048 # Change "yes" into either "no" or a style name.
9049 if test $enable_symvers = yes; then
9050 if test $with_gnu_ld = yes &&
9051 test $libgomp_shared_libgcc = yes;
9053 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9056 # The right tools, the right setup, but too old. Fallbacks?
9057 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9058 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9059 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9060 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9061 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9062 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9064 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9065 if test $libgomp_gnu_ld_version -ge 21200 ; then
9066 # Globbing fix is present, proper block support is not.
9067 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9068 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9072 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9073 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9079 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9080 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9082 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9084 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9085 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9086 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9093 if test $enable_symvers != no; then
9094 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9095 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9097 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9098 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9101 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9102 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9105 # Get target configury.
9106 . ${srcdir}/configure.tgt
9107 CFLAGS="$save_CFLAGS $XCFLAGS"
9109 # Check for __sync_val_compare_and_swap, but only after the target has
9110 # had a chance to set XCFLAGS.
9112 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9113 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9114 if test "${have_sync_builtins+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9128 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9133 rm -f conftest.$ac_objext conftest$ac_exeext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>conftest.er1
9137 grep -v '^ *+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 have_sync_builtins=yes
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 have_sync_builtins=no
9161 rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9164 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9165 echo "${ECHO_T}$have_sync_builtins" >&6
9166 if test $have_sync_builtins = yes; then
9168 cat >>confdefs.h <<\_ACEOF
9169 #define HAVE_SYNC_BUILTINS 1
9174 XCFLAGS="$XCFLAGS$XPCFLAGS"
9181 CFLAGS="$save_CFLAGS"
9182 cat >confcache <<\_ACEOF
9183 # This file is a shell script that caches the results of configure
9184 # tests run on this system so they can be shared between configure
9185 # scripts and configure runs, see configure's option --config-cache.
9186 # It is not useful on other systems. If it contains results you don't
9187 # want to keep, you may remove or edit it.
9189 # config.status only pays attention to the cache file if you give it
9190 # the --recheck option to rerun configure.
9192 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9193 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9198 # The following way of writing the cache mishandles newlines in values,
9199 # but we know of no workaround that is simple, portable, and efficient.
9200 # So, don't put newlines in cache variables' values.
9201 # Ultrix sh set writes to stderr and can't be redirected directly,
9202 # and sets the high bit in the cache file unless we assign to the vars.
9205 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9207 # `set' does not quote correctly, so add quotes (double-quote
9208 # substitution turns \\\\ into \\, and sed turns \\ into \).
9211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9214 # `set' quotes correctly as required by POSIX, so do not add quotes.
9216 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9225 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9227 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9228 if test -w $cache_file; then
9229 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9230 cat confcache >$cache_file
9232 echo "not updating unwritable cache $cache_file"
9237 if test ${multilib} = yes; then
9238 multilib_arg="--enable-multilib"
9243 # Set up the set of libraries that we need to link against for libgomp.
9244 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9245 # which will force linkage against -lpthread (or equivalent for the system).
9246 # That's not 100% ideal, but about the best we can do easily.
9247 if test $enable_shared = yes; then
9248 link_gomp="-lgomp %{static: $LIBS}"
9250 link_gomp="-lgomp $LIBS"
9256 if test "$ac_cv_fc_compiler_gnu" = yes; then
9258 USE_FORTRAN_FALSE='#'
9260 USE_FORTRAN_TRUE='#'
9265 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9266 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9267 # the underscore here and update the PREREQ. If it doesn't, then we'll
9268 # need to copy this macro to our acinclude.m4.
9269 save_CFLAGS="$CFLAGS"
9270 for i in $config_path; do
9271 if test -f $srcdir/config/$i/omp-lock.h; then
9272 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9277 if test "$cross_compiling" = yes; then
9278 # Depending upon the size, compute the lo and hi bounds.
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9289 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9296 rm -f conftest.$ac_objext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298 (eval $ac_compile) 2>conftest.er1
9300 grep -v '^ *+' conftest.er1 >conftest.err
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest.$ac_objext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9329 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9336 rm -f conftest.$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338 (eval $ac_compile) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; } &&
9351 { ac_try='test -s conftest.$ac_objext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_hi=$ac_mid; break
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 ac_lo=`expr $ac_mid + 1`
9363 if test $ac_lo -le $ac_mid; then
9367 ac_mid=`expr 2 '*' $ac_mid + 1`
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9385 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest.$ac_objext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9425 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest.$ac_objext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_lo=$ac_mid; break
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_hi=`expr '(' $ac_mid ')' - 1`
9459 if test $ac_mid -le $ac_hi; then
9463 ac_mid=`expr 2 '*' $ac_mid`
9465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9476 # Binary search between lo and hi bounds.
9477 while test "x$ac_lo" != "x$ac_hi"; do
9478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9479 cat >conftest.$ac_ext <<_ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9489 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_lo=`expr '(' $ac_mid ')' + 1`
9524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9527 ?*) OMP_LOCK_SIZE=$ac_lo;;
9528 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9529 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9530 { (exit 1); exit 1; }; } ;;
9533 if test "$cross_compiling" = yes; then
9534 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9535 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9536 { (exit 1); exit 1; }; }
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9545 long longval () { return sizeof (omp_lock_t); }
9546 unsigned long ulongval () { return sizeof (omp_lock_t); }
9553 FILE *f = fopen ("conftest.val", "w");
9556 if ((sizeof (omp_lock_t)) < 0)
9558 long i = longval ();
9559 if (i != (sizeof (omp_lock_t)))
9561 fprintf (f, "%ld\n", i);
9565 unsigned long i = ulongval ();
9566 if (i != (sizeof (omp_lock_t)))
9568 fprintf (f, "%lu\n", i);
9570 exit (ferror (f) || fclose (f) != 0);
9576 rm -f conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 OMP_LOCK_SIZE=`cat conftest.val`
9589 echo "$as_me: program exited with status $ac_status" >&5
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9594 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9595 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9596 { (exit 1); exit 1; }; }
9598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9602 if test "$cross_compiling" = yes; then
9603 # Depending upon the size, compute the lo and hi bounds.
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9614 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9625 grep -v '^ *+' conftest.er1 >conftest.err
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; } &&
9636 { ac_try='test -s conftest.$ac_objext'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9654 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_hi=$ac_mid; break
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_lo=`expr $ac_mid + 1`
9688 if test $ac_lo -le $ac_mid; then
9692 ac_mid=`expr 2 '*' $ac_mid + 1`
9694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9710 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
9717 rm -f conftest.$ac_objext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9719 (eval $ac_compile) 2>conftest.er1
9721 grep -v '^ *+' conftest.er1 >conftest.err
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest.$ac_objext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9750 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
9757 rm -f conftest.$ac_objext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9759 (eval $ac_compile) 2>conftest.er1
9761 grep -v '^ *+' conftest.er1 >conftest.err
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest.$ac_objext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_lo=$ac_mid; break
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_hi=`expr '(' $ac_mid ')' - 1`
9784 if test $ac_mid -le $ac_hi; then
9788 ac_mid=`expr 2 '*' $ac_mid`
9790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9801 # Binary search between lo and hi bounds.
9802 while test "x$ac_lo" != "x$ac_hi"; do
9803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9814 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest.$ac_objext'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_lo=`expr '(' $ac_mid ')' + 1`
9849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9852 ?*) OMP_LOCK_ALIGN=$ac_lo;;
9856 if test "$cross_compiling" = yes; then
9857 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9858 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9859 { (exit 1); exit 1; }; }
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9868 long longval () { return __alignof (omp_lock_t); }
9869 unsigned long ulongval () { return __alignof (omp_lock_t); }
9876 FILE *f = fopen ("conftest.val", "w");
9879 if ((__alignof (omp_lock_t)) < 0)
9881 long i = longval ();
9882 if (i != (__alignof (omp_lock_t)))
9884 fprintf (f, "%ld\n", i);
9888 unsigned long i = ulongval ();
9889 if (i != (__alignof (omp_lock_t)))
9891 fprintf (f, "%lu\n", i);
9893 exit (ferror (f) || fclose (f) != 0);
9899 rm -f conftest$ac_exeext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901 (eval $ac_link) 2>&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 OMP_LOCK_ALIGN=`cat conftest.val`
9912 echo "$as_me: program exited with status $ac_status" >&5
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9921 if test "$cross_compiling" = yes; then
9922 # Depending upon the size, compute the lo and hi bounds.
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9933 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest.$ac_objext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9973 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>conftest.er1
9984 grep -v '^ *+' conftest.er1 >conftest.err
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest.$ac_objext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_hi=$ac_mid; break
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 ac_lo=`expr $ac_mid + 1`
10007 if test $ac_lo -le $ac_mid; then
10011 ac_mid=`expr 2 '*' $ac_mid + 1`
10013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10029 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest.$ac_objext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10069 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>conftest.er1
10080 grep -v '^ *+' conftest.er1 >conftest.err
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_lo=$ac_mid; break
10099 echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 ac_hi=`expr '(' $ac_mid ')' - 1`
10103 if test $ac_mid -le $ac_hi; then
10107 ac_mid=`expr 2 '*' $ac_mid`
10109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10120 # Binary search between lo and hi bounds.
10121 while test "x$ac_lo" != "x$ac_hi"; do
10122 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10123 cat >conftest.$ac_ext <<_ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10133 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10140 rm -f conftest.$ac_objext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142 (eval $ac_compile) 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_lo=`expr '(' $ac_mid ')' + 1`
10168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10171 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10175 if test "$cross_compiling" = yes; then
10176 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10177 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10178 { (exit 1); exit 1; }; }
10180 cat >conftest.$ac_ext <<_ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10187 long longval () { return sizeof (omp_nest_lock_t); }
10188 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10190 #include <stdlib.h>
10195 FILE *f = fopen ("conftest.val", "w");
10198 if ((sizeof (omp_nest_lock_t)) < 0)
10200 long i = longval ();
10201 if (i != (sizeof (omp_nest_lock_t)))
10203 fprintf (f, "%ld\n", i);
10207 unsigned long i = ulongval ();
10208 if (i != (sizeof (omp_nest_lock_t)))
10210 fprintf (f, "%lu\n", i);
10212 exit (ferror (f) || fclose (f) != 0);
10218 rm -f conftest$ac_exeext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10220 (eval $ac_link) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10231 echo "$as_me: program exited with status $ac_status" >&5
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10240 if test "$cross_compiling" = yes; then
10241 # Depending upon the size, compute the lo and hi bounds.
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10252 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10259 rm -f conftest.$ac_objext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261 (eval $ac_compile) 2>conftest.er1
10263 grep -v '^ *+' conftest.er1 >conftest.err
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10292 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag" || 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_nest_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" || test ! -s conftest.err'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } &&
10370 { ac_try='test -s conftest.$ac_objext'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10388 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>conftest.er1
10399 grep -v '^ *+' conftest.er1 >conftest.err
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest.$ac_objext'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }; then
10416 ac_lo=$ac_mid; break
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10421 ac_hi=`expr '(' $ac_mid ')' - 1`
10422 if test $ac_mid -le $ac_hi; then
10426 ac_mid=`expr 2 '*' $ac_mid`
10428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10439 # Binary search between lo and hi bounds.
10440 while test "x$ac_lo" != "x$ac_hi"; do
10441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10442 cat >conftest.$ac_ext <<_ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10452 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest.$ac_objext'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10485 ac_lo=`expr '(' $ac_mid ')' + 1`
10487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10490 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10494 if test "$cross_compiling" = yes; then
10495 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10496 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10497 { (exit 1); exit 1; }; }
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 long longval () { return __alignof (omp_nest_lock_t); }
10507 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10509 #include <stdlib.h>
10514 FILE *f = fopen ("conftest.val", "w");
10517 if ((__alignof (omp_nest_lock_t)) < 0)
10519 long i = longval ();
10520 if (i != (__alignof (omp_nest_lock_t)))
10522 fprintf (f, "%ld\n", i);
10526 unsigned long i = ulongval ();
10527 if (i != (__alignof (omp_nest_lock_t)))
10529 fprintf (f, "%lu\n", i);
10531 exit (ferror (f) || fclose (f) != 0);
10537 rm -f conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
10550 echo "$as_me: program exited with status $ac_status" >&5
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10560 # If the lock fits in an integer, then arrange for Fortran to use that
10561 # integer. If it doesn't, then arrange for Fortran to use a pointer.
10562 # Except that we don't have a way at present to multi-lib the installed
10563 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
10565 OMP_LOCK_KIND=$OMP_LOCK_SIZE
10566 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
10567 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
10570 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
10571 OMP_NEST_LOCK_KIND=8
10580 CFLAGS="$save_CFLAGS"
10582 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
10584 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
10586 cat >confcache <<\_ACEOF
10587 # This file is a shell script that caches the results of configure
10588 # tests run on this system so they can be shared between configure
10589 # scripts and configure runs, see configure's option --config-cache.
10590 # It is not useful on other systems. If it contains results you don't
10591 # want to keep, you may remove or edit it.
10593 # config.status only pays attention to the cache file if you give it
10594 # the --recheck option to rerun configure.
10596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10598 # following values.
10602 # The following way of writing the cache mishandles newlines in values,
10603 # but we know of no workaround that is simple, portable, and efficient.
10604 # So, don't put newlines in cache variables' values.
10605 # Ultrix sh set writes to stderr and can't be redirected directly,
10606 # and sets the high bit in the cache file unless we assign to the vars.
10609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10611 # `set' does not quote correctly, so add quotes (double-quote
10612 # substitution turns \\\\ into \\, and sed turns \\ into \).
10615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10618 # `set' quotes correctly as required by POSIX, so do not add quotes.
10620 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10627 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10629 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10631 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10632 if test -w $cache_file; then
10633 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10634 cat confcache >$cache_file
10636 echo "not updating unwritable cache $cache_file"
10641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10642 # Let make expand exec_prefix.
10643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10647 # trailing colons and then remove the whole line if VPATH becomes empty
10648 # (actually we leave an empty line to preserve line numbers).
10649 if test "x$srcdir" = x.; then
10650 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10651 s/:*\$(srcdir):*/:/;
10652 s/:*\${srcdir}:*/:/;
10654 s/^\([^=]*=[ ]*\):*/\1/;
10660 DEFS=-DHAVE_CONFIG_H
10664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10665 # 1. Remove the extension, and $U if already installed.
10666 ac_i=`echo "$ac_i" |
10667 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10669 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10670 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10672 LIBOBJS=$ac_libobjs
10674 LTLIBOBJS=$ac_ltlibobjs
10677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10678 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10679 Usually this means the macro was only invoked conditionally." >&5
10680 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10681 Usually this means the macro was only invoked conditionally." >&2;}
10682 { (exit 1); exit 1; }; }
10684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10685 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10686 Usually this means the macro was only invoked conditionally." >&5
10687 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10688 Usually this means the macro was only invoked conditionally." >&2;}
10689 { (exit 1); exit 1; }; }
10691 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10692 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10693 Usually this means the macro was only invoked conditionally." >&5
10694 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10695 Usually this means the macro was only invoked conditionally." >&2;}
10696 { (exit 1); exit 1; }; }
10698 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
10699 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10700 Usually this means the macro was only invoked conditionally." >&5
10701 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10702 Usually this means the macro was only invoked conditionally." >&2;}
10703 { (exit 1); exit 1; }; }
10705 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
10706 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
10707 Usually this means the macro was only invoked conditionally." >&5
10708 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
10709 Usually this means the macro was only invoked conditionally." >&2;}
10710 { (exit 1); exit 1; }; }
10713 : ${CONFIG_STATUS=./config.status}
10714 ac_clean_files_save=$ac_clean_files
10715 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10716 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10717 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10718 cat >$CONFIG_STATUS <<_ACEOF
10720 # Generated by $as_me.
10721 # Run this file to recreate the current configuration.
10722 # Compiler output produced by configure, useful for debugging
10723 # configure, is in config.log if it exists.
10726 ac_cs_recheck=false
10728 SHELL=\${CONFIG_SHELL-$SHELL}
10731 cat >>$CONFIG_STATUS <<\_ACEOF
10732 ## --------------------- ##
10733 ## M4sh Initialization. ##
10734 ## --------------------- ##
10736 # Be Bourne compatible
10737 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10740 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10741 # is contrary to our usage. Disable this feature.
10742 alias -g '${1+"$@"}'='"$@"'
10743 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10746 DUALCASE=1; export DUALCASE # for MKS sh
10748 # Support unset when possible.
10749 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10756 # Work around bugs in pre-3.0 UWIN ksh.
10757 $as_unset ENV MAIL MAILPATH
10764 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10765 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10766 LC_TELEPHONE LC_TIME
10768 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10769 eval $as_var=C; export $as_var
10775 # Required to use basename.
10776 if expr a : '\(a\)' >/dev/null 2>&1; then
10782 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10783 as_basename=basename
10789 # Name of the executable.
10790 as_me=`$as_basename "$0" ||
10791 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10792 X"$0" : 'X\(//\)$' \| \
10793 X"$0" : 'X\(/\)$' \| \
10794 . : '\(.\)' 2>/dev/null ||
10796 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10797 /^X\/\(\/\/\)$/{ s//\1/; q; }
10798 /^X\/\(\/\).*/{ s//\1/; q; }
10802 # PATH needs CR, and LINENO needs CR and PATH.
10803 # Avoid depending upon Character Ranges.
10804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10807 as_cr_digits='0123456789'
10808 as_cr_alnum=$as_cr_Letters$as_cr_digits
10810 # The user is always right.
10811 if test "${PATH_SEPARATOR+set}" != set; then
10812 echo "#! /bin/sh" >conf$$.sh
10813 echo "exit 0" >>conf$$.sh
10815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10824 as_lineno_1=$LINENO
10825 as_lineno_2=$LINENO
10826 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10827 test "x$as_lineno_1" != "x$as_lineno_2" &&
10828 test "x$as_lineno_3" = "x$as_lineno_2" || {
10829 # Find who we are. Look in the path if we contain no path at all
10832 *[\\/]* ) as_myself=$0 ;;
10833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10837 test -z "$as_dir" && as_dir=.
10838 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10843 # We did not find ourselves, most probably we were run as `sh COMMAND'
10844 # in which case we are not to be found in the path.
10845 if test "x$as_myself" = x; then
10848 if test ! -f "$as_myself"; then
10849 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10850 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10851 { (exit 1); exit 1; }; }
10853 case $CONFIG_SHELL in
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10859 test -z "$as_dir" && as_dir=.
10860 for as_base in sh bash ksh sh5; do
10863 if ("$as_dir/$as_base" -c '
10864 as_lineno_1=$LINENO
10865 as_lineno_2=$LINENO
10866 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10867 test "x$as_lineno_1" != "x$as_lineno_2" &&
10868 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10869 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10870 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10871 CONFIG_SHELL=$as_dir/$as_base
10872 export CONFIG_SHELL
10873 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10881 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10882 # uniformly replaced by the line number. The first 'sed' inserts a
10883 # line-number line before each line; the second 'sed' does the real
10884 # work. The second script uses 'N' to pair each line-number line
10885 # with the numbered line, and appends trailing '-' during
10886 # substitution so that $LINENO is not a special case at line end.
10887 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10888 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10889 sed '=' <$as_myself |
10894 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10897 s,^['$as_cr_digits']*\n,,
10898 ' >$as_me.lineno &&
10899 chmod +x $as_me.lineno ||
10900 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10901 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10902 { (exit 1); exit 1; }; }
10904 # Don't try to exec as it changes $[0], causing all sort of problems
10905 # (the dirname of $[0] is not the place where we might find the
10906 # original and so on. Autoconf is especially sensible to this).
10908 # Exit status is that of the last command.
10913 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10914 *c*,-n*) ECHO_N= ECHO_C='
10916 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10917 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10920 if expr a : '\(a\)' >/dev/null 2>&1; then
10926 rm -f conf$$ conf$$.exe conf$$.file
10928 if ln -s conf$$.file conf$$ 2>/dev/null; then
10929 # We could just check for DJGPP; but this test a) works b) is more generic
10930 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10931 if test -f conf$$.exe; then
10932 # Don't use ln at all; we don't have any links
10937 elif ln conf$$.file conf$$ 2>/dev/null; then
10942 rm -f conf$$ conf$$.exe conf$$.file
10944 if mkdir -p . 2>/dev/null; then
10947 test -d ./-p && rmdir ./-p
10951 as_executable_p="test -f"
10953 # Sed expression to map a string onto a valid CPP name.
10954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10956 # Sed expression to map a string onto a valid variable name.
10957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10961 # We need space, tab and new line, in precisely that order.
10971 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10972 # report actual input values of CONFIG_FILES etc. instead of their
10973 # values after options handling. Logging --version etc. is OK.
10977 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10978 ## Running $as_me. ##
10983 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
10984 generated by GNU Autoconf 2.59. Invocation command line was
10986 CONFIG_FILES = $CONFIG_FILES
10987 CONFIG_HEADERS = $CONFIG_HEADERS
10988 CONFIG_LINKS = $CONFIG_LINKS
10989 CONFIG_COMMANDS = $CONFIG_COMMANDS
10993 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10997 # Files that config.status was made for.
10998 if test -n "$ac_config_files"; then
10999 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11002 if test -n "$ac_config_headers"; then
11003 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11006 if test -n "$ac_config_links"; then
11007 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11010 if test -n "$ac_config_commands"; then
11011 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11014 cat >>$CONFIG_STATUS <<\_ACEOF
11017 \`$as_me' instantiates files from templates according to the
11018 current configuration.
11020 Usage: $0 [OPTIONS] [FILE]...
11022 -h, --help print this help, then exit
11023 -V, --version print version number, then exit
11024 -q, --quiet do not print progress messages
11025 -d, --debug don't remove temporary files
11026 --recheck update $as_me by reconfiguring in the same conditions
11027 --file=FILE[:TEMPLATE]
11028 instantiate the configuration file FILE
11029 --header=FILE[:TEMPLATE]
11030 instantiate the configuration header FILE
11032 Configuration files:
11035 Configuration headers:
11038 Configuration commands:
11041 Report bugs to <bug-autoconf@gnu.org>."
11044 cat >>$CONFIG_STATUS <<_ACEOF
11046 GNU OpenMP Runtime Library config.status 1.0
11047 configured by $0, generated by GNU Autoconf 2.59,
11048 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11050 Copyright (C) 2003 Free Software Foundation, Inc.
11051 This config.status script is free software; the Free Software Foundation
11052 gives unlimited permission to copy, distribute and modify it."
11057 cat >>$CONFIG_STATUS <<\_ACEOF
11058 # If no file are specified by the user, then we need to provide default
11059 # value. By we need to know if files were specified by the user.
11065 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11066 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11074 *) # This is not an option, so the user has probably given explicit
11077 ac_need_defaults=false;;
11081 # Handling of the options.
11083 cat >>$CONFIG_STATUS <<\_ACEOF
11084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11086 --version | --vers* | -V )
11087 echo "$ac_cs_version"; exit 0 ;;
11089 # Conflict between --help and --header
11090 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11091 Try \`$0 --help' for more information." >&5
11092 echo "$as_me: error: ambiguous option: $1
11093 Try \`$0 --help' for more information." >&2;}
11094 { (exit 1); exit 1; }; };;
11095 --help | --hel | -h )
11096 echo "$ac_cs_usage"; exit 0 ;;
11097 --debug | --d* | -d )
11099 --file | --fil | --fi | --f )
11101 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11102 ac_need_defaults=false;;
11103 --header | --heade | --head | --hea )
11105 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11106 ac_need_defaults=false;;
11107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11111 # This is an error.
11112 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11113 Try \`$0 --help' for more information." >&5
11114 echo "$as_me: error: unrecognized option: $1
11115 Try \`$0 --help' for more information." >&2;}
11116 { (exit 1); exit 1; }; } ;;
11118 *) ac_config_targets="$ac_config_targets $1" ;;
11124 ac_configure_extra_args=
11126 if $ac_cs_silent; then
11128 ac_configure_extra_args="$ac_configure_extra_args --silent"
11132 cat >>$CONFIG_STATUS <<_ACEOF
11133 if \$ac_cs_recheck; then
11134 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11135 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11140 cat >>$CONFIG_STATUS <<_ACEOF
11142 # INIT-COMMANDS section.
11149 with_multisubdir="$with_multisubdir"
11150 with_multisrctop="$with_multisrctop"
11151 with_target_subdir="$with_target_subdir"
11152 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11153 multi_basedir="$multi_basedir"
11154 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11156 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11160 acx_cv_header_stdint="$acx_cv_header_stdint"
11161 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11162 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11163 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11164 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11165 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11166 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11167 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11168 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11169 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11170 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11171 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11172 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11173 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11180 cat >>$CONFIG_STATUS <<\_ACEOF
11181 for ac_config_target in $ac_config_targets
11183 case "$ac_config_target" in
11184 # Handling of arguments.
11185 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11186 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11187 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11188 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11189 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11190 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11191 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11192 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11193 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11194 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11195 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11196 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11198 { (exit 1); exit 1; }; };;
11202 # If the user did not use the arguments to specify the items to instantiate,
11203 # then the envvar interface is used. Set only those that are not.
11204 # We use the long form for the default assignment because of an extremely
11205 # bizarre bug on SunOS 4.1.3.
11206 if $ac_need_defaults; then
11207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11212 # Have a temporary directory for convenience. Make it in the build tree
11213 # simply because there is no reason to put it here, and in addition,
11214 # creating and moving files from /tmp can sometimes cause problems.
11215 # Create a temporary directory, and hook for its removal unless debugging.
11218 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11219 trap '{ (exit 1); exit 1; }' 1 2 13 15
11222 # Create a (secure) tmp directory for tmp files.
11225 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11226 test -n "$tmp" && test -d "$tmp"
11229 tmp=./confstat$$-$RANDOM
11230 (umask 077 && mkdir $tmp)
11233 echo "$me: cannot create a temporary directory in ." >&2
11234 { (exit 1); exit 1; }
11239 cat >>$CONFIG_STATUS <<_ACEOF
11242 # CONFIG_FILES section.
11245 # No need to generate the scripts if there are no CONFIG_FILES.
11246 # This happens for instance when ./config.status config.h
11247 if test -n "\$CONFIG_FILES"; then
11248 # Protect against being on the right side of a sed subst in config.status.
11249 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11250 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11251 s,@SHELL@,$SHELL,;t t
11252 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11253 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11254 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11255 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11256 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11257 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11258 s,@exec_prefix@,$exec_prefix,;t t
11259 s,@prefix@,$prefix,;t t
11260 s,@program_transform_name@,$program_transform_name,;t t
11261 s,@bindir@,$bindir,;t t
11262 s,@sbindir@,$sbindir,;t t
11263 s,@libexecdir@,$libexecdir,;t t
11264 s,@datadir@,$datadir,;t t
11265 s,@sysconfdir@,$sysconfdir,;t t
11266 s,@sharedstatedir@,$sharedstatedir,;t t
11267 s,@localstatedir@,$localstatedir,;t t
11268 s,@libdir@,$libdir,;t t
11269 s,@includedir@,$includedir,;t t
11270 s,@oldincludedir@,$oldincludedir,;t t
11271 s,@infodir@,$infodir,;t t
11272 s,@mandir@,$mandir,;t t
11273 s,@build_alias@,$build_alias,;t t
11274 s,@host_alias@,$host_alias,;t t
11275 s,@target_alias@,$target_alias,;t t
11276 s,@DEFS@,$DEFS,;t t
11277 s,@ECHO_C@,$ECHO_C,;t t
11278 s,@ECHO_N@,$ECHO_N,;t t
11279 s,@ECHO_T@,$ECHO_T,;t t
11280 s,@LIBS@,$LIBS,;t t
11281 s,@build@,$build,;t t
11282 s,@build_cpu@,$build_cpu,;t t
11283 s,@build_vendor@,$build_vendor,;t t
11284 s,@build_os@,$build_os,;t t
11285 s,@host@,$host,;t t
11286 s,@host_cpu@,$host_cpu,;t t
11287 s,@host_vendor@,$host_vendor,;t t
11288 s,@host_os@,$host_os,;t t
11289 s,@target@,$target,;t t
11290 s,@target_cpu@,$target_cpu,;t t
11291 s,@target_vendor@,$target_vendor,;t t
11292 s,@target_os@,$target_os,;t t
11293 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11294 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11295 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11296 s,@CYGPATH_W@,$CYGPATH_W,;t t
11297 s,@PACKAGE@,$PACKAGE,;t t
11298 s,@VERSION@,$VERSION,;t t
11299 s,@ACLOCAL@,$ACLOCAL,;t t
11300 s,@AUTOCONF@,$AUTOCONF,;t t
11301 s,@AUTOMAKE@,$AUTOMAKE,;t t
11302 s,@AUTOHEADER@,$AUTOHEADER,;t t
11303 s,@MAKEINFO@,$MAKEINFO,;t t
11304 s,@install_sh@,$install_sh,;t t
11305 s,@STRIP@,$STRIP,;t t
11306 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11307 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11308 s,@mkdir_p@,$mkdir_p,;t t
11310 s,@SET_MAKE@,$SET_MAKE,;t t
11311 s,@am__leading_dot@,$am__leading_dot,;t t
11312 s,@AMTAR@,$AMTAR,;t t
11313 s,@am__tar@,$am__tar,;t t
11314 s,@am__untar@,$am__untar,;t t
11315 s,@multi_basedir@,$multi_basedir,;t t
11316 s,@toolexecdir@,$toolexecdir,;t t
11317 s,@toolexeclibdir@,$toolexeclibdir,;t t
11319 s,@ac_ct_CC@,$ac_ct_CC,;t t
11320 s,@EXEEXT@,$EXEEXT,;t t
11321 s,@OBJEXT@,$OBJEXT,;t t
11322 s,@DEPDIR@,$DEPDIR,;t t
11323 s,@am__include@,$am__include,;t t
11324 s,@am__quote@,$am__quote,;t t
11325 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11326 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11327 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11328 s,@CCDEPMODE@,$CCDEPMODE,;t t
11329 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11330 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11331 s,@CFLAGS@,$CFLAGS,;t t
11333 s,@ac_ct_AR@,$ac_ct_AR,;t t
11334 s,@RANLIB@,$RANLIB,;t t
11335 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11336 s,@PERL@,$PERL,;t t
11337 s,@LN_S@,$LN_S,;t t
11338 s,@LIBTOOL@,$LIBTOOL,;t t
11339 s,@enable_shared@,$enable_shared,;t t
11340 s,@enable_static@,$enable_static,;t t
11341 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11342 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11343 s,@MAINT@,$MAINT,;t t
11345 s,@FCFLAGS@,$FCFLAGS,;t t
11346 s,@LDFLAGS@,$LDFLAGS,;t t
11347 s,@ac_ct_FC@,$ac_ct_FC,;t t
11348 s,@libtool_VERSION@,$libtool_VERSION,;t t
11350 s,@CPPFLAGS@,$CPPFLAGS,;t t
11351 s,@EGREP@,$EGREP,;t t
11352 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11353 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11354 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11355 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11356 s,@config_path@,$config_path,;t t
11357 s,@XCFLAGS@,$XCFLAGS,;t t
11358 s,@XLDFLAGS@,$XLDFLAGS,;t t
11359 s,@link_gomp@,$link_gomp,;t t
11360 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11361 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11362 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11363 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11364 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11365 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11366 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11367 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11368 s,@LIBOBJS@,$LIBOBJS,;t t
11369 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11374 cat >>$CONFIG_STATUS <<\_ACEOF
11375 # Split the substitutions into bite-sized pieces for seds with
11376 # small command number limits, like on Digital OSF/1 and HP-UX.
11377 ac_max_sed_lines=48
11378 ac_sed_frag=1 # Number of current file.
11379 ac_beg=1 # First line for current file.
11380 ac_end=$ac_max_sed_lines # Line after last line for current file.
11383 while $ac_more_lines; do
11384 if test $ac_beg -gt 1; then
11385 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11387 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11389 if test ! -s $tmp/subs.frag; then
11390 ac_more_lines=false
11392 # The purpose of the label and of the branching condition is to
11393 # speed up the sed processing (if there are no `@' at all, there
11394 # is no need to browse any of the substitutions).
11395 # These are the two extra sed commands mentioned above.
11397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11398 if test -z "$ac_sed_cmds"; then
11399 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11401 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11403 ac_sed_frag=`expr $ac_sed_frag + 1`
11405 ac_end=`expr $ac_end + $ac_max_sed_lines`
11408 if test -z "$ac_sed_cmds"; then
11411 fi # test -n "$CONFIG_FILES"
11414 cat >>$CONFIG_STATUS <<\_ACEOF
11415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11418 - | *:- | *:-:* ) # input from stdin
11420 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11422 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11424 * ) ac_file_in=$ac_file.in ;;
11427 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11428 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11430 X"$ac_file" : 'X\(//\)[^/]' \| \
11431 X"$ac_file" : 'X\(//\)$' \| \
11432 X"$ac_file" : 'X\(/\)' \| \
11433 . : '\(.\)' 2>/dev/null ||
11435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11437 /^X\(\/\/\)$/{ s//\1/; q; }
11438 /^X\(\/\).*/{ s//\1/; q; }
11440 { if $as_mkdir_p; then
11445 while test ! -d "$as_dir"; do
11446 as_dirs="$as_dir $as_dirs"
11447 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11449 X"$as_dir" : 'X\(//\)[^/]' \| \
11450 X"$as_dir" : 'X\(//\)$' \| \
11451 X"$as_dir" : 'X\(/\)' \| \
11452 . : '\(.\)' 2>/dev/null ||
11454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11456 /^X\(\/\/\)$/{ s//\1/; q; }
11457 /^X\(\/\).*/{ s//\1/; q; }
11460 test ! -n "$as_dirs" || mkdir $as_dirs
11461 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11463 { (exit 1); exit 1; }; }; }
11467 if test "$ac_dir" != .; then
11468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11469 # A "../" for each directory in $ac_dir_suffix.
11470 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11472 ac_dir_suffix= ac_top_builddir=
11476 .) # No --srcdir option. We are building in place.
11478 if test -z "$ac_top_builddir"; then
11481 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11483 [\\/]* | ?:[\\/]* ) # Absolute path.
11484 ac_srcdir=$srcdir$ac_dir_suffix;
11485 ac_top_srcdir=$srcdir ;;
11486 *) # Relative path.
11487 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11488 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11491 # Do not use `cd foo && pwd` to compute absolute paths, because
11492 # the directories may not exist.
11494 .) ac_abs_builddir="$ac_dir";;
11497 .) ac_abs_builddir=`pwd`;;
11498 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11499 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11502 case $ac_abs_builddir in
11503 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11505 case ${ac_top_builddir}. in
11506 .) ac_abs_top_builddir=$ac_abs_builddir;;
11507 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11508 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11511 case $ac_abs_builddir in
11512 .) ac_abs_srcdir=$ac_srcdir;;
11515 .) ac_abs_srcdir=$ac_abs_builddir;;
11516 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11517 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11520 case $ac_abs_builddir in
11521 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11523 case $ac_top_srcdir in
11524 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11525 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11526 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11532 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11533 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11536 # Let's still pretend it is `configure' which instantiates (i.e., don't
11537 # use $as_me), people would be surprised to read:
11538 # /* config.h. Generated by config.status. */
11539 if test x"$ac_file" = x-; then
11542 configure_input="$ac_file. "
11544 configure_input=$configure_input"Generated from `echo $ac_file_in |
11545 sed 's,.*/,,'` by configure."
11547 # First look for the input files in the build tree, otherwise in the
11549 ac_file_inputs=`IFS=:
11550 for f in $ac_file_in; do
11552 -) echo $tmp/stdin ;;
11554 # Absolute (can't be DOS-style, as IFS=:)
11555 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11556 echo "$as_me: error: cannot find input file: $f" >&2;}
11557 { (exit 1); exit 1; }; }
11560 if test -f "$f"; then
11563 elif test -f "$srcdir/$f"; then
11568 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11569 echo "$as_me: error: cannot find input file: $f" >&2;}
11570 { (exit 1); exit 1; }; }
11573 done` || { (exit 1); exit 1; }
11575 if test x"$ac_file" != x-; then
11576 { echo "$as_me:$LINENO: creating $ac_file" >&5
11577 echo "$as_me: creating $ac_file" >&6;}
11581 cat >>$CONFIG_STATUS <<_ACEOF
11585 cat >>$CONFIG_STATUS <<\_ACEOF
11587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11588 s,@configure_input@,$configure_input,;t t
11589 s,@srcdir@,$ac_srcdir,;t t
11590 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11591 s,@top_srcdir@,$ac_top_srcdir,;t t
11592 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11593 s,@builddir@,$ac_builddir,;t t
11594 s,@abs_builddir@,$ac_abs_builddir,;t t
11595 s,@top_builddir@,$ac_top_builddir,;t t
11596 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11597 s,@INSTALL@,$ac_INSTALL,;t t
11598 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11600 if test x"$ac_file" != x-; then
11601 mv $tmp/out $ac_file
11609 cat >>$CONFIG_STATUS <<\_ACEOF
11612 # CONFIG_HEADER section.
11615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11618 # ac_d sets the value in "#define NAME VALUE" lines.
11619 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11620 ac_dB='[ ].*$,\1#\2'
11623 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11624 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11625 ac_uB='$,\1#\2define\3'
11629 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11632 - | *:- | *:-:* ) # input from stdin
11634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11638 * ) ac_file_in=$ac_file.in ;;
11641 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11642 echo "$as_me: creating $ac_file" >&6;}
11644 # First look for the input files in the build tree, otherwise in the
11646 ac_file_inputs=`IFS=:
11647 for f in $ac_file_in; do
11649 -) echo $tmp/stdin ;;
11651 # Absolute (can't be DOS-style, as IFS=:)
11652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11653 echo "$as_me: error: cannot find input file: $f" >&2;}
11654 { (exit 1); exit 1; }; }
11655 # Do quote $f, to prevent DOS paths from being IFS'd.
11658 if test -f "$f"; then
11661 elif test -f "$srcdir/$f"; then
11666 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11667 echo "$as_me: error: cannot find input file: $f" >&2;}
11668 { (exit 1); exit 1; }; }
11671 done` || { (exit 1); exit 1; }
11672 # Remove the trailing spaces.
11673 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11677 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11678 # `conftest.undefs', that substitutes the proper values into
11679 # config.h.in to produce config.h. The first handles `#define'
11680 # templates, and the second `#undef' templates.
11681 # And first: Protect against being on the right side of a sed subst in
11682 # config.status. Protect against being in an unquoted here document
11683 # in config.status.
11684 rm -f conftest.defines conftest.undefs
11685 # Using a here document instead of a string reduces the quoting nightmare.
11686 # Putting comments in sed scripts is not portable.
11688 # `end' is used to avoid that the second main sed command (meant for
11689 # 0-ary CPP macros) applies to n-ary macro definitions.
11690 # See the Autoconf documentation for `clear'.
11691 cat >confdef2sed.sed <<\_ACEOF
11696 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11698 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11701 # If some macros were called several times there might be several times
11702 # the same #defines, which is useless. Nevertheless, we may not want to
11703 # sort them, since we want the *last* AC-DEFINE to be honored.
11704 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11705 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11706 rm -f confdef2sed.sed
11708 # This sed command replaces #undef with comments. This is necessary, for
11709 # example, in the case of _POSIX_SOURCE, which is predefined and required
11710 # on some systems where configure will not decide to define it.
11711 cat >>conftest.undefs <<\_ACEOF
11712 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11715 # Break up conftest.defines because some shells have a limit on the size
11716 # of here documents, and old seds have small limits too (100 cmds).
11717 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11718 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11719 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11720 echo ' :' >>$CONFIG_STATUS
11721 rm -f conftest.tail
11722 while grep . conftest.defines >/dev/null
11724 # Write a limited-size here document to $tmp/defines.sed.
11725 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11726 # Speed up: don't consider the non `#define' lines.
11727 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11728 # Work around the forget-to-reset-the-flag bug.
11729 echo 't clr' >>$CONFIG_STATUS
11730 echo ': clr' >>$CONFIG_STATUS
11731 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11733 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11735 mv $tmp/out $tmp/in
11737 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11738 rm -f conftest.defines
11739 mv conftest.tail conftest.defines
11741 rm -f conftest.defines
11742 echo ' fi # grep' >>$CONFIG_STATUS
11743 echo >>$CONFIG_STATUS
11745 # Break up conftest.undefs because some shells have a limit on the size
11746 # of here documents, and old seds have small limits too (100 cmds).
11747 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11748 rm -f conftest.tail
11749 while grep . conftest.undefs >/dev/null
11751 # Write a limited-size here document to $tmp/undefs.sed.
11752 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11753 # Speed up: don't consider the non `#undef'
11754 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11755 # Work around the forget-to-reset-the-flag bug.
11756 echo 't clr' >>$CONFIG_STATUS
11757 echo ': clr' >>$CONFIG_STATUS
11758 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11760 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11762 mv $tmp/out $tmp/in
11764 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11765 rm -f conftest.undefs
11766 mv conftest.tail conftest.undefs
11768 rm -f conftest.undefs
11770 cat >>$CONFIG_STATUS <<\_ACEOF
11771 # Let's still pretend it is `configure' which instantiates (i.e., don't
11772 # use $as_me), people would be surprised to read:
11773 # /* config.h. Generated by config.status. */
11774 if test x"$ac_file" = x-; then
11775 echo "/* Generated by configure. */" >$tmp/config.h
11777 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11779 cat $tmp/in >>$tmp/config.h
11781 if test x"$ac_file" != x-; then
11782 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11783 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11784 echo "$as_me: $ac_file is unchanged" >&6;}
11786 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11788 X"$ac_file" : 'X\(//\)[^/]' \| \
11789 X"$ac_file" : 'X\(//\)$' \| \
11790 X"$ac_file" : 'X\(/\)' \| \
11791 . : '\(.\)' 2>/dev/null ||
11793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11795 /^X\(\/\/\)$/{ s//\1/; q; }
11796 /^X\(\/\).*/{ s//\1/; q; }
11798 { if $as_mkdir_p; then
11803 while test ! -d "$as_dir"; do
11804 as_dirs="$as_dir $as_dirs"
11805 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11807 X"$as_dir" : 'X\(//\)[^/]' \| \
11808 X"$as_dir" : 'X\(//\)$' \| \
11809 X"$as_dir" : 'X\(/\)' \| \
11810 . : '\(.\)' 2>/dev/null ||
11812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11814 /^X\(\/\/\)$/{ s//\1/; q; }
11815 /^X\(\/\).*/{ s//\1/; q; }
11818 test ! -n "$as_dirs" || mkdir $as_dirs
11819 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11820 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11821 { (exit 1); exit 1; }; }; }
11824 mv $tmp/config.h $ac_file
11828 rm -f $tmp/config.h
11830 # Compute $ac_file's index in $config_headers.
11832 for _am_header in $config_headers :; do
11833 case $_am_header in
11834 $ac_file | $ac_file:* )
11837 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11840 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11841 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11842 X$ac_file : 'X\(//\)[^/]' \| \
11843 X$ac_file : 'X\(//\)$' \| \
11844 X$ac_file : 'X\(/\)' \| \
11845 . : '\(.\)' 2>/dev/null ||
11847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11849 /^X\(\/\/\)$/{ s//\1/; q; }
11850 /^X\(\/\).*/{ s//\1/; q; }
11851 s/.*/./; q'`/stamp-h$_am_stamp_count
11854 cat >>$CONFIG_STATUS <<\_ACEOF
11857 # CONFIG_COMMANDS section.
11859 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11860 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11861 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11862 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11863 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11864 X"$ac_dest" : 'X\(//\)[^/]' \| \
11865 X"$ac_dest" : 'X\(//\)$' \| \
11866 X"$ac_dest" : 'X\(/\)' \| \
11867 . : '\(.\)' 2>/dev/null ||
11869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11871 /^X\(\/\/\)$/{ s//\1/; q; }
11872 /^X\(\/\).*/{ s//\1/; q; }
11874 { if $as_mkdir_p; then
11879 while test ! -d "$as_dir"; do
11880 as_dirs="$as_dir $as_dirs"
11881 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11883 X"$as_dir" : 'X\(//\)[^/]' \| \
11884 X"$as_dir" : 'X\(//\)$' \| \
11885 X"$as_dir" : 'X\(/\)' \| \
11886 . : '\(.\)' 2>/dev/null ||
11888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11890 /^X\(\/\/\)$/{ s//\1/; q; }
11891 /^X\(\/\).*/{ s//\1/; q; }
11894 test ! -n "$as_dirs" || mkdir $as_dirs
11895 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11896 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11897 { (exit 1); exit 1; }; }; }
11901 if test "$ac_dir" != .; then
11902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11903 # A "../" for each directory in $ac_dir_suffix.
11904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11906 ac_dir_suffix= ac_top_builddir=
11910 .) # No --srcdir option. We are building in place.
11912 if test -z "$ac_top_builddir"; then
11915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11917 [\\/]* | ?:[\\/]* ) # Absolute path.
11918 ac_srcdir=$srcdir$ac_dir_suffix;
11919 ac_top_srcdir=$srcdir ;;
11920 *) # Relative path.
11921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11925 # Do not use `cd foo && pwd` to compute absolute paths, because
11926 # the directories may not exist.
11928 .) ac_abs_builddir="$ac_dir";;
11931 .) ac_abs_builddir=`pwd`;;
11932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11936 case $ac_abs_builddir in
11937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11939 case ${ac_top_builddir}. in
11940 .) ac_abs_top_builddir=$ac_abs_builddir;;
11941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11945 case $ac_abs_builddir in
11946 .) ac_abs_srcdir=$ac_srcdir;;
11949 .) ac_abs_srcdir=$ac_abs_builddir;;
11950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11954 case $ac_abs_builddir in
11955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11957 case $ac_top_srcdir in
11958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11965 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11966 echo "$as_me: executing $ac_dest commands" >&6;}
11969 # Only add multilib support code if we just rebuilt the top-level
11971 case " $CONFIG_FILES " in
11973 ac_file=Makefile . ${multi_basedir}/config-ml.in
11976 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11977 # Strip MF so we end up with the name of the file.
11978 mf=`echo "$mf" | sed -e 's/:.*$//'`
11979 # Check whether this is an Automake generated Makefile or not.
11980 # We used to match only the files named `Makefile.in', but
11981 # some people rename them; so instead we look at the file content.
11982 # Grep'ing the first line is not enough: some people post-process
11983 # each Makefile.in and add a new line on top of each file to say so.
11984 # So let's grep whole file.
11985 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11986 dirpart=`(dirname "$mf") 2>/dev/null ||
11987 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11988 X"$mf" : 'X\(//\)[^/]' \| \
11989 X"$mf" : 'X\(//\)$' \| \
11990 X"$mf" : 'X\(/\)' \| \
11991 . : '\(.\)' 2>/dev/null ||
11993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11995 /^X\(\/\/\)$/{ s//\1/; q; }
11996 /^X\(\/\).*/{ s//\1/; q; }
12001 # Extract the definition of DEPDIR, am__include, and am__quote
12002 # from the Makefile without running `make'.
12003 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12004 test -z "$DEPDIR" && continue
12005 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12006 test -z "am__include" && continue
12007 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12008 # When using ansi2knr, U may be empty or an underscore; expand it
12009 U=`sed -n 's/^U = //p' < "$mf"`
12010 # Find all dependency output files, they are included files with
12011 # $(DEPDIR) in their names. We invoke sed twice because it is the
12012 # simplest approach to changing $(DEPDIR) to its actual value in the
12014 for file in `sed -n "
12015 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12016 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12017 # Make sure the directory exists.
12018 test -f "$dirpart/$file" && continue
12019 fdir=`(dirname "$file") 2>/dev/null ||
12020 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12021 X"$file" : 'X\(//\)[^/]' \| \
12022 X"$file" : 'X\(//\)$' \| \
12023 X"$file" : 'X\(/\)' \| \
12024 . : '\(.\)' 2>/dev/null ||
12026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12028 /^X\(\/\/\)$/{ s//\1/; q; }
12029 /^X\(\/\).*/{ s//\1/; q; }
12031 { if $as_mkdir_p; then
12032 mkdir -p $dirpart/$fdir
12034 as_dir=$dirpart/$fdir
12036 while test ! -d "$as_dir"; do
12037 as_dirs="$as_dir $as_dirs"
12038 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12040 X"$as_dir" : 'X\(//\)[^/]' \| \
12041 X"$as_dir" : 'X\(//\)$' \| \
12042 X"$as_dir" : 'X\(/\)' \| \
12043 . : '\(.\)' 2>/dev/null ||
12045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12047 /^X\(\/\/\)$/{ s//\1/; q; }
12048 /^X\(\/\).*/{ s//\1/; q; }
12051 test ! -n "$as_dirs" || mkdir $as_dirs
12052 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12053 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12054 { (exit 1); exit 1; }; }; }
12056 # echo "creating $dirpart/$file"
12057 echo '# dummy' > "$dirpart/$file"
12062 if test "$GCC" = yes; then
12063 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12065 echo "/* generated for $CC */" > tmp-stdint.h
12068 sed 's/^ *//' >> tmp-stdint.h <<EOF
12070 #ifndef GCC_GENERATED_STDINT_H
12071 #define GCC_GENERATED_STDINT_H 1
12073 #include <sys/types.h>
12076 if test "$acx_cv_header_stdint" != stdint.h; then
12077 echo "#include <stddef.h>" >> tmp-stdint.h
12079 if test "$acx_cv_header_stdint" != stddef.h; then
12080 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12083 sed 's/^ *//' >> tmp-stdint.h <<EOF
12084 /* glibc uses these symbols as guards to prevent redefinitions. */
12085 #ifdef __int8_t_defined
12090 #ifdef __uint32_t_defined
12096 # ----------------- done header, emit basic int types -------------
12097 if test "$acx_cv_header_stdint" = stddef.h; then
12098 sed 's/^ *//' >> tmp-stdint.h <<EOF
12102 typedef unsigned $acx_cv_type_int8_t uint8_t;
12107 typedef unsigned $acx_cv_type_int16_t uint16_t;
12112 typedef unsigned $acx_cv_type_int32_t uint32_t;
12117 typedef $acx_cv_type_int8_t int8_t;
12122 typedef $acx_cv_type_int16_t int16_t;
12127 typedef $acx_cv_type_int32_t int32_t;
12130 elif test "$ac_cv_type_u_int32_t" = yes; then
12131 sed 's/^ *//' >> tmp-stdint.h <<EOF
12133 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12146 typedef u_int8_t uint8_t;
12151 typedef u_int16_t uint16_t;
12156 typedef u_int32_t uint32_t;
12160 sed 's/^ *//' >> tmp-stdint.h <<EOF
12162 /* Some systems have guard macros to prevent redefinitions, define them. */
12184 # ------------- done basic int types, emit int64_t types ------------
12185 if test "$ac_cv_type_uint64_t" = yes; then
12186 sed 's/^ *//' >> tmp-stdint.h <<EOF
12188 /* system headers have good uint64_t and int64_t */
12196 elif test "$ac_cv_type_u_int64_t" = yes; then
12197 sed 's/^ *//' >> tmp-stdint.h <<EOF
12199 /* system headers have an u_int64_t (and int64_t) */
12205 typedef u_int64_t uint64_t;
12208 elif test -n "$acx_cv_type_int64_t"; then
12209 sed 's/^ *//' >> tmp-stdint.h <<EOF
12211 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12214 typedef $acx_cv_type_int64_t int64_t;
12218 typedef unsigned $acx_cv_type_int64_t uint64_t;
12222 sed 's/^ *//' >> tmp-stdint.h <<EOF
12224 /* some common heuristics for int64_t, using compiler-specific tests */
12225 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12228 typedef long long int64_t;
12232 typedef unsigned long long uint64_t;
12235 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12236 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12237 does not implement __extension__. But that compiler doesn't define
12239 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12240 # define __extension__
12245 __extension__ typedef long long int64_t;
12249 __extension__ typedef unsigned long long uint64_t;
12252 #elif !defined __STRICT_ANSI__
12253 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12257 typedef __int64 int64_t;
12261 typedef unsigned __int64 uint64_t;
12263 # endif /* compiler */
12265 #endif /* ANSI version */
12269 # ------------- done int64_t types, emit intptr types ------------
12270 if test "$ac_cv_type_uintptr_t" != yes; then
12271 sed 's/^ *//' >> tmp-stdint.h <<EOF
12273 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12274 typedef u$acx_cv_type_intptr_t uintptr_t;
12275 typedef $acx_cv_type_intptr_t intptr_t;
12279 # ------------- done intptr types, emit int_least types ------------
12280 if test "$ac_cv_type_int_least32_t" != yes; then
12281 sed 's/^ *//' >> tmp-stdint.h <<EOF
12283 /* Define int_least types */
12284 typedef int8_t int_least8_t;
12285 typedef int16_t int_least16_t;
12286 typedef int32_t int_least32_t;
12288 typedef int64_t int_least64_t;
12291 typedef uint8_t uint_least8_t;
12292 typedef uint16_t uint_least16_t;
12293 typedef uint32_t uint_least32_t;
12295 typedef uint64_t uint_least64_t;
12300 # ------------- done intptr types, emit int_fast types ------------
12301 if test "$ac_cv_type_int_fast32_t" != yes; then
12302 sed 's/^ *//' >> tmp-stdint.h <<EOF
12304 /* Define int_fast types. short is often slow */
12305 typedef int8_t int_fast8_t;
12306 typedef int int_fast16_t;
12307 typedef int32_t int_fast32_t;
12309 typedef int64_t int_fast64_t;
12312 typedef uint8_t uint_fast8_t;
12313 typedef unsigned int uint_fast16_t;
12314 typedef uint32_t uint_fast32_t;
12316 typedef uint64_t uint_fast64_t;
12321 if test "$ac_cv_type_uintmax_t" != yes; then
12322 sed 's/^ *//' >> tmp-stdint.h <<EOF
12324 /* Define intmax based on what we found */
12326 typedef int64_t intmax_t;
12328 typedef long intmax_t;
12331 typedef uint64_t uintmax_t;
12333 typedef unsigned long uintmax_t;
12338 sed 's/^ *//' >> tmp-stdint.h <<EOF
12340 #endif /* GCC_GENERATED_STDINT_H */
12343 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12346 mv -f tmp-stdint.h gstdint.h
12354 cat >>$CONFIG_STATUS <<\_ACEOF
12356 { (exit 0); exit 0; }
12358 chmod +x $CONFIG_STATUS
12359 ac_clean_files=$ac_clean_files_save
12362 # configure is writing to config.log, and then calls config.status.
12363 # config.status does its own redirection, appending to config.log.
12364 # Unfortunately, on DOS this fails, as config.log is still kept open
12365 # by configure, so config.status won't be able to write to it; its
12366 # output is simply discarded. So we exec the FD to /dev/null,
12367 # effectively closing config.log, so it can be properly (re)opened and
12368 # appended to by config.status. When coming back to configure, we
12369 # need to make the FD available again.
12370 if test "$no_create" != yes; then
12372 ac_config_status_args=
12373 test "$silent" = yes &&
12374 ac_config_status_args="$ac_config_status_args --quiet"
12376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12379 # would make configure fail if this is the last instruction.
12380 $ac_cs_success || { (exit 1); exit 1; }