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 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
423 # Factoring default headers for most tests.
424 ac_includes_default="\
427 # include <sys/types.h>
430 # include <sys/stat.h>
441 # if !STDC_HEADERS && HAVE_MEMORY_H
447 # include <strings.h>
450 # include <inttypes.h>
460 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION 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 OMP_LOCK_25_SIZE OMP_LOCK_25_ALIGN OMP_NEST_LOCK_25_SIZE OMP_NEST_LOCK_25_ALIGN OMP_LOCK_25_KIND OMP_NEST_LOCK_25_KIND LIBOBJS LTLIBOBJS'
464 # Initialize some variables set by options.
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name=s,x,x,
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
579 -help | --help | --hel | --he | -h)
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 # Obsolete; use --without-fp.
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
709 -site=* | --site=* | --sit=*)
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 -version | --version | --versio | --versi | --vers | -V)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
758 # Obsolete; use --with-x.
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_FC_set=${FC+set}
912 ac_cv_env_FC_set=${FC+set}
913 ac_cv_env_FC_value=$FC
914 ac_env_FCFLAGS_set=${FCFLAGS+set}
915 ac_env_FCFLAGS_value=$FCFLAGS
916 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
917 ac_cv_env_FCFLAGS_value=$FCFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 # Report the --help message.
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
930 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
932 Usage: $0 [OPTION]... [VAR=VALUE]...
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
937 Defaults for the options are specified in brackets.
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
964 For better control, use the options below.
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
995 if test -n "$ac_init_help"; then
996 case $ac_init_help in
997 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1002 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1003 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1004 --enable-version-specific-runtime-libs
1005 Specify that runtime libraries should be installed
1006 in a compiler-specific directory [default=no]
1007 --enable-generated-files-in-srcdir
1008 put copies of generated files in source dir intended
1009 for creating source tarballs for users without
1010 texinfo bison or flex. [default=no]
1011 --enable-multilib build many library versions (default)
1012 --disable-dependency-tracking speeds up one-time build
1013 --enable-dependency-tracking do not reject slow dependency extractors
1014 --enable-shared[=PKGS]
1015 build shared libraries [default=yes]
1016 --enable-static[=PKGS]
1017 build static libraries [default=yes]
1018 --enable-fast-install[=PKGS]
1019 optimize for fast installation [default=yes]
1020 --disable-libtool-lock avoid locking (might break parallel builds)
1021 --enable-maintainer-mode enable make rules and dependencies not useful
1022 (and sometimes confusing) to the casual installer
1023 --enable-linux-futex use the Linux futex system call
1025 --enable-tls Use thread-local storage [default=yes]
1026 --enable-symvers=STYLE enables symbol versioning of the shared library
1030 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1031 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1032 --with-pic try to use only PIC/non-PIC objects [default=use
1034 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1036 Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1044 FC Fortran compiler command
1045 FCFLAGS Fortran compiler flags
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 ac_dir_suffix= ac_top_builddir=
1069 .) # No --srcdir option. We are building in place.
1071 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1087 .) ac_abs_builddir="$ac_dir";;
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1134 $ac_configure --help
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1145 GNU OpenMP Runtime Library configure 1.0
1146 generated by GNU Autoconf 2.59
1148 Copyright (C) 2003 Free Software Foundation, Inc.
1149 This configure script is free software; the Free Software Foundation
1150 gives unlimited permission to copy, distribute and modify it.
1156 This file contains any messages produced by compilers while
1157 running configure, to aid debugging if configure makes a mistake.
1159 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1160 generated by GNU Autoconf 2.59. Invocation command line was
1171 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1177 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1180 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1184 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1210 # Keep a trace of the command line.
1211 # Strip out --no-create and --no-recursion so they do not pile up.
1212 # Strip out --silent because we don't want to record it for future runs.
1213 # Also quote any args containing shell meta-characters.
1214 # Make two passes to allow for proper duplicate-argument suppression.
1219 ac_must_keep_next=false
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1248 -* ) ac_must_keep_next=true ;;
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1258 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1261 # When interrupted or exit'd, cleanup temporary files, and complete
1262 # config.log. We remove comments because anyway the quotes in there
1263 # would cause problems or look ugly.
1264 # WARNING: Be sure not to use single quotes in there, as some shells,
1265 # such as our DU 5.0 friend, will then `close' the trap.
1266 trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1272 ## ---------------- ##
1273 ## Cache variables. ##
1274 ## ---------------- ##
1277 # The following way of writing the cache mishandles newlines in values,
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1295 ## ----------------- ##
1296 ## Output variables. ##
1297 ## ----------------- ##
1300 for ac_var in $ac_subst_vars
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1307 if test -n "$ac_subst_files"; then
1314 for ac_var in $ac_subst_files
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1322 if test -s confdefs.h; then
1329 sed "/^$/d" confdefs.h | sort
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1340 for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1346 rm -rf conftest* confdefs.h
1347 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1350 # Predefined preprocessor variables.
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_NAME "$PACKAGE_NAME"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_STRING "$PACKAGE_STRING"
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377 # Let the site file select an alternate cache file if it wants to.
1378 # Prefer explicitly selected file to automatically selected ones.
1379 if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1386 for ac_site_file in $CONFIG_SITE; do
1387 if test -r "$ac_site_file"; then
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389 echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
1395 if test -r "$cache_file"; then
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400 echo "$as_me: loading cache $cache_file" >&6;}
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408 echo "$as_me: creating cache $cache_file" >&6;}
1412 # Check that the precious variables saved in the cache have kept the same
1414 ac_cache_corrupted=false
1415 for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1421 case $ac_old_set,$ac_new_set in
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439 ac_cache_corrupted=:
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1464 if $ac_cache_corrupted; then
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509 ac_config_headers="$ac_config_headers config.h"
1516 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1517 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1518 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1519 if test "${enable_version_specific_runtime_libs+set}" = set; then
1520 enableval="$enable_version_specific_runtime_libs"
1522 case "$enableval" in
1524 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1525 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1526 { (exit 1); exit 1; }; } ;;
1530 enable_version_specific_runtime_libs=no
1533 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1534 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1536 # We would like our source tree to be readonly. However when releases or
1537 # pre-releases are generated, the flex/bison generated files as well as the
1538 # various formats of manuals need to be included along with the rest of the
1539 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1541 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1542 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1543 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1544 if test "${enable_generated_files_in_srcdir+set}" = set; then
1545 enableval="$enable_generated_files_in_srcdir"
1547 case "$enableval" in
1549 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1550 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1551 { (exit 1); exit 1; }; } ;;
1555 enable_generated_files_in_srcdir=no
1558 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1559 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1562 if test "$enable_generated_files_in_srcdir" = yes; then
1575 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1577 # You will slowly go insane if you do not grok the following fact: when
1578 # building this library, the top-level /target/ becomes the library's /host/.
1580 # configure then causes --target to default to --host, exactly like any
1581 # other package using autoconf. Therefore, 'target' and 'host' will
1582 # always be the same. This makes sense both for native and cross compilers
1583 # just think about it for a little while. :-)
1585 # Also, if this library is being configured as part of a cross compiler, the
1586 # top-level configure script will pass the "real" host as $with_cross_host.
1588 # Do not delete or change the following two lines. For why, see
1589 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1592 if test -f $ac_dir/install-sh; then
1594 ac_install_sh="$ac_aux_dir/install-sh -c"
1596 elif test -f $ac_dir/install.sh; then
1598 ac_install_sh="$ac_aux_dir/install.sh -c"
1600 elif test -f $ac_dir/shtool; then
1602 ac_install_sh="$ac_aux_dir/shtool install -c"
1606 if test -z "$ac_aux_dir"; then
1607 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1608 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1609 { (exit 1); exit 1; }; }
1611 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1696 program_prefix=${target_alias}-
1697 target_alias=${target_alias-$host_alias}
1699 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1700 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1701 # 1.9.0: minimum required version
1702 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1703 # of other PACKAGE_* variables will, however, and there's nothing
1704 # we can do about that; they come from AC_INIT).
1705 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1706 # file in the top srcdir, etc, etc), so stop complaining.
1707 # -Wall: turns on all automake warnings...
1708 # -Wno-portability: ...except this one, since GNU make is required.
1709 # -Wno-override: ... and this one, since we do want this in testsuite.
1710 am__api_version="1.9"
1711 # Find a good install program. We prefer a C program (faster),
1712 # so one script is as good as another. But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 # Reject install programs that cannot install multiple files.
1725 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1726 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1727 if test -z "$INSTALL"; then
1728 if test "${ac_cv_path_install+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 # Account for people who put trailing slashes in PATH elements.
1738 ./ | .// | /cC/* | \
1739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1740 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1743 # OSF1 and SCO ODT 3.0 have their own names for install.
1744 # Don't use installbsd from OSF since it installs stuff as root
1746 for ac_prog in ginstall scoinst install; do
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1749 if test $ac_prog = install &&
1750 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751 # AIX install. It has an incompatible calling convention.
1753 elif test $ac_prog = install &&
1754 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755 # program-specific install script used by HP pwplus--don't use.
1758 rm -rf conftest.one conftest.two conftest.dir
1759 echo one > conftest.one
1760 echo two > conftest.two
1762 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1763 test -s conftest.one && test -s conftest.two &&
1764 test -s conftest.dir/conftest.one &&
1765 test -s conftest.dir/conftest.two
1767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1778 rm -rf conftest.one conftest.two conftest.dir
1781 if test "${ac_cv_path_install+set}" = set; then
1782 INSTALL=$ac_cv_path_install
1784 # As a last resort, use the slow shell script. Don't cache a
1785 # value for INSTALL within a source directory, because that will
1786 # break other packages using the cache if that directory is
1787 # removed, or if the value is a relative name.
1788 INSTALL=$ac_install_sh
1791 echo "$as_me:$LINENO: result: $INSTALL" >&5
1792 echo "${ECHO_T}$INSTALL" >&6
1794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1795 # It thinks the first close brace ends the variable substitution.
1796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1802 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1803 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1806 echo timestamp > conftest.file
1807 # Do `set' in a subshell so we don't clobber the current shell's
1808 # arguments. Must try -L first in case configure is actually a
1809 # symlink; some systems play weird games with the mod time of symlinks
1810 # (eg FreeBSD returns the mod time of the symlink's containing
1813 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1814 if test "$*" = "X"; then
1816 set X `ls -t $srcdir/configure conftest.file`
1819 if test "$*" != "X $srcdir/configure conftest.file" \
1820 && test "$*" != "X conftest.file $srcdir/configure"; then
1822 # If neither matched, then we have a broken ls. This can happen
1823 # if, for instance, CONFIG_SHELL is bash and it inherits a
1824 # broken ls alias from the environment. This has actually
1825 # happened. Such a system could not be considered "sane".
1826 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1827 alias in your environment" >&5
1828 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1829 alias in your environment" >&2;}
1830 { (exit 1); exit 1; }; }
1833 test "$2" = conftest.file
1839 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1840 Check your system clock" >&5
1841 echo "$as_me: error: newly created file is older than distributed files!
1842 Check your system clock" >&2;}
1843 { (exit 1); exit 1; }; }
1845 echo "$as_me:$LINENO: result: yes" >&5
1846 echo "${ECHO_T}yes" >&6
1847 test "$program_prefix" != NONE &&
1848 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1849 # Use a double $ so make ignores it.
1850 test "$program_suffix" != NONE &&
1851 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1852 # Double any \ or $. echo might interpret backslashes.
1853 # By default was `s,x,x', remove it if useless.
1854 cat <<\_ACEOF >conftest.sed
1855 s/[\\$]/&&/g;s/;s,x,x,$//
1857 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1860 # expand $ac_aux_dir to an absolute path
1861 am_aux_dir=`cd $ac_aux_dir && pwd`
1863 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1864 # Use eval to expand $SHELL
1865 if eval "$MISSING --run true"; then
1866 am_missing_run="$MISSING --run "
1869 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1870 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1873 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1874 # We used to keeping the `.' as first argument, in order to
1875 # allow $(mkdir_p) to be used without argument. As in
1876 # $(mkdir_p) $(somedir)
1877 # where $(somedir) is conditionally defined. However this is wrong
1879 # 1. if the package is installed by a user who cannot write `.'
1880 # make install will fail,
1881 # 2. the above comment should most certainly read
1882 # $(mkdir_p) $(DESTDIR)$(somedir)
1883 # so it does not work when $(somedir) is undefined and
1884 # $(DESTDIR) is not.
1885 # To support the latter case, we have to write
1886 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1887 # so the `.' trick is pointless.
1888 mkdir_p='mkdir -p --'
1890 # On NextStep and OpenStep, the `mkdir' command does not
1891 # recognize any option. It will interpret all options as
1892 # directories to create, and then abort because `.' already
1894 for d in ./-p ./--version;
1896 test -d $d && rmdir $d
1898 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1899 if test -f "$ac_aux_dir/mkinstalldirs"; then
1900 mkdir_p='$(mkinstalldirs)'
1902 mkdir_p='$(install_sh) -d'
1906 for ac_prog in gawk mawk nawk awk
1908 # Extract the first word of "$ac_prog", so it can be a program name with args.
1909 set dummy $ac_prog; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_AWK+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$AWK"; then
1916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_AWK="$ac_prog"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 if test -n "$AWK"; then
1936 echo "$as_me:$LINENO: result: $AWK" >&5
1937 echo "${ECHO_T}$AWK" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1943 test -n "$AWK" && break
1946 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1948 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1949 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 cat >conftest.make <<\_ACEOF
1954 @echo 'ac_maketemp="$(MAKE)"'
1956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1957 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1958 if test -n "$ac_maketemp"; then
1959 eval ac_cv_prog_make_${ac_make}_set=yes
1961 eval ac_cv_prog_make_${ac_make}_set=no
1965 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1966 echo "$as_me:$LINENO: result: yes" >&5
1967 echo "${ECHO_T}yes" >&6
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1972 SET_MAKE="MAKE=${MAKE-make}"
1975 rm -rf .tst 2>/dev/null
1976 mkdir .tst 2>/dev/null
1977 if test -d .tst; then
1982 rmdir .tst 2>/dev/null
1984 # test to see if srcdir already configured
1985 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1986 test -f $srcdir/config.status; then
1987 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1988 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1989 { (exit 1); exit 1; }; }
1992 # test whether we have cygpath
1993 if test -z "$CYGPATH_W"; then
1994 if (cygpath --version) >/dev/null 2>/dev/null; then
1995 CYGPATH_W='cygpath -w'
2002 # Define the identity of the package.
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE "$PACKAGE"
2012 cat >>confdefs.h <<_ACEOF
2013 #define VERSION "$VERSION"
2016 # Some tools Automake needs.
2018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2032 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2034 # Installed binaries are usually stripped using `strip' when the user
2035 # run `make install-strip'. However `strip' might not be the right
2036 # tool to use in cross-compilation environments, therefore Automake
2037 # will honor the `STRIP' environment variable to overrule this program.
2038 if test "$cross_compiling" != no; then
2039 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$STRIP"; then
2048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 STRIP=$ac_cv_prog_STRIP
2067 if test -n "$STRIP"; then
2068 echo "$as_me:$LINENO: result: $STRIP" >&5
2069 echo "${ECHO_T}$STRIP" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2076 if test -z "$ac_cv_prog_STRIP"; then
2078 # Extract the first word of "strip", so it can be a program name with args.
2079 set dummy strip; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test -n "$ac_ct_STRIP"; then
2086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_ac_ct_STRIP="strip"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2106 if test -n "$ac_ct_STRIP"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2108 echo "${ECHO_T}$ac_ct_STRIP" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2116 STRIP="$ac_cv_prog_STRIP"
2120 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2122 # We need awk for the "check" target. The system "awk" is bad on
2124 # Always define AMTAR for backward compatibility.
2126 AMTAR=${AMTAR-"${am_missing_run}tar"}
2128 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2134 # Default to --enable-multilib
2135 # Check whether --enable-multilib or --disable-multilib was given.
2136 if test "${enable_multilib+set}" = set; then
2137 enableval="$enable_multilib"
2138 case "$enableval" in
2139 yes) multilib=yes ;;
2141 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2142 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2143 { (exit 1); exit 1; }; } ;;
2149 # We may get other options which we leave undocumented:
2150 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2151 # See config-ml.in if you want the gory details.
2153 if test "$srcdir" = "."; then
2154 if test "$with_target_subdir" != "."; then
2155 multi_basedir="$srcdir/$with_multisrctop../.."
2157 multi_basedir="$srcdir/$with_multisrctop.."
2160 multi_basedir="$srcdir/.."
2164 # Even if the default multilib is not a cross compilation,
2165 # it may be that some of the other multilibs are.
2166 if test $cross_compiling = no && test $multilib = yes \
2167 && test "x${with_multisubdir}" != x ; then
2168 cross_compiling=maybe
2171 ac_config_commands="$ac_config_commands default-1"
2174 # Calculate toolexeclibdir
2175 # Also toolexecdir, though it's only used in toolexeclibdir
2176 case ${enable_version_specific_runtime_libs} in
2178 # Need the gcc compiler version to know where to install libraries
2179 # and header files if --enable-version-specific-runtime-libs option
2181 toolexecdir='$(libdir)/gcc/$(target_alias)'
2182 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2185 if test -n "$with_cross_host" &&
2186 test x"$with_cross_host" != x"no"; then
2187 # Install a library built with a cross compiler in tooldir, not libdir.
2188 toolexecdir='$(exec_prefix)/$(target_alias)'
2189 toolexeclibdir='$(toolexecdir)/lib'
2191 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2192 toolexeclibdir='$(libdir)'
2194 multi_os_directory=`$CC -print-multi-os-directory`
2195 case $multi_os_directory in
2196 .) ;; # Avoid trailing /.
2197 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2204 # Check the compiler.
2205 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2206 # We must force CC to /not/ be precious variables; otherwise
2207 # the wrong, non-multilib-adjusted value will be used in multilibs.
2208 # As a side effect, we have to subst CFLAGS ourselves.
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2254 if test -z "$ac_cv_prog_CC"; then
2256 # Extract the first word of "gcc", so it can be a program name with args.
2257 set dummy gcc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 if test -n "$ac_ct_CC"; then
2264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273 ac_cv_prog_ac_ct_CC="gcc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285 echo "${ECHO_T}$ac_ct_CC" >&6
2287 echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2296 if test -z "$CC"; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 ac_cv_prog_CC="${ac_tool_prefix}cc"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 if test -n "$CC"; then
2326 echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6
2329 echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2334 if test -z "$ac_cv_prog_CC"; then
2336 # Extract the first word of "cc", so it can be a program name with args.
2337 set dummy cc; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC="cc"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2377 if test -z "$CC"; then
2378 # Extract the first word of "cc", so it can be a program name with args.
2379 set dummy cc; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2397 ac_prog_rejected=yes
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 if test $ac_prog_rejected = yes; then
2408 # We found a bogon in the path, so make sure we never use it.
2409 set dummy $ac_cv_prog_CC
2411 if test $# != 0; then
2412 # We chose a different compiler from the bogus one.
2413 # However, it has the same basename, so the bogon will be chosen
2414 # first if we set CC to just the basename; use the full file name.
2416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2422 if test -n "$CC"; then
2423 echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6
2426 echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2431 if test -z "$CC"; then
2432 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2466 echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2470 test -n "$CC" && break
2473 if test -z "$CC"; then
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy $ac_prog; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="$ac_prog"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2512 test -n "$ac_ct_CC" && break
2521 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2522 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: no acceptable C compiler found in \$PATH
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }; }
2529 # Provide some information about the compiler.
2530 echo "$as_me:$LINENO:" \
2531 "checking for C compiler version" >&5
2532 ac_compiler=`set X $ac_compile; echo $2`
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2534 (eval $ac_compiler --version </dev/null >&5) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2539 (eval $ac_compiler -v </dev/null >&5) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2544 (eval $ac_compiler -V </dev/null >&5) 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2564 ac_clean_files_save=$ac_clean_files
2565 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2566 # Try to create an executable without -o first, disregard a.out.
2567 # It will help us diagnose broken compilers, and finding out an intuition
2569 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2573 (eval $ac_link_default) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; then
2577 # Find the output, starting from the most likely. This scheme is
2578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2581 # Be careful to initialize this variable, since it used to be cached.
2582 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2584 # b.out is created by i960 compilers.
2585 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2587 test -f "$ac_file" || continue
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2592 # This is the source file.
2595 # We found the default executable, but exeext='' is most
2599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600 # FIXME: I believe we export ac_cv_exeext for Libtool,
2601 # but it would be cool to find out if it's true. Does anybody
2602 # maintain Libtool? --akim.
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: C compiler cannot create executables
2618 See \`config.log' for more details." >&2;}
2619 { (exit 77); exit 77; }; }; }
2622 ac_exeext=$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_file" >&5
2624 echo "${ECHO_T}$ac_file" >&6
2626 # Check the compiler produces executables we can run. If not, either
2627 # the compiler is broken, or we cross compile.
2628 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2629 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2630 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2631 # If not cross compiling, check that we can run a simple program.
2632 if test "$cross_compiling" != yes; then
2633 if { ac_try='./$ac_file'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 if test "$cross_compiling" = maybe; then
2644 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2647 If you meant to cross compile, use \`--host'.
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: cannot run C compiled programs.
2650 If you meant to cross compile, use \`--host'.
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }; }
2656 echo "$as_me:$LINENO: result: yes" >&5
2657 echo "${ECHO_T}yes" >&6
2659 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2660 ac_clean_files=$ac_clean_files_save
2661 # Check the compiler produces executables we can run. If not, either
2662 # the compiler is broken, or we cross compile.
2663 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2665 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666 echo "${ECHO_T}$cross_compiling" >&6
2668 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; then
2675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2679 for ac_file in conftest.exe conftest conftest.*; do
2680 test -f "$ac_file" || continue
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2690 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }; }
2699 rm -f conftest$ac_cv_exeext
2700 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2701 echo "${ECHO_T}$ac_cv_exeext" >&6
2703 rm -f conftest.$ac_ext
2704 EXEEXT=$ac_cv_exeext
2706 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2707 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2708 if test "${ac_cv_objext+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2726 rm -f conftest.o conftest.obj
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2732 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2744 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }; }
2752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2754 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2755 echo "${ECHO_T}$ac_cv_objext" >&6
2756 OBJEXT=$ac_cv_objext
2758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2814 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2816 GCC=`test $ac_compiler_gnu = yes && echo yes`
2817 ac_test_CFLAGS=${CFLAGS+set}
2818 ac_save_CFLAGS=$CFLAGS
2820 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2821 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2822 if test "${ac_cv_prog_cc_g+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>conftest.er1
2844 grep -v '^ *+' conftest.er1 >conftest.err
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2873 if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2882 if test "$GCC" = yes; then
2888 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2889 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2890 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 ac_cv_prog_cc_stdc=no
2895 cat >conftest.$ac_ext <<_ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2919 s = g (p, va_arg (v,int));
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
2927 as 'x'. The following induces an error, until -std1 is added to get
2928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
2930 that's true only with -std1. */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933 int test (int i, double x);
2934 struct s1 {int (*f) (int a);};
2935 struct s2 {int (*f) (double a);};
2936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2947 # Don't try gcc -ansi; that turns off useful extensions and
2948 # breaks some systems' header files.
2949 # AIX -qlanglvl=ansi
2950 # Ultrix and OSF/1 -std1
2951 # HP-UX 10.20 and later -Ae
2952 # HP-UX older versions -Aa -D_HPUX_SOURCE
2953 # SVR4 -Xc -D__EXTENSIONS__
2954 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2956 CC="$ac_save_CC $ac_arg"
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 ac_cv_prog_cc_stdc=$ac_arg
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2986 rm -f conftest.err conftest.$ac_objext
2988 rm -f conftest.$ac_ext conftest.$ac_objext
2993 case "x$ac_cv_prog_cc_stdc" in
2995 echo "$as_me:$LINENO: result: none needed" >&5
2996 echo "${ECHO_T}none needed" >&6 ;;
2998 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2999 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3000 CC="$CC $ac_cv_prog_cc_stdc" ;;
3003 # Some people use a C++ compiler to compile C. Since we use `exit',
3004 # in C++ we need to declare it. In case someone uses the same compiler
3005 # for both compiling C and C++ we need to have the C++ compiler decide
3006 # the declaration of exit, since it's the most demanding environment.
3007 cat >conftest.$ac_ext <<_ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 for ac_declaration in \
3036 'extern "C" void std::exit (int) throw (); using std::exit;' \
3037 'extern "C" void std::exit (int); using std::exit;' \
3038 'extern "C" void exit (int) throw ();' \
3039 'extern "C" void exit (int);' \
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3134 if test -n "$ac_declaration"; then
3135 echo '#ifdef __cplusplus' >>confdefs.h
3136 echo $ac_declaration >>confdefs.h
3137 echo '#endif' >>confdefs.h
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 DEPDIR="${am__leading_dot}deps"
3153 ac_config_commands="$ac_config_commands depfiles"
3156 am_make=${MAKE-make}
3157 cat > confinc << 'END'
3162 # If we don't find an include directive, just comment out the code.
3163 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3164 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3168 # First try GNU make style include.
3169 echo "include confinc" > confmf
3170 # We grep out `Entering directory' and `Leaving directory'
3171 # messages which can occur if `w' ends up in MAKEFLAGS.
3172 # In particular we don't look at `^make:' because GNU make might
3173 # be invoked under some other name (usually "gmake"), in which
3174 # case it prints its new name instead of `make'.
3175 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3180 # Now try BSD make style include.
3181 if test "$am__include" = "#"; then
3182 echo '.include "confinc"' > confmf
3183 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3184 am__include=.include
3191 echo "$as_me:$LINENO: result: $_am_result" >&5
3192 echo "${ECHO_T}$_am_result" >&6
3193 rm -f confinc confmf
3195 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3196 if test "${enable_dependency_tracking+set}" = set; then
3197 enableval="$enable_dependency_tracking"
3200 if test "x$enable_dependency_tracking" != xno; then
3201 am_depcomp="$ac_aux_dir/depcomp"
3206 if test "x$enable_dependency_tracking" != xno; then
3217 depcc="$CC" am_compiler_list=
3219 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3220 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3221 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3225 # We make a subdir and do the tests there. Otherwise we can end up
3226 # making bogus files that we don't know about and never remove. For
3227 # instance it was reported that on HP-UX the gcc test will end up
3228 # making a dummy file named `D' -- because `-MD' means `put the output
3231 # Copy depcomp to subdir because otherwise we won't find it if we're
3232 # using a relative directory.
3233 cp "$am_depcomp" conftest.dir
3235 # We will build objects and dependencies in a subdirectory because
3236 # it helps to detect inapplicable dependency modes. For instance
3237 # both Tru64's cc and ICC support -MD to output dependencies as a
3238 # side effect of compilation, but ICC will put the dependencies in
3239 # the current directory while Tru64 will put them in the object
3243 am_cv_CC_dependencies_compiler_type=none
3244 if test "$am_compiler_list" = ""; then
3245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3247 for depmode in $am_compiler_list; do
3248 # Setup a source with many dependencies, because some compilers
3249 # like to wrap large dependency lists on column 80 (with \), and
3250 # we should not choose a depcomp mode which is confused by this.
3252 # We need to recreate these files for each test, as the compiler may
3253 # overwrite some of them when testing with obscure command lines.
3254 # This happens at least with the AIX C compiler.
3256 for i in 1 2 3 4 5 6; do
3257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3258 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3259 # Solaris 8's {/usr,}/bin/sh.
3260 touch sub/conftst$i.h
3262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3266 # after this tag, mechanisms are not by side-effect, so they'll
3267 # only be used when explicitly requested
3268 if test "x$enable_dependency_tracking" = xyes; then
3276 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3277 # mode. It turns out that the SunPro C++ compiler does not properly
3278 # handle `-M -o', and we need to detect this.
3279 if depmode=$depmode \
3280 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3282 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3283 >/dev/null 2>conftest.err &&
3284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3285 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3287 # icc doesn't choke on unknown options, it will just issue warnings
3288 # or remarks (even with -Werror). So we grep stderr for any message
3289 # that says an option was ignored or not supported.
3290 # When given -MP, icc 7.0 and 7.1 complain thusly:
3291 # icc: Command line warning: ignoring option '-M'; no argument required
3292 # The diagnosis changed in icc 8.0:
3293 # icc: Command line remark: option '-MP' not supported
3294 if (grep 'ignoring option' conftest.err ||
3295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3296 am_cv_CC_dependencies_compiler_type=$depmode
3305 am_cv_CC_dependencies_compiler_type=none
3309 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3316 test "x$enable_dependency_tracking" != xno \
3317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3319 am__fastdepCC_FALSE='#'
3321 am__fastdepCC_TRUE='#'
3322 am__fastdepCC_FALSE=
3330 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3331 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3332 # in both places for now and restore CFLAGS at the end of config.
3333 save_CFLAGS="$CFLAGS"
3335 # Add -Wall -Werror if we are using GCC.
3336 if test "x$GCC" = "xyes"; then
3337 XCFLAGS="$XCFLAGS -Wall -Werror"
3340 # Find other programs we need.
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}ar; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_AR+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 if test -n "$AR"; then
3350 ac_cv_prog_AR="$AR" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_AR="${ac_tool_prefix}ar"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 if test -n "$AR"; then
3370 echo "$as_me:$LINENO: result: $AR" >&5
3371 echo "${ECHO_T}$AR" >&6
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3378 if test -z "$ac_cv_prog_AR"; then
3380 # Extract the first word of "ar", so it can be a program name with args.
3381 set dummy ar; ac_word=$2
3382 echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 if test -n "$ac_ct_AR"; then
3388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_AR="ar"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3407 if test -n "$ac_ct_AR"; then
3408 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3409 echo "${ECHO_T}$ac_ct_AR" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_RANLIB+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 if test -n "$RANLIB"; then
3429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 RANLIB=$ac_cv_prog_RANLIB
3448 if test -n "$RANLIB"; then
3449 echo "$as_me:$LINENO: result: $RANLIB" >&5
3450 echo "${ECHO_T}$RANLIB" >&6
3452 echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3457 if test -z "$ac_cv_prog_RANLIB"; then
3458 ac_ct_RANLIB=$RANLIB
3459 # Extract the first word of "ranlib", so it can be a program name with args.
3460 set dummy ranlib; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 if test -n "$ac_ct_RANLIB"; then
3467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_RANLIB="ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487 if test -n "$ac_ct_RANLIB"; then
3488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3491 echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3495 RANLIB=$ac_ct_RANLIB
3497 RANLIB="$ac_cv_prog_RANLIB"
3500 # Extract the first word of "perl", so it can be a program name with args.
3501 set dummy perl; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_PERL+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3530 PERL=$ac_cv_path_PERL
3532 if test -n "$PERL"; then
3533 echo "$as_me:$LINENO: result: $PERL" >&5
3534 echo "${ECHO_T}$PERL" >&6
3536 echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3540 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3541 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3543 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 cat >conftest.make <<\_ACEOF
3548 @echo 'ac_maketemp="$(MAKE)"'
3550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3552 if test -n "$ac_maketemp"; then
3553 eval ac_cv_prog_make_${ac_make}_set=yes
3555 eval ac_cv_prog_make_${ac_make}_set=no
3559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 SET_MAKE="MAKE=${MAKE-make}"
3569 # Find a good install program. We prefer a C program (faster),
3570 # so one script is as good as another. But avoid the broken or
3571 # incompatible versions:
3572 # SysV /etc/install, /usr/sbin/install
3573 # SunOS /usr/etc/install
3574 # IRIX /sbin/install
3576 # AmigaOS /C/install, which installs bootblocks on floppy discs
3577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580 # OS/2's system install, which has a completely different semantic
3581 # ./install, which can be erroneously created by make from ./install.sh.
3582 # Reject install programs that cannot install multiple files.
3583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3596 ./ | .// | /cC/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3636 rm -rf conftest.one conftest.two conftest.dir
3639 if test "${ac_cv_path_install+set}" = set; then
3640 INSTALL=$ac_cv_path_install
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for INSTALL within a source directory, because that will
3644 # break other packages using the cache if that directory is
3645 # removed, or if the value is a relative name.
3646 INSTALL=$ac_install_sh
3649 echo "$as_me:$LINENO: result: $INSTALL" >&5
3650 echo "${ECHO_T}$INSTALL" >&6
3652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653 # It thinks the first close brace ends the variable substitution.
3654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661 # See if makeinfo has been installed and is modern enough
3662 # that we can use it.
3664 # Extract the first word of "makeinfo", so it can be a program name with args.
3665 set dummy makeinfo; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 if test -n "$MAKEINFO"; then
3672 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_MAKEINFO="makeinfo"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 MAKEINFO=$ac_cv_prog_MAKEINFO
3691 if test -n "$MAKEINFO"; then
3692 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3693 echo "${ECHO_T}$MAKEINFO" >&6
3695 echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3699 if test -n "$MAKEINFO"; then
3700 # Found it, now check the version.
3701 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3702 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3703 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3707 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3709 case $ac_prog_version in
3710 '') gcc_cv_prog_makeinfo_modern=no;;
3711 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3712 *) gcc_cv_prog_makeinfo_modern=no;;
3716 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3717 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3719 gcc_cv_prog_makeinfo_modern=no
3721 if test $gcc_cv_prog_makeinfo_modern = no; then
3722 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3727 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3729 BUILD_INFO_FALSE='#'
3740 macro_version='2.1a'
3741 macro_revision='1.2435'
3754 ltmain="$ac_aux_dir/ltmain.sh"
3764 # Check whether --enable-shared or --disable-shared was given.
3765 if test "${enable_shared+set}" = set; then
3766 enableval="$enable_shared"
3767 p=${PACKAGE-default}
3769 yes) enable_shared=yes ;;
3770 no) enable_shared=no ;;
3773 # Look at the argument we got. We use all the common list separators.
3774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775 for pkg in $enableval; do
3777 if test "X$pkg" = "X$p"; then
3795 # Check whether --enable-static or --disable-static was given.
3796 if test "${enable_static+set}" = set; then
3797 enableval="$enable_static"
3798 p=${PACKAGE-default}
3800 yes) enable_static=yes ;;
3801 no) enable_static=no ;;
3804 # Look at the argument we got. We use all the common list separators.
3805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806 for pkg in $enableval; do
3808 if test "X$pkg" = "X$p"; then
3827 # Check whether --with-pic or --without-pic was given.
3828 if test "${with_pic+set}" = set; then
3835 test -z "$pic_mode" && pic_mode=default
3843 # Check whether --enable-fast-install or --disable-fast-install was given.
3844 if test "${enable_fast_install+set}" = set; then
3845 enableval="$enable_fast_install"
3846 p=${PACKAGE-default}
3848 yes) enable_fast_install=yes ;;
3849 no) enable_fast_install=no ;;
3851 enable_fast_install=no
3852 # Look at the argument we got. We use all the common list separators.
3853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854 for pkg in $enableval; do
3856 if test "X$pkg" = "X$p"; then
3857 enable_fast_install=yes
3864 enable_fast_install=yes
3874 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3876 if test "${lt_cv_path_SED+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 # Loop through the user's path and test for sed and gsed.
3880 # Then use that list of sed's as ones to test for truncation.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for lt_ac_prog in sed gsed; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3889 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3897 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3898 # along with /bin/sed that truncates output.
3899 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3900 test ! -f $lt_ac_sed && continue
3901 cat /dev/null > conftest.in
3903 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3904 # Check for GNU sed and select it if it is found.
3905 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3906 lt_cv_path_SED=$lt_ac_sed
3910 cat conftest.in conftest.in >conftest.tmp
3911 mv conftest.tmp conftest.in
3912 cp conftest.in conftest.nl
3914 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3915 cmp -s conftest.out conftest.nl || break
3916 # 10000 chars as input seems more than enough
3917 test $lt_ac_count -gt 10 && break
3918 lt_ac_count=`expr $lt_ac_count + 1`
3919 if test $lt_ac_count -gt $lt_ac_max; then
3920 lt_ac_max=$lt_ac_count
3921 lt_cv_path_SED=$lt_ac_sed
3930 echo "$as_me:$LINENO: result: $SED" >&5
3931 echo "${ECHO_T}$SED" >&6
3933 test -z "$SED" && SED=sed
3934 Xsed="$SED -e 1s/^X//"
3946 echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3948 if test "${ac_cv_prog_egrep+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3952 then ac_cv_prog_egrep='grep -E'
3953 else ac_cv_prog_egrep='egrep'
3956 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3957 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3958 EGREP=$ac_cv_prog_egrep
3961 echo "$as_me:$LINENO: checking for fgrep" >&5
3962 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3963 if test "${ac_cv_prog_fgrep+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3967 then ac_cv_prog_fgrep='grep -F'
3968 else ac_cv_prog_fgrep='fgrep'
3971 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3972 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3973 FGREP=$ac_cv_prog_fgrep
3976 test -z "$GREP" && GREP=grep
3996 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3997 if test "${with_gnu_ld+set}" = set; then
3998 withval="$with_gnu_ld"
3999 test "$withval" = no || with_gnu_ld=yes
4004 if test "$GCC" = yes; then
4005 # Check if gcc -print-prog-name=ld gives a path.
4006 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4007 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4010 # gcc leaves a trailing carriage return which upsets mingw
4011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4016 # Accept absolute paths.
4018 re_direlt='/[^/][^/]*/\.\./'
4019 # Canonicalize the pathname of ld
4020 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4021 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4022 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4024 test -z "$LD" && LD="$ac_prog"
4027 # If it fails, then pretend we aren't using GCC.
4031 # If it is relative, then search for the first ld in PATH.
4035 elif test "$with_gnu_ld" = yes; then
4036 echo "$as_me:$LINENO: checking for GNU ld" >&5
4037 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4039 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4040 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4042 if test "${lt_cv_path_LD+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test -z "$LD"; then
4046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4047 for ac_dir in $PATH; do
4049 test -z "$ac_dir" && ac_dir=.
4050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4051 lt_cv_path_LD="$ac_dir/$ac_prog"
4052 # Check to see if the program is GNU ld. I'd rather use --version,
4053 # but apparently some variants of GNU ld only accept -v.
4054 # Break only if it was the GNU/non-GNU ld that we prefer.
4055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4056 *GNU* | *'with BFD'*)
4057 test "$with_gnu_ld" != no && break
4060 test "$with_gnu_ld" != yes && break
4067 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4072 if test -n "$LD"; then
4073 echo "$as_me:$LINENO: result: $LD" >&5
4074 echo "${ECHO_T}$LD" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4079 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4080 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4081 { (exit 1); exit 1; }; }
4082 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4083 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4084 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4088 case `$LD -v 2>&1 </dev/null` in
4089 *GNU* | *'with BFD'*)
4090 lt_cv_prog_gnu_ld=yes
4093 lt_cv_prog_gnu_ld=no
4097 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4098 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4099 with_gnu_ld=$lt_cv_prog_gnu_ld
4110 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4111 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4112 if test "${lt_cv_path_NM+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$NM"; then
4116 # Let the user override the test.
4119 lt_nm_to_check="${ac_tool_prefix}nm"
4120 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4121 lt_nm_to_check="$lt_nm_to_check nm"
4123 for lt_tmp_nm in $lt_nm_to_check; do
4124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4125 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4127 test -z "$ac_dir" && ac_dir=.
4128 tmp_nm="$ac_dir/$lt_tmp_nm"
4129 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4130 # Check to see if the nm accepts a BSD-compat flag.
4131 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4132 # nm: unknown option "B" ignored
4133 # Tru64's nm complains that /dev/null is an invalid object file
4134 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4135 */dev/null* | *'Invalid file or object type'*)
4136 lt_cv_path_NM="$tmp_nm -B"
4140 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4142 lt_cv_path_NM="$tmp_nm -p"
4146 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4147 continue # so that we can try to find one that supports BSD flags
4156 : ${lt_cv_path_NM=no}
4159 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4160 echo "${ECHO_T}$lt_cv_path_NM" >&6
4161 if test "$lt_cv_path_NM" != "no"; then
4164 # Didn't find any BSD compatible name lister, look for dumpbin.
4165 if test -n "$ac_tool_prefix"; then
4166 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4170 echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 if test -n "$DUMPBIN"; then
4176 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 DUMPBIN=$ac_cv_prog_DUMPBIN
4195 if test -n "$DUMPBIN"; then
4196 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4197 echo "${ECHO_T}$DUMPBIN" >&6
4199 echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4203 test -n "$DUMPBIN" && break
4206 if test -z "$DUMPBIN"; then
4207 ac_ct_DUMPBIN=$DUMPBIN
4208 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4210 # Extract the first word of "$ac_prog", so it can be a program name with args.
4211 set dummy $ac_prog; ac_word=$2
4212 echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test -n "$ac_ct_DUMPBIN"; then
4218 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4237 if test -n "$ac_ct_DUMPBIN"; then
4238 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4239 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4241 echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4245 test -n "$ac_ct_DUMPBIN" && break
4247 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4249 DUMPBIN=$ac_ct_DUMPBIN
4253 if test "$DUMPBIN" != ":"; then
4257 test -z "$NM" && NM=nm
4264 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4265 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4266 if test "${lt_cv_nm_interface+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 lt_cv_nm_interface="BSD nm"
4270 echo "int some_variable = 0;" > conftest.$ac_ext
4271 (eval echo "\"\$as_me:4271: $ac_compile\"" >&5)
4272 (eval "$ac_compile" 2>conftest.err)
4273 cat conftest.err >&5
4274 (eval echo "\"\$as_me:4274: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4275 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4276 cat conftest.err >&5
4277 (eval echo "\"\$as_me:4277: output\"" >&5)
4278 cat conftest.out >&5
4279 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4280 lt_cv_nm_interface="MS dumpbin"
4284 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4285 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4287 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4288 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4290 if test "$LN_S" = "ln -s"; then
4291 echo "$as_me:$LINENO: result: yes" >&5
4292 echo "${ECHO_T}yes" >&6
4294 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4295 echo "${ECHO_T}no, using $LN_S" >&6
4298 # find the maximum length of command line arguments
4299 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4300 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4301 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 # On DJGPP, this test can blow up pretty badly due to problems in libc
4310 # (any single argument exceeding 2000 bytes causes a buffer overrun
4311 # during glob expansion). Even if it were fixed, the result of this
4312 # check would be larger than it should be.
4313 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4317 # Under GNU Hurd, this test is not required because there is
4318 # no limit to the length of command line arguments.
4319 # Libtool will interpret -1 as no limit whatsoever
4320 lt_cv_sys_max_cmd_len=-1;
4324 # On Win9x/ME, this test blows up -- it succeeds, but takes
4325 # about 5 minutes as the teststring grows exponentially.
4326 # Worse, since 9x/ME are not pre-emptively multitasking,
4327 # you end up with a "frozen" computer, even though with patience
4328 # the test eventually succeeds (with a max line length of 256k).
4329 # Instead, let's just punt: use the minimum linelength reported by
4330 # all of the supported platforms: 8192 (on NT/2K/XP).
4331 lt_cv_sys_max_cmd_len=8192;
4335 # On AmigaOS with pdksh, this test takes hours, literally.
4336 # So we just punt and use a minimum line length of 8192.
4337 lt_cv_sys_max_cmd_len=8192;
4340 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4341 # This has been around since 386BSD, at least. Likely further.
4342 if test -x /sbin/sysctl; then
4343 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4344 elif test -x /usr/sbin/sysctl; then
4345 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4347 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4349 # And add a safety zone
4350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4355 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4356 lt_cv_sys_max_cmd_len=196608
4360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4362 # nice to cause kernel panics so lets avoid the loop below.
4363 # First set a reasonable default.
4364 lt_cv_sys_max_cmd_len=16384
4366 if test -x /sbin/sysconfig; then
4367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4368 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4373 lt_cv_sys_max_cmd_len=102400
4375 sysv5* | sco5v6* | sysv4.2uw2*)
4376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4377 if test -n "$kargmax"; then
4378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4380 lt_cv_sys_max_cmd_len=32768
4384 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4385 if test -n $lt_cv_sys_max_cmd_len; then
4386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4389 # Make teststring a little bigger before we do anything with it.
4390 # a 1K string should be a reasonable start.
4391 for i in 1 2 3 4 5 6 7 8 ; do
4392 teststring=$teststring$teststring
4394 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4395 # If test is not a shell built-in, we'll probably end up computing a
4396 # maximum length that is only half of the actual maximum length, but
4398 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4399 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4400 test $i != 17 # 1/2 MB should be enough
4403 teststring=$teststring$teststring
4405 # Only check the string length outside the loop.
4406 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4408 # Add a significant safety factor because C++ compilers can tack on
4409 # massive amounts of additional arguments before passing them to the
4410 # linker. It appears as though 1/2 is a usable value.
4411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4418 if test -n $lt_cv_sys_max_cmd_len ; then
4419 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4420 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4422 echo "$as_me:$LINENO: result: none" >&5
4423 echo "${ECHO_T}none" >&6
4425 max_cmd_len=$lt_cv_sys_max_cmd_len
4437 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4438 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4439 # Try some XSI features
4442 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4443 = c,a/b,, ) >/dev/null 2>&1 \
4445 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4446 echo "${ECHO_T}$xsi_shell" >&6
4449 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4450 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4452 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4454 && lt_shell_append=yes
4455 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4456 echo "${ECHO_T}$lt_shell_append" >&6
4459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4469 # test EBCDIC or ASCII
4470 case `echo X|tr X '\101'` in
4471 A) # ASCII based system
4472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4473 lt_SP2NL='tr \040 \012'
4474 lt_NL2SP='tr \015\012 \040\040'
4476 *) # EBCDIC based system
4477 lt_SP2NL='tr \100 \n'
4478 lt_NL2SP='tr \r\n \100\100'
4490 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4491 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4492 if test "${lt_cv_ld_reload_flag+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 lt_cv_ld_reload_flag='-r'
4497 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4498 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4499 reload_flag=$lt_cv_ld_reload_flag
4500 case $reload_flag in
4502 *) reload_flag=" $reload_flag" ;;
4504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4507 if test "$GCC" = yes; then
4508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4524 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4525 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4526 if test "${lt_cv_deplibs_check_method+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 lt_cv_file_magic_cmd='$MAGIC_CMD'
4530 lt_cv_file_magic_test_file=
4531 lt_cv_deplibs_check_method='unknown'
4532 # Need to set the preceding variable on all platforms that support
4533 # interlibrary dependencies.
4534 # 'none' -- dependencies not supported.
4535 # `unknown' -- same as none, but documents that we really don't know.
4536 # 'pass_all' -- all dependencies passed with no checks.
4537 # 'test_compile' -- check by making test program.
4538 # 'file_magic [[regex]]' -- check by looking for files in library path
4539 # which responds to the $file_magic_cmd with a given extended regex.
4540 # If you have `file' or equivalent on your system and you're not sure
4541 # whether `pass_all' will *always* work, you probably want this one.
4545 lt_cv_deplibs_check_method=pass_all
4549 lt_cv_deplibs_check_method=pass_all
4553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4554 lt_cv_file_magic_cmd='/usr/bin/file -L'
4555 lt_cv_file_magic_test_file=/shlib/libc.so
4559 # func_win32_libid is a shell function defined in ltmain.sh
4560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4561 lt_cv_file_magic_cmd='func_win32_libid'
4565 # Base MSYS/MinGW do not provide the 'file' command needed by
4566 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4567 # unless we find 'file', for example because we are cross-compiling.
4568 if ( file / ) >/dev/null 2>&1; then
4569 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4570 lt_cv_file_magic_cmd='func_win32_libid'
4572 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4573 lt_cv_file_magic_cmd='$OBJDUMP -f'
4577 darwin* | rhapsody*)
4578 lt_cv_deplibs_check_method=pass_all
4581 freebsd* | dragonfly*)
4582 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4585 # Not sure whether the presence of OpenBSD here was a mistake.
4586 # Let's accept both of them until this is cleared up.
4587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4588 lt_cv_file_magic_cmd=/usr/bin/file
4589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4593 lt_cv_deplibs_check_method=pass_all
4598 lt_cv_deplibs_check_method=pass_all
4601 hpux10.20* | hpux11*)
4602 lt_cv_file_magic_cmd=/usr/bin/file
4605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4624 irix5* | irix6* | nonstopux*)
4626 *-32|*"-32 ") libmagic=32-bit;;
4627 *-n32|*"-n32 ") libmagic=N32;;
4628 *-64|*"-64 ") libmagic=64-bit;;
4629 *) libmagic=never-match;;
4631 lt_cv_deplibs_check_method=pass_all
4634 # This must be Linux ELF.
4635 linux* | k*bsd*-gnu)
4636 lt_cv_deplibs_check_method=pass_all
4640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4649 lt_cv_file_magic_cmd=/usr/bin/file
4650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4654 lt_cv_deplibs_check_method=pass_all
4658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4665 osf3* | osf4* | osf5*)
4666 lt_cv_deplibs_check_method=pass_all
4670 lt_cv_deplibs_check_method=pass_all
4674 lt_cv_deplibs_check_method=pass_all
4677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4678 lt_cv_deplibs_check_method=pass_all
4682 case $host_vendor in
4684 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]'
4685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4688 lt_cv_deplibs_check_method=pass_all
4691 lt_cv_file_magic_cmd='/bin/file'
4692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4695 lt_cv_file_magic_cmd='/bin/file'
4696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4697 lt_cv_file_magic_test_file=/lib/libc.so
4700 lt_cv_deplibs_check_method=pass_all
4703 lt_cv_deplibs_check_method=pass_all
4709 lt_cv_deplibs_check_method=pass_all
4714 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4715 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4716 file_magic_cmd=$lt_cv_file_magic_cmd
4717 deplibs_check_method=$lt_cv_deplibs_check_method
4718 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4731 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}ar; ac_word=$2
4734 echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4736 if test "${ac_cv_prog_AR+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 if test -n "$AR"; then
4740 ac_cv_prog_AR="$AR" # Let the user override the test.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749 ac_cv_prog_AR="${ac_tool_prefix}ar"
4750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 if test -n "$AR"; then
4760 echo "$as_me:$LINENO: result: $AR" >&5
4761 echo "${ECHO_T}$AR" >&6
4763 echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6
4768 if test -z "$ac_cv_prog_AR"; then
4770 # Extract the first word of "ar", so it can be a program name with args.
4771 set dummy ar; ac_word=$2
4772 echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 if test -n "$ac_ct_AR"; then
4778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_ac_ct_AR="ar"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4798 if test -n "$ac_ct_AR"; then
4799 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4800 echo "${ECHO_T}$ac_ct_AR" >&6
4802 echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4811 test -z "$AR" && AR=ar
4812 test -z "$AR_FLAGS" && AR_FLAGS=cru
4824 if test -n "$ac_tool_prefix"; then
4825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4826 set dummy ${ac_tool_prefix}strip; ac_word=$2
4827 echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_prog_STRIP+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test -n "$STRIP"; then
4833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 STRIP=$ac_cv_prog_STRIP
4852 if test -n "$STRIP"; then
4853 echo "$as_me:$LINENO: result: $STRIP" >&5
4854 echo "${ECHO_T}$STRIP" >&6
4856 echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4861 if test -z "$ac_cv_prog_STRIP"; then
4863 # Extract the first word of "strip", so it can be a program name with args.
4864 set dummy strip; ac_word=$2
4865 echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$ac_ct_STRIP"; then
4871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_ac_ct_STRIP="strip"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4891 if test -n "$ac_ct_STRIP"; then
4892 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4893 echo "${ECHO_T}$ac_ct_STRIP" >&6
4895 echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4901 STRIP="$ac_cv_prog_STRIP"
4904 test -z "$STRIP" && STRIP=:
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_RANLIB+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 if test -n "$RANLIB"; then
4920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 RANLIB=$ac_cv_prog_RANLIB
4939 if test -n "$RANLIB"; then
4940 echo "$as_me:$LINENO: result: $RANLIB" >&5
4941 echo "${ECHO_T}$RANLIB" >&6
4943 echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 if test -n "$ac_ct_RANLIB"; then
4958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_ac_ct_RANLIB="ranlib"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978 if test -n "$ac_ct_RANLIB"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4980 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4986 RANLIB=$ac_ct_RANLIB
4988 RANLIB="$ac_cv_prog_RANLIB"
4991 test -z "$RANLIB" && RANLIB=:
4998 # Determine commands to create old-style static archives.
4999 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5000 old_postinstall_cmds='chmod 644 $oldlib'
5001 old_postuninstall_cmds=
5003 if test -n "$RANLIB"; then
5006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5048 # If no C compiler was specified, use CC.
5051 # If no C compiler flags were specified, use CFLAGS.
5052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5054 # Allow CC to be a program name with arguments.
5058 # Check for command to grab the raw symbol name followed by C symbol from nm.
5059 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5060 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5061 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 # These are sane defaults that work on at least a few old systems.
5066 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5068 # Character class describing NM global symbol codes.
5069 symcode='[BCDEGRST]'
5071 # Regexp to match symbols that can be accessed directly from C.
5072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5074 # Define system-specific variables.
5079 cygwin* | mingw* | pw32*)
5080 symcode='[ABCDGISTW]'
5083 if test "$host_cpu" = ia64; then
5084 symcode='[ABCDEGRST]'
5088 symcode='[BCDEGRST]'
5091 symcode='[BCDEGQRST]'
5102 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5110 # If we're using GNU nm, then use its standard symbol codes.
5111 case `$NM -V 2>&1` in
5112 *GNU* | *'with BFD'*)
5113 symcode='[ABCDGIRSTW]' ;;
5116 # Transform an extracted symbol line into a proper C declaration.
5117 # Some systems (esp. on ia64) link data and code symbols differently,
5118 # so use this general approach.
5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5121 # Transform an extracted symbol line into symbol name and symbol address
5122 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5124 # Handle CRLF in mingw tool chain
5128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5132 # Try without a prefix underscore, then with it.
5133 for ac_symprfx in "" "_"; do
5135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5136 symxfrm="\\1 $ac_symprfx\\2 \\2"
5138 # Write the raw and C identifiers.
5139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5140 # Fake it for dumpbin and say T for any non-static function
5141 # and D for any global variable.
5142 # Also find C++ and __fastcall symbols from MSVC++,
5143 # which start with @ or ?.
5144 lt_cv_sys_global_symbol_pipe="$AWK '"\
5145 " {last_section=section; section=\$ 3};"\
5146 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5147 " \$ 0!~/External *\|/{next};"\
5148 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5149 " {if(hide[section]) next};"\
5150 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5151 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5152 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5153 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5154 " ' prfx=^$ac_symprfx"
5156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5159 # Check to see that the pipe works correctly.
5163 cat > conftest.$ac_ext <<_LT_EOF
5168 void nm_test_func(void);
5169 void nm_test_func(void){}
5173 int main(){nm_test_var='a';nm_test_func();return(0);}
5176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177 (eval $ac_compile) 2>&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; then
5181 # Now try to grab the symbols.
5183 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5184 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && test -s "$nlist"; then
5188 # Try sorting and uniquifying the output.
5189 if sort "$nlist" | uniq > "$nlist"T; then
5190 mv -f "$nlist"T "$nlist"
5195 # Make sure that we snagged all the symbols we need.
5196 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5197 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5198 cat <<_LT_EOF > conftest.$ac_ext
5204 # Now generate the symbol file.
5205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5207 cat <<_LT_EOF >> conftest.$ac_ext
5209 /* The mapping between symbol names and symbols. */
5214 lt__PROGRAM__LTX_preloaded_symbols[] =
5216 { "@PROGRAM@", (void *) 0 },
5218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5219 cat <<\_LT_EOF >> conftest.$ac_ext
5223 /* This works around a problem in FreeBSD linker */
5224 #ifdef FREEBSD_WORKAROUND
5225 static const void *lt_preloaded_setup() {
5226 return lt__PROGRAM__LTX_preloaded_symbols;
5234 # Now try linking the two files.
5235 mv conftest.$ac_objext conftstm.$ac_objext
5236 lt_save_LIBS="$LIBS"
5237 lt_save_CFLAGS="$CFLAGS"
5238 LIBS="conftstm.$ac_objext"
5239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241 (eval $ac_link) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5247 LIBS="$lt_save_LIBS"
5248 CFLAGS="$lt_save_CFLAGS"
5250 echo "cannot find nm_test_func in $nlist" >&5
5253 echo "cannot find nm_test_var in $nlist" >&5
5256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5259 echo "$progname: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 rm -f conftest* conftst*
5264 # Do not use the global_symbol_pipe unless it works.
5265 if test "$pipe_works" = yes; then
5268 lt_cv_sys_global_symbol_pipe=
5274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5275 lt_cv_sys_global_symbol_to_cdecl=
5277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5278 echo "$as_me:$LINENO: result: failed" >&5
5279 echo "${ECHO_T}failed" >&6
5281 echo "$as_me:$LINENO: result: ok" >&5
5282 echo "${ECHO_T}ok" >&6
5302 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5303 if test "${enable_libtool_lock+set}" = set; then
5304 enableval="$enable_libtool_lock"
5307 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5309 # Some flags need to be propagated to the compiler or linker for good
5313 # Find out which ABI we are using.
5314 echo 'int i;' > conftest.$ac_ext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316 (eval $ac_compile) 2>&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; then
5320 case `/usr/bin/file conftest.$ac_objext` in
5332 # Find out which ABI we are using.
5333 echo '#line 5333 "configure"' > conftest.$ac_ext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; then
5339 if test "$lt_cv_prog_gnu_ld" = yes; then
5340 case `/usr/bin/file conftest.$ac_objext` in
5342 LD="${LD-ld} -melf32bsmip"
5345 LD="${LD-ld} -melf32bmipn32"
5348 LD="${LD-ld} -melf64bmip"
5352 case `/usr/bin/file conftest.$ac_objext` in
5368 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5369 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5370 # Find out which ABI we are using.
5371 echo 'int i;' > conftest.$ac_ext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; then
5377 case `/usr/bin/file conftest.o` in
5380 x86_64-*kfreebsd*-gnu)
5381 LD="${LD-ld} -m elf_i386_fbsd"
5384 LD="${LD-ld} -m elf_i386"
5386 ppc64-*linux*|powerpc64-*linux*)
5387 LD="${LD-ld} -m elf32ppclinux"
5390 LD="${LD-ld} -m elf_s390"
5393 LD="${LD-ld} -m elf32_sparc"
5399 x86_64-*kfreebsd*-gnu)
5400 LD="${LD-ld} -m elf_x86_64_fbsd"
5403 LD="${LD-ld} -m elf_x86_64"
5405 ppc*-*linux*|powerpc*-*linux*)
5406 LD="${LD-ld} -m elf64ppc"
5408 s390*-*linux*|s390*-*tpf*)
5409 LD="${LD-ld} -m elf64_s390"
5412 LD="${LD-ld} -m elf64_sparc"
5422 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5423 SAVE_CFLAGS="$CFLAGS"
5424 CFLAGS="$CFLAGS -belf"
5425 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5426 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5427 if test "${lt_cv_cc_needs_belf+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 lt_cv_cc_needs_belf=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 lt_cv_cc_needs_belf=no
5480 rm -f conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5483 ac_cpp='$CPP $CPPFLAGS'
5484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5490 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5491 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5492 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5493 CFLAGS="$SAVE_CFLAGS"
5497 # Find out which ABI we are using.
5498 echo 'int i;' > conftest.$ac_ext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; then
5504 case `/usr/bin/file conftest.o` in
5506 case $lt_cv_prog_gnu_ld in
5507 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5508 *) LD="${LD-ld} -64" ;;
5517 need_locks="$enable_libtool_lock"
5520 ac_cpp='$CPP $CPPFLAGS'
5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5526 # On Suns, sometimes $CPP names a directory.
5527 if test -n "$CPP" && test -d "$CPP"; then
5530 if test -z "$CPP"; then
5531 if test "${ac_cv_prog_CPP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 # Double quotes because CPP needs to be expanded
5535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5538 for ac_c_preproc_warn_flag in '' yes
5540 # Use a header file that comes with gcc, so configuring glibc
5541 # with a fresh cross-compiler works.
5542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 # <limits.h> exists even on freestanding compilers.
5544 # On the NeXT, cc -E runs the code through the compiler's parser,
5545 # not just through cpp. "Syntax error" is here to catch this case.
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5553 # include <limits.h>
5555 # include <assert.h>
5559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5562 grep -v '^ *+' conftest.er1 >conftest.err
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } >/dev/null; then
5567 if test -s conftest.err; then
5568 ac_cpp_err=$ac_c_preproc_warn_flag
5569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5576 if test -z "$ac_cpp_err"; then
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 # Broken: fails on valid input.
5585 rm -f conftest.err conftest.$ac_ext
5587 # OK, works on sane cases. Now check whether non-existent headers
5588 # can be detected and how.
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } >/dev/null; then
5605 if test -s conftest.err; then
5606 ac_cpp_err=$ac_c_preproc_warn_flag
5607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5614 if test -z "$ac_cpp_err"; then
5615 # Broken: success on invalid input.
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 # Passes both tests.
5625 rm -f conftest.err conftest.$ac_ext
5628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629 rm -f conftest.err conftest.$ac_ext
5630 if $ac_preproc_ok; then
5642 echo "$as_me:$LINENO: result: $CPP" >&5
5643 echo "${ECHO_T}$CPP" >&6
5645 for ac_c_preproc_warn_flag in '' yes
5647 # Use a header file that comes with gcc, so configuring glibc
5648 # with a fresh cross-compiler works.
5649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650 # <limits.h> exists even on freestanding compilers.
5651 # On the NeXT, cc -E runs the code through the compiler's parser,
5652 # not just through cpp. "Syntax error" is here to catch this case.
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5660 # include <limits.h>
5662 # include <assert.h>
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null; then
5674 if test -s conftest.err; then
5675 ac_cpp_err=$ac_c_preproc_warn_flag
5676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5683 if test -z "$ac_cpp_err"; then
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 # Broken: fails on valid input.
5692 rm -f conftest.err conftest.$ac_ext
5694 # OK, works on sane cases. Now check whether non-existent headers
5695 # can be detected and how.
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <ac_nonexistent.h>
5704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5707 grep -v '^ *+' conftest.er1 >conftest.err
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } >/dev/null; then
5712 if test -s conftest.err; then
5713 ac_cpp_err=$ac_c_preproc_warn_flag
5714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5721 if test -z "$ac_cpp_err"; then
5722 # Broken: success on invalid input.
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 # Passes both tests.
5732 rm -f conftest.err conftest.$ac_ext
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then
5740 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5741 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5743 See \`config.log' for more details." >&5
5744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5745 See \`config.log' for more details." >&2;}
5746 { (exit 1); exit 1; }; }; }
5750 ac_cpp='$CPP $CPPFLAGS'
5751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5756 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5757 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5758 if test "${ac_cv_header_stdc+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5780 rm -f conftest.$ac_objext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -z "$ac_c_werror_flag"
5790 || test ! -s conftest.err'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_cv_header_stdc=yes
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5807 ac_cv_header_stdc=no
5809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 if test $ac_cv_header_stdc = yes; then
5812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5823 $EGREP "memchr" >/dev/null 2>&1; then
5826 ac_cv_header_stdc=no
5832 if test $ac_cv_header_stdc = yes; then
5833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844 $EGREP "free" >/dev/null 2>&1; then
5847 ac_cv_header_stdc=no
5853 if test $ac_cv_header_stdc = yes; then
5854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5855 if test "$cross_compiling" = yes; then
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5865 #if ((' ' & 0x0FF) == 0x020)
5866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5869 # define ISLOWER(c) \
5870 (('a' <= (c) && (c) <= 'i') \
5871 || ('j' <= (c) && (c) <= 'r') \
5872 || ('s' <= (c) && (c) <= 'z'))
5873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5881 for (i = 0; i < 256; i++)
5882 if (XOR (islower (i), ISLOWER (i))
5883 || toupper (i) != TOUPPER (i))
5888 rm -f conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890 (eval $ac_link) 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5901 echo "$as_me: program exited with status $ac_status" >&5
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5906 ac_cv_header_stdc=no
5908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5913 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5914 if test $ac_cv_header_stdc = yes; then
5916 cat >>confdefs.h <<\_ACEOF
5917 #define STDC_HEADERS 1
5922 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5932 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5933 inttypes.h stdint.h unistd.h
5935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936 echo "$as_me:$LINENO: checking for $ac_header" >&5
5937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 $ac_includes_default
5949 #include <$ac_header>
5951 rm -f conftest.$ac_objext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953 (eval $ac_compile) 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag"
5961 || test ! -s conftest.err'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 eval "$as_ac_Header=yes"
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 eval "$as_ac_Header=no"
5980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5985 cat >>confdefs.h <<_ACEOF
5986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 for ac_header in dlfcn.h
5997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998 echo "$as_me:$LINENO: checking for $ac_header" >&5
5999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 $ac_includes_default
6011 #include <$ac_header>
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 eval "$as_ac_Header=yes"
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 eval "$as_ac_Header=no"
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6057 # This can be used to rebuild libtool when needed
6058 LIBTOOL_DEPS="$ltmain"
6060 # Always use our own libtool.
6061 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6087 test -z "$LN_S" && LN_S="ln -s"
6102 if test -n "${ZSH_VERSION+set}" ; then
6103 setopt NO_GLOB_SUBST
6106 echo "$as_me:$LINENO: checking for objdir" >&5
6107 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6108 if test "${lt_cv_objdir+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 rm -f .libs 2>/dev/null
6112 mkdir .libs 2>/dev/null
6113 if test -d .libs; then
6116 # MS-DOS does not allow filenames that begin with a dot.
6119 rmdir .libs 2>/dev/null
6121 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6122 echo "${ECHO_T}$lt_cv_objdir" >&6
6123 objdir=$lt_cv_objdir
6129 cat >>confdefs.h <<_ACEOF
6130 #define LT_OBJDIR "$lt_cv_objdir/"
6151 # AIX sometimes has problems with the GCC collect2 program. For some
6152 # reason, if we set the COLLECT_NAMES environment variable, the problems
6153 # vanish in a puff of smoke.
6154 if test "X${COLLECT_NAMES+set}" != Xset; then
6156 export COLLECT_NAMES
6161 # Sed substitution that helps us do robust quoting. It backslashifies
6162 # metacharacters that are still active within double-quoted strings.
6163 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6165 # Same as above, but do not quote variable references.
6166 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6168 # Sed substitution to delay expansion of an escaped shell variable in a
6169 # double_quote_subst'ed string.
6170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6172 # Sed substitution to delay expansion of an escaped single quote.
6173 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6175 # Sed substitution to avoid accidental globbing in evaled expressions
6176 no_glob_subst='s/\*/\\\*/g'
6180 can_build_shared=yes
6182 # All known linkers require a `.a' archive for static linking (except MSVC,
6183 # which needs '.lib').
6186 with_gnu_ld="$lt_cv_prog_gnu_ld"
6189 old_CFLAGS="$CFLAGS"
6191 # Set sane defaults for various variables
6192 test -z "$CC" && CC=cc
6193 test -z "$LTCC" && LTCC=$CC
6194 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6195 test -z "$LD" && LD=ld
6196 test -z "$ac_objext" && ac_objext=o
6198 for cc_temp in $compiler""; do
6200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6206 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6209 # Only perform the check for file, if the check method requires it
6210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6211 case $deplibs_check_method in
6213 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6214 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6215 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6216 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6224 lt_save_MAGIC_CMD="$MAGIC_CMD"
6225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6227 for ac_dir in $ac_dummy; do
6229 test -z "$ac_dir" && ac_dir=.
6230 if test -f $ac_dir/${ac_tool_prefix}file; then
6231 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6232 if test -n "$file_magic_test_file"; then
6233 case $deplibs_check_method in
6235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6238 $EGREP "$file_magic_regex" > /dev/null; then
6243 *** Warning: the command libtool uses to detect shared libraries,
6244 *** $file_magic_cmd, produces output that libtool cannot recognize.
6245 *** The result is that libtool may fail to recognize shared libraries
6246 *** as such. This will affect the creation of libtool libraries that
6247 *** depend on shared libraries, but programs linked with such libtool
6248 *** libraries will work regardless of this problem. Nevertheless, you
6249 *** may want to report the problem to your system manager and/or to
6250 *** bug-libtool@gnu.org
6260 MAGIC_CMD="$lt_save_MAGIC_CMD"
6265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6266 if test -n "$MAGIC_CMD"; then
6267 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6268 echo "${ECHO_T}$MAGIC_CMD" >&6
6270 echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6278 if test -z "$lt_cv_path_MAGIC_CMD"; then
6279 if test -n "$ac_tool_prefix"; then
6280 echo "$as_me:$LINENO: checking for file" >&5
6281 echo $ECHO_N "checking for file... $ECHO_C" >&6
6282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6290 lt_save_MAGIC_CMD="$MAGIC_CMD"
6291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6293 for ac_dir in $ac_dummy; do
6295 test -z "$ac_dir" && ac_dir=.
6296 if test -f $ac_dir/file; then
6297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6298 if test -n "$file_magic_test_file"; then
6299 case $deplibs_check_method in
6301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6304 $EGREP "$file_magic_regex" > /dev/null; then
6309 *** Warning: the command libtool uses to detect shared libraries,
6310 *** $file_magic_cmd, produces output that libtool cannot recognize.
6311 *** The result is that libtool may fail to recognize shared libraries
6312 *** as such. This will affect the creation of libtool libraries that
6313 *** depend on shared libraries, but programs linked with such libtool
6314 *** libraries will work regardless of this problem. Nevertheless, you
6315 *** may want to report the problem to your system manager and/or to
6316 *** bug-libtool@gnu.org
6326 MAGIC_CMD="$lt_save_MAGIC_CMD"
6331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6332 if test -n "$MAGIC_CMD"; then
6333 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6334 echo "${ECHO_T}$MAGIC_CMD" >&6
6336 echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6350 # Use C for the default configuration in the libtool script
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6360 # Source file extension for C test sources.
6363 # Object file extension for compiled C test sources.
6367 # Code to be used in simple compile tests
6368 lt_simple_compile_test_code="int some_variable = 0;"
6370 # Code to be used in simple link tests
6371 lt_simple_link_test_code='int main(){return(0);}'
6379 # If no C compiler was specified, use CC.
6382 # If no C compiler flags were specified, use CFLAGS.
6383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6385 # Allow CC to be a program name with arguments.
6388 # Save the default compiler, since it gets overwritten when the other
6389 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6390 compiler_DEFAULT=$CC
6392 # save warnings/boilerplate of simple test code
6393 ac_outfile=conftest.$ac_objext
6394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6396 _lt_compiler_boilerplate=`cat conftest.err`
6399 ac_outfile=conftest.$ac_objext
6400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6402 _lt_linker_boilerplate=`cat conftest.err`
6407 ## There is no encapsulation within the following macros, do not change
6408 ## the running order or otherwise move them around unless you know exactly
6409 ## what you are doing...
6410 if test -n "$compiler"; then
6412 lt_prog_compiler_no_builtin_flag=
6414 if test "$GCC" = yes; then
6415 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6417 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6418 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 lt_cv_prog_compiler_rtti_exceptions=no
6423 ac_outfile=conftest.$ac_objext
6424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6425 lt_compiler_flag="-fno-rtti -fno-exceptions"
6426 # Insert the option either (1) after the last *FLAGS variable, or
6427 # (2) before a word containing "conftest.", or (3) at the end.
6428 # Note that $ac_compile itself does not contain backslashes and begins
6429 # with a dollar sign (not a hyphen), so the echo should work correctly.
6430 # The option is referenced via a variable to avoid confusing sed.
6431 lt_compile=`echo "$ac_compile" | $SED \
6432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6434 -e 's:$: $lt_compiler_flag:'`
6435 (eval echo "\"\$as_me:6435: $lt_compile\"" >&5)
6436 (eval "$lt_compile" 2>conftest.err)
6438 cat conftest.err >&5
6439 echo "$as_me:6439: \$? = $ac_status" >&5
6440 if (exit $ac_status) && test -s "$ac_outfile"; then
6441 # The compiler can only warn and ignore the option if not recognized
6442 # So say no if there are warnings other than the usual output.
6443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6446 lt_cv_prog_compiler_rtti_exceptions=yes
6452 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6453 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6468 lt_prog_compiler_wl=
6469 lt_prog_compiler_pic=
6470 lt_prog_compiler_static=
6472 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6475 if test "$GCC" = yes; then
6476 lt_prog_compiler_wl='-Wl,'
6477 lt_prog_compiler_static='-static'
6481 # All AIX code is PIC.
6482 if test "$host_cpu" = ia64; then
6483 # AIX 5 now supports IA64 processor
6484 lt_prog_compiler_static='-Bstatic'
6489 if test "$host_cpu" = m68k; then
6490 # FIXME: we need at least 68020 code to build shared libraries, but
6491 # adding the `-m68020' flag to GCC prevents building anything better,
6493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6498 # PIC is the default for these OSes.
6501 mingw* | cygwin* | pw32* | os2*)
6502 # This hack is so that the source file can tell whether it is being
6503 # built for inclusion in a dll (and should export symbols for example).
6504 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6505 # (--disable-auto-import) libraries
6506 lt_prog_compiler_pic='-DDLL_EXPORT'
6509 darwin* | rhapsody*)
6510 # PIC is the default on this platform
6511 # Common symbols not allowed in MH_DYLIB files
6512 lt_prog_compiler_pic='-fno-common'
6516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6523 lt_prog_compiler_pic='-fPIC'
6529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6530 # Instead, we relocate shared libraries at runtime.
6534 # Just because we use GCC doesn't mean we suddenly get shared libraries
6535 # on systems that don't support them.
6536 lt_prog_compiler_can_build_shared=no
6541 # QNX uses GNU C++, but need to define -shared option too, otherwise
6543 lt_prog_compiler_pic='-fPIC -shared'
6547 if test -d /usr/nec; then
6548 lt_prog_compiler_pic=-Kconform_pic
6553 lt_prog_compiler_pic='-fPIC'
6557 # PORTME Check for flag to pass linker flags through the system compiler.
6560 lt_prog_compiler_wl='-Wl,'
6561 if test "$host_cpu" = ia64; then
6562 # AIX 5 now supports IA64 processor
6563 lt_prog_compiler_static='-Bstatic'
6565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6569 # PIC is the default on this platform
6570 # Common symbols not allowed in MH_DYLIB files
6571 case $cc_basename in
6573 lt_prog_compiler_pic='-qnocommon'
6574 lt_prog_compiler_wl='-Wl,'
6579 mingw* | cygwin* | pw32* | os2*)
6580 # This hack is so that the source file can tell whether it is being
6581 # built for inclusion in a dll (and should export symbols for example).
6582 lt_prog_compiler_pic='-DDLL_EXPORT'
6585 hpux9* | hpux10* | hpux11*)
6586 lt_prog_compiler_wl='-Wl,'
6587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6594 lt_prog_compiler_pic='+Z'
6597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6598 lt_prog_compiler_static='${wl}-a ${wl}archive'
6601 irix5* | irix6* | nonstopux*)
6602 lt_prog_compiler_wl='-Wl,'
6603 # PIC (with -KPIC) is the default.
6604 lt_prog_compiler_static='-non_shared'
6607 linux* | k*bsd*-gnu)
6608 case $cc_basename in
6610 lt_prog_compiler_wl='-Wl,'
6611 lt_prog_compiler_pic='-KPIC'
6612 lt_prog_compiler_static='-static'
6614 pgcc* | pgf77* | pgf90* | pgf95*)
6615 # Portland Group compilers (*not* the Pentium gcc compiler,
6616 # which looks to be a dead project)
6617 lt_prog_compiler_wl='-Wl,'
6618 lt_prog_compiler_pic='-fpic'
6619 lt_prog_compiler_static='-Bstatic'
6622 lt_prog_compiler_wl='-Wl,'
6623 # All Alpha code is PIC.
6624 lt_prog_compiler_static='-non_shared'
6627 case `$CC -V 2>&1 | sed 5q` in
6630 lt_prog_compiler_pic='-KPIC'
6631 lt_prog_compiler_static='-Bstatic'
6632 lt_prog_compiler_wl='-Wl,'
6635 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6636 lt_prog_compiler_pic='-KPIC'
6637 lt_prog_compiler_static='-Bstatic'
6638 lt_prog_compiler_wl=''
6646 lt_prog_compiler_pic='-KPIC'
6647 lt_prog_compiler_static='-Bstatic'
6651 # QNX uses GNU C++, but need to define -shared option too, otherwise
6653 lt_prog_compiler_pic='-fPIC -shared'
6656 osf3* | osf4* | osf5*)
6657 lt_prog_compiler_wl='-Wl,'
6658 # All OSF/1 code is PIC.
6659 lt_prog_compiler_static='-non_shared'
6663 lt_prog_compiler_static='-non_shared'
6667 lt_prog_compiler_pic='-KPIC'
6668 lt_prog_compiler_static='-Bstatic'
6669 case $cc_basename in
6671 lt_prog_compiler_wl='-Qoption ld ';;
6673 lt_prog_compiler_wl='-Wl,';;
6678 lt_prog_compiler_wl='-Qoption ld '
6679 lt_prog_compiler_pic='-PIC'
6680 lt_prog_compiler_static='-Bstatic'
6683 sysv4 | sysv4.2uw2* | sysv4.3*)
6684 lt_prog_compiler_wl='-Wl,'
6685 lt_prog_compiler_pic='-KPIC'
6686 lt_prog_compiler_static='-Bstatic'
6690 if test -d /usr/nec ;then
6691 lt_prog_compiler_pic='-Kconform_pic'
6692 lt_prog_compiler_static='-Bstatic'
6696 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6697 lt_prog_compiler_wl='-Wl,'
6698 lt_prog_compiler_pic='-KPIC'
6699 lt_prog_compiler_static='-Bstatic'
6703 lt_prog_compiler_wl='-Wl,'
6704 lt_prog_compiler_can_build_shared=no
6708 lt_prog_compiler_pic='-pic'
6709 lt_prog_compiler_static='-Bstatic'
6713 lt_prog_compiler_can_build_shared=no
6719 # For platforms which do not support PIC, -DPIC is meaningless:
6721 lt_prog_compiler_pic=
6724 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6728 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6736 # Check to make sure the PIC flag actually works.
6738 if test -n "$lt_prog_compiler_pic"; then
6739 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6740 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6741 if test "${lt_prog_compiler_pic_works+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 lt_prog_compiler_pic_works=no
6745 ac_outfile=conftest.$ac_objext
6746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6747 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6748 # Insert the option either (1) after the last *FLAGS variable, or
6749 # (2) before a word containing "conftest.", or (3) at the end.
6750 # Note that $ac_compile itself does not contain backslashes and begins
6751 # with a dollar sign (not a hyphen), so the echo should work correctly.
6752 # The option is referenced via a variable to avoid confusing sed.
6753 lt_compile=`echo "$ac_compile" | $SED \
6754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6756 -e 's:$: $lt_compiler_flag:'`
6757 (eval echo "\"\$as_me:6757: $lt_compile\"" >&5)
6758 (eval "$lt_compile" 2>conftest.err)
6760 cat conftest.err >&5
6761 echo "$as_me:6761: \$? = $ac_status" >&5
6762 if (exit $ac_status) && test -s "$ac_outfile"; then
6763 # The compiler can only warn and ignore the option if not recognized
6764 # So say no if there are warnings other than the usual output.
6765 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6768 lt_prog_compiler_pic_works=yes
6774 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6775 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6777 if test x"$lt_prog_compiler_pic_works" = xyes; then
6778 case $lt_prog_compiler_pic in
6780 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6783 lt_prog_compiler_pic=
6784 lt_prog_compiler_can_build_shared=no
6795 # Check to make sure the static flag actually works.
6797 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6798 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6799 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6800 if test "${lt_prog_compiler_static_works+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 lt_prog_compiler_static_works=no
6804 save_LDFLAGS="$LDFLAGS"
6805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6808 # The linker can only warn and ignore the option if not recognized
6809 # So say no if there are warnings
6810 if test -s conftest.err; then
6811 # Append any errors to the config.log.
6812 cat conftest.err 1>&5
6813 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815 if diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_prog_compiler_static_works=yes
6819 lt_prog_compiler_static_works=yes
6823 LDFLAGS="$save_LDFLAGS"
6826 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6827 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6829 if test x"$lt_prog_compiler_static_works" = xyes; then
6832 lt_prog_compiler_static=
6841 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 lt_cv_prog_compiler_c_o=no
6847 $RM -r conftest 2>/dev/null
6851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6853 lt_compiler_flag="-o out/conftest2.$ac_objext"
6854 # Insert the option either (1) after the last *FLAGS variable, or
6855 # (2) before a word containing "conftest.", or (3) at the end.
6856 # Note that $ac_compile itself does not contain backslashes and begins
6857 # with a dollar sign (not a hyphen), so the echo should work correctly.
6858 lt_compile=`echo "$ac_compile" | $SED \
6859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6861 -e 's:$: $lt_compiler_flag:'`
6862 (eval echo "\"\$as_me:6862: $lt_compile\"" >&5)
6863 (eval "$lt_compile" 2>out/conftest.err)
6865 cat out/conftest.err >&5
6866 echo "$as_me:6866: \$? = $ac_status" >&5
6867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6869 # The compiler can only warn and ignore the option if not recognized
6870 # So say no if there are warnings
6871 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6874 lt_cv_prog_compiler_c_o=yes
6879 # SGI C++ compiler will create directory out/ii_files/ for
6880 # template instantiation
6881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6882 $RM out/* && rmdir out
6888 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6896 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6897 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6898 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 lt_cv_prog_compiler_c_o=no
6902 $RM -r conftest 2>/dev/null
6906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6908 lt_compiler_flag="-o out/conftest2.$ac_objext"
6909 # Insert the option either (1) after the last *FLAGS variable, or
6910 # (2) before a word containing "conftest.", or (3) at the end.
6911 # Note that $ac_compile itself does not contain backslashes and begins
6912 # with a dollar sign (not a hyphen), so the echo should work correctly.
6913 lt_compile=`echo "$ac_compile" | $SED \
6914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6916 -e 's:$: $lt_compiler_flag:'`
6917 (eval echo "\"\$as_me:6917: $lt_compile\"" >&5)
6918 (eval "$lt_compile" 2>out/conftest.err)
6920 cat out/conftest.err >&5
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6924 # The compiler can only warn and ignore the option if not recognized
6925 # So say no if there are warnings
6926 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6929 lt_cv_prog_compiler_c_o=yes
6934 # SGI C++ compiler will create directory out/ii_files/ for
6935 # template instantiation
6936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6937 $RM out/* && rmdir out
6943 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6944 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6949 hard_links="nottested"
6950 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6951 # do not overwrite the value of need_locks provided by the user
6952 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6958 ln conftest.a conftest.b 2>&5 || hard_links=no
6959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6960 echo "$as_me:$LINENO: result: $hard_links" >&5
6961 echo "${ECHO_T}$hard_links" >&6
6962 if test "$hard_links" = no; then
6963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6976 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6977 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6980 allow_undefined_flag=
6981 always_export_symbols=no
6983 archive_expsym_cmds=
6984 compiler_needs_object=no
6985 enable_shared_with_static_runtimes=no
6986 export_dynamic_flag_spec=
6987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6988 hardcode_automatic=no
6990 hardcode_direct_absolute=no
6991 hardcode_libdir_flag_spec=
6992 hardcode_libdir_flag_spec_ld=
6993 hardcode_libdir_separator=
6995 hardcode_shlibpath_var=unsupported
6997 link_all_deplibs=unknown
7000 old_archive_from_new_cmds=
7001 old_archive_from_expsyms_cmds=
7002 thread_safe_flag_spec=
7003 whole_archive_flag_spec=
7004 # include_expsyms should be a list of space-separated symbols to be *always*
7005 # included in the symbol list
7007 # exclude_expsyms can be an extended regexp of symbols to exclude
7008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7010 # as well as any symbol that contains `d'.
7011 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7013 # platforms (ab)use it in PIC code, but their linkers get confused if
7014 # the symbol is explicitly referenced. Since portable code cannot
7015 # rely on this symbol name, it's probably fine to never include it in
7016 # preloaded symbol tables.
7017 extract_expsyms_cmds=
7020 cygwin* | mingw* | pw32*)
7021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7022 # When not using gcc, we currently assume that we are using
7023 # Microsoft Visual C++.
7024 if test "$GCC" != yes; then
7029 # we just hope/assume this is gcc and not c89 (= MSVC++)
7038 if test "$with_gnu_ld" = yes; then
7039 # If archive_cmds runs LD, not CC, wlarc should be empty
7042 # Set some defaults for GNU ld with shared library support. These
7043 # are reset later if shared libraries are not supported. Putting them
7044 # here allows them to be overridden if necessary.
7045 runpath_var=LD_RUN_PATH
7046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7047 export_dynamic_flag_spec='${wl}--export-dynamic'
7048 # ancient GNU ld didn't support --whole-archive et. al.
7049 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7050 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7052 whole_archive_flag_spec=
7054 supports_anon_versioning=no
7055 case `$LD -v 2>&1` in
7056 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7057 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7058 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7059 *\ 2.11.*) ;; # other 2.11 versions
7060 *) supports_anon_versioning=yes ;;
7063 # See if GNU ld supports shared libraries.
7066 # On AIX/PPC, the GNU linker is very broken
7067 if test "$host_cpu" != ia64; then
7071 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7072 *** to be unable to reliably create shared libraries on AIX.
7073 *** Therefore, libtool is disabling shared libraries support. If you
7074 *** really care for shared libraries, you may want to modify your PATH
7075 *** so that a non-GNU linker is found, and then restart.
7082 if test "$host_cpu" = m68k; then
7083 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7084 hardcode_libdir_flag_spec='-L$libdir'
7085 hardcode_minus_L=yes
7088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7089 # that the semantics of dynamic libraries on AmigaOS, at least up
7090 # to version 4, is to share data among multiple programs linked
7091 # with the same dynamic library. Since this doesn't match the
7092 # behavior of shared libraries on other platforms, we can't use
7098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7099 allow_undefined_flag=unsupported
7100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7101 # support --undefined. This deserves some investigation. FIXME
7102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7108 cygwin* | mingw* | pw32*)
7109 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7110 # as there is no search path for DLLs.
7111 hardcode_libdir_flag_spec='-L$libdir'
7112 allow_undefined_flag=unsupported
7113 always_export_symbols=no
7114 enable_shared_with_static_runtimes=yes
7115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7119 # If the export-symbols file already is a .def file (1st line
7120 # is EXPORTS), use it as is; otherwise, prepend...
7121 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7122 cp $export_symbols $output_objdir/$soname.def;
7124 echo EXPORTS > $output_objdir/$soname.def;
7125 cat $export_symbols >> $output_objdir/$soname.def;
7127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7135 hardcode_shlibpath_var=no
7136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7137 export_dynamic_flag_spec='${wl}-E'
7138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7139 # Instead, shared libraries are loaded at an image base (0x10000000 by
7140 # default) and relocated if they conflict, which is a slow very memory
7141 # consuming and fragmenting process. To avoid this, we pick a random,
7142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7145 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7148 gnu* | linux* | tpf* | k*bsd*-gnu)
7150 if test "$host_os" = linux-dietlibc; then
7151 case $cc_basename in
7152 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7155 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7156 && test "$tmp_diet" = no
7159 case $cc_basename,$host_cpu in
7160 pgcc*) # Portland Group C compiler
7161 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7162 tmp_addflag=' $pic_flag'
7164 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7165 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7166 tmp_addflag=' $pic_flag -Mnomain' ;;
7167 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7168 tmp_addflag=' -i_dynamic' ;;
7169 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7170 tmp_addflag=' -i_dynamic -nofor_main' ;;
7171 ifc* | ifort*) # Intel Fortran compiler
7172 tmp_addflag=' -nofor_main' ;;
7174 case `$CC -V 2>&1 | sed 5q` in
7175 *Sun\ C*) # Sun C 5.9
7176 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7177 compiler_needs_object=yes
7178 tmp_sharedflag='-G' ;;
7179 *Sun\ F*) # Sun Fortran 8.3
7180 tmp_sharedflag='-G' ;;
7182 tmp_sharedflag='-shared' ;;
7184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7186 if test "x$supports_anon_versioning" = xyes; then
7187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7189 echo "local: *; };" >> $output_objdir/$libname.ver~
7190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7198 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7199 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7208 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7213 *** create shared libraries on Solaris systems. Therefore, libtool
7214 *** is disabling shared libraries support. We urge you to upgrade GNU
7215 *** binutils to release 2.9.1 or newer. Another option is to modify
7216 *** your PATH or compiler configuration so that the native linker is
7217 *** used, and then restart.
7220 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7229 case `$LD -v 2>&1` in
7230 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7234 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7235 *** reliably create shared libraries on SCO systems. Therefore, libtool
7236 *** is disabling shared libraries support. We urge you to upgrade GNU
7237 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7238 *** your PATH or compiler configuration so that the native linker is
7239 *** used, and then restart.
7244 # For security reasons, it is highly recommended that you always
7245 # use absolute paths for naming shared libraries, and exclude the
7246 # DT_RUNPATH tag from executables and libraries. But doing so
7247 # requires that you compile everything twice, which is a pain.
7248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7260 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7263 hardcode_shlibpath_var=no
7267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7276 if test "$ld_shlibs" = no; then
7278 hardcode_libdir_flag_spec=
7279 export_dynamic_flag_spec=
7280 whole_archive_flag_spec=
7283 # PORTME fill in a description of your system's linker (not GNU ld)
7286 allow_undefined_flag=unsupported
7287 always_export_symbols=yes
7288 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7289 # Note: this linker hardcodes the directories in LIBPATH if there
7290 # are no directories specified by -L.
7291 hardcode_minus_L=yes
7292 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7293 # Neither direct hardcoding nor static linking is supported with a
7295 hardcode_direct=unsupported
7300 if test "$host_cpu" = ia64; then
7301 # On IA64, the linker does run time linking by default, so we don't
7302 # have to do anything special.
7303 aix_use_runtimelinking=no
7304 exp_sym_flag='-Bexport'
7307 # If we're using GNU nm, then we don't want the "-C" option.
7308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7309 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7310 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7312 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7314 aix_use_runtimelinking=no
7316 # Test if we are trying to use run time linking or normal
7317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7318 # need to do runtime linking.
7319 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7320 for ld_flag in $LDFLAGS; do
7321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7322 aix_use_runtimelinking=yes
7329 exp_sym_flag='-bexport'
7330 no_entry_flag='-bnoentry'
7333 # When large executables or shared objects are built, AIX ld can
7334 # have problems creating the table of contents. If linking a library
7335 # or program results in "error TOC overflow" add -mminimal-toc to
7336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7341 hardcode_direct_absolute=yes
7342 hardcode_libdir_separator=':'
7343 link_all_deplibs=yes
7344 file_list_spec='${wl}-f,'
7346 if test "$GCC" = yes; then
7347 case $host_os in aix4.[012]|aix4.[012].*)
7348 # We only want to do this on AIX 4.2 and lower, the check
7349 # below for broken collect2 doesn't work under 4.3+
7350 collect2name=`${CC} -print-prog-name=collect2`
7351 if test -f "$collect2name" &&
7352 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7354 # We have reworked collect2
7357 # We have old collect2
7358 hardcode_direct=unsupported
7359 # It fails to find uninstalled libraries when the uninstalled
7360 # path is not listed in the libpath. Setting hardcode_minus_L
7361 # to unsupported forces relinking
7362 hardcode_minus_L=yes
7363 hardcode_libdir_flag_spec='-L$libdir'
7364 hardcode_libdir_separator=
7368 shared_flag='-shared'
7369 if test "$aix_use_runtimelinking" = yes; then
7370 shared_flag="$shared_flag "'${wl}-G'
7374 if test "$host_cpu" = ia64; then
7375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7376 # chokes on -Wl,-G. The following line is correct:
7379 if test "$aix_use_runtimelinking" = yes; then
7380 shared_flag='${wl}-G'
7382 shared_flag='${wl}-bM:SRE'
7387 # It seems that -bexpall does not export symbols beginning with
7388 # underscore (_), so it is better to generate a list of symbols to export.
7389 always_export_symbols=yes
7390 if test "$aix_use_runtimelinking" = yes; then
7391 # Warning - without using the other runtime loading flags (-brtl),
7392 # -berok will link without error, but may produce a broken library.
7393 allow_undefined_flag='-berok'
7394 # Determine the default libpath from the value encoded in an
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7411 rm -f conftest.$ac_objext conftest$ac_exeext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413 (eval $ac_link) 2>conftest.er1
7415 grep -v '^ *+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try='test -s conftest$ac_exeext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7434 lt_aix_libpath_sed='
7435 /Import File Strings/,/^$/ {
7441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7442 # Check for a 64-bit object if we didn't find anything.
7443 if test -z "$aix_libpath"; then
7444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7451 rm -f conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7455 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7456 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7458 if test "$host_cpu" = ia64; then
7459 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7460 allow_undefined_flag="-z nodefs"
7461 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7463 # Determine the default libpath from the value encoded in an
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -z "$ac_c_werror_flag"
7490 || test ! -s conftest.err'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try='test -s conftest$ac_exeext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7503 lt_aix_libpath_sed='
7504 /Import File Strings/,/^$/ {
7510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7511 # Check for a 64-bit object if we didn't find anything.
7512 if test -z "$aix_libpath"; then
7513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7520 rm -f conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7525 # Warning - without using the other run time loading flags,
7526 # -berok will link without error, but may produce a broken library.
7527 no_undefined_flag=' ${wl}-bernotok'
7528 allow_undefined_flag=' ${wl}-berok'
7529 # Exported symbols can be pulled into shared objects from archives
7530 whole_archive_flag_spec='$convenience'
7531 archive_cmds_need_lc=yes
7532 # This is similar to how AIX traditionally builds its shared libraries.
7533 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7539 if test "$host_cpu" = m68k; then
7540 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7541 hardcode_libdir_flag_spec='-L$libdir'
7542 hardcode_minus_L=yes
7544 # see comment about different semantics on the GNU ld section
7549 export_dynamic_flag_spec=-rdynamic
7552 cygwin* | mingw* | pw32*)
7553 # When not using gcc, we currently assume that we are using
7554 # Microsoft Visual C++.
7555 # hardcode_libdir_flag_spec is actually meaningless, as there is
7556 # no search path for DLLs.
7557 hardcode_libdir_flag_spec=' '
7558 allow_undefined_flag=unsupported
7559 # Tell ltmain to make .lib files, not .a files.
7561 # Tell ltmain to make .dll files, not .so files.
7563 # FIXME: Setting linknames here is a bad hack.
7564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7565 # The linker will automatically build a .lib file if we build a DLL.
7566 old_archive_from_new_cmds='true'
7567 # FIXME: Should let the user specify the lib program.
7568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7569 fix_srcfile_path='`cygpath -w "$srcfile"`'
7570 enable_shared_with_static_runtimes=yes
7573 darwin* | rhapsody*)
7575 rhapsody* | darwin1.[012])
7576 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7579 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7581 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7584 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7589 archive_cmds_need_lc=no
7591 hardcode_automatic=yes
7592 hardcode_shlibpath_var=unsupported
7593 whole_archive_flag_spec=''
7594 link_all_deplibs=yes
7595 if test "$GCC" = yes ; then
7596 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 lt_cv_apple_cc_single_mod=no
7600 if test -z "${LT_MULTI_MODULE}"; then
7601 # By default we will add the -single_module flag. You can override
7602 # by either setting the environment variable LT_MULTI_MODULE
7603 # non-empty at configure time, or by adding -multi-module to the
7605 echo "int foo(void){return 1;}" > conftest.c
7606 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7607 -dynamiclib ${wl}-single_module conftest.c
7608 if test -f libconftest.dylib; then
7609 lt_cv_apple_cc_single_mod=yes
7610 rm libconftest.dylib
7616 output_verbose_link_cmd=echo
7617 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7618 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7619 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7621 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7622 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7624 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7625 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7627 case $cc_basename in
7629 output_verbose_link_cmd=echo
7630 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7633 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7634 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645 hardcode_libdir_flag_spec='-L$libdir'
7646 hardcode_shlibpath_var=no
7653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7654 # support. Future versions do this automatically, but an explicit c++rt0.o
7655 # does not break anything, and helps significantly (at the cost of a little
7658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7659 hardcode_libdir_flag_spec='-R$libdir'
7661 hardcode_shlibpath_var=no
7664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7668 hardcode_minus_L=yes
7669 hardcode_shlibpath_var=no
7672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7673 freebsd* | dragonfly*)
7674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7675 hardcode_libdir_flag_spec='-R$libdir'
7677 hardcode_shlibpath_var=no
7681 if test "$GCC" = yes; then
7682 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7684 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7687 hardcode_libdir_separator=:
7690 # hardcode_minus_L: Not really in the search PATH,
7691 # but as the default location of the library.
7692 hardcode_minus_L=yes
7693 export_dynamic_flag_spec='${wl}-E'
7697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7702 if test "$with_gnu_ld" = no; then
7703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7704 hardcode_libdir_flag_spec_ld='+b $libdir'
7705 hardcode_libdir_separator=:
7707 hardcode_direct_absolute=yes
7708 export_dynamic_flag_spec='${wl}-E'
7709 # hardcode_minus_L: Not really in the search PATH,
7710 # but as the default location of the library.
7711 hardcode_minus_L=yes
7716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7731 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7741 if test "$with_gnu_ld" = no; then
7742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7743 hardcode_libdir_separator=:
7748 hardcode_shlibpath_var=no
7752 hardcode_direct_absolute=yes
7753 export_dynamic_flag_spec='${wl}-E'
7755 # hardcode_minus_L: Not really in the search PATH,
7756 # but as the default location of the library.
7757 hardcode_minus_L=yes
7763 irix5* | irix6* | nonstopux*)
7764 if test "$GCC" = yes; then
7765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7766 # Try to use the -exported_symbol ld option, if it does not
7767 # work, assume that -exports_file does not work either and
7768 # implicitly export all symbols.
7769 save_LDFLAGS="$LDFLAGS"
7770 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7771 cat >conftest.$ac_ext <<_ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>conftest.er1
7778 grep -v '^ *+' conftest.er1 >conftest.err
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7803 rm -f conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 LDFLAGS="$save_LDFLAGS"
7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7810 archive_cmds_need_lc='no'
7811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7812 hardcode_libdir_separator=:
7814 link_all_deplibs=yes
7818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7823 hardcode_libdir_flag_spec='-R$libdir'
7825 hardcode_shlibpath_var=no
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7832 hardcode_libdir_separator=:
7833 hardcode_shlibpath_var=no
7841 hardcode_shlibpath_var=no
7842 hardcode_direct_absolute=yes
7843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7847 export_dynamic_flag_spec='${wl}-E'
7850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7852 hardcode_libdir_flag_spec='-R$libdir'
7855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7863 hardcode_libdir_flag_spec='-L$libdir'
7864 hardcode_minus_L=yes
7865 allow_undefined_flag=unsupported
7866 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7867 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7871 if test "$GCC" = yes; then
7872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7873 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7875 allow_undefined_flag=' -expect_unresolved \*'
7876 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7878 archive_cmds_need_lc='no'
7879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7880 hardcode_libdir_separator=:
7883 osf4* | osf5*) # as osf3* with the addition of -msym flag
7884 if test "$GCC" = yes; then
7885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7886 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7889 allow_undefined_flag=' -expect_unresolved \*'
7890 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7891 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7892 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7894 # Both c and cxx compiler support -rpath directly
7895 hardcode_libdir_flag_spec='-rpath $libdir'
7897 archive_cmds_need_lc='no'
7898 hardcode_libdir_separator=:
7902 no_undefined_flag=' -z defs'
7903 if test "$GCC" = yes; then
7905 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7907 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7909 case `$CC -V 2>&1` in
7912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7918 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7920 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7924 hardcode_libdir_flag_spec='-R$libdir'
7925 hardcode_shlibpath_var=no
7927 solaris2.[0-5] | solaris2.[0-5].*) ;;
7929 # The compiler driver will combine and reorder linker options,
7930 # but understands `-z linker_flag'. GCC discards it without `$wl',
7931 # but is careful enough not to reorder.
7932 # Supported since Solaris 2.6 (maybe 2.5.1?)
7933 if test "$GCC" = yes; then
7934 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7940 link_all_deplibs=yes
7944 if test "x$host_vendor" = xsequent; then
7945 # Use $CC to link under sequent, because it throws in some extra .o
7946 # files that make .init and .fini sections work.
7947 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7949 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7951 hardcode_libdir_flag_spec='-L$libdir'
7953 hardcode_minus_L=yes
7954 hardcode_shlibpath_var=no
7958 case $host_vendor in
7960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7961 hardcode_direct=yes # is this really true???
7964 ## LD is ld it makes a PLAMLIB
7965 ## CC just makes a GrossModule.
7966 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7967 reload_cmds='$CC -r -o $output$reload_objs'
7971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7972 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7975 runpath_var='LD_RUN_PATH'
7976 hardcode_shlibpath_var=no
7980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981 hardcode_shlibpath_var=no
7982 export_dynamic_flag_spec='-Bexport'
7986 if test -d /usr/nec; then
7987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988 hardcode_shlibpath_var=no
7989 runpath_var=LD_RUN_PATH
7990 hardcode_runpath_var=yes
7995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7996 no_undefined_flag='${wl}-z,text'
7997 archive_cmds_need_lc=no
7998 hardcode_shlibpath_var=no
7999 runpath_var='LD_RUN_PATH'
8001 if test "$GCC" = yes; then
8002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8010 sysv5* | sco3.2v5* | sco5v6*)
8011 # Note: We can NOT use -z defs as we might desire, because we do not
8012 # link with -lc, and that would cause any symbols used from libc to
8013 # always be unresolved, which means just about no library would
8014 # ever link correctly. If we're not using GNU ld we use -z text
8015 # though, which does catch some bad symbols but isn't as heavy-handed
8017 no_undefined_flag='${wl}-z,text'
8018 allow_undefined_flag='${wl}-z,nodefs'
8019 archive_cmds_need_lc=no
8020 hardcode_shlibpath_var=no
8021 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8022 hardcode_libdir_separator=':'
8023 link_all_deplibs=yes
8024 export_dynamic_flag_spec='${wl}-Bexport'
8025 runpath_var='LD_RUN_PATH'
8027 if test "$GCC" = yes; then
8028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8038 hardcode_libdir_flag_spec='-L$libdir'
8039 hardcode_shlibpath_var=no
8047 if test x$host_vendor = xsni; then
8049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8050 export_dynamic_flag_spec='${wl}-Blargedynsym'
8056 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8057 echo "${ECHO_T}$ld_shlibs" >&6
8058 test "$ld_shlibs" = no && can_build_shared=no
8060 with_gnu_ld=$with_gnu_ld
8077 # Do we need to explicitly link libc?
8079 case "x$archive_cmds_need_lc" in
8081 # Assume -lc should be added
8082 archive_cmds_need_lc=yes
8084 if test "$enable_shared" = yes && test "$GCC" = yes; then
8085 case $archive_cmds in
8087 # FIXME: we may have to deal with multi-command sequences.
8090 # Test whether the compiler implicitly links with -lc since on some
8091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8092 # to ld, don't add -lc before -lgcc.
8093 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } 2>conftest.err; then
8105 libobjs=conftest.$ac_objext
8107 wl=$lt_prog_compiler_wl
8108 pic_flag=$lt_prog_compiler_pic
8114 lt_save_allow_undefined_flag=$allow_undefined_flag
8115 allow_undefined_flag=
8116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }
8122 archive_cmds_need_lc=no
8124 archive_cmds_need_lc=yes
8126 allow_undefined_flag=$lt_save_allow_undefined_flag
8128 cat conftest.err 1>&5
8131 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8132 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8295 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8298 if test "$withGCC" = yes; then
8300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8301 *) lt_awk_arg="/^libraries:/" ;;
8303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8304 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8305 # if the path contains ";" then we assume it to be the separator
8306 # otherwise default to the standard path separator (i.e. ":") - it is
8307 # assumed that no part of a normal pathname contains ";" but that should
8308 # okay in the real world where ";" in dirpaths is itself problematic.
8309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8313 # Ok, now we have the path, separated by spaces, we can step through it
8314 # and add multilib dir if necessary.
8315 lt_tmp_lt_search_path_spec=
8316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8317 for lt_sys_path in $lt_search_path_spec; do
8318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8321 test -d "$lt_sys_path" && \
8322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8325 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8326 BEGIN {RS=" "; FS="/|\n";} {
8329 for (lt_i = NF; lt_i > 0; lt_i--) {
8330 if ($lt_i != "" && $lt_i != ".") {
8331 if ($lt_i == "..") {
8334 if (lt_count == 0) {
8335 lt_foo="/" $lt_i lt_foo;
8342 if (lt_foo != "") { lt_freq[lt_foo]++; }
8343 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8345 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8350 libname_spec='lib$name'
8358 shlibpath_overrides_runpath=unknown
8360 dynamic_linker="$host_os ld.so"
8361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8362 need_lib_prefix=unknown
8363 hardcode_into_libs=no
8365 # when you set need_version to no, make sure it does not cause -set_version
8366 # flags to be left without arguments
8367 need_version=unknown
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8373 shlibpath_var=LIBPATH
8375 # AIX 3 has no versioning support, so we append a major version to the name.
8376 soname_spec='${libname}${release}${shared_ext}$major'
8383 hardcode_into_libs=yes
8384 if test "$host_cpu" = ia64; then
8385 # AIX 5 supports IA64
8386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8387 shlibpath_var=LD_LIBRARY_PATH
8389 # With GCC up to 2.95.x, collect2 would create an import file
8390 # for dependence libraries. The import file would start with
8391 # the line `#! .'. This would cause the generated library to
8392 # depend on `.', always an invalid library. This was fixed in
8393 # development snapshots of GCC prior to 3.0.
8395 aix4 | aix4.[01] | aix4.[01].*)
8396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8406 # soname into executable. Probably we can add versioning support to
8407 # collect2, so additional links can be useful in future.
8408 if test "$aix_use_runtimelinking" = yes; then
8409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8410 # instead of lib<name>.a to let people know that these are not
8411 # typical AIX shared libraries.
8412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414 # We preserve .a as extension for shared libraries through AIX4.2
8415 # and later when we are not doing run time linking.
8416 library_names_spec='${libname}${release}.a $libname.a'
8417 soname_spec='${libname}${release}${shared_ext}$major'
8419 shlibpath_var=LIBPATH
8424 if test "$host_cpu" = m68k; then
8425 library_names_spec='$libname.ixlibrary $libname.a'
8426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8427 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8434 library_names_spec='${libname}${shared_ext}'
8435 dynamic_linker="$host_os ld.so"
8436 shlibpath_var=LIBRARY_PATH
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8448 # the default ld.so.conf also contains /usr/contrib/lib and
8449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8450 # libtool to hard-code these into programs
8453 cygwin* | mingw* | pw32*)
8454 version_type=windows
8459 case $withGCC,$host_os in
8460 yes,cygwin* | yes,mingw* | yes,pw32*)
8461 library_names_spec='$libname.dll.a'
8462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8463 postinstall_cmds='base_file=`basename \${file}`~
8464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8465 dldir=$destdir/`dirname \$dlpath`~
8466 test -d \$dldir || mkdir -p \$dldir~
8467 $install_prog $dir/$dlname \$dldir/$dlname~
8468 chmod a+x \$dldir/$dlname~
8469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8473 dlpath=$dir/\$dldll~
8475 shlibpath_overrides_runpath=yes
8479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8481 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8484 # MinGW DLLs use traditional 'lib' prefix
8485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8486 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8488 # It is most probably a Windows format PATH printed by
8489 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8490 # path with ; separators, and with drive letters. We can handle the
8491 # drive letters (cygwin fileutils understands them), so leave them,
8492 # especially as we might pass files found there to a mingw objdump,
8493 # which wouldn't understand a cygwinified path. Ahh.
8494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8500 # pw32 DLLs use 'pw' prefix rather than 'lib'
8501 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8507 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8510 dynamic_linker='Win32 ld.exe'
8511 # FIXME: first we should search . and the directory the executable is in
8515 darwin* | rhapsody*)
8516 dynamic_linker="$host_os dyld"
8520 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8521 soname_spec='${libname}${release}${major}$shared_ext'
8522 shlibpath_overrides_runpath=yes
8523 shlibpath_var=DYLD_LIBRARY_PATH
8524 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8535 soname_spec='${libname}${release}${shared_ext}$major'
8536 shlibpath_var=LD_LIBRARY_PATH
8543 freebsd* | dragonfly*)
8544 # DragonFly does not have aout. When/if they implement a new
8545 # versioning mechanism, adjust this.
8546 if test -x /usr/bin/objformat; then
8547 objformat=`/usr/bin/objformat`
8550 freebsd[123]*) objformat=aout ;;
8554 version_type=freebsd-$objformat
8555 case $version_type in
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8566 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=yes
8571 freebsd3.[01]* | freebsdelf3.[01]*)
8572 shlibpath_overrides_runpath=yes
8573 hardcode_into_libs=yes
8575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8577 shlibpath_overrides_runpath=no
8578 hardcode_into_libs=yes
8580 *) # from 4.6 on, and DragonFly
8581 shlibpath_overrides_runpath=yes
8582 hardcode_into_libs=yes
8591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8592 soname_spec='${libname}${release}${shared_ext}$major'
8593 shlibpath_var=LD_LIBRARY_PATH
8594 hardcode_into_libs=yes
8597 hpux9* | hpux10* | hpux11*)
8598 # Give a soname corresponding to the major version so that dld.sl refuses to
8599 # link against other versions.
8606 hardcode_into_libs=yes
8607 dynamic_linker="$host_os dld.so"
8608 shlibpath_var=LD_LIBRARY_PATH
8609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 if test "X$HPUX_IA64_MODE" = X32; then
8613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8621 hardcode_into_libs=yes
8622 dynamic_linker="$host_os dld.sl"
8623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8626 soname_spec='${libname}${release}${shared_ext}$major'
8627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8632 dynamic_linker="$host_os dld.sl"
8633 shlibpath_var=SHLIB_PATH
8634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636 soname_spec='${libname}${release}${shared_ext}$major'
8639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8640 postinstall_cmds='chmod 555 $lib'
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8650 shlibpath_var=LD_LIBRARY_PATH
8651 shlibpath_overrides_runpath=no
8652 hardcode_into_libs=yes
8655 irix5* | irix6* | nonstopux*)
8657 nonstopux*) version_type=nonstopux ;;
8659 if test "$lt_cv_prog_gnu_ld" = yes; then
8667 soname_spec='${libname}${release}${shared_ext}$major'
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8670 irix5* | nonstopux*)
8674 case $LD in # libtool.m4 will add one of these switches to LD
8675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8676 libsuff= shlibsuff= libmagic=32-bit;;
8677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8678 libsuff=32 shlibsuff=N32 libmagic=N32;;
8679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8681 *) libsuff= shlibsuff= libmagic=never-match;;
8685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8686 shlibpath_overrides_runpath=no
8687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8689 hardcode_into_libs=yes
8692 # No shared lib support for Linux oldld, aout, or coff.
8693 linux*oldld* | linux*aout* | linux*coff*)
8697 # This must be Linux ELF.
8698 linux* | k*bsd*-gnu)
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8705 shlibpath_var=LD_LIBRARY_PATH
8706 shlibpath_overrides_runpath=no
8707 # Some binutils ld are patched to set DT_RUNPATH
8708 save_LDFLAGS=$LDFLAGS
8710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8712 cat >conftest.$ac_ext <<_ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8750 shlibpath_overrides_runpath=yes
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8758 rm -f conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LDFLAGS=$save_LDFLAGS
8763 # This implies no fast_install, which is unacceptable.
8764 # Some rework will be needed to allow for fast_install
8765 # before this can be enabled.
8766 hardcode_into_libs=yes
8768 # Append ld.so.conf contents to the search path
8769 if test -f /etc/ld.so.conf; then
8770 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8774 # We used to test for /lib/ld.so.1 and disable shared libraries on
8775 # powerpc, because MkLinux only supported shared libraries with the
8776 # GNU dynamic linker. Since this was broken with cross compilers,
8777 # most powerpc-linux boxes support dynamic linking these days and
8778 # people can always --disable-shared, the test was removed, and we
8779 # assume the GNU/Linux dynamic linker is in use.
8780 dynamic_linker='GNU/Linux ld.so'
8787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8790 dynamic_linker='NetBSD (a.out) ld.so'
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 dynamic_linker='NetBSD ld.elf_so'
8796 shlibpath_var=LD_LIBRARY_PATH
8797 shlibpath_overrides_runpath=yes
8798 hardcode_into_libs=yes
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 shlibpath_overrides_runpath=yes
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 shlibpath_overrides_runpath=no
8816 hardcode_into_libs=yes
8817 dynamic_linker='ldqnx.so'
8822 sys_lib_dlsearch_path_spec="/usr/lib"
8824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8826 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8827 *) need_version=no ;;
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8834 openbsd2.[89] | openbsd2.[89].*)
8835 shlibpath_overrides_runpath=no
8838 shlibpath_overrides_runpath=yes
8842 shlibpath_overrides_runpath=yes
8847 libname_spec='$name'
8850 library_names_spec='$libname${shared_ext} $libname.a'
8851 dynamic_linker='OS/2 ld.exe'
8852 shlibpath_var=LIBPATH
8855 osf3* | osf4* | osf5*)
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 shlibpath_var=LD_LIBRARY_PATH
8862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8863 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=yes
8878 hardcode_into_libs=yes
8879 # ldd complains unless libraries are executable
8880 postinstall_cmds='chmod +x $lib'
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes
8889 if test "$with_gnu_ld" = yes; then
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 shlibpath_var=LD_LIBRARY_PATH
8900 case $host_vendor in
8902 shlibpath_overrides_runpath=no
8904 runpath_var=LD_RUN_PATH
8912 shlibpath_overrides_runpath=no
8913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8919 if test -d /usr/nec ;then
8921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8922 soname_spec='$libname${shared_ext}.$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8928 version_type=freebsd-elf
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 hardcode_into_libs=yes
8936 if test "$with_gnu_ld" = yes; then
8937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8939 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8946 sys_lib_dlsearch_path_spec='/usr/lib'
8950 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8954 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8971 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8972 echo "${ECHO_T}$dynamic_linker" >&6
8973 test "$dynamic_linker" = no && can_build_shared=no
8975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8976 if test "$GCC" = yes; then
8977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9066 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9069 if test -n "$hardcode_libdir_flag_spec" ||
9070 test -n "$runpath_var" ||
9071 test "X$hardcode_automatic" = "Xyes" ; then
9073 # We can hardcode non-existent directories.
9074 if test "$hardcode_direct" != no &&
9075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9076 # have to relink, otherwise we might link with an installed library
9077 # when we should be linking with a yet-to-be-installed one
9078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9079 test "$hardcode_minus_L" != no; then
9080 # Linking always hardcodes the temporary library directory.
9081 hardcode_action=relink
9083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9084 hardcode_action=immediate
9087 # We cannot hardcode anything, or else we can only hardcode existing
9089 hardcode_action=unsupported
9091 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9092 echo "${ECHO_T}$hardcode_action" >&6
9094 if test "$hardcode_action" = relink ||
9095 test "$inherit_rpath" = yes; then
9096 # Fast installation is not supported
9097 enable_fast_install=no
9098 elif test "$shlibpath_overrides_runpath" = yes ||
9099 test "$enable_shared" = no; then
9100 # Fast installation is not necessary
9101 enable_fast_install=needless
9109 if test "x$enable_dlopen" != xyes; then
9110 enable_dlopen=unknown
9111 enable_dlopen_self=unknown
9112 enable_dlopen_self_static=unknown
9119 lt_cv_dlopen="load_add_on"
9121 lt_cv_dlopen_self=yes
9125 lt_cv_dlopen="LoadLibrary"
9130 lt_cv_dlopen="dlopen"
9135 # if libdl is installed we need to link against it
9136 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9137 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 ac_check_lib_save_LIBS=$LIBS
9143 cat >conftest.$ac_ext <<_ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9150 /* Override any gcc2 internal prototype to avoid an error. */
9154 /* We use char because int might match the return type of a gcc2
9155 builtin and then its argument prototype would still apply. */
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>conftest.er1
9169 grep -v '^ *+' conftest.er1 >conftest.err
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try='test -z "$ac_c_werror_flag"
9175 || test ! -s conftest.err'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try='test -s conftest$ac_exeext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187 ac_cv_lib_dl_dlopen=yes
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 ac_cv_lib_dl_dlopen=no
9194 rm -f conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9198 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9199 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9200 if test $ac_cv_lib_dl_dlopen = yes; then
9201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9206 lt_cv_dlopen_self=yes
9213 echo "$as_me:$LINENO: checking for shl_load" >&5
9214 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9215 if test "${ac_cv_func_shl_load+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9226 #define shl_load innocuous_shl_load
9228 /* System header to define __stub macros and hopefully few prototypes,
9229 which can conflict with char shl_load (); below.
9230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9231 <limits.h> exists even on freestanding compilers. */
9234 # include <limits.h>
9236 # include <assert.h>
9241 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9249 /* The GNU C library defines this for functions which it implements
9250 to always fail with ENOSYS. Some functions are actually named
9251 something starting with __ and the normal name is an alias. */
9252 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9255 char (*f) () = shl_load;
9264 return f != shl_load;
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271 (eval $ac_link) 2>conftest.er1
9273 grep -v '^ *+' conftest.er1 >conftest.err
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try='test -z "$ac_c_werror_flag"
9279 || test ! -s conftest.err'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 ac_cv_func_shl_load=yes
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_cv_func_shl_load=no
9298 rm -f conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9301 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9302 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9303 if test $ac_cv_func_shl_load = yes; then
9304 lt_cv_dlopen="shl_load"
9306 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9307 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9308 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 ac_check_lib_save_LIBS=$LIBS
9313 cat >conftest.$ac_ext <<_ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9320 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337 (eval $ac_link) 2>conftest.er1
9339 grep -v '^ *+' conftest.er1 >conftest.err
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -z "$ac_c_werror_flag"
9345 || 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_exeext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_lib_dld_shl_load=yes
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 ac_cv_lib_dld_shl_load=no
9364 rm -f conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 LIBS=$ac_check_lib_save_LIBS
9368 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9369 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9370 if test $ac_cv_lib_dld_shl_load = yes; then
9371 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9373 echo "$as_me:$LINENO: checking for dlopen" >&5
9374 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9375 if test "${ac_cv_func_dlopen+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9386 #define dlopen innocuous_dlopen
9388 /* System header to define __stub macros and hopefully few prototypes,
9389 which can conflict with char dlopen (); below.
9390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9391 <limits.h> exists even on freestanding compilers. */
9394 # include <limits.h>
9396 # include <assert.h>
9401 /* Override any gcc2 internal prototype to avoid an error. */
9406 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9409 /* The GNU C library defines this for functions which it implements
9410 to always fail with ENOSYS. Some functions are actually named
9411 something starting with __ and the normal name is an alias. */
9412 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9415 char (*f) () = dlopen;
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>conftest.er1
9433 grep -v '^ *+' conftest.er1 >conftest.err
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -z "$ac_c_werror_flag"
9439 || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_func_dlopen=yes
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_func_dlopen=no
9458 rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9462 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9463 if test $ac_cv_func_dlopen = yes; then
9464 lt_cv_dlopen="dlopen"
9466 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9467 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9468 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 ac_check_lib_save_LIBS=$LIBS
9473 cat >conftest.$ac_ext <<_ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any gcc2 internal prototype to avoid an error. */
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || 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_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_lib_dl_dlopen=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_lib_dl_dlopen=no
9524 rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9528 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9529 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9530 if test $ac_cv_lib_dl_dlopen = yes; then
9531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9533 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9534 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9535 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 ac_check_lib_save_LIBS=$LIBS
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9547 /* Override any gcc2 internal prototype to avoid an error. */
9551 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>conftest.er1
9566 grep -v '^ *+' conftest.er1 >conftest.err
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_lib_svld_dlopen=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_cv_lib_svld_dlopen=no
9591 rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9595 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9596 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9597 if test $ac_cv_lib_svld_dlopen = yes; then
9598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9600 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9601 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9602 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 ac_check_lib_save_LIBS=$LIBS
9607 cat >conftest.$ac_ext <<_ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any gcc2 internal prototype to avoid an error. */
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_dld_dld_link=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_lib_dld_dld_link=no
9658 rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 LIBS=$ac_check_lib_save_LIBS
9662 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9664 if test $ac_cv_lib_dld_dld_link = yes; then
9665 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9686 if test "x$lt_cv_dlopen" != xno; then
9692 case $lt_cv_dlopen in
9694 save_CPPFLAGS="$CPPFLAGS"
9695 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9697 save_LDFLAGS="$LDFLAGS"
9698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9701 LIBS="$lt_cv_dlopen_libs $LIBS"
9703 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9704 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9705 if test "${lt_cv_dlopen_self+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 if test "$cross_compiling" = yes; then :
9709 lt_cv_dlopen_self=cross
9711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9712 lt_status=$lt_dlunknown
9713 cat > conftest.$ac_ext <<_LT_EOF
9714 #line 9714 "configure"
9715 #include "confdefs.h"
9724 # define LT_DLGLOBAL RTLD_GLOBAL
9727 # define LT_DLGLOBAL DL_GLOBAL
9729 # define LT_DLGLOBAL 0
9733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9734 find out it does not work in some platform. */
9735 #ifndef LT_DLLAZY_OR_NOW
9737 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9740 # define LT_DLLAZY_OR_NOW DL_LAZY
9743 # define LT_DLLAZY_OR_NOW RTLD_NOW
9746 # define LT_DLLAZY_OR_NOW DL_NOW
9748 # define LT_DLLAZY_OR_NOW 0
9756 extern "C" void exit (int);
9759 void fnord() { int i=42;}
9762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9763 int status = $lt_dlunknown;
9767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9768 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9769 /* dlclose (self); */
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9782 (./conftest; exit; ) >&5 2>/dev/null
9785 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9786 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9787 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9790 # compilation failed
9791 lt_cv_dlopen_self=no
9798 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9799 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9801 if test "x$lt_cv_dlopen_self" = xyes; then
9802 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9803 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9804 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9805 if test "${lt_cv_dlopen_self_static+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 if test "$cross_compiling" = yes; then :
9809 lt_cv_dlopen_self_static=cross
9811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9812 lt_status=$lt_dlunknown
9813 cat > conftest.$ac_ext <<_LT_EOF
9814 #line 9814 "configure"
9815 #include "confdefs.h"
9824 # define LT_DLGLOBAL RTLD_GLOBAL
9827 # define LT_DLGLOBAL DL_GLOBAL
9829 # define LT_DLGLOBAL 0
9833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9834 find out it does not work in some platform. */
9835 #ifndef LT_DLLAZY_OR_NOW
9837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9840 # define LT_DLLAZY_OR_NOW DL_LAZY
9843 # define LT_DLLAZY_OR_NOW RTLD_NOW
9846 # define LT_DLLAZY_OR_NOW DL_NOW
9848 # define LT_DLLAZY_OR_NOW 0
9856 extern "C" void exit (int);
9859 void fnord() { int i=42;}
9862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9863 int status = $lt_dlunknown;
9867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9869 /* dlclose (self); */
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9882 (./conftest; exit; ) >&5 2>/dev/null
9885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9887 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9890 # compilation failed
9891 lt_cv_dlopen_self_static=no
9898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9899 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9902 CPPFLAGS="$save_CPPFLAGS"
9903 LDFLAGS="$save_LDFLAGS"
9908 case $lt_cv_dlopen_self in
9909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9910 *) enable_dlopen_self=unknown ;;
9913 case $lt_cv_dlopen_self_static in
9914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9915 *) enable_dlopen_self_static=unknown ;;
9937 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9938 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9939 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9940 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9941 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9942 echo "$as_me:$LINENO: result: yes" >&5
9943 echo "${ECHO_T}yes" >&6
9945 # FIXME - insert some real tests, host_os isn't really good enough
9948 if test -n "$STRIP" ; then
9949 striplib="$STRIP -x"
9950 old_striplib="$STRIP -S"
9951 echo "$as_me:$LINENO: result: yes" >&5
9952 echo "${ECHO_T}yes" >&6
9954 echo "$as_me:$LINENO: result: no" >&5
9955 echo "${ECHO_T}no" >&6
9959 echo "$as_me:$LINENO: result: no" >&5
9960 echo "${ECHO_T}no" >&6
9976 # Report which library types will actually be built
9977 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9978 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9979 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9980 echo "${ECHO_T}$can_build_shared" >&6
9982 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9983 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9984 test "$can_build_shared" = "no" && enable_shared=no
9986 # On AIX, shared libraries and static libraries use the same namespace, and
9987 # are all built from PIC.
9990 test "$enable_shared" = yes && enable_static=no
9991 if test -n "$RANLIB"; then
9992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9993 postinstall_cmds='$RANLIB $lib'
9998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9999 test "$enable_shared" = yes && enable_static=no
10003 echo "$as_me:$LINENO: result: $enable_shared" >&5
10004 echo "${ECHO_T}$enable_shared" >&6
10006 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10007 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10008 # Make sure either enable_shared or enable_static is yes.
10009 test "$enable_shared" = yes || enable_static=yes
10010 echo "$as_me:$LINENO: result: $enable_static" >&5
10011 echo "${ECHO_T}$enable_static" >&6
10018 ac_cpp='$CPP $CPPFLAGS'
10019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10037 ac_config_commands="$ac_config_commands libtool"
10042 # Only expand once:
10048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10051 if test "${enable_maintainer_mode+set}" = set; then
10052 enableval="$enable_maintainer_mode"
10053 USE_MAINTAINER_MODE=$enableval
10055 USE_MAINTAINER_MODE=no
10057 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10058 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10061 if test $USE_MAINTAINER_MODE = yes; then
10062 MAINTAINER_MODE_TRUE=
10063 MAINTAINER_MODE_FALSE='#'
10065 MAINTAINER_MODE_TRUE='#'
10066 MAINTAINER_MODE_FALSE=
10069 MAINT=$MAINTAINER_MODE_TRUE
10073 # We need gfortran to compile parts of the library
10074 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10075 #AC_PROG_FC(gfortran)
10077 ac_ext=${FC_SRCEXT-f}
10078 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10079 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10080 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10081 if test -n "$ac_tool_prefix"; then
10082 for ac_prog in gfortran
10084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10086 echo "$as_me:$LINENO: checking for $ac_word" >&5
10087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10088 if test "${ac_cv_prog_FC+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 if test -n "$FC"; then
10092 ac_cv_prog_FC="$FC" # Let the user override the test.
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 if test -n "$FC"; then
10112 echo "$as_me:$LINENO: result: $FC" >&5
10113 echo "${ECHO_T}$FC" >&6
10115 echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10119 test -n "$FC" && break
10122 if test -z "$FC"; then
10124 for ac_prog in gfortran
10126 # Extract the first word of "$ac_prog", so it can be a program name with args.
10127 set dummy $ac_prog; ac_word=$2
10128 echo "$as_me:$LINENO: checking for $ac_word" >&5
10129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 if test -n "$ac_ct_FC"; then
10134 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_ac_ct_FC="$ac_prog"
10144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10153 if test -n "$ac_ct_FC"; then
10154 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10155 echo "${ECHO_T}$ac_ct_FC" >&6
10157 echo "$as_me:$LINENO: result: no" >&5
10158 echo "${ECHO_T}no" >&6
10161 test -n "$ac_ct_FC" && break
10168 # Provide some information about the compiler.
10169 echo "$as_me:10169:" \
10170 "checking for Fortran compiler version" >&5
10171 ac_compiler=`set X $ac_compile; echo $2`
10172 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10173 (eval $ac_compiler --version </dev/null >&5) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }
10177 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10178 (eval $ac_compiler -v </dev/null >&5) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }
10182 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10183 (eval $ac_compiler -V </dev/null >&5) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }
10189 # If we don't use `.F' as extension, the preprocessor is not run on the
10190 # input file. (Note that this only needs to work for GNU compilers.)
10191 ac_save_ext=$ac_ext
10193 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10194 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10195 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 cat >conftest.$ac_ext <<_ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_fc_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_compiler_gnu=yes
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10239 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10240 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10241 ac_ext=$ac_save_ext
10242 ac_test_FFLAGS=${FCFLAGS+set}
10243 ac_save_FFLAGS=$FCFLAGS
10245 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10246 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10247 if test "${ac_cv_prog_fc_g+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10260 grep -v '^ *+' conftest.er1 >conftest.err
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_fc_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_prog_fc_g=yes
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10289 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10290 if test "$ac_test_FFLAGS" = set; then
10291 FCFLAGS=$ac_save_FFLAGS
10292 elif test $ac_cv_prog_fc_g = yes; then
10293 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10299 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10307 ac_cpp='$CPP $CPPFLAGS'
10308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10313 ac_ext=${FC_SRCEXT-f}
10314 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10315 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10316 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10317 if test -n "$ac_tool_prefix"; then
10318 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10322 echo "$as_me:$LINENO: checking for $ac_word" >&5
10323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10324 if test "${ac_cv_prog_FC+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 if test -n "$FC"; then
10328 ac_cv_prog_FC="$FC" # Let the user override the test.
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 if test -n "$FC"; then
10348 echo "$as_me:$LINENO: result: $FC" >&5
10349 echo "${ECHO_T}$FC" >&6
10351 echo "$as_me:$LINENO: result: no" >&5
10352 echo "${ECHO_T}no" >&6
10355 test -n "$FC" && break
10358 if test -z "$FC"; then
10360 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10362 # Extract the first word of "$ac_prog", so it can be a program name with args.
10363 set dummy $ac_prog; ac_word=$2
10364 echo "$as_me:$LINENO: checking for $ac_word" >&5
10365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10366 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 if test -n "$ac_ct_FC"; then
10370 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_prog_ac_ct_FC="$ac_prog"
10380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10389 if test -n "$ac_ct_FC"; then
10390 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10391 echo "${ECHO_T}$ac_ct_FC" >&6
10393 echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6
10397 test -n "$ac_ct_FC" && break
10404 # Provide some information about the compiler.
10405 echo "$as_me:10405:" \
10406 "checking for Fortran compiler version" >&5
10407 ac_compiler=`set X $ac_compile; echo $2`
10408 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10409 (eval $ac_compiler --version </dev/null >&5) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }
10413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10414 (eval $ac_compiler -v </dev/null >&5) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }
10418 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10419 (eval $ac_compiler -V </dev/null >&5) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }
10425 # If we don't use `.F' as extension, the preprocessor is not run on the
10426 # input file. (Note that this only needs to work for GNU compilers.)
10427 ac_save_ext=$ac_ext
10429 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10430 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10431 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 cat >conftest.$ac_ext <<_ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_fc_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_compiler_gnu=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10475 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10476 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10477 ac_ext=$ac_save_ext
10478 ac_test_FFLAGS=${FCFLAGS+set}
10479 ac_save_FFLAGS=$FCFLAGS
10481 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10482 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10483 if test "${ac_cv_prog_fc_g+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 cat >conftest.$ac_ext <<_ACEOF
10492 rm -f conftest.$ac_objext
10493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494 (eval $ac_compile) 2>conftest.er1
10496 grep -v '^ *+' conftest.er1 >conftest.err
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_fc_werror_flag"
10502 || test ! -s conftest.err'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest.$ac_objext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 ac_cv_prog_fc_g=yes
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10525 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10526 if test "$ac_test_FFLAGS" = set; then
10527 FCFLAGS=$ac_save_FFLAGS
10528 elif test $ac_cv_prog_fc_g = yes; then
10529 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10535 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10543 ac_cpp='$CPP $CPPFLAGS'
10544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10548 if test -z "$FC" || test "X$FC" = "Xno"; then
10554 ac_ext=${FC_SRCEXT-f}
10555 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10556 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10557 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10560 archive_cmds_need_lc_FC=no
10561 allow_undefined_flag_FC=
10562 always_export_symbols_FC=no
10563 archive_expsym_cmds_FC=
10564 export_dynamic_flag_spec_FC=
10565 hardcode_direct_FC=no
10566 hardcode_direct_absolute_FC=no
10567 hardcode_libdir_flag_spec_FC=
10568 hardcode_libdir_flag_spec_ld_FC=
10569 hardcode_libdir_separator_FC=
10570 hardcode_minus_L_FC=no
10571 hardcode_automatic_FC=no
10572 inherit_rpath_FC=no
10574 module_expsym_cmds_FC=
10575 link_all_deplibs_FC=unknown
10576 old_archive_cmds_FC=$old_archive_cmds
10577 no_undefined_flag_FC=
10578 whole_archive_flag_spec_FC=
10579 enable_shared_with_static_runtimes_FC=no
10581 # Source file extension for fc test sources.
10582 ac_ext=${ac_fc_srcext-f}
10584 # Object file extension for compiled fc test sources.
10588 # No sense in running all these tests if we already determined that
10589 # the FC compiler isn't working. Some variables (like enable_shared)
10590 # are currently assumed to apply to all compilers on this platform,
10591 # and will be corrupted by setting them based on a non-working compiler.
10592 if test "$_lt_disable_FC" != yes; then
10593 # Code to be used in simple compile tests
10594 lt_simple_compile_test_code="\
10600 # Code to be used in simple link tests
10601 lt_simple_link_test_code="\
10606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10613 # If no C compiler was specified, use CC.
10616 # If no C compiler flags were specified, use CFLAGS.
10617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10619 # Allow CC to be a program name with arguments.
10623 # save warnings/boilerplate of simple test code
10624 ac_outfile=conftest.$ac_objext
10625 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10627 _lt_compiler_boilerplate=`cat conftest.err`
10630 ac_outfile=conftest.$ac_objext
10631 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10633 _lt_linker_boilerplate=`cat conftest.err`
10637 # Allow CC to be a program name with arguments.
10642 for cc_temp in $compiler""; do
10644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10650 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10653 if test -n "$compiler"; then
10654 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10655 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10656 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10657 echo "${ECHO_T}$can_build_shared" >&6
10659 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10660 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10661 test "$can_build_shared" = "no" && enable_shared=no
10663 # On AIX, shared libraries and static libraries use the same namespace, and
10664 # are all built from PIC.
10667 test "$enable_shared" = yes && enable_static=no
10668 if test -n "$RANLIB"; then
10669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10670 postinstall_cmds='$RANLIB $lib'
10674 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10675 test "$enable_shared" = yes && enable_static=no
10679 echo "$as_me:$LINENO: result: $enable_shared" >&5
10680 echo "${ECHO_T}$enable_shared" >&6
10682 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10684 # Make sure either enable_shared or enable_static is yes.
10685 test "$enable_shared" = yes || enable_static=yes
10686 echo "$as_me:$LINENO: result: $enable_static" >&5
10687 echo "${ECHO_T}$enable_static" >&6
10689 GCC_FC="$ac_cv_fc_compiler_gnu"
10693 ## There is no encapsulation within the following macros, do not change
10694 ## the running order or otherwise move them around unless you know exactly
10695 ## what you are doing...
10696 # Dependencies to place before and after the object being linked:
10698 postdep_objects_FC=
10701 compiler_lib_search_path_FC=
10703 cat > conftest.$ac_ext <<_LT_EOF
10712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; then
10717 # Parse the compiler output and extract the necessary
10718 # objects, libraries and library flags.
10720 # Sentinel used to keep track of whether or not we are before
10721 # the conftest object file.
10722 pre_test_object_deps_done=no
10724 # The `*' in the case matches for architectures that use `case' in
10725 # $output_verbose_cmd can trigger glob expansion during the loop
10726 # eval without this substitution.
10727 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10729 for p in `eval $output_verbose_link_cmd`; do
10733 # Some compilers place space between "-{L,R}" and the path.
10734 # Remove the space.
10735 if test $p = "-L" ||
10736 test $p = "-R"; then
10743 if test "$pre_test_object_deps_done" = no; then
10746 # Internal compiler library paths should come after those
10747 # provided the user. The postdeps already come after the
10748 # user supplied libs so there is no need to process them.
10749 if test -z "$compiler_lib_search_path_FC"; then
10750 compiler_lib_search_path_FC="${prev}${p}"
10752 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10755 # The "-l" case would never come before the object being
10756 # linked, so don't bother handling this case.
10759 if test -z "$postdeps_FC"; then
10760 postdeps_FC="${prev}${p}"
10762 postdeps_FC="${postdeps_FC} ${prev}${p}"
10768 # This assumes that the test object file only shows up
10769 # once in the compiler output.
10770 if test "$p" = "conftest.$objext"; then
10771 pre_test_object_deps_done=yes
10775 if test "$pre_test_object_deps_done" = no; then
10776 if test -z "$predep_objects_FC"; then
10777 predep_objects_FC="$p"
10779 predep_objects_FC="$predep_objects_FC $p"
10782 if test -z "$postdep_objects_FC"; then
10783 postdep_objects_FC="$p"
10785 postdep_objects_FC="$postdep_objects_FC $p"
10790 *) ;; # Ignore the rest.
10798 echo "libtool.m4: error: problem compiling FC test program"
10801 $RM -f confest.$objext
10803 # PORTME: override above test on systems where it is broken
10806 case " $postdeps_FC " in
10807 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10835 lt_prog_compiler_wl_FC=
10836 lt_prog_compiler_pic_FC=
10837 lt_prog_compiler_static_FC=
10839 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10840 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10842 if test "$GCC" = yes; then
10843 lt_prog_compiler_wl_FC='-Wl,'
10844 lt_prog_compiler_static_FC='-static'
10848 # All AIX code is PIC.
10849 if test "$host_cpu" = ia64; then
10850 # AIX 5 now supports IA64 processor
10851 lt_prog_compiler_static_FC='-Bstatic'
10856 if test "$host_cpu" = m68k; then
10857 # FIXME: we need at least 68020 code to build shared libraries, but
10858 # adding the `-m68020' flag to GCC prevents building anything better,
10860 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10864 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10865 # PIC is the default for these OSes.
10868 mingw* | cygwin* | pw32* | os2*)
10869 # This hack is so that the source file can tell whether it is being
10870 # built for inclusion in a dll (and should export symbols for example).
10871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10872 # (--disable-auto-import) libraries
10873 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10876 darwin* | rhapsody*)
10877 # PIC is the default on this platform
10878 # Common symbols not allowed in MH_DYLIB files
10879 lt_prog_compiler_pic_FC='-fno-common'
10883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10884 # not for PA HP-UX.
10890 lt_prog_compiler_pic_FC='-fPIC'
10896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10897 # Instead, we relocate shared libraries at runtime.
10901 # Just because we use GCC doesn't mean we suddenly get shared libraries
10902 # on systems that don't support them.
10903 lt_prog_compiler_can_build_shared_FC=no
10908 # QNX uses GNU C++, but need to define -shared option too, otherwise
10909 # it will coredump.
10910 lt_prog_compiler_pic_FC='-fPIC -shared'
10914 if test -d /usr/nec; then
10915 lt_prog_compiler_pic_FC=-Kconform_pic
10920 lt_prog_compiler_pic_FC='-fPIC'
10924 # PORTME Check for flag to pass linker flags through the system compiler.
10927 lt_prog_compiler_wl_FC='-Wl,'
10928 if test "$host_cpu" = ia64; then
10929 # AIX 5 now supports IA64 processor
10930 lt_prog_compiler_static_FC='-Bstatic'
10932 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10936 # PIC is the default on this platform
10937 # Common symbols not allowed in MH_DYLIB files
10938 case $cc_basename in
10940 lt_prog_compiler_pic_FC='-qnocommon'
10941 lt_prog_compiler_wl_FC='-Wl,'
10946 mingw* | cygwin* | pw32* | os2*)
10947 # This hack is so that the source file can tell whether it is being
10948 # built for inclusion in a dll (and should export symbols for example).
10949 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10952 hpux9* | hpux10* | hpux11*)
10953 lt_prog_compiler_wl_FC='-Wl,'
10954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10955 # not for PA HP-UX.
10961 lt_prog_compiler_pic_FC='+Z'
10964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10965 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10968 irix5* | irix6* | nonstopux*)
10969 lt_prog_compiler_wl_FC='-Wl,'
10970 # PIC (with -KPIC) is the default.
10971 lt_prog_compiler_static_FC='-non_shared'
10974 linux* | k*bsd*-gnu)
10975 case $cc_basename in
10977 lt_prog_compiler_wl_FC='-Wl,'
10978 lt_prog_compiler_pic_FC='-KPIC'
10979 lt_prog_compiler_static_FC='-static'
10981 pgcc* | pgf77* | pgf90* | pgf95*)
10982 # Portland Group compilers (*not* the Pentium gcc compiler,
10983 # which looks to be a dead project)
10984 lt_prog_compiler_wl_FC='-Wl,'
10985 lt_prog_compiler_pic_FC='-fpic'
10986 lt_prog_compiler_static_FC='-Bstatic'
10989 lt_prog_compiler_wl_FC='-Wl,'
10990 # All Alpha code is PIC.
10991 lt_prog_compiler_static_FC='-non_shared'
10994 case `$CC -V 2>&1 | sed 5q` in
10997 lt_prog_compiler_pic_FC='-KPIC'
10998 lt_prog_compiler_static_FC='-Bstatic'
10999 lt_prog_compiler_wl_FC='-Wl,'
11002 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11003 lt_prog_compiler_pic_FC='-KPIC'
11004 lt_prog_compiler_static_FC='-Bstatic'
11005 lt_prog_compiler_wl_FC=''
11013 lt_prog_compiler_pic_FC='-KPIC'
11014 lt_prog_compiler_static_FC='-Bstatic'
11018 # QNX uses GNU C++, but need to define -shared option too, otherwise
11019 # it will coredump.
11020 lt_prog_compiler_pic_FC='-fPIC -shared'
11023 osf3* | osf4* | osf5*)
11024 lt_prog_compiler_wl_FC='-Wl,'
11025 # All OSF/1 code is PIC.
11026 lt_prog_compiler_static_FC='-non_shared'
11030 lt_prog_compiler_static_FC='-non_shared'
11034 lt_prog_compiler_pic_FC='-KPIC'
11035 lt_prog_compiler_static_FC='-Bstatic'
11036 case $cc_basename in
11037 f77* | f90* | f95*)
11038 lt_prog_compiler_wl_FC='-Qoption ld ';;
11040 lt_prog_compiler_wl_FC='-Wl,';;
11045 lt_prog_compiler_wl_FC='-Qoption ld '
11046 lt_prog_compiler_pic_FC='-PIC'
11047 lt_prog_compiler_static_FC='-Bstatic'
11050 sysv4 | sysv4.2uw2* | sysv4.3*)
11051 lt_prog_compiler_wl_FC='-Wl,'
11052 lt_prog_compiler_pic_FC='-KPIC'
11053 lt_prog_compiler_static_FC='-Bstatic'
11057 if test -d /usr/nec ;then
11058 lt_prog_compiler_pic_FC='-Kconform_pic'
11059 lt_prog_compiler_static_FC='-Bstatic'
11063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11064 lt_prog_compiler_wl_FC='-Wl,'
11065 lt_prog_compiler_pic_FC='-KPIC'
11066 lt_prog_compiler_static_FC='-Bstatic'
11070 lt_prog_compiler_wl_FC='-Wl,'
11071 lt_prog_compiler_can_build_shared_FC=no
11075 lt_prog_compiler_pic_FC='-pic'
11076 lt_prog_compiler_static_FC='-Bstatic'
11080 lt_prog_compiler_can_build_shared_FC=no
11086 # For platforms which do not support PIC, -DPIC is meaningless:
11088 lt_prog_compiler_pic_FC=
11091 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11094 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11095 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11100 # Check to make sure the PIC flag actually works.
11102 if test -n "$lt_prog_compiler_pic_FC"; then
11103 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11105 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 lt_prog_compiler_pic_works_FC=no
11109 ac_outfile=conftest.$ac_objext
11110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11111 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11112 # Insert the option either (1) after the last *FLAGS variable, or
11113 # (2) before a word containing "conftest.", or (3) at the end.
11114 # Note that $ac_compile itself does not contain backslashes and begins
11115 # with a dollar sign (not a hyphen), so the echo should work correctly.
11116 # The option is referenced via a variable to avoid confusing sed.
11117 lt_compile=`echo "$ac_compile" | $SED \
11118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11120 -e 's:$: $lt_compiler_flag:'`
11121 (eval echo "\"\$as_me:11121: $lt_compile\"" >&5)
11122 (eval "$lt_compile" 2>conftest.err)
11124 cat conftest.err >&5
11125 echo "$as_me:11125: \$? = $ac_status" >&5
11126 if (exit $ac_status) && test -s "$ac_outfile"; then
11127 # The compiler can only warn and ignore the option if not recognized
11128 # So say no if there are warnings other than the usual output.
11129 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11132 lt_prog_compiler_pic_works_FC=yes
11138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11139 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11141 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11142 case $lt_prog_compiler_pic_FC in
11144 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11147 lt_prog_compiler_pic_FC=
11148 lt_prog_compiler_can_build_shared_FC=no
11156 # Check to make sure the static flag actually works.
11158 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11159 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11160 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11161 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 lt_prog_compiler_static_works_FC=no
11165 save_LDFLAGS="$LDFLAGS"
11166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11169 # The linker can only warn and ignore the option if not recognized
11170 # So say no if there are warnings
11171 if test -s conftest.err; then
11172 # Append any errors to the config.log.
11173 cat conftest.err 1>&5
11174 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11176 if diff conftest.exp conftest.er2 >/dev/null; then
11177 lt_prog_compiler_static_works_FC=yes
11180 lt_prog_compiler_static_works_FC=yes
11184 LDFLAGS="$save_LDFLAGS"
11187 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11188 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11190 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11193 lt_prog_compiler_static_FC=
11199 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11200 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11201 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 lt_cv_prog_compiler_c_o_FC=no
11205 $RM -r conftest 2>/dev/null
11209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11211 lt_compiler_flag="-o out/conftest2.$ac_objext"
11212 # Insert the option either (1) after the last *FLAGS variable, or
11213 # (2) before a word containing "conftest.", or (3) at the end.
11214 # Note that $ac_compile itself does not contain backslashes and begins
11215 # with a dollar sign (not a hyphen), so the echo should work correctly.
11216 lt_compile=`echo "$ac_compile" | $SED \
11217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11219 -e 's:$: $lt_compiler_flag:'`
11220 (eval echo "\"\$as_me:11220: $lt_compile\"" >&5)
11221 (eval "$lt_compile" 2>out/conftest.err)
11223 cat out/conftest.err >&5
11224 echo "$as_me:11224: \$? = $ac_status" >&5
11225 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11227 # The compiler can only warn and ignore the option if not recognized
11228 # So say no if there are warnings
11229 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11232 lt_cv_prog_compiler_c_o_FC=yes
11237 # SGI C++ compiler will create directory out/ii_files/ for
11238 # template instantiation
11239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11240 $RM out/* && rmdir out
11246 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11247 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11251 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11252 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11253 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 lt_cv_prog_compiler_c_o_FC=no
11257 $RM -r conftest 2>/dev/null
11261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11263 lt_compiler_flag="-o out/conftest2.$ac_objext"
11264 # Insert the option either (1) after the last *FLAGS variable, or
11265 # (2) before a word containing "conftest.", or (3) at the end.
11266 # Note that $ac_compile itself does not contain backslashes and begins
11267 # with a dollar sign (not a hyphen), so the echo should work correctly.
11268 lt_compile=`echo "$ac_compile" | $SED \
11269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11271 -e 's:$: $lt_compiler_flag:'`
11272 (eval echo "\"\$as_me:11272: $lt_compile\"" >&5)
11273 (eval "$lt_compile" 2>out/conftest.err)
11275 cat out/conftest.err >&5
11276 echo "$as_me:11276: \$? = $ac_status" >&5
11277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11279 # The compiler can only warn and ignore the option if not recognized
11280 # So say no if there are warnings
11281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11284 lt_cv_prog_compiler_c_o_FC=yes
11289 # SGI C++ compiler will create directory out/ii_files/ for
11290 # template instantiation
11291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11292 $RM out/* && rmdir out
11298 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11299 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11304 hard_links="nottested"
11305 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11306 # do not overwrite the value of need_locks provided by the user
11307 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11308 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11313 ln conftest.a conftest.b 2>&5 || hard_links=no
11314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11315 echo "$as_me:$LINENO: result: $hard_links" >&5
11316 echo "${ECHO_T}$hard_links" >&6
11317 if test "$hard_links" = no; then
11318 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11319 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11328 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11332 allow_undefined_flag_FC=
11333 always_export_symbols_FC=no
11335 archive_expsym_cmds_FC=
11336 compiler_needs_object_FC=no
11337 enable_shared_with_static_runtimes_FC=no
11338 export_dynamic_flag_spec_FC=
11339 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11340 hardcode_automatic_FC=no
11341 hardcode_direct_FC=no
11342 hardcode_direct_absolute_FC=no
11343 hardcode_libdir_flag_spec_FC=
11344 hardcode_libdir_flag_spec_ld_FC=
11345 hardcode_libdir_separator_FC=
11346 hardcode_minus_L_FC=no
11347 hardcode_shlibpath_var_FC=unsupported
11348 inherit_rpath_FC=no
11349 link_all_deplibs_FC=unknown
11351 module_expsym_cmds_FC=
11352 old_archive_from_new_cmds_FC=
11353 old_archive_from_expsyms_cmds_FC=
11354 thread_safe_flag_spec_FC=
11355 whole_archive_flag_spec_FC=
11356 # include_expsyms should be a list of space-separated symbols to be *always*
11357 # included in the symbol list
11358 include_expsyms_FC=
11359 # exclude_expsyms can be an extended regexp of symbols to exclude
11360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11362 # as well as any symbol that contains `d'.
11363 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11365 # platforms (ab)use it in PIC code, but their linkers get confused if
11366 # the symbol is explicitly referenced. Since portable code cannot
11367 # rely on this symbol name, it's probably fine to never include it in
11368 # preloaded symbol tables.
11369 extract_expsyms_cmds=
11372 cygwin* | mingw* | pw32*)
11373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11374 # When not using gcc, we currently assume that we are using
11375 # Microsoft Visual C++.
11376 if test "$GCC" != yes; then
11381 # we just hope/assume this is gcc and not c89 (= MSVC++)
11390 if test "$with_gnu_ld" = yes; then
11391 # If archive_cmds runs LD, not CC, wlarc should be empty
11394 # Set some defaults for GNU ld with shared library support. These
11395 # are reset later if shared libraries are not supported. Putting them
11396 # here allows them to be overridden if necessary.
11397 runpath_var=LD_RUN_PATH
11398 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11399 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11400 # ancient GNU ld didn't support --whole-archive et. al.
11401 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11402 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11404 whole_archive_flag_spec_FC=
11406 supports_anon_versioning=no
11407 case `$LD -v 2>&1` in
11408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11411 *\ 2.11.*) ;; # other 2.11 versions
11412 *) supports_anon_versioning=yes ;;
11415 # See if GNU ld supports shared libraries.
11418 # On AIX/PPC, the GNU linker is very broken
11419 if test "$host_cpu" != ia64; then
11423 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11424 *** to be unable to reliably create shared libraries on AIX.
11425 *** Therefore, libtool is disabling shared libraries support. If you
11426 *** really care for shared libraries, you may want to modify your PATH
11427 *** so that a non-GNU linker is found, and then restart.
11434 if test "$host_cpu" = m68k; then
11435 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11436 hardcode_libdir_flag_spec_FC='-L$libdir'
11437 hardcode_minus_L_FC=yes
11440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11441 # that the semantics of dynamic libraries on AmigaOS, at least up
11442 # to version 4, is to share data among multiple programs linked
11443 # with the same dynamic library. Since this doesn't match the
11444 # behavior of shared libraries on other platforms, we can't use
11450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11451 allow_undefined_flag_FC=unsupported
11452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11453 # support --undefined. This deserves some investigation. FIXME
11454 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11460 cygwin* | mingw* | pw32*)
11461 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11462 # as there is no search path for DLLs.
11463 hardcode_libdir_flag_spec_FC='-L$libdir'
11464 allow_undefined_flag_FC=unsupported
11465 always_export_symbols_FC=no
11466 enable_shared_with_static_runtimes_FC=yes
11467 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11470 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11471 # If the export-symbols file already is a .def file (1st line
11472 # is EXPORTS), use it as is; otherwise, prepend...
11473 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11474 cp $export_symbols $output_objdir/$soname.def;
11476 echo EXPORTS > $output_objdir/$soname.def;
11477 cat $export_symbols >> $output_objdir/$soname.def;
11479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11486 hardcode_direct_FC=no
11487 hardcode_shlibpath_var_FC=no
11488 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11489 export_dynamic_flag_spec_FC='${wl}-E'
11490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11491 # Instead, shared libraries are loaded at an image base (0x10000000 by
11492 # default) and relocated if they conflict, which is a slow very memory
11493 # consuming and fragmenting process. To avoid this, we pick a random,
11494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11495 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11496 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11497 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11500 gnu* | linux* | tpf* | k*bsd*-gnu)
11502 if test "$host_os" = linux-dietlibc; then
11503 case $cc_basename in
11504 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11507 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11508 && test "$tmp_diet" = no
11511 case $cc_basename,$host_cpu in
11512 pgcc*) # Portland Group C compiler
11513 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11514 tmp_addflag=' $pic_flag'
11516 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11517 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11518 tmp_addflag=' $pic_flag -Mnomain' ;;
11519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11520 tmp_addflag=' -i_dynamic' ;;
11521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11522 tmp_addflag=' -i_dynamic -nofor_main' ;;
11523 ifc* | ifort*) # Intel Fortran compiler
11524 tmp_addflag=' -nofor_main' ;;
11526 case `$CC -V 2>&1 | sed 5q` in
11527 *Sun\ C*) # Sun C 5.9
11528 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11529 compiler_needs_object_FC=yes
11530 tmp_sharedflag='-G' ;;
11531 *Sun\ F*) # Sun Fortran 8.3
11532 tmp_sharedflag='-G' ;;
11534 tmp_sharedflag='-shared' ;;
11536 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538 if test "x$supports_anon_versioning" = xyes; then
11539 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11541 echo "local: *; };" >> $output_objdir/$libname.ver~
11542 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11551 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11554 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11555 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11560 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11565 *** create shared libraries on Solaris systems. Therefore, libtool
11566 *** is disabling shared libraries support. We urge you to upgrade GNU
11567 *** binutils to release 2.9.1 or newer. Another option is to modify
11568 *** your PATH or compiler configuration so that the native linker is
11569 *** used, and then restart.
11572 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11573 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11574 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11581 case `$LD -v 2>&1` in
11582 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11587 *** reliably create shared libraries on SCO systems. Therefore, libtool
11588 *** is disabling shared libraries support. We urge you to upgrade GNU
11589 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11590 *** your PATH or compiler configuration so that the native linker is
11591 *** used, and then restart.
11596 # For security reasons, it is highly recommended that you always
11597 # use absolute paths for naming shared libraries, and exclude the
11598 # DT_RUNPATH tag from executables and libraries. But doing so
11599 # requires that you compile everything twice, which is a pain.
11600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11601 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11602 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11612 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11614 hardcode_direct_FC=yes
11615 hardcode_shlibpath_var_FC=no
11619 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11620 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11621 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11628 if test "$ld_shlibs_FC" = no; then
11630 hardcode_libdir_flag_spec_FC=
11631 export_dynamic_flag_spec_FC=
11632 whole_archive_flag_spec_FC=
11635 # PORTME fill in a description of your system's linker (not GNU ld)
11638 allow_undefined_flag_FC=unsupported
11639 always_export_symbols_FC=yes
11640 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11641 # Note: this linker hardcodes the directories in LIBPATH if there
11642 # are no directories specified by -L.
11643 hardcode_minus_L_FC=yes
11644 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11645 # Neither direct hardcoding nor static linking is supported with a
11647 hardcode_direct_FC=unsupported
11652 if test "$host_cpu" = ia64; then
11653 # On IA64, the linker does run time linking by default, so we don't
11654 # have to do anything special.
11655 aix_use_runtimelinking=no
11656 exp_sym_flag='-Bexport'
11659 # If we're using GNU nm, then we don't want the "-C" option.
11660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11661 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11662 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11664 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11666 aix_use_runtimelinking=no
11668 # Test if we are trying to use run time linking or normal
11669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11670 # need to do runtime linking.
11671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11672 for ld_flag in $LDFLAGS; do
11673 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11674 aix_use_runtimelinking=yes
11681 exp_sym_flag='-bexport'
11682 no_entry_flag='-bnoentry'
11685 # When large executables or shared objects are built, AIX ld can
11686 # have problems creating the table of contents. If linking a library
11687 # or program results in "error TOC overflow" add -mminimal-toc to
11688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11692 hardcode_direct_FC=yes
11693 hardcode_direct_absolute_FC=yes
11694 hardcode_libdir_separator_FC=':'
11695 link_all_deplibs_FC=yes
11696 file_list_spec_FC='${wl}-f,'
11698 if test "$GCC" = yes; then
11699 case $host_os in aix4.[012]|aix4.[012].*)
11700 # We only want to do this on AIX 4.2 and lower, the check
11701 # below for broken collect2 doesn't work under 4.3+
11702 collect2name=`${CC} -print-prog-name=collect2`
11703 if test -f "$collect2name" &&
11704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11706 # We have reworked collect2
11709 # We have old collect2
11710 hardcode_direct_FC=unsupported
11711 # It fails to find uninstalled libraries when the uninstalled
11712 # path is not listed in the libpath. Setting hardcode_minus_L
11713 # to unsupported forces relinking
11714 hardcode_minus_L_FC=yes
11715 hardcode_libdir_flag_spec_FC='-L$libdir'
11716 hardcode_libdir_separator_FC=
11720 shared_flag='-shared'
11721 if test "$aix_use_runtimelinking" = yes; then
11722 shared_flag="$shared_flag "'${wl}-G'
11726 if test "$host_cpu" = ia64; then
11727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11728 # chokes on -Wl,-G. The following line is correct:
11731 if test "$aix_use_runtimelinking" = yes; then
11732 shared_flag='${wl}-G'
11734 shared_flag='${wl}-bM:SRE'
11739 # It seems that -bexpall does not export symbols beginning with
11740 # underscore (_), so it is better to generate a list of symbols to export.
11741 always_export_symbols_FC=yes
11742 if test "$aix_use_runtimelinking" = yes; then
11743 # Warning - without using the other runtime loading flags (-brtl),
11744 # -berok will link without error, but may produce a broken library.
11745 allow_undefined_flag_FC='-berok'
11746 # Determine the default libpath from the value encoded in an
11747 # empty executable.
11748 cat >conftest.$ac_ext <<_ACEOF
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11755 (eval $ac_link) 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_fc_werror_flag"
11763 || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest$ac_exeext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11776 lt_aix_libpath_sed='
11777 /Import File Strings/,/^$/ {
11783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11784 # Check for a 64-bit object if we didn't find anything.
11785 if test -z "$aix_libpath"; then
11786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11793 rm -f conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11797 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11798 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11800 if test "$host_cpu" = ia64; then
11801 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11802 allow_undefined_flag_FC="-z nodefs"
11803 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11805 # Determine the default libpath from the value encoded in an
11806 # empty executable.
11807 cat >conftest.$ac_ext <<_ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814 (eval $ac_link) 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_fc_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11835 lt_aix_libpath_sed='
11836 /Import File Strings/,/^$/ {
11842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11843 # Check for a 64-bit object if we didn't find anything.
11844 if test -z "$aix_libpath"; then
11845 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11852 rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11856 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11857 # Warning - without using the other run time loading flags,
11858 # -berok will link without error, but may produce a broken library.
11859 no_undefined_flag_FC=' ${wl}-bernotok'
11860 allow_undefined_flag_FC=' ${wl}-berok'
11861 # Exported symbols can be pulled into shared objects from archives
11862 whole_archive_flag_spec_FC='$convenience'
11863 archive_cmds_need_lc_FC=yes
11864 # This is similar to how AIX traditionally builds its shared libraries.
11865 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11871 if test "$host_cpu" = m68k; then
11872 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11873 hardcode_libdir_flag_spec_FC='-L$libdir'
11874 hardcode_minus_L_FC=yes
11876 # see comment about different semantics on the GNU ld section
11881 export_dynamic_flag_spec_FC=-rdynamic
11884 cygwin* | mingw* | pw32*)
11885 # When not using gcc, we currently assume that we are using
11886 # Microsoft Visual C++.
11887 # hardcode_libdir_flag_spec is actually meaningless, as there is
11888 # no search path for DLLs.
11889 hardcode_libdir_flag_spec_FC=' '
11890 allow_undefined_flag_FC=unsupported
11891 # Tell ltmain to make .lib files, not .a files.
11893 # Tell ltmain to make .dll files, not .so files.
11895 # FIXME: Setting linknames here is a bad hack.
11896 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11897 # The linker will automatically build a .lib file if we build a DLL.
11898 old_archive_from_new_cmds_FC='true'
11899 # FIXME: Should let the user specify the lib program.
11900 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11901 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11902 enable_shared_with_static_runtimes_FC=yes
11905 darwin* | rhapsody*)
11907 rhapsody* | darwin1.[012])
11908 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11911 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11913 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11916 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11921 archive_cmds_need_lc_FC=no
11922 hardcode_direct_FC=no
11923 hardcode_automatic_FC=yes
11924 hardcode_shlibpath_var_FC=unsupported
11925 whole_archive_flag_spec_FC=''
11926 link_all_deplibs_FC=yes
11927 if test "$GCC" = yes ; then
11928 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 lt_cv_apple_cc_single_mod=no
11932 if test -z "${LT_MULTI_MODULE}"; then
11933 # By default we will add the -single_module flag. You can override
11934 # by either setting the environment variable LT_MULTI_MODULE
11935 # non-empty at configure time, or by adding -multi-module to the
11937 echo "int foo(void){return 1;}" > conftest.c
11938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11939 -dynamiclib ${wl}-single_module conftest.c
11940 if test -f libconftest.dylib; then
11941 lt_cv_apple_cc_single_mod=yes
11942 rm libconftest.dylib
11944 rm conftest.$ac_ext
11948 output_verbose_link_cmd=echo
11949 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11950 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11951 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11953 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11954 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11956 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11957 module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11959 case $cc_basename in
11961 output_verbose_link_cmd=echo
11962 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11963 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11964 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11965 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11966 module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11976 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11977 hardcode_libdir_flag_spec_FC='-L$libdir'
11978 hardcode_shlibpath_var_FC=no
11985 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11986 # support. Future versions do this automatically, but an explicit c++rt0.o
11987 # does not break anything, and helps significantly (at the cost of a little
11990 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11991 hardcode_libdir_flag_spec_FC='-R$libdir'
11992 hardcode_direct_FC=yes
11993 hardcode_shlibpath_var_FC=no
11996 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11998 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11999 hardcode_direct_FC=yes
12000 hardcode_minus_L_FC=yes
12001 hardcode_shlibpath_var_FC=no
12004 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12005 freebsd* | dragonfly*)
12006 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12007 hardcode_libdir_flag_spec_FC='-R$libdir'
12008 hardcode_direct_FC=yes
12009 hardcode_shlibpath_var_FC=no
12013 if test "$GCC" = yes; then
12014 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12016 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12018 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12019 hardcode_libdir_separator_FC=:
12020 hardcode_direct_FC=yes
12022 # hardcode_minus_L: Not really in the search PATH,
12023 # but as the default location of the library.
12024 hardcode_minus_L_FC=yes
12025 export_dynamic_flag_spec_FC='${wl}-E'
12029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12030 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12032 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12034 if test "$with_gnu_ld" = no; then
12035 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12036 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12037 hardcode_libdir_separator_FC=:
12038 hardcode_direct_FC=yes
12039 hardcode_direct_absolute_FC=yes
12040 export_dynamic_flag_spec_FC='${wl}-E'
12041 # hardcode_minus_L: Not really in the search PATH,
12042 # but as the default location of the library.
12043 hardcode_minus_L_FC=yes
12048 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12051 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12054 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12057 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12063 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12066 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12069 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12073 if test "$with_gnu_ld" = no; then
12074 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12075 hardcode_libdir_separator_FC=:
12079 hardcode_direct_FC=no
12080 hardcode_shlibpath_var_FC=no
12083 hardcode_direct_FC=yes
12084 hardcode_direct_absolute_FC=yes
12085 export_dynamic_flag_spec_FC='${wl}-E'
12087 # hardcode_minus_L: Not really in the search PATH,
12088 # but as the default location of the library.
12089 hardcode_minus_L_FC=yes
12095 irix5* | irix6* | nonstopux*)
12096 if test "$GCC" = yes; then
12097 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12098 # Try to use the -exported_symbol ld option, if it does not
12099 # work, assume that -exports_file does not work either and
12100 # implicitly export all symbols.
12101 save_LDFLAGS="$LDFLAGS"
12102 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12103 cat >conftest.$ac_ext <<_ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12110 grep -v '^ *+' conftest.er1 >conftest.err
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_fc_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12135 rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LDFLAGS="$save_LDFLAGS"
12139 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12140 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12142 archive_cmds_need_lc_FC='no'
12143 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12144 hardcode_libdir_separator_FC=:
12145 inherit_rpath_FC=yes
12146 link_all_deplibs_FC=yes
12150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12151 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12153 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12155 hardcode_libdir_flag_spec_FC='-R$libdir'
12156 hardcode_direct_FC=yes
12157 hardcode_shlibpath_var_FC=no
12161 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12162 hardcode_direct_FC=yes
12163 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12164 hardcode_libdir_separator_FC=:
12165 hardcode_shlibpath_var_FC=no
12172 hardcode_direct_FC=yes
12173 hardcode_shlibpath_var_FC=no
12174 hardcode_direct_absolute_FC=yes
12175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12176 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12177 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12178 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12179 export_dynamic_flag_spec_FC='${wl}-E'
12182 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12183 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12184 hardcode_libdir_flag_spec_FC='-R$libdir'
12187 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12188 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12195 hardcode_libdir_flag_spec_FC='-L$libdir'
12196 hardcode_minus_L_FC=yes
12197 allow_undefined_flag_FC=unsupported
12198 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12199 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12203 if test "$GCC" = yes; then
12204 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12205 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12207 allow_undefined_flag_FC=' -expect_unresolved \*'
12208 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12210 archive_cmds_need_lc_FC='no'
12211 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12212 hardcode_libdir_separator_FC=:
12215 osf4* | osf5*) # as osf3* with the addition of -msym flag
12216 if test "$GCC" = yes; then
12217 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12218 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12219 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12221 allow_undefined_flag_FC=' -expect_unresolved \*'
12222 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12223 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12224 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12226 # Both c and cxx compiler support -rpath directly
12227 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12229 archive_cmds_need_lc_FC='no'
12230 hardcode_libdir_separator_FC=:
12234 no_undefined_flag_FC=' -z defs'
12235 if test "$GCC" = yes; then
12237 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12238 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12239 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12241 case `$CC -V 2>&1` in
12244 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12245 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12246 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12250 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12251 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12252 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12256 hardcode_libdir_flag_spec_FC='-R$libdir'
12257 hardcode_shlibpath_var_FC=no
12259 solaris2.[0-5] | solaris2.[0-5].*) ;;
12261 # The compiler driver will combine and reorder linker options,
12262 # but understands `-z linker_flag'. GCC discards it without `$wl',
12263 # but is careful enough not to reorder.
12264 # Supported since Solaris 2.6 (maybe 2.5.1?)
12265 if test "$GCC" = yes; then
12266 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12268 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12272 link_all_deplibs_FC=yes
12276 if test "x$host_vendor" = xsequent; then
12277 # Use $CC to link under sequent, because it throws in some extra .o
12278 # files that make .init and .fini sections work.
12279 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12281 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12283 hardcode_libdir_flag_spec_FC='-L$libdir'
12284 hardcode_direct_FC=yes
12285 hardcode_minus_L_FC=yes
12286 hardcode_shlibpath_var_FC=no
12290 case $host_vendor in
12292 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12293 hardcode_direct_FC=yes # is this really true???
12296 ## LD is ld it makes a PLAMLIB
12297 ## CC just makes a GrossModule.
12298 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12299 reload_cmds_FC='$CC -r -o $output$reload_objs'
12300 hardcode_direct_FC=no
12303 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12307 runpath_var='LD_RUN_PATH'
12308 hardcode_shlibpath_var_FC=no
12312 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313 hardcode_shlibpath_var_FC=no
12314 export_dynamic_flag_spec_FC='-Bexport'
12318 if test -d /usr/nec; then
12319 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_shlibpath_var_FC=no
12321 runpath_var=LD_RUN_PATH
12322 hardcode_runpath_var=yes
12327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12328 no_undefined_flag_FC='${wl}-z,text'
12329 archive_cmds_need_lc_FC=no
12330 hardcode_shlibpath_var_FC=no
12331 runpath_var='LD_RUN_PATH'
12333 if test "$GCC" = yes; then
12334 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12342 sysv5* | sco3.2v5* | sco5v6*)
12343 # Note: We can NOT use -z defs as we might desire, because we do not
12344 # link with -lc, and that would cause any symbols used from libc to
12345 # always be unresolved, which means just about no library would
12346 # ever link correctly. If we're not using GNU ld we use -z text
12347 # though, which does catch some bad symbols but isn't as heavy-handed
12349 no_undefined_flag_FC='${wl}-z,text'
12350 allow_undefined_flag_FC='${wl}-z,nodefs'
12351 archive_cmds_need_lc_FC=no
12352 hardcode_shlibpath_var_FC=no
12353 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12354 hardcode_libdir_separator_FC=':'
12355 link_all_deplibs_FC=yes
12356 export_dynamic_flag_spec_FC='${wl}-Bexport'
12357 runpath_var='LD_RUN_PATH'
12359 if test "$GCC" = yes; then
12360 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12363 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12369 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370 hardcode_libdir_flag_spec_FC='-L$libdir'
12371 hardcode_shlibpath_var_FC=no
12379 if test x$host_vendor = xsni; then
12381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12382 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12388 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12389 echo "${ECHO_T}$ld_shlibs_FC" >&6
12390 test "$ld_shlibs_FC" = no && can_build_shared=no
12392 with_gnu_ld_FC=$with_gnu_ld
12400 # Do we need to explicitly link libc?
12402 case "x$archive_cmds_need_lc_FC" in
12404 # Assume -lc should be added
12405 archive_cmds_need_lc_FC=yes
12407 if test "$enable_shared" = yes && test "$GCC" = yes; then
12408 case $archive_cmds_FC in
12410 # FIXME: we may have to deal with multi-command sequences.
12413 # Test whether the compiler implicitly links with -lc since on some
12414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12415 # to ld, don't add -lc before -lgcc.
12416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12417 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } 2>conftest.err; then
12428 libobjs=conftest.$ac_objext
12430 wl=$lt_prog_compiler_wl_FC
12431 pic_flag=$lt_prog_compiler_pic_FC
12437 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12438 allow_undefined_flag_FC=
12439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12440 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }
12445 archive_cmds_need_lc_FC=no
12447 archive_cmds_need_lc_FC=yes
12449 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12451 cat conftest.err 1>&5
12454 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12455 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12525 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12527 withGCC=$ac_cv_fc_compiler_gnu
12528 library_names_spec=
12529 libname_spec='lib$name'
12533 postuninstall_cmds=
12537 shlibpath_overrides_runpath=unknown
12539 dynamic_linker="$host_os ld.so"
12540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12541 need_lib_prefix=unknown
12542 hardcode_into_libs=no
12544 # when you set need_version to no, make sure it does not cause -set_version
12545 # flags to be left without arguments
12546 need_version=unknown
12551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12552 shlibpath_var=LIBPATH
12554 # AIX 3 has no versioning support, so we append a major version to the name.
12555 soname_spec='${libname}${release}${shared_ext}$major'
12562 hardcode_into_libs=yes
12563 if test "$host_cpu" = ia64; then
12564 # AIX 5 supports IA64
12565 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12566 shlibpath_var=LD_LIBRARY_PATH
12568 # With GCC up to 2.95.x, collect2 would create an import file
12569 # for dependence libraries. The import file would start with
12570 # the line `#! .'. This would cause the generated library to
12571 # depend on `.', always an invalid library. This was fixed in
12572 # development snapshots of GCC prior to 3.0.
12574 aix4 | aix4.[01] | aix4.[01].*)
12575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12577 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12580 can_build_shared=no
12584 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12585 # soname into executable. Probably we can add versioning support to
12586 # collect2, so additional links can be useful in future.
12587 if test "$aix_use_runtimelinking" = yes; then
12588 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12589 # instead of lib<name>.a to let people know that these are not
12590 # typical AIX shared libraries.
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593 # We preserve .a as extension for shared libraries through AIX4.2
12594 # and later when we are not doing run time linking.
12595 library_names_spec='${libname}${release}.a $libname.a'
12596 soname_spec='${libname}${release}${shared_ext}$major'
12598 shlibpath_var=LIBPATH
12603 if test "$host_cpu" = m68k; then
12604 library_names_spec='$libname.ixlibrary $libname.a'
12605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12606 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12613 library_names_spec='${libname}${shared_ext}'
12614 dynamic_linker="$host_os ld.so"
12615 shlibpath_var=LIBRARY_PATH
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12627 # the default ld.so.conf also contains /usr/contrib/lib and
12628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12629 # libtool to hard-code these into programs
12632 cygwin* | mingw* | pw32*)
12633 version_type=windows
12638 case $withGCC,$host_os in
12639 yes,cygwin* | yes,mingw* | yes,pw32*)
12640 library_names_spec='$libname.dll.a'
12641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12642 postinstall_cmds='base_file=`basename \${file}`~
12643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12644 dldir=$destdir/`dirname \$dlpath`~
12645 test -d \$dldir || mkdir -p \$dldir~
12646 $install_prog $dir/$dlname \$dldir/$dlname~
12647 chmod a+x \$dldir/$dlname~
12648 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12649 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12652 dlpath=$dir/\$dldll~
12654 shlibpath_overrides_runpath=yes
12658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12663 # MinGW DLLs use traditional 'lib' prefix
12664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12665 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12666 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12667 # It is most probably a Windows format PATH printed by
12668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12669 # path with ; separators, and with drive letters. We can handle the
12670 # drive letters (cygwin fileutils understands them), so leave them,
12671 # especially as we might pass files found there to a mingw objdump,
12672 # which wouldn't understand a cygwinified path. Ahh.
12673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12675 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12679 # pw32 DLLs use 'pw' prefix rather than 'lib'
12680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12689 dynamic_linker='Win32 ld.exe'
12690 # FIXME: first we should search . and the directory the executable is in
12694 darwin* | rhapsody*)
12695 dynamic_linker="$host_os dyld"
12696 version_type=darwin
12699 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12700 soname_spec='${libname}${release}${major}$shared_ext'
12701 shlibpath_overrides_runpath=yes
12702 shlibpath_var=DYLD_LIBRARY_PATH
12703 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12713 soname_spec='${libname}${release}${shared_ext}$major'
12714 shlibpath_var=LD_LIBRARY_PATH
12721 freebsd* | dragonfly*)
12722 # DragonFly does not have aout. When/if they implement a new
12723 # versioning mechanism, adjust this.
12724 if test -x /usr/bin/objformat; then
12725 objformat=`/usr/bin/objformat`
12728 freebsd[123]*) objformat=aout ;;
12729 *) objformat=elf ;;
12732 version_type=freebsd-$objformat
12733 case $version_type in
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12744 shlibpath_var=LD_LIBRARY_PATH
12747 shlibpath_overrides_runpath=yes
12749 freebsd3.[01]* | freebsdelf3.[01]*)
12750 shlibpath_overrides_runpath=yes
12751 hardcode_into_libs=yes
12753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12755 shlibpath_overrides_runpath=no
12756 hardcode_into_libs=yes
12758 *) # from 4.6 on, and DragonFly
12759 shlibpath_overrides_runpath=yes
12760 hardcode_into_libs=yes
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12770 soname_spec='${libname}${release}${shared_ext}$major'
12771 shlibpath_var=LD_LIBRARY_PATH
12772 hardcode_into_libs=yes
12775 hpux9* | hpux10* | hpux11*)
12776 # Give a soname corresponding to the major version so that dld.sl refuses to
12777 # link against other versions.
12784 hardcode_into_libs=yes
12785 dynamic_linker="$host_os dld.so"
12786 shlibpath_var=LD_LIBRARY_PATH
12787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 soname_spec='${libname}${release}${shared_ext}$major'
12790 if test "X$HPUX_IA64_MODE" = X32; then
12791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12799 hardcode_into_libs=yes
12800 dynamic_linker="$host_os dld.sl"
12801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12810 dynamic_linker="$host_os dld.sl"
12811 shlibpath_var=SHLIB_PATH
12812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12818 postinstall_cmds='chmod 555 $lib'
12825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12826 soname_spec='${libname}${release}${shared_ext}$major'
12827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=no
12830 hardcode_into_libs=yes
12833 irix5* | irix6* | nonstopux*)
12835 nonstopux*) version_type=nonstopux ;;
12837 if test "$lt_cv_prog_gnu_ld" = yes; then
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12848 irix5* | nonstopux*)
12849 libsuff= shlibsuff=
12852 case $LD in # libtool.m4 will add one of these switches to LD
12853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12854 libsuff= shlibsuff= libmagic=32-bit;;
12855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12856 libsuff=32 shlibsuff=N32 libmagic=N32;;
12857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12859 *) libsuff= shlibsuff= libmagic=never-match;;
12863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12864 shlibpath_overrides_runpath=no
12865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12867 hardcode_into_libs=yes
12870 # No shared lib support for Linux oldld, aout, or coff.
12871 linux*oldld* | linux*aout* | linux*coff*)
12875 # This must be Linux ELF.
12876 linux* | k*bsd*-gnu)
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=no
12885 # Some binutils ld are patched to set DT_RUNPATH
12886 save_LDFLAGS=$LDFLAGS
12887 save_libdir=$libdir
12888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12890 cat >conftest.$ac_ext <<_ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>conftest.er1
12899 grep -v '^ *+' conftest.er1 >conftest.err
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_fc_werror_flag"
12905 || test ! -s conftest.err'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12918 shlibpath_overrides_runpath=yes
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12926 rm -f conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LDFLAGS=$save_LDFLAGS
12929 libdir=$save_libdir
12931 # This implies no fast_install, which is unacceptable.
12932 # Some rework will be needed to allow for fast_install
12933 # before this can be enabled.
12934 hardcode_into_libs=yes
12936 # Append ld.so.conf contents to the search path
12937 if test -f /etc/ld.so.conf; then
12938 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12942 # We used to test for /lib/ld.so.1 and disable shared libraries on
12943 # powerpc, because MkLinux only supported shared libraries with the
12944 # GNU dynamic linker. Since this was broken with cross compilers,
12945 # most powerpc-linux boxes support dynamic linking these days and
12946 # people can always --disable-shared, the test was removed, and we
12947 # assume the GNU/Linux dynamic linker is in use.
12948 dynamic_linker='GNU/Linux ld.so'
12955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12958 dynamic_linker='NetBSD (a.out) ld.so'
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 dynamic_linker='NetBSD ld.elf_so'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 shlibpath_overrides_runpath=yes
12966 hardcode_into_libs=yes
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 shlibpath_overrides_runpath=yes
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=no
12984 hardcode_into_libs=yes
12985 dynamic_linker='ldqnx.so'
12990 sys_lib_dlsearch_path_spec="/usr/lib"
12992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12994 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12995 *) need_version=no ;;
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13002 openbsd2.[89] | openbsd2.[89].*)
13003 shlibpath_overrides_runpath=no
13006 shlibpath_overrides_runpath=yes
13010 shlibpath_overrides_runpath=yes
13015 libname_spec='$name'
13018 library_names_spec='$libname${shared_ext} $libname.a'
13019 dynamic_linker='OS/2 ld.exe'
13020 shlibpath_var=LIBPATH
13023 osf3* | osf4* | osf5*)
13027 soname_spec='${libname}${release}${shared_ext}$major'
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13046 hardcode_into_libs=yes
13047 # ldd complains unless libraries are executable
13048 postinstall_cmds='chmod +x $lib'
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=yes
13057 if test "$with_gnu_ld" = yes; then
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066 soname_spec='${libname}${release}${shared_ext}$major'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 case $host_vendor in
13070 shlibpath_overrides_runpath=no
13072 runpath_var=LD_RUN_PATH
13080 shlibpath_overrides_runpath=no
13081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13087 if test -d /usr/nec ;then
13089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13090 soname_spec='$libname${shared_ext}.$major'
13091 shlibpath_var=LD_LIBRARY_PATH
13095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13096 version_type=freebsd-elf
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13100 soname_spec='${libname}${release}${shared_ext}$major'
13101 shlibpath_var=LD_LIBRARY_PATH
13102 shlibpath_overrides_runpath=yes
13103 hardcode_into_libs=yes
13104 if test "$with_gnu_ld" = yes; then
13105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13114 sys_lib_dlsearch_path_spec='/usr/lib'
13118 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13122 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 shlibpath_overrides_runpath=no
13125 hardcode_into_libs=yes
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131 soname_spec='${libname}${release}${shared_ext}$major'
13132 shlibpath_var=LD_LIBRARY_PATH
13139 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13140 echo "${ECHO_T}$dynamic_linker" >&6
13141 test "$dynamic_linker" = no && can_build_shared=no
13143 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13144 if test "$GCC" = yes; then
13145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13183 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13185 hardcode_action_FC=
13186 if test -n "$hardcode_libdir_flag_spec_FC" ||
13187 test -n "$runpath_var_FC" ||
13188 test "X$hardcode_automatic_FC" = "Xyes" ; then
13190 # We can hardcode non-existent directories.
13191 if test "$hardcode_direct_FC" != no &&
13192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13193 # have to relink, otherwise we might link with an installed library
13194 # when we should be linking with a yet-to-be-installed one
13195 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13196 test "$hardcode_minus_L_FC" != no; then
13197 # Linking always hardcodes the temporary library directory.
13198 hardcode_action_FC=relink
13200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13201 hardcode_action_FC=immediate
13204 # We cannot hardcode anything, or else we can only hardcode existing
13206 hardcode_action_FC=unsupported
13208 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13209 echo "${ECHO_T}$hardcode_action_FC" >&6
13211 if test "$hardcode_action_FC" = relink ||
13212 test "$inherit_rpath_FC" = yes; then
13213 # Fast installation is not supported
13214 enable_fast_install=no
13215 elif test "$shlibpath_overrides_runpath" = yes ||
13216 test "$enable_shared" = no; then
13217 # Fast installation is not necessary
13218 enable_fast_install=needless
13227 fi # test -n "$compiler"
13230 fi # test "$_lt_disable_FC" != yes
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239 FCFLAGS="$FCFLAGS -Wall"
13241 # For libtool versioning info, format is CURRENT:REVISION:AGE
13242 libtool_VERSION=1:0:0
13245 # Check header files.
13246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13248 if test "${ac_cv_header_stdc+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 #include <stdlib.h>
13258 #include <stdarg.h>
13259 #include <string.h>
13270 rm -f conftest.$ac_objext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272 (eval $ac_compile) 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag"
13280 || test ! -s conftest.err'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest.$ac_objext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_header_stdc=yes
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_cv_header_stdc=no
13299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301 if test $ac_cv_header_stdc = yes; then
13302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13303 cat >conftest.$ac_ext <<_ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 #include <string.h>
13312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13313 $EGREP "memchr" >/dev/null 2>&1; then
13316 ac_cv_header_stdc=no
13322 if test $ac_cv_header_stdc = yes; then
13323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 #include <stdlib.h>
13333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13334 $EGREP "free" >/dev/null 2>&1; then
13337 ac_cv_header_stdc=no
13343 if test $ac_cv_header_stdc = yes; then
13344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13345 if test "$cross_compiling" = yes; then
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13355 #if ((' ' & 0x0FF) == 0x020)
13356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13359 # define ISLOWER(c) \
13360 (('a' <= (c) && (c) <= 'i') \
13361 || ('j' <= (c) && (c) <= 'r') \
13362 || ('s' <= (c) && (c) <= 'z'))
13363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13371 for (i = 0; i < 256; i++)
13372 if (XOR (islower (i), ISLOWER (i))
13373 || toupper (i) != TOUPPER (i))
13378 rm -f conftest$ac_exeext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13391 echo "$as_me: program exited with status $ac_status" >&5
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ( exit $ac_status )
13396 ac_cv_header_stdc=no
13398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13403 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13404 if test $ac_cv_header_stdc = yes; then
13406 cat >>confdefs.h <<\_ACEOF
13407 #define STDC_HEADERS 1
13412 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13413 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13414 if test "${ac_cv_header_time+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 #include <sys/types.h>
13424 #include <sys/time.h>
13430 if ((struct tm *) 0)
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>conftest.er1
13440 grep -v '^ *+' conftest.er1 >conftest.err
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
13445 { ac_try='test -z "$ac_c_werror_flag"
13446 || test ! -s conftest.err'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest.$ac_objext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458 ac_cv_header_time=yes
13460 echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 ac_cv_header_time=no
13465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13467 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13468 echo "${ECHO_T}$ac_cv_header_time" >&6
13469 if test $ac_cv_header_time = yes; then
13471 cat >>confdefs.h <<\_ACEOF
13472 #define TIME_WITH_SYS_TIME 1
13477 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13478 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13479 if test "${gcc_cv_header_string+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 #include <string.h>
13489 #include <strings.h>
13498 rm -f conftest.$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 gcc_cv_header_string=yes
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 gcc_cv_header_string=no
13527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13529 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13530 echo "${ECHO_T}$gcc_cv_header_string" >&6
13531 if test $gcc_cv_header_string = yes; then
13533 cat >>confdefs.h <<\_ACEOF
13534 #define STRING_WITH_STRINGS 1
13543 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13547 echo "$as_me:$LINENO: checking for $ac_header" >&5
13548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13555 # Is the header compilable?
13556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13565 #include <$ac_header>
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569 (eval $ac_compile) 2>conftest.er1
13571 grep -v '^ *+' conftest.er1 >conftest.err
13573 cat conftest.err >&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -z "$ac_c_werror_flag"
13577 || test ! -s conftest.err'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_header_compiler=yes
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_header_compiler=no
13596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13598 echo "${ECHO_T}$ac_header_compiler" >&6
13600 # Is the header present?
13601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13603 cat >conftest.$ac_ext <<_ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <$ac_header>
13611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } >/dev/null; then
13619 if test -s conftest.err; then
13620 ac_cpp_err=$ac_c_preproc_warn_flag
13621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13628 if test -z "$ac_cpp_err"; then
13629 ac_header_preproc=yes
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 ac_header_preproc=no
13636 rm -f conftest.err conftest.$ac_ext
13637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13638 echo "${ECHO_T}$ac_header_preproc" >&6
13640 # So? What about this header?
13641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13647 ac_header_preproc=yes
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13664 ## ----------------------------------------------------- ##
13665 ## Report this to the GNU OpenMP Runtime Library lists. ##
13666 ## ----------------------------------------------------- ##
13669 sed "s/^/$as_me: WARNING: /" >&2
13672 echo "$as_me:$LINENO: checking for $ac_header" >&5
13673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 eval "$as_ac_Header=\$ac_header_preproc"
13679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13684 cat >>confdefs.h <<_ACEOF
13685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13695 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13697 acx_cv_header_stdint=stddef.h
13698 acx_cv_header_stdint_kind="(already complete)"
13699 for i in stdint.h $inttype_headers; do
13700 unset ac_cv_type_uintptr_t
13701 unset ac_cv_type_uintmax_t
13702 unset ac_cv_type_int_least32_t
13703 unset ac_cv_type_int_fast32_t
13704 unset ac_cv_type_uint64_t
13705 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13706 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13707 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13708 if test "${ac_cv_type_uintmax_t+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 cat >conftest.$ac_ext <<_ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 #include <sys/types.h>
13723 if ((uintmax_t *) 0)
13725 if (sizeof (uintmax_t))
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13735 grep -v '^ *+' conftest.er1 >conftest.err
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_type_uintmax_t=yes
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_cv_type_uintmax_t=no
13760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13763 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13764 if test $ac_cv_type_uintmax_t = yes; then
13765 acx_cv_header_stdint=$i
13770 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13771 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13772 if test "${ac_cv_type_uintptr_t+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 #include <sys/types.h>
13787 if ((uintptr_t *) 0)
13789 if (sizeof (uintptr_t))
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797 (eval $ac_compile) 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag"
13805 || test ! -s conftest.err'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest.$ac_objext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_cv_type_uintptr_t=yes
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 ac_cv_type_uintptr_t=no
13824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13826 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13827 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13828 if test $ac_cv_type_uintptr_t = yes; then
13831 acx_cv_header_stdint_kind="(mostly complete)"
13834 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13835 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13836 if test "${ac_cv_type_int_least32_t+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 #include <sys/types.h>
13851 if ((int_least32_t *) 0)
13853 if (sizeof (int_least32_t))
13859 rm -f conftest.$ac_objext
13860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13861 (eval $ac_compile) 2>conftest.er1
13863 grep -v '^ *+' conftest.er1 >conftest.err
13865 cat conftest.err >&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } &&
13868 { ac_try='test -z "$ac_c_werror_flag"
13869 || test ! -s conftest.err'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest.$ac_objext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 ac_cv_type_int_least32_t=yes
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 ac_cv_type_int_least32_t=no
13888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13890 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13891 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13892 if test $ac_cv_type_int_least32_t = yes; then
13895 acx_cv_header_stdint_kind="(mostly complete)"
13898 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13899 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13900 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 #include <sys/types.h>
13915 if ((int_fast32_t *) 0)
13917 if (sizeof (int_fast32_t))
13923 rm -f conftest.$ac_objext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13925 (eval $ac_compile) 2>conftest.er1
13927 grep -v '^ *+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag"
13933 || test ! -s conftest.err'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest.$ac_objext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_type_int_fast32_t=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_type_int_fast32_t=no
13952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13955 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13956 if test $ac_cv_type_int_fast32_t = yes; then
13959 acx_cv_header_stdint_kind="(mostly complete)"
13962 echo "$as_me:$LINENO: checking for uint64_t" >&5
13963 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13964 if test "${ac_cv_type_uint64_t+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <sys/types.h>
13979 if ((uint64_t *) 0)
13981 if (sizeof (uint64_t))
13987 rm -f conftest.$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989 (eval $ac_compile) 2>conftest.er1
13991 grep -v '^ *+' conftest.er1 >conftest.err
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try='test -z "$ac_c_werror_flag"
13997 || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest.$ac_objext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_type_uint64_t=yes
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_cv_type_uint64_t=no
14016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14018 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14019 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14020 if test $ac_cv_type_uint64_t = yes; then
14023 acx_cv_header_stdint_kind="(lacks uint64_t)"
14028 if test "$acx_cv_header_stdint" = stddef.h; then
14029 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14030 for i in stdint.h $inttype_headers; do
14031 unset ac_cv_type_uintptr_t
14032 unset ac_cv_type_uint32_t
14033 unset ac_cv_type_uint64_t
14034 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14035 echo "$as_me:$LINENO: checking for uint32_t" >&5
14036 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14037 if test "${ac_cv_type_uint32_t+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 #include <sys/types.h>
14052 if ((uint32_t *) 0)
14054 if (sizeof (uint32_t))
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>conftest.er1
14064 grep -v '^ *+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -z "$ac_c_werror_flag"
14070 || test ! -s conftest.err'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 ac_cv_type_uint32_t=yes
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 ac_cv_type_uint32_t=no
14089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14091 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14092 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14093 if test $ac_cv_type_uint32_t = yes; then
14094 acx_cv_header_stdint=$i
14099 echo "$as_me:$LINENO: checking for uint64_t" >&5
14100 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14101 if test "${ac_cv_type_uint64_t+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 #include <sys/types.h>
14116 if ((uint64_t *) 0)
14118 if (sizeof (uint64_t))
14124 rm -f conftest.$ac_objext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>conftest.er1
14128 grep -v '^ *+' conftest.er1 >conftest.err
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -z "$ac_c_werror_flag"
14134 || test ! -s conftest.err'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; } &&
14140 { ac_try='test -s conftest.$ac_objext'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 ac_cv_type_uint64_t=yes
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ac_cv_type_uint64_t=no
14153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14155 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14156 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14158 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14159 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14160 if test "${ac_cv_type_uintptr_t+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 #include <sys/types.h>
14175 if ((uintptr_t *) 0)
14177 if (sizeof (uintptr_t))
14183 rm -f conftest.$ac_objext
14184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185 (eval $ac_compile) 2>conftest.er1
14187 grep -v '^ *+' conftest.er1 >conftest.err
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -z "$ac_c_werror_flag"
14193 || test ! -s conftest.err'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_type_uintptr_t=yes
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 ac_cv_type_uintptr_t=no
14212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14214 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14215 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14220 if test "$acx_cv_header_stdint" = stddef.h; then
14221 acx_cv_header_stdint_kind="(u_intXX_t style)"
14222 for i in sys/types.h $inttype_headers; do
14223 unset ac_cv_type_u_int32_t
14224 unset ac_cv_type_u_int64_t
14225 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14226 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14227 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14228 if test "${ac_cv_type_u_int32_t+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14243 if ((u_int32_t *) 0)
14245 if (sizeof (u_int32_t))
14251 rm -f conftest.$ac_objext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253 (eval $ac_compile) 2>conftest.er1
14255 grep -v '^ *+' conftest.er1 >conftest.err
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -z "$ac_c_werror_flag"
14261 || test ! -s conftest.err'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } &&
14267 { ac_try='test -s conftest.$ac_objext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_cv_type_u_int32_t=yes
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ac_cv_type_u_int32_t=no
14280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14283 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14284 if test $ac_cv_type_u_int32_t = yes; then
14285 acx_cv_header_stdint=$i
14290 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14291 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14292 if test "${ac_cv_type_u_int64_t+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 #include <sys/types.h>
14307 if ((u_int64_t *) 0)
14309 if (sizeof (u_int64_t))
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>conftest.er1
14319 grep -v '^ *+' conftest.er1 >conftest.err
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -z "$ac_c_werror_flag"
14325 || test ! -s conftest.err'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest.$ac_objext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_type_u_int64_t=yes
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_cv_type_u_int64_t=no
14344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14346 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14347 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14352 if test "$acx_cv_header_stdint" = stddef.h; then
14353 acx_cv_header_stdint_kind="(using manual detection)"
14356 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14357 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14358 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14359 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14360 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14362 # ----------------- Summarize what we found so far
14364 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14365 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14367 case `$as_basename gstdint.h ||
14368 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14369 Xgstdint.h : 'X\(//\)$' \| \
14370 Xgstdint.h : 'X\(/\)$' \| \
14371 . : '\(.\)' 2>/dev/null ||
14373 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14374 /^X\/\(\/\/\)$/{ s//\1/; q; }
14375 /^X\/\(\/\).*/{ s//\1/; q; }
14377 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14378 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14379 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14380 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14384 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14385 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14387 # ----------------- done included file, check C basic types --------
14389 # Lacking an uintptr_t? Test size of void *
14390 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14391 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14392 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14393 if test "${ac_cv_type_void_p+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 cat >conftest.$ac_ext <<_ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14402 $ac_includes_default
14408 if (sizeof (void *))
14414 rm -f conftest.$ac_objext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416 (eval $ac_compile) 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } &&
14423 { ac_try='test -z "$ac_c_werror_flag"
14424 || test ! -s conftest.err'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 ac_cv_type_void_p=yes
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 ac_cv_type_void_p=no
14443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14445 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14446 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14448 echo "$as_me:$LINENO: checking size of void *" >&5
14449 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14450 if test "${ac_cv_sizeof_void_p+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 if test "$ac_cv_type_void_p" = yes; then
14454 # The cast to unsigned long works around a bug in the HP C Compiler
14455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14457 # This bug is HP SR number 8606223364.
14458 if test "$cross_compiling" = yes; then
14459 # Depending upon the size, compute the lo and hi bounds.
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 $ac_includes_default
14470 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479 (eval $ac_compile) 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 $ac_includes_default
14511 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14518 rm -f conftest.$ac_objext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520 (eval $ac_compile) 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -z "$ac_c_werror_flag"
14528 || test ! -s conftest.err'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_hi=$ac_mid; break
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_lo=`expr $ac_mid + 1`
14546 if test $ac_lo -le $ac_mid; then
14550 ac_mid=`expr 2 '*' $ac_mid + 1`
14552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 cat >conftest.$ac_ext <<_ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 $ac_includes_default
14568 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14575 rm -f conftest.$ac_objext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577 (eval $ac_compile) 2>conftest.er1
14579 grep -v '^ *+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
14584 { ac_try='test -z "$ac_c_werror_flag"
14585 || test ! -s conftest.err'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 $ac_includes_default
14609 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_lo=$ac_mid; break
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_hi=`expr '(' $ac_mid ')' - 1`
14644 if test $ac_mid -le $ac_hi; then
14648 ac_mid=`expr 2 '*' $ac_mid`
14650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14661 # Binary search between lo and hi bounds.
14662 while test "x$ac_lo" != "x$ac_hi"; do
14663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 $ac_includes_default
14674 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>conftest.er1
14685 grep -v '^ *+' conftest.er1 >conftest.err
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -z "$ac_c_werror_flag"
14691 || test ! -s conftest.err'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.$ac_objext'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_lo=`expr '(' $ac_mid ')' + 1`
14710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14713 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14714 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14715 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14717 See \`config.log' for more details." >&5
14718 echo "$as_me: error: cannot compute sizeof (void *), 77
14719 See \`config.log' for more details." >&2;}
14720 { (exit 1); exit 1; }; }; } ;;
14723 if test "$cross_compiling" = yes; then
14724 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14725 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14726 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14727 See \`config.log' for more details." >&5
14728 echo "$as_me: error: cannot run test program while cross compiling
14729 See \`config.log' for more details." >&2;}
14730 { (exit 1); exit 1; }; }; }
14732 cat >conftest.$ac_ext <<_ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 $ac_includes_default
14739 long longval () { return (long) (sizeof (void *)); }
14740 unsigned long ulongval () { return (long) (sizeof (void *)); }
14742 #include <stdlib.h>
14747 FILE *f = fopen ("conftest.val", "w");
14750 if (((long) (sizeof (void *))) < 0)
14752 long i = longval ();
14753 if (i != ((long) (sizeof (void *))))
14755 fprintf (f, "%ld\n", i);
14759 unsigned long i = ulongval ();
14760 if (i != ((long) (sizeof (void *))))
14762 fprintf (f, "%lu\n", i);
14764 exit (ferror (f) || fclose (f) != 0);
14770 rm -f conftest$ac_exeext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772 (eval $ac_link) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_sizeof_void_p=`cat conftest.val`
14783 echo "$as_me: program exited with status $ac_status" >&5
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ( exit $ac_status )
14788 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14789 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14791 See \`config.log' for more details." >&5
14792 echo "$as_me: error: cannot compute sizeof (void *), 77
14793 See \`config.log' for more details." >&2;}
14794 { (exit 1); exit 1; }; }; }
14796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14801 ac_cv_sizeof_void_p=0
14804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14805 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14806 cat >>confdefs.h <<_ACEOF
14807 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14813 # Lacking an uint64_t? Test size of long
14814 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14815 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14816 echo $ECHO_N "checking for long... $ECHO_C" >&6
14817 if test "${ac_cv_type_long+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 $ac_includes_default
14838 rm -f conftest.$ac_objext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840 (eval $ac_compile) 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag"
14848 || test ! -s conftest.err'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try='test -s conftest.$ac_objext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_cv_type_long=yes
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14870 echo "${ECHO_T}$ac_cv_type_long" >&6
14872 echo "$as_me:$LINENO: checking size of long" >&5
14873 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14874 if test "${ac_cv_sizeof_long+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 if test "$ac_cv_type_long" = yes; then
14878 # The cast to unsigned long works around a bug in the HP C Compiler
14879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14881 # This bug is HP SR number 8606223364.
14882 if test "$cross_compiling" = yes; then
14883 # Depending upon the size, compute the lo and hi bounds.
14884 cat >conftest.$ac_ext <<_ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14890 $ac_includes_default
14894 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14901 rm -f conftest.$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 (eval $ac_compile) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest.$ac_objext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 $ac_includes_default
14935 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag"
14952 || test ! -s conftest.err'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest.$ac_objext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 ac_hi=$ac_mid; break
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ac_lo=`expr $ac_mid + 1`
14970 if test $ac_lo -le $ac_mid; then
14974 ac_mid=`expr 2 '*' $ac_mid + 1`
14976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 cat >conftest.$ac_ext <<_ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 $ac_includes_default
14992 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14999 rm -f conftest.$ac_objext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15033 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_lo=$ac_mid; break
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_hi=`expr '(' $ac_mid ')' - 1`
15068 if test $ac_mid -le $ac_hi; then
15072 ac_mid=`expr 2 '*' $ac_mid`
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15085 # Binary search between lo and hi bounds.
15086 while test "x$ac_lo" != "x$ac_hi"; do
15087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15088 cat >conftest.$ac_ext <<_ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 $ac_includes_default
15098 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15105 rm -f conftest.$ac_objext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag"
15115 || test ! -s conftest.err'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest.$ac_objext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_lo=`expr '(' $ac_mid ')' + 1`
15134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15137 ?*) ac_cv_sizeof_long=$ac_lo;;
15138 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15139 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15141 See \`config.log' for more details." >&5
15142 echo "$as_me: error: cannot compute sizeof (long), 77
15143 See \`config.log' for more details." >&2;}
15144 { (exit 1); exit 1; }; }; } ;;
15147 if test "$cross_compiling" = yes; then
15148 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15149 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15150 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15151 See \`config.log' for more details." >&5
15152 echo "$as_me: error: cannot run test program while cross compiling
15153 See \`config.log' for more details." >&2;}
15154 { (exit 1); exit 1; }; }; }
15156 cat >conftest.$ac_ext <<_ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 $ac_includes_default
15163 long longval () { return (long) (sizeof (long)); }
15164 unsigned long ulongval () { return (long) (sizeof (long)); }
15166 #include <stdlib.h>
15171 FILE *f = fopen ("conftest.val", "w");
15174 if (((long) (sizeof (long))) < 0)
15176 long i = longval ();
15177 if (i != ((long) (sizeof (long))))
15179 fprintf (f, "%ld\n", i);
15183 unsigned long i = ulongval ();
15184 if (i != ((long) (sizeof (long))))
15186 fprintf (f, "%lu\n", i);
15188 exit (ferror (f) || fclose (f) != 0);
15194 rm -f conftest$ac_exeext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196 (eval $ac_link) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_sizeof_long=`cat conftest.val`
15207 echo "$as_me: program exited with status $ac_status" >&5
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15211 ( exit $ac_status )
15212 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15213 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15215 See \`config.log' for more details." >&5
15216 echo "$as_me: error: cannot compute sizeof (long), 77
15217 See \`config.log' for more details." >&2;}
15218 { (exit 1); exit 1; }; }; }
15220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15225 ac_cv_sizeof_long=0
15228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15229 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15230 cat >>confdefs.h <<_ACEOF
15231 #define SIZEOF_LONG $ac_cv_sizeof_long
15237 if test $acx_cv_header_stdint = stddef.h; then
15238 # Lacking a good header? Test size of everything and deduce all types.
15239 echo "$as_me:$LINENO: checking for int" >&5
15240 echo $ECHO_N "checking for int... $ECHO_C" >&6
15241 if test "${ac_cv_type_int+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15293 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15294 echo "${ECHO_T}$ac_cv_type_int" >&6
15296 echo "$as_me:$LINENO: checking size of int" >&5
15297 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15298 if test "${ac_cv_sizeof_int+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 if test "$ac_cv_type_int" = yes; then
15302 # The cast to unsigned long works around a bug in the HP C Compiler
15303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15305 # This bug is HP SR number 8606223364.
15306 if test "$cross_compiling" = yes; then
15307 # Depending upon the size, compute the lo and hi bounds.
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 $ac_includes_default
15318 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15325 rm -f conftest.$ac_objext
15326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15327 (eval $ac_compile) 2>conftest.er1
15329 grep -v '^ *+' conftest.er1 >conftest.err
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
15334 { ac_try='test -z "$ac_c_werror_flag"
15335 || test ! -s conftest.err'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest.$ac_objext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 $ac_includes_default
15359 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15366 rm -f conftest.$ac_objext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>conftest.er1
15370 grep -v '^ *+' conftest.er1 >conftest.err
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -z "$ac_c_werror_flag"
15376 || test ! -s conftest.err'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; } &&
15382 { ac_try='test -s conftest.$ac_objext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 ac_hi=$ac_mid; break
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_lo=`expr $ac_mid + 1`
15394 if test $ac_lo -le $ac_mid; then
15398 ac_mid=`expr 2 '*' $ac_mid + 1`
15400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15416 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15423 rm -f conftest.$ac_objext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 $ac_includes_default
15457 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>conftest.er1
15468 grep -v '^ *+' conftest.er1 >conftest.err
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_lo=$ac_mid; break
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_hi=`expr '(' $ac_mid ')' - 1`
15492 if test $ac_mid -le $ac_hi; then
15496 ac_mid=`expr 2 '*' $ac_mid`
15498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 # Binary search between lo and hi bounds.
15510 while test "x$ac_lo" != "x$ac_hi"; do
15511 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 $ac_includes_default
15522 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15529 rm -f conftest.$ac_objext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531 (eval $ac_compile) 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag"
15539 || test ! -s conftest.err'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_lo=`expr '(' $ac_mid ')' + 1`
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15561 ?*) ac_cv_sizeof_int=$ac_lo;;
15562 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15565 See \`config.log' for more details." >&5
15566 echo "$as_me: error: cannot compute sizeof (int), 77
15567 See \`config.log' for more details." >&2;}
15568 { (exit 1); exit 1; }; }; } ;;
15571 if test "$cross_compiling" = yes; then
15572 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15573 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15575 See \`config.log' for more details." >&5
15576 echo "$as_me: error: cannot run test program while cross compiling
15577 See \`config.log' for more details." >&2;}
15578 { (exit 1); exit 1; }; }; }
15580 cat >conftest.$ac_ext <<_ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 $ac_includes_default
15587 long longval () { return (long) (sizeof (int)); }
15588 unsigned long ulongval () { return (long) (sizeof (int)); }
15590 #include <stdlib.h>
15595 FILE *f = fopen ("conftest.val", "w");
15598 if (((long) (sizeof (int))) < 0)
15600 long i = longval ();
15601 if (i != ((long) (sizeof (int))))
15603 fprintf (f, "%ld\n", i);
15607 unsigned long i = ulongval ();
15608 if (i != ((long) (sizeof (int))))
15610 fprintf (f, "%lu\n", i);
15612 exit (ferror (f) || fclose (f) != 0);
15618 rm -f conftest$ac_exeext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620 (eval $ac_link) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_sizeof_int=`cat conftest.val`
15631 echo "$as_me: program exited with status $ac_status" >&5
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ( exit $ac_status )
15636 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15637 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15638 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15639 See \`config.log' for more details." >&5
15640 echo "$as_me: error: cannot compute sizeof (int), 77
15641 See \`config.log' for more details." >&2;}
15642 { (exit 1); exit 1; }; }; }
15644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15653 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15654 cat >>confdefs.h <<_ACEOF
15655 #define SIZEOF_INT $ac_cv_sizeof_int
15659 echo "$as_me:$LINENO: checking for short" >&5
15660 echo $ECHO_N "checking for short... $ECHO_C" >&6
15661 if test "${ac_cv_type_short+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 $ac_includes_default
15676 if (sizeof (short))
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag"
15692 || test ! -s conftest.err'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest.$ac_objext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_cv_type_short=yes
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_cv_type_short=no
15711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15714 echo "${ECHO_T}$ac_cv_type_short" >&6
15716 echo "$as_me:$LINENO: checking size of short" >&5
15717 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15718 if test "${ac_cv_sizeof_short+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 if test "$ac_cv_type_short" = yes; then
15722 # The cast to unsigned long works around a bug in the HP C Compiler
15723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15725 # This bug is HP SR number 8606223364.
15726 if test "$cross_compiling" = yes; then
15727 # Depending upon the size, compute the lo and hi bounds.
15728 cat >conftest.$ac_ext <<_ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 $ac_includes_default
15738 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15745 rm -f conftest.$ac_objext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>conftest.er1
15749 grep -v '^ *+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag"
15755 || test ! -s conftest.err'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try='test -s conftest.$ac_objext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15769 cat >conftest.$ac_ext <<_ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 $ac_includes_default
15779 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15786 rm -f conftest.$ac_objext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15788 (eval $ac_compile) 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest.$ac_objext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_hi=$ac_mid; break
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_lo=`expr $ac_mid + 1`
15814 if test $ac_lo -le $ac_mid; then
15818 ac_mid=`expr 2 '*' $ac_mid + 1`
15820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15836 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>conftest.er1
15847 grep -v '^ *+' conftest.er1 >conftest.err
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -z "$ac_c_werror_flag"
15853 || test ! -s conftest.err'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 $ac_includes_default
15877 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>conftest.er1
15888 grep -v '^ *+' conftest.er1 >conftest.err
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -z "$ac_c_werror_flag"
15894 || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_lo=$ac_mid; break
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 ac_hi=`expr '(' $ac_mid ')' - 1`
15912 if test $ac_mid -le $ac_hi; then
15916 ac_mid=`expr 2 '*' $ac_mid`
15918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15929 # Binary search between lo and hi bounds.
15930 while test "x$ac_lo" != "x$ac_hi"; do
15931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15932 cat >conftest.$ac_ext <<_ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 $ac_includes_default
15942 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15949 rm -f conftest.$ac_objext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15951 (eval $ac_compile) 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest.$ac_objext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_lo=`expr '(' $ac_mid ')' + 1`
15978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15981 ?*) ac_cv_sizeof_short=$ac_lo;;
15982 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15983 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15985 See \`config.log' for more details." >&5
15986 echo "$as_me: error: cannot compute sizeof (short), 77
15987 See \`config.log' for more details." >&2;}
15988 { (exit 1); exit 1; }; }; } ;;
15991 if test "$cross_compiling" = yes; then
15992 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15993 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15995 See \`config.log' for more details." >&5
15996 echo "$as_me: error: cannot run test program while cross compiling
15997 See \`config.log' for more details." >&2;}
15998 { (exit 1); exit 1; }; }; }
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 long longval () { return (long) (sizeof (short)); }
16008 unsigned long ulongval () { return (long) (sizeof (short)); }
16010 #include <stdlib.h>
16015 FILE *f = fopen ("conftest.val", "w");
16018 if (((long) (sizeof (short))) < 0)
16020 long i = longval ();
16021 if (i != ((long) (sizeof (short))))
16023 fprintf (f, "%ld\n", i);
16027 unsigned long i = ulongval ();
16028 if (i != ((long) (sizeof (short))))
16030 fprintf (f, "%lu\n", i);
16032 exit (ferror (f) || fclose (f) != 0);
16038 rm -f conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_cv_sizeof_short=`cat conftest.val`
16051 echo "$as_me: program exited with status $ac_status" >&5
16052 echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16055 ( exit $ac_status )
16056 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16057 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16059 See \`config.log' for more details." >&5
16060 echo "$as_me: error: cannot compute sizeof (short), 77
16061 See \`config.log' for more details." >&2;}
16062 { (exit 1); exit 1; }; }; }
16064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16069 ac_cv_sizeof_short=0
16072 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16073 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16074 cat >>confdefs.h <<_ACEOF
16075 #define SIZEOF_SHORT $ac_cv_sizeof_short
16079 echo "$as_me:$LINENO: checking for char" >&5
16080 echo $ECHO_N "checking for char... $ECHO_C" >&6
16081 if test "${ac_cv_type_char+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 cat >conftest.$ac_ext <<_ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 $ac_includes_default
16102 rm -f conftest.$ac_objext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104 (eval $ac_compile) 2>conftest.er1
16106 grep -v '^ *+' conftest.er1 >conftest.err
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest.$ac_objext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124 ac_cv_type_char=yes
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16134 echo "${ECHO_T}$ac_cv_type_char" >&6
16136 echo "$as_me:$LINENO: checking size of char" >&5
16137 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16138 if test "${ac_cv_sizeof_char+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 if test "$ac_cv_type_char" = yes; then
16142 # The cast to unsigned long works around a bug in the HP C Compiler
16143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16145 # This bug is HP SR number 8606223364.
16146 if test "$cross_compiling" = yes; then
16147 # Depending upon the size, compute the lo and hi bounds.
16148 cat >conftest.$ac_ext <<_ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 $ac_includes_default
16158 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag"
16175 || test ! -s conftest.err'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 $ac_includes_default
16199 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208 (eval $ac_compile) 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -z "$ac_c_werror_flag"
16216 || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_hi=$ac_mid; break
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16233 ac_lo=`expr $ac_mid + 1`
16234 if test $ac_lo -le $ac_mid; then
16238 ac_mid=`expr 2 '*' $ac_mid + 1`
16240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16256 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16263 rm -f conftest.$ac_objext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag"
16273 || test ! -s conftest.err'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $ac_includes_default
16297 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>conftest.er1
16308 grep -v '^ *+' conftest.er1 >conftest.err
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -z "$ac_c_werror_flag"
16314 || test ! -s conftest.err'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_lo=$ac_mid; break
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 ac_hi=`expr '(' $ac_mid ')' - 1`
16332 if test $ac_mid -le $ac_hi; then
16336 ac_mid=`expr 2 '*' $ac_mid`
16338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16349 # Binary search between lo and hi bounds.
16350 while test "x$ac_lo" != "x$ac_hi"; do
16351 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16352 cat >conftest.$ac_ext <<_ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 $ac_includes_default
16362 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16369 rm -f conftest.$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>conftest.er1
16373 grep -v '^ *+' conftest.er1 >conftest.err
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -z "$ac_c_werror_flag"
16379 || test ! -s conftest.err'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 ac_lo=`expr '(' $ac_mid ')' + 1`
16398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16401 ?*) ac_cv_sizeof_char=$ac_lo;;
16402 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16403 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16404 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16405 See \`config.log' for more details." >&5
16406 echo "$as_me: error: cannot compute sizeof (char), 77
16407 See \`config.log' for more details." >&2;}
16408 { (exit 1); exit 1; }; }; } ;;
16411 if test "$cross_compiling" = yes; then
16412 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16413 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16414 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16415 See \`config.log' for more details." >&5
16416 echo "$as_me: error: cannot run test program while cross compiling
16417 See \`config.log' for more details." >&2;}
16418 { (exit 1); exit 1; }; }; }
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426 $ac_includes_default
16427 long longval () { return (long) (sizeof (char)); }
16428 unsigned long ulongval () { return (long) (sizeof (char)); }
16430 #include <stdlib.h>
16435 FILE *f = fopen ("conftest.val", "w");
16438 if (((long) (sizeof (char))) < 0)
16440 long i = longval ();
16441 if (i != ((long) (sizeof (char))))
16443 fprintf (f, "%ld\n", i);
16447 unsigned long i = ulongval ();
16448 if (i != ((long) (sizeof (char))))
16450 fprintf (f, "%lu\n", i);
16452 exit (ferror (f) || fclose (f) != 0);
16458 rm -f conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_sizeof_char=`cat conftest.val`
16471 echo "$as_me: program exited with status $ac_status" >&5
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ( exit $ac_status )
16476 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16477 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16478 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16479 See \`config.log' for more details." >&5
16480 echo "$as_me: error: cannot compute sizeof (char), 77
16481 See \`config.log' for more details." >&2;}
16482 { (exit 1); exit 1; }; }; }
16484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16489 ac_cv_sizeof_char=0
16492 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16493 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16494 cat >>confdefs.h <<_ACEOF
16495 #define SIZEOF_CHAR $ac_cv_sizeof_char
16500 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16501 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16502 case "$ac_cv_sizeof_char" in
16503 1) acx_cv_type_int8_t=char ;;
16504 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16505 echo "$as_me: error: no 8-bit type" >&2;}
16506 { (exit please report a bug); exit please report a bug; }; }
16508 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16509 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16511 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16512 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16513 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16514 2:*) acx_cv_type_int16_t=int ;;
16515 *:2) acx_cv_type_int16_t=short ;;
16516 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16517 echo "$as_me: error: no 16-bit type" >&2;}
16518 { (exit please report a bug); exit please report a bug; }; }
16520 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16521 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16523 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16524 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16525 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16526 4:*) acx_cv_type_int32_t=int ;;
16527 *:4) acx_cv_type_int32_t=long ;;
16528 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16529 echo "$as_me: error: no 32-bit type" >&2;}
16530 { (exit please report a bug); exit please report a bug; }; }
16532 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16533 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16536 # These tests are here to make the output prettier
16538 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16539 case "$ac_cv_sizeof_long" in
16540 8) acx_cv_type_int64_t=long ;;
16542 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16543 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16544 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16545 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16548 # Now we can use the above types
16550 if test "$ac_cv_type_uintptr_t" != yes; then
16551 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16552 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16553 case $ac_cv_sizeof_void_p in
16554 2) acx_cv_type_intptr_t=int16_t ;;
16555 4) acx_cv_type_intptr_t=int32_t ;;
16556 8) acx_cv_type_intptr_t=int64_t ;;
16557 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16558 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16559 { (exit please report a bug); exit please report a bug; }; }
16561 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16562 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16565 # ----------------- done all checks, emit header -------------
16566 ac_config_commands="$ac_config_commands gstdint.h"
16571 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16572 # In case the pthread.h system header is not found, this test will fail.
16574 CFLAGS="$CFLAGS -pthread"
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 #include <pthread.h>
16582 void *g(void *d) { return NULL; }
16586 pthread_t t; pthread_create(&t,NULL,g,NULL);
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593 (eval $ac_link) 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag"
16601 || test ! -s conftest.err'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 XPCFLAGS=" -Wc,-pthread"
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 #include <pthread.h>
16626 void *g(void *d) { return NULL; }
16630 pthread_t t; pthread_create(&t,NULL,g,NULL);
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637 (eval $ac_link) 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag"
16645 || test ! -s conftest.err'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest$ac_exeext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16663 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16664 { (exit 1); exit 1; }; }
16666 rm -f conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16669 rm -f conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16672 # Check for functions needed.
16676 for ac_func in getloadavg clock_gettime strtoull
16678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16679 echo "$as_me:$LINENO: checking for $ac_func" >&5
16680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16681 if eval "test \"\${$as_ac_var+set}\" = set"; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16692 #define $ac_func innocuous_$ac_func
16694 /* System header to define __stub macros and hopefully few prototypes,
16695 which can conflict with char $ac_func (); below.
16696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 <limits.h> exists even on freestanding compilers. */
16700 # include <limits.h>
16702 # include <assert.h>
16707 /* Override any gcc2 internal prototype to avoid an error. */
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16715 /* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16721 char (*f) () = $ac_func;
16730 return f != $ac_func;
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>conftest.er1
16739 grep -v '^ *+' conftest.er1 >conftest.err
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -z "$ac_c_werror_flag"
16745 || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 eval "$as_ac_var=yes"
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 eval "$as_ac_var=no"
16764 rm -f conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16769 if test `eval echo '${'$as_ac_var'}'` = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16778 # Check for broken semaphore implementation on darwin.
16779 # sem_init returns: sem_init error: Function not implemented.
16783 cat >>confdefs.h <<\_ACEOF
16784 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16790 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16791 if test "${enable_linux_futex+set}" = set; then
16792 enableval="$enable_linux_futex"
16794 case "$enableval" in
16796 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16797 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16798 { (exit 1); exit 1; }; } ;;
16802 enable_linux_futex=default
16807 case "$enable_linux_futex" in
16809 # If headers don't have gettid/futex syscalls definition, then
16810 # default to no, otherwise there will be compile time failures.
16811 # Otherwise, default to yes. If we don't detect we are
16812 # compiled/linked against NPTL and not cross-compiling, check
16813 # if programs are run by default against NPTL and if not, issue
16815 enable_linux_futex=no
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 #include <sys/syscall.h>
16827 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16832 rm -f conftest.$ac_objext conftest$ac_exeext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834 (eval $ac_link) 2>conftest.er1
16836 grep -v '^ *+' conftest.er1 >conftest.err
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag"
16842 || test ! -s conftest.err'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; } &&
16848 { ac_try='test -s conftest$ac_exeext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16855 LIBS="-lpthread $LIBS"
16856 cat >conftest.$ac_ext <<_ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #ifndef _GNU_SOURCE
16863 #define _GNU_SOURCE 1
16865 #include <pthread.h>
16866 pthread_t th; void *status;
16870 pthread_tryjoin_np (th, &status);
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877 (eval $ac_link) 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -z "$ac_c_werror_flag"
16885 || test ! -s conftest.err'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } &&
16891 { ac_try='test -s conftest$ac_exeext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 enable_linux_futex=yes
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 if test x$cross_compiling = xno; then
16903 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16904 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16905 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16906 If so, please configure with --disable-linux-futex" >&5
16907 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16908 If so, please configure with --disable-linux-futex" >&2;}
16911 enable_linux_futex=yes
16913 rm -f conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16921 rm -f conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 #include <sys/syscall.h>
16936 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943 (eval $ac_link) 2>conftest.er1
16945 grep -v '^ *+' conftest.er1 >conftest.err
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest$ac_exeext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16969 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16970 { (exit 1); exit 1; }; }
16972 rm -f conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16978 enable_linux_futex=no
16981 if test x$enable_linux_futex = xyes; then
16986 # Check for pthread_{,attr_}[sg]etaffinity_np.
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 #define _GNU_SOURCE
16994 #include <pthread.h>
16999 pthread_attr_t attr;
17000 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17001 if (CPU_ISSET (0, &cpuset))
17002 CPU_SET (1, &cpuset);
17004 CPU_ZERO (&cpuset);
17005 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17006 pthread_attr_init (&attr);
17007 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17008 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_PTHREAD_AFFINITY_NP 1
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17045 rm -f conftest.err conftest.$ac_objext \
17046 conftest$ac_exeext conftest.$ac_ext
17048 # At least for glibc, clock_gettime is in librt. But don't pull that
17049 # in if it still doesn't give us the function we want.
17050 if test $ac_cv_func_clock_gettime = no; then
17051 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17052 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17053 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 ac_check_lib_save_LIBS=$LIBS
17058 cat >conftest.$ac_ext <<_ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17065 /* Override any gcc2 internal prototype to avoid an error. */
17069 /* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071 char clock_gettime ();
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>conftest.er1
17084 grep -v '^ *+' conftest.er1 >conftest.err
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_lib_rt_clock_gettime=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_cv_lib_rt_clock_gettime=no
17109 rm -f conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111 LIBS=$ac_check_lib_save_LIBS
17113 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17114 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17115 if test $ac_cv_lib_rt_clock_gettime = yes; then
17118 cat >>confdefs.h <<\_ACEOF
17119 #define HAVE_CLOCK_GETTIME 1
17126 # See if we support thread-local storage.
17128 # Check whether --enable-tls or --disable-tls was given.
17129 if test "${enable_tls+set}" = set; then
17130 enableval="$enable_tls"
17132 case "$enableval" in
17134 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17135 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17136 { (exit 1); exit 1; }; } ;;
17143 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17144 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17145 if test "${gcc_cv_have_tls+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 if test "$cross_compiling" = yes; then
17150 cat >conftest.$ac_ext <<_ACEOF
17151 __thread int a; int b; int main() { return a = b; }
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 gcc_cv_have_tls=yes
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17182 rm -f conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17187 cat >conftest.$ac_ext <<_ACEOF
17188 __thread int a; int b; int main() { return a = b; }
17190 rm -f conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 chktls_save_LDFLAGS="$LDFLAGS"
17202 LDFLAGS="-static $LDFLAGS"
17203 cat >conftest.$ac_ext <<_ACEOF
17204 int main() { return 0; }
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208 (eval $ac_link) 2>conftest.er1
17210 grep -v '^ *+' conftest.er1 >conftest.err
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -z "$ac_c_werror_flag"
17216 || test ! -s conftest.err'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest$ac_exeext'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 if test "$cross_compiling" = yes; then
17229 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17230 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17231 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17232 See \`config.log' for more details." >&5
17233 echo "$as_me: error: cannot run test program while cross compiling
17234 See \`config.log' for more details." >&2;}
17235 { (exit 1); exit 1; }; }; }
17237 cat >conftest.$ac_ext <<_ACEOF
17238 __thread int a; int b; int main() { return a = b; }
17240 rm -f conftest$ac_exeext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242 (eval $ac_link) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 gcc_cv_have_tls=yes
17253 echo "$as_me: program exited with status $ac_status" >&5
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ( exit $ac_status )
17260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 gcc_cv_have_tls=yes
17268 rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LDFLAGS="$chktls_save_LDFLAGS"
17271 if test $gcc_cv_have_tls = yes; then
17272 chktls_save_CFLAGS="$CFLAGS"
17273 thread_CFLAGS=failed
17274 for flag in '' '-pthread' '-lpthread'; do
17275 CFLAGS="$flag $chktls_save_CFLAGS"
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <pthread.h>
17283 void *g(void *d) { return NULL; }
17287 pthread_t t; pthread_create(&t,NULL,g,NULL);
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest$ac_exeext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 thread_CFLAGS="$flag"
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17320 rm -f conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17322 if test "X$thread_CFLAGS" != Xfailed; then
17326 CFLAGS="$chktls_save_CFLAGS"
17327 if test "X$thread_CFLAGS" != Xfailed; then
17328 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17329 if test "$cross_compiling" = yes; then
17330 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17331 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17333 See \`config.log' for more details." >&5
17334 echo "$as_me: error: cannot run test program while cross compiling
17335 See \`config.log' for more details." >&2;}
17336 { (exit 1); exit 1; }; }; }
17338 cat >conftest.$ac_ext <<_ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 #include <pthread.h>
17346 static int *a_in_other_thread;
17348 thread_func (void *arg)
17350 a_in_other_thread = &a;
17357 void *thread_retval;
17358 int *a_in_main_thread;
17359 if (pthread_create (&thread, (pthread_attr_t *)0,
17360 thread_func, (void *)0))
17362 a_in_main_thread = &a;
17363 if (pthread_join (thread, &thread_retval))
17365 return (a_in_other_thread == a_in_main_thread);
17370 rm -f conftest$ac_exeext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372 (eval $ac_link) 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 gcc_cv_have_tls=yes
17383 echo "$as_me: program exited with status $ac_status" >&5
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ( exit $ac_status )
17390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17392 CFLAGS="$chktls_save_CFLAGS"
17396 echo "$as_me: program exited with status $ac_status" >&5
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ( exit $ac_status )
17403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17406 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17407 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17408 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17410 cat >>confdefs.h <<\_ACEOF
17416 # See what sort of export controls are availible.
17418 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17419 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17420 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 save_CFLAGS="$CFLAGS"
17425 CFLAGS="$CFLAGS -Werror"
17426 cat >conftest.$ac_ext <<_ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432 void __attribute__((visibility("hidden"))) foo(void) { }
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443 (eval $ac_compile) 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest.$ac_objext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 libgomp_cv_have_attribute_visibility=yes
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 libgomp_cv_have_attribute_visibility=no
17470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17471 CFLAGS="$save_CFLAGS"
17473 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
17474 echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
17475 if test $libgomp_cv_have_attribute_visibility = yes; then
17477 cat >>confdefs.h <<\_ACEOF
17478 #define HAVE_ATTRIBUTE_VISIBILITY 1
17483 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17484 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17485 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 save_CFLAGS="$CFLAGS"
17490 CFLAGS="$CFLAGS -Werror"
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 void __attribute__((dllexport)) foo(void) { }
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508 (eval $ac_compile) 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } &&
17515 { ac_try='test -z "$ac_c_werror_flag"
17516 || test ! -s conftest.err'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 libgomp_cv_have_attribute_dllexport=yes
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 libgomp_cv_have_attribute_dllexport=no
17535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17536 CFLAGS="$save_CFLAGS"
17538 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
17539 echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
17540 if test $libgomp_cv_have_attribute_dllexport = yes; then
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17548 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17549 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17550 if test "${libgomp_cv_have_attribute_alias+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17554 cat >conftest.$ac_ext <<_ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17562 extern void bar(void) __attribute__((alias("foo")));
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17573 (eval $ac_link) 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_c_werror_flag"
17581 || test ! -s conftest.err'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 libgomp_cv_have_attribute_alias=yes
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 libgomp_cv_have_attribute_alias=no
17600 rm -f conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17603 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
17604 echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
17605 if test $libgomp_cv_have_attribute_alias = yes; then
17607 cat >>confdefs.h <<\_ACEOF
17608 #define HAVE_ATTRIBUTE_ALIAS 1
17614 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17615 if test "${with_gnu_ld+set}" = set; then
17616 withval="$with_gnu_ld"
17617 test "$withval" = no || with_gnu_ld=yes
17622 if test "$GCC" = yes; then
17623 # Check if gcc -print-prog-name=ld gives a path.
17624 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17625 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17628 # gcc leaves a trailing carriage return which upsets mingw
17629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17634 # Accept absolute paths.
17636 re_direlt='/[^/][^/]*/\.\./'
17637 # Canonicalize the pathname of ld
17638 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17639 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17640 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17642 test -z "$LD" && LD="$ac_prog"
17645 # If it fails, then pretend we aren't using GCC.
17649 # If it is relative, then search for the first ld in PATH.
17650 with_gnu_ld=unknown
17653 elif test "$with_gnu_ld" = yes; then
17654 echo "$as_me:$LINENO: checking for GNU ld" >&5
17655 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17657 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17658 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17660 if test "${lt_cv_path_LD+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 if test -z "$LD"; then
17664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17665 for ac_dir in $PATH; do
17667 test -z "$ac_dir" && ac_dir=.
17668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17669 lt_cv_path_LD="$ac_dir/$ac_prog"
17670 # Check to see if the program is GNU ld. I'd rather use --version,
17671 # but apparently some variants of GNU ld only accept -v.
17672 # Break only if it was the GNU/non-GNU ld that we prefer.
17673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17674 *GNU* | *'with BFD'*)
17675 test "$with_gnu_ld" != no && break
17678 test "$with_gnu_ld" != yes && break
17685 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17689 LD="$lt_cv_path_LD"
17690 if test -n "$LD"; then
17691 echo "$as_me:$LINENO: result: $LD" >&5
17692 echo "${ECHO_T}$LD" >&6
17694 echo "$as_me:$LINENO: result: no" >&5
17695 echo "${ECHO_T}no" >&6
17697 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17698 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17699 { (exit 1); exit 1; }; }
17700 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17701 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17702 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17706 case `$LD -v 2>&1 </dev/null` in
17707 *GNU* | *'with BFD'*)
17708 lt_cv_prog_gnu_ld=yes
17711 lt_cv_prog_gnu_ld=no
17715 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17716 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17717 with_gnu_ld=$lt_cv_prog_gnu_ld
17725 # If we're not using GNU ld, then there's no point in even trying these
17726 # tests. Check for that first. We should have already tested for gld
17727 # by now (in libtool), but require it now just to be safe...
17728 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17729 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17733 # The name set by libtool depends on the version of libtool. Shame on us
17734 # for depending on an impl detail, but c'est la vie. Older versions used
17735 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17736 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17737 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17738 # set (hence we're using an older libtool), then set it.
17739 if test x${with_gnu_ld+set} != xset; then
17740 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17741 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17744 with_gnu_ld=$ac_cv_prog_gnu_ld
17748 # Start by getting the version number. I think the libtool test already
17749 # does some of this, but throws away the result.
17751 ldver=`$LD --version 2>/dev/null | head -1 | \
17752 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17754 libgomp_gnu_ld_version=`echo $ldver | \
17755 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17757 # Set --gc-sections.
17758 if test "$with_gnu_ld" = "notbroken"; then
17759 # GNU ld it is! Joy and bunny rabbits!
17761 # All these tests are for C++; save the language and the compiler flags.
17762 # Need to do this so that g++ won't try to link in libstdc++
17763 ac_test_CFLAGS="${CFLAGS+set}"
17764 ac_save_CFLAGS="$CFLAGS"
17765 CFLAGS='-x c++ -Wl,--gc-sections'
17767 # Check for -Wl,--gc-sections
17768 # XXX This test is broken at the moment, as symbols required for linking
17769 # are now in libsupc++ (not built yet). In addition, this test has
17770 # cored on solaris in the past. In addition, --gc-sections doesn't
17771 # really work at the moment (keeps on discarding used sections, first
17772 # .eh_frame and now some of the glibc sections for iconv).
17773 # Bzzzzt. Thanks for playing, maybe next time.
17774 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17775 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17776 if test "$cross_compiling" = yes; then
17777 ac_sectionLDflags=yes
17779 cat >conftest.$ac_ext <<_ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17794 rm -f conftest$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_sectionLDflags=yes
17807 echo "$as_me: program exited with status $ac_status" >&5
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ( exit $ac_status )
17812 ac_sectionLDflags=no
17814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17816 if test "$ac_test_CFLAGS" = set; then
17817 CFLAGS="$ac_save_CFLAGS"
17819 # this is the suspicious part
17822 if test "$ac_sectionLDflags" = "yes"; then
17823 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17825 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17826 echo "${ECHO_T}$ac_sectionLDflags" >&6
17829 # Set linker optimization flags.
17830 if test x"$with_gnu_ld" = x"yes"; then
17831 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17839 # Check whether --enable-symvers or --disable-symvers was given.
17840 if test "${enable_symvers+set}" = set; then
17841 enableval="$enable_symvers"
17843 case "$enableval" in
17845 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17846 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17847 { (exit 1); exit 1; }; } ;;
17855 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17856 # don't know enough about $LD to do tricks...
17858 # FIXME The following test is too strict, in theory.
17859 if test $enable_shared = no ||
17861 test x$libgomp_gnu_ld_version = x; then
17865 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17866 if test $enable_symvers != no; then
17867 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17868 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17869 ac_save_CFLAGS="$CFLAGS"
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>conftest.er1
17890 grep -v '^ *+' conftest.er1 >conftest.err
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
17895 { ac_try='test -z "$ac_c_werror_flag"
17896 || test ! -s conftest.err'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 libgomp_shared_libgcc=yes
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 libgomp_shared_libgcc=no
17915 rm -f conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 CFLAGS="$ac_save_CFLAGS"
17918 if test $libgomp_shared_libgcc = no; then
17919 cat > conftest.c <<EOF
17920 int main (void) { return 0; }
17922 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17923 -shared -shared-libgcc -o conftest.so \
17924 conftest.c -v 2>&1 >/dev/null \
17925 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17926 rm -f conftest.c conftest.so
17927 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17928 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17929 cat >conftest.$ac_ext <<_ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag"
17954 || test ! -s conftest.err'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest$ac_exeext'
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 libgomp_shared_libgcc=yes
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17972 rm -f conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 CFLAGS="$ac_save_CFLAGS"
17977 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17978 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17981 # For GNU ld, we need at least this version. The format is described in
17982 # LIBGOMP_CHECK_LINKER_FEATURES above.
17983 libgomp_min_gnu_ld_version=21400
17984 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17986 # Check to see if unspecified "yes" value can win, given results above.
17987 # Change "yes" into either "no" or a style name.
17988 if test $enable_symvers = yes; then
17989 if test $with_gnu_ld = yes &&
17990 test $libgomp_shared_libgcc = yes;
17992 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17995 # The right tools, the right setup, but too old. Fallbacks?
17996 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17997 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17998 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17999 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
18000 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
18001 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
18002 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
18003 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
18004 if test $libgomp_gnu_ld_version -ge 21200 ; then
18005 # Globbing fix is present, proper block support is not.
18006 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18007 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18011 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18012 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18017 # just fail for now
18018 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
18019 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
18021 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
18023 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
18024 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18025 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18032 if test $enable_symvers != no; then
18033 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
18034 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
18036 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
18037 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
18040 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
18041 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
18044 if test $enable_symvers = gnu; then
18046 cat >>confdefs.h <<\_ACEOF
18047 #define LIBGOMP_GNU_SYMBOL_VERSIONING 1
18052 # Get target configury.
18053 . ${srcdir}/configure.tgt
18054 CFLAGS="$save_CFLAGS $XCFLAGS"
18056 # Check for __sync_val_compare_and_swap, but only after the target has
18057 # had a chance to set XCFLAGS.
18059 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18060 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
18061 if test "${libgomp_cv_have_sync_builtins+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18075 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 libgomp_cv_have_sync_builtins=yes
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 libgomp_cv_have_sync_builtins=no
18109 rm -f conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18112 echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18113 echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18114 if test $libgomp_cv_have_sync_builtins = yes; then
18116 cat >>confdefs.h <<\_ACEOF
18117 #define HAVE_SYNC_BUILTINS 1
18122 XCFLAGS="$XCFLAGS$XPCFLAGS"
18128 # Cleanup and exit.
18129 CFLAGS="$save_CFLAGS"
18130 cat >confcache <<\_ACEOF
18131 # This file is a shell script that caches the results of configure
18132 # tests run on this system so they can be shared between configure
18133 # scripts and configure runs, see configure's option --config-cache.
18134 # It is not useful on other systems. If it contains results you don't
18135 # want to keep, you may remove or edit it.
18137 # config.status only pays attention to the cache file if you give it
18138 # the --recheck option to rerun configure.
18140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18142 # following values.
18146 # The following way of writing the cache mishandles newlines in values,
18147 # but we know of no workaround that is simple, portable, and efficient.
18148 # So, don't put newlines in cache variables' values.
18149 # Ultrix sh set writes to stderr and can't be redirected directly,
18150 # and sets the high bit in the cache file unless we assign to the vars.
18153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18155 # `set' does not quote correctly, so add quotes (double-quote
18156 # substitution turns \\\\ into \\, and sed turns \\ into \).
18159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18162 # `set' quotes correctly as required by POSIX, so do not add quotes.
18164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18175 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18176 if test -w $cache_file; then
18177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18178 cat confcache >$cache_file
18180 echo "not updating unwritable cache $cache_file"
18185 if test ${multilib} = yes; then
18186 multilib_arg="--enable-multilib"
18191 # Set up the set of libraries that we need to link against for libgomp.
18192 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18193 # which will force linkage against -lpthread (or equivalent for the system).
18194 # That's not 100% ideal, but about the best we can do easily.
18195 if test $enable_shared = yes; then
18196 link_gomp="-lgomp %{static: $LIBS}"
18198 link_gomp="-lgomp $LIBS"
18204 if test "$ac_cv_fc_compiler_gnu" = yes; then
18206 USE_FORTRAN_FALSE='#'
18208 USE_FORTRAN_TRUE='#'
18213 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18214 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18215 # the underscore here and update the PREREQ. If it doesn't, then we'll
18216 # need to copy this macro to our acinclude.m4.
18217 save_CFLAGS="$CFLAGS"
18218 for i in $config_path; do
18219 if test -f $srcdir/config/$i/omp-lock.h; then
18220 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
18225 if test "$cross_compiling" = yes; then
18226 # Depending upon the size, compute the lo and hi bounds.
18227 cat >conftest.$ac_ext <<_ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18237 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18244 rm -f conftest.$ac_objext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246 (eval $ac_compile) 2>conftest.er1
18248 grep -v '^ *+' conftest.er1 >conftest.err
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try='test -z "$ac_c_werror_flag"
18254 || test ! -s conftest.err'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest.$ac_objext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18268 cat >conftest.$ac_ext <<_ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18278 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_hi=$ac_mid; break
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_lo=`expr $ac_mid + 1`
18313 if test $ac_lo -le $ac_mid; then
18317 ac_mid=`expr 2 '*' $ac_mid + 1`
18319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18335 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>conftest.er1
18346 grep -v '^ *+' conftest.er1 >conftest.err
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag"
18352 || test ! -s conftest.err'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest.$ac_objext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18376 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18383 rm -f conftest.$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385 (eval $ac_compile) 2>conftest.er1
18387 grep -v '^ *+' conftest.er1 >conftest.err
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_lo=$ac_mid; break
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_hi=`expr '(' $ac_mid ')' - 1`
18411 if test $ac_mid -le $ac_hi; then
18415 ac_mid=`expr 2 '*' $ac_mid`
18417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18428 # Binary search between lo and hi bounds.
18429 while test "x$ac_lo" != "x$ac_hi"; do
18430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18431 cat >conftest.$ac_ext <<_ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18441 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18448 rm -f conftest.$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 ac_lo=`expr '(' $ac_mid ')' + 1`
18477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18480 ?*) OMP_LOCK_SIZE=$ac_lo;;
18481 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18482 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18483 { (exit 1); exit 1; }; } ;;
18486 if test "$cross_compiling" = yes; then
18487 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18488 echo "$as_me: error: in \`$ac_pwd':" >&2;}
18489 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18490 See \`config.log' for more details." >&5
18491 echo "$as_me: error: cannot run test program while cross compiling
18492 See \`config.log' for more details." >&2;}
18493 { (exit 1); exit 1; }; }; }
18495 cat >conftest.$ac_ext <<_ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18502 long longval () { return sizeof (omp_lock_t); }
18503 unsigned long ulongval () { return sizeof (omp_lock_t); }
18505 #include <stdlib.h>
18510 FILE *f = fopen ("conftest.val", "w");
18513 if ((sizeof (omp_lock_t)) < 0)
18515 long i = longval ();
18516 if (i != (sizeof (omp_lock_t)))
18518 fprintf (f, "%ld\n", i);
18522 unsigned long i = ulongval ();
18523 if (i != (sizeof (omp_lock_t)))
18525 fprintf (f, "%lu\n", i);
18527 exit (ferror (f) || fclose (f) != 0);
18533 rm -f conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 OMP_LOCK_SIZE=`cat conftest.val`
18546 echo "$as_me: program exited with status $ac_status" >&5
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ( exit $ac_status )
18551 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18552 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18553 { (exit 1); exit 1; }; }
18555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18559 if test "$cross_compiling" = yes; then
18560 # Depending upon the size, compute the lo and hi bounds.
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18571 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18578 rm -f conftest.$ac_objext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest.$ac_objext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18602 cat >conftest.$ac_ext <<_ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18612 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18619 rm -f conftest.$ac_objext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621 (eval $ac_compile) 2>conftest.er1
18623 grep -v '^ *+' conftest.er1 >conftest.err
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
18628 { ac_try='test -z "$ac_c_werror_flag"
18629 || test ! -s conftest.err'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_hi=$ac_mid; break
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_lo=`expr $ac_mid + 1`
18647 if test $ac_lo -le $ac_mid; then
18651 ac_mid=`expr 2 '*' $ac_mid + 1`
18653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18669 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18676 rm -f conftest.$ac_objext
18677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18678 (eval $ac_compile) 2>conftest.er1
18680 grep -v '^ *+' conftest.er1 >conftest.err
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag"
18686 || test ! -s conftest.err'
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18700 cat >conftest.$ac_ext <<_ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18710 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_lo=$ac_mid; break
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 ac_hi=`expr '(' $ac_mid ')' - 1`
18745 if test $ac_mid -le $ac_hi; then
18749 ac_mid=`expr 2 '*' $ac_mid`
18751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18762 # Binary search between lo and hi bounds.
18763 while test "x$ac_lo" != "x$ac_hi"; do
18764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18775 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18782 rm -f conftest.$ac_objext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784 (eval $ac_compile) 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag"
18792 || test ! -s conftest.err'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ac_lo=`expr '(' $ac_mid ')' + 1`
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18814 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18818 if test "$cross_compiling" = yes; then
18819 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18820 echo "$as_me: error: in \`$ac_pwd':" >&2;}
18821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18822 See \`config.log' for more details." >&5
18823 echo "$as_me: error: cannot run test program while cross compiling
18824 See \`config.log' for more details." >&2;}
18825 { (exit 1); exit 1; }; }; }
18827 cat >conftest.$ac_ext <<_ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18834 long longval () { return __alignof (omp_lock_t); }
18835 unsigned long ulongval () { return __alignof (omp_lock_t); }
18837 #include <stdlib.h>
18842 FILE *f = fopen ("conftest.val", "w");
18845 if ((__alignof (omp_lock_t)) < 0)
18847 long i = longval ();
18848 if (i != (__alignof (omp_lock_t)))
18850 fprintf (f, "%ld\n", i);
18854 unsigned long i = ulongval ();
18855 if (i != (__alignof (omp_lock_t)))
18857 fprintf (f, "%lu\n", i);
18859 exit (ferror (f) || fclose (f) != 0);
18865 rm -f conftest$ac_exeext
18866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18867 (eval $ac_link) 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 OMP_LOCK_ALIGN=`cat conftest.val`
18878 echo "$as_me: program exited with status $ac_status" >&5
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18887 if test "$cross_compiling" = yes; then
18888 # Depending upon the size, compute the lo and hi bounds.
18889 cat >conftest.$ac_ext <<_ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18899 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18906 rm -f conftest.$ac_objext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>conftest.er1
18910 grep -v '^ *+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest.$ac_objext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18940 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18947 rm -f conftest.$ac_objext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949 (eval $ac_compile) 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag"
18957 || test ! -s conftest.err'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest.$ac_objext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_hi=$ac_mid; break
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_lo=`expr $ac_mid + 1`
18975 if test $ac_lo -le $ac_mid; then
18979 ac_mid=`expr 2 '*' $ac_mid + 1`
18981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18997 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
19004 rm -f conftest.$ac_objext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19006 (eval $ac_compile) 2>conftest.er1
19008 grep -v '^ *+' conftest.er1 >conftest.err
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -z "$ac_c_werror_flag"
19014 || test ! -s conftest.err'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest.$ac_objext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19038 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
19045 rm -f conftest.$ac_objext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19047 (eval $ac_compile) 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try='test -s conftest.$ac_objext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_lo=$ac_mid; break
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_hi=`expr '(' $ac_mid ')' - 1`
19073 if test $ac_mid -le $ac_hi; then
19077 ac_mid=`expr 2 '*' $ac_mid`
19079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090 # Binary search between lo and hi bounds.
19091 while test "x$ac_lo" != "x$ac_hi"; do
19092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19093 cat >conftest.$ac_ext <<_ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19103 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19110 rm -f conftest.$ac_objext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112 (eval $ac_compile) 2>conftest.er1
19114 grep -v '^ *+' conftest.er1 >conftest.err
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest.$ac_objext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 ac_lo=`expr '(' $ac_mid ')' + 1`
19139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19142 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19146 if test "$cross_compiling" = yes; then
19147 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19148 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19150 See \`config.log' for more details." >&5
19151 echo "$as_me: error: cannot run test program while cross compiling
19152 See \`config.log' for more details." >&2;}
19153 { (exit 1); exit 1; }; }; }
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 long longval () { return sizeof (omp_nest_lock_t); }
19163 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19165 #include <stdlib.h>
19170 FILE *f = fopen ("conftest.val", "w");
19173 if ((sizeof (omp_nest_lock_t)) < 0)
19175 long i = longval ();
19176 if (i != (sizeof (omp_nest_lock_t)))
19178 fprintf (f, "%ld\n", i);
19182 unsigned long i = ulongval ();
19183 if (i != (sizeof (omp_nest_lock_t)))
19185 fprintf (f, "%lu\n", i);
19187 exit (ferror (f) || fclose (f) != 0);
19193 rm -f conftest$ac_exeext
19194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19195 (eval $ac_link) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19206 echo "$as_me: program exited with status $ac_status" >&5
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19215 if test "$cross_compiling" = yes; then
19216 # Depending upon the size, compute the lo and hi bounds.
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19227 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19234 rm -f conftest.$ac_objext
19235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236 (eval $ac_compile) 2>conftest.er1
19238 grep -v '^ *+' conftest.er1 >conftest.err
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
19243 { ac_try='test -z "$ac_c_werror_flag"
19244 || test ! -s conftest.err'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try='test -s conftest.$ac_objext'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19258 cat >conftest.$ac_ext <<_ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19268 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19275 rm -f conftest.$ac_objext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19277 (eval $ac_compile) 2>conftest.er1
19279 grep -v '^ *+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try='test -z "$ac_c_werror_flag"
19285 || test ! -s conftest.err'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_hi=$ac_mid; break
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19302 ac_lo=`expr $ac_mid + 1`
19303 if test $ac_lo -le $ac_mid; then
19307 ac_mid=`expr 2 '*' $ac_mid + 1`
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19325 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19332 rm -f conftest.$ac_objext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest.$ac_objext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19366 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19373 rm -f conftest.$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
19382 { ac_try='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_lo=$ac_mid; break
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_hi=`expr '(' $ac_mid ')' - 1`
19401 if test $ac_mid -le $ac_hi; then
19405 ac_mid=`expr 2 '*' $ac_mid`
19407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418 # Binary search between lo and hi bounds.
19419 while test "x$ac_lo" != "x$ac_hi"; do
19420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19421 cat >conftest.$ac_ext <<_ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19431 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19442 grep -v '^ *+' conftest.er1 >conftest.err
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_c_werror_flag"
19448 || test ! -s conftest.err'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ac_lo=`expr '(' $ac_mid ')' + 1`
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19470 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19474 if test "$cross_compiling" = yes; then
19475 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19476 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19478 See \`config.log' for more details." >&5
19479 echo "$as_me: error: cannot run test program while cross compiling
19480 See \`config.log' for more details." >&2;}
19481 { (exit 1); exit 1; }; }; }
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19490 long longval () { return __alignof (omp_nest_lock_t); }
19491 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19493 #include <stdlib.h>
19498 FILE *f = fopen ("conftest.val", "w");
19501 if ((__alignof (omp_nest_lock_t)) < 0)
19503 long i = longval ();
19504 if (i != (__alignof (omp_nest_lock_t)))
19506 fprintf (f, "%ld\n", i);
19510 unsigned long i = ulongval ();
19511 if (i != (__alignof (omp_nest_lock_t)))
19513 fprintf (f, "%lu\n", i);
19515 exit (ferror (f) || fclose (f) != 0);
19521 rm -f conftest$ac_exeext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523 (eval $ac_link) 2>&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19534 echo "$as_me: program exited with status $ac_status" >&5
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19543 if test "$cross_compiling" = yes; then
19544 # Depending upon the size, compute the lo and hi bounds.
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19555 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
19562 rm -f conftest.$ac_objext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag"
19572 || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19596 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19603 rm -f conftest.$ac_objext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19605 (eval $ac_compile) 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest.$ac_objext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_hi=$ac_mid; break
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_lo=`expr $ac_mid + 1`
19631 if test $ac_lo -le $ac_mid; then
19635 ac_mid=`expr 2 '*' $ac_mid + 1`
19637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19653 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
19660 rm -f conftest.$ac_objext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19662 (eval $ac_compile) 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -z "$ac_c_werror_flag"
19670 || test ! -s conftest.err'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest.$ac_objext'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19684 cat >conftest.$ac_ext <<_ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19694 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
19701 rm -f conftest.$ac_objext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19703 (eval $ac_compile) 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag"
19711 || test ! -s conftest.err'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest.$ac_objext'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_lo=$ac_mid; break
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_hi=`expr '(' $ac_mid ')' - 1`
19729 if test $ac_mid -le $ac_hi; then
19733 ac_mid=`expr 2 '*' $ac_mid`
19735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19746 # Binary search between lo and hi bounds.
19747 while test "x$ac_lo" != "x$ac_hi"; do
19748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19759 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19766 rm -f conftest.$ac_objext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768 (eval $ac_compile) 2>conftest.er1
19770 grep -v '^ *+' conftest.er1 >conftest.err
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
19775 { ac_try='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19793 ac_lo=`expr '(' $ac_mid ')' + 1`
19795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19798 ?*) OMP_LOCK_25_SIZE=$ac_lo;;
19799 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19800 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19801 { (exit 1); exit 1; }; } ;;
19804 if test "$cross_compiling" = yes; then
19805 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19806 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19808 See \`config.log' for more details." >&5
19809 echo "$as_me: error: cannot run test program while cross compiling
19810 See \`config.log' for more details." >&2;}
19811 { (exit 1); exit 1; }; }; }
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19820 long longval () { return sizeof (omp_lock_25_t); }
19821 unsigned long ulongval () { return sizeof (omp_lock_25_t); }
19823 #include <stdlib.h>
19828 FILE *f = fopen ("conftest.val", "w");
19831 if ((sizeof (omp_lock_25_t)) < 0)
19833 long i = longval ();
19834 if (i != (sizeof (omp_lock_25_t)))
19836 fprintf (f, "%ld\n", i);
19840 unsigned long i = ulongval ();
19841 if (i != (sizeof (omp_lock_25_t)))
19843 fprintf (f, "%lu\n", i);
19845 exit (ferror (f) || fclose (f) != 0);
19851 rm -f conftest$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 OMP_LOCK_25_SIZE=`cat conftest.val`
19864 echo "$as_me: program exited with status $ac_status" >&5
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ( exit $ac_status )
19869 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19870 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19871 { (exit 1); exit 1; }; }
19873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19877 if test "$cross_compiling" = yes; then
19878 # Depending upon the size, compute the lo and hi bounds.
19879 cat >conftest.$ac_ext <<_ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19889 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898 (eval $ac_compile) 2>conftest.er1
19900 grep -v '^ *+' conftest.er1 >conftest.err
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
19905 { ac_try='test -z "$ac_c_werror_flag"
19906 || test ! -s conftest.err'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19930 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
19937 rm -f conftest.$ac_objext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939 (eval $ac_compile) 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_c_werror_flag"
19947 || test ! -s conftest.err'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; } &&
19953 { ac_try='test -s conftest.$ac_objext'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_hi=$ac_mid; break
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_lo=`expr $ac_mid + 1`
19965 if test $ac_lo -le $ac_mid; then
19969 ac_mid=`expr 2 '*' $ac_mid + 1`
19971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19987 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
19994 rm -f conftest.$ac_objext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996 (eval $ac_compile) 2>conftest.er1
19998 grep -v '^ *+' conftest.er1 >conftest.err
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -z "$ac_c_werror_flag"
20004 || test ! -s conftest.err'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20028 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037 (eval $ac_compile) 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
20044 { ac_try='test -z "$ac_c_werror_flag"
20045 || test ! -s conftest.err'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_lo=$ac_mid; break
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_hi=`expr '(' $ac_mid ')' - 1`
20063 if test $ac_mid -le $ac_hi; then
20067 ac_mid=`expr 2 '*' $ac_mid`
20069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20080 # Binary search between lo and hi bounds.
20081 while test "x$ac_lo" != "x$ac_hi"; do
20082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20093 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102 (eval $ac_compile) 2>conftest.er1
20104 grep -v '^ *+' conftest.er1 >conftest.err
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
20109 { ac_try='test -z "$ac_c_werror_flag"
20110 || test ! -s conftest.err'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; } &&
20116 { ac_try='test -s conftest.$ac_objext'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_lo=`expr '(' $ac_mid ')' + 1`
20129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20132 ?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20136 if test "$cross_compiling" = yes; then
20137 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20138 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20140 See \`config.log' for more details." >&5
20141 echo "$as_me: error: cannot run test program while cross compiling
20142 See \`config.log' for more details." >&2;}
20143 { (exit 1); exit 1; }; }; }
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20152 long longval () { return __alignof (omp_lock_25_t); }
20153 unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20155 #include <stdlib.h>
20160 FILE *f = fopen ("conftest.val", "w");
20163 if ((__alignof (omp_lock_25_t)) < 0)
20165 long i = longval ();
20166 if (i != (__alignof (omp_lock_25_t)))
20168 fprintf (f, "%ld\n", i);
20172 unsigned long i = ulongval ();
20173 if (i != (__alignof (omp_lock_25_t)))
20175 fprintf (f, "%lu\n", i);
20177 exit (ferror (f) || fclose (f) != 0);
20183 rm -f conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 OMP_LOCK_25_ALIGN=`cat conftest.val`
20196 echo "$as_me: program exited with status $ac_status" >&5
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20205 if test "$cross_compiling" = yes; then
20206 # Depending upon the size, compute the lo and hi bounds.
20207 cat >conftest.$ac_ext <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20217 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20228 grep -v '^ *+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20258 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20265 rm -f conftest.$ac_objext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag"
20275 || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_hi=$ac_mid; break
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_lo=`expr $ac_mid + 1`
20293 if test $ac_lo -le $ac_mid; then
20297 ac_mid=`expr 2 '*' $ac_mid + 1`
20299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20315 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
20322 rm -f conftest.$ac_objext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324 (eval $ac_compile) 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
20331 { ac_try='test -z "$ac_c_werror_flag"
20332 || test ! -s conftest.err'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest.$ac_objext'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20356 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag"
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_lo=$ac_mid; break
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 ac_hi=`expr '(' $ac_mid ')' - 1`
20391 if test $ac_mid -le $ac_hi; then
20395 ac_mid=`expr 2 '*' $ac_mid`
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408 # Binary search between lo and hi bounds.
20409 while test "x$ac_lo" != "x$ac_hi"; do
20410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20421 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20428 rm -f conftest.$ac_objext
20429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430 (eval $ac_compile) 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -z "$ac_c_werror_flag"
20438 || test ! -s conftest.err'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_lo=`expr '(' $ac_mid ')' + 1`
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20460 ?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
20464 if test "$cross_compiling" = yes; then
20465 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20466 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20467 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20468 See \`config.log' for more details." >&5
20469 echo "$as_me: error: cannot run test program while cross compiling
20470 See \`config.log' for more details." >&2;}
20471 { (exit 1); exit 1; }; }; }
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20480 long longval () { return sizeof (omp_nest_lock_25_t); }
20481 unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
20483 #include <stdlib.h>
20488 FILE *f = fopen ("conftest.val", "w");
20491 if ((sizeof (omp_nest_lock_25_t)) < 0)
20493 long i = longval ();
20494 if (i != (sizeof (omp_nest_lock_25_t)))
20496 fprintf (f, "%ld\n", i);
20500 unsigned long i = ulongval ();
20501 if (i != (sizeof (omp_nest_lock_25_t)))
20503 fprintf (f, "%lu\n", i);
20505 exit (ferror (f) || fclose (f) != 0);
20511 rm -f conftest$ac_exeext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513 (eval $ac_link) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
20524 echo "$as_me: program exited with status $ac_status" >&5
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20533 if test "$cross_compiling" = yes; then
20534 # Depending upon the size, compute the lo and hi bounds.
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20545 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>conftest.er1
20556 grep -v '^ *+' conftest.er1 >conftest.err
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -z "$ac_c_werror_flag"
20562 || test ! -s conftest.err'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20586 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20593 rm -f conftest.$ac_objext
20594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20595 (eval $ac_compile) 2>conftest.er1
20597 grep -v '^ *+' conftest.er1 >conftest.err
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } &&
20602 { ac_try='test -z "$ac_c_werror_flag"
20603 || test ! -s conftest.err'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; } &&
20609 { ac_try='test -s conftest.$ac_objext'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_hi=$ac_mid; break
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_lo=`expr $ac_mid + 1`
20621 if test $ac_lo -le $ac_mid; then
20625 ac_mid=`expr 2 '*' $ac_mid + 1`
20627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20643 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
20650 rm -f conftest.$ac_objext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>conftest.er1
20654 grep -v '^ *+' conftest.er1 >conftest.err
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -z "$ac_c_werror_flag"
20660 || test ! -s conftest.err'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; } &&
20666 { ac_try='test -s conftest.$ac_objext'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20684 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
20691 rm -f conftest.$ac_objext
20692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20693 (eval $ac_compile) 2>conftest.er1
20695 grep -v '^ *+' conftest.er1 >conftest.err
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -z "$ac_c_werror_flag"
20701 || test ! -s conftest.err'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try='test -s conftest.$ac_objext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_lo=$ac_mid; break
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 ac_hi=`expr '(' $ac_mid ')' - 1`
20719 if test $ac_mid -le $ac_hi; then
20723 ac_mid=`expr 2 '*' $ac_mid`
20725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20736 # Binary search between lo and hi bounds.
20737 while test "x$ac_lo" != "x$ac_hi"; do
20738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20749 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
20765 { ac_try='test -z "$ac_c_werror_flag"
20766 || test ! -s conftest.err'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try='test -s conftest.$ac_objext'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_lo=`expr '(' $ac_mid ')' + 1`
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20788 ?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
20792 if test "$cross_compiling" = yes; then
20793 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20794 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20795 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20796 See \`config.log' for more details." >&5
20797 echo "$as_me: error: cannot run test program while cross compiling
20798 See \`config.log' for more details." >&2;}
20799 { (exit 1); exit 1; }; }; }
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 long longval () { return __alignof (omp_nest_lock_25_t); }
20809 unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
20811 #include <stdlib.h>
20816 FILE *f = fopen ("conftest.val", "w");
20819 if ((__alignof (omp_nest_lock_25_t)) < 0)
20821 long i = longval ();
20822 if (i != (__alignof (omp_nest_lock_25_t)))
20824 fprintf (f, "%ld\n", i);
20828 unsigned long i = ulongval ();
20829 if (i != (__alignof (omp_nest_lock_25_t)))
20831 fprintf (f, "%lu\n", i);
20833 exit (ferror (f) || fclose (f) != 0);
20839 rm -f conftest$ac_exeext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841 (eval $ac_link) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
20852 echo "$as_me: program exited with status $ac_status" >&5
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20862 # If the lock fits in an integer, then arrange for Fortran to use that
20863 # integer. If it doesn't, then arrange for Fortran to use a pointer.
20864 # Except that we don't have a way at present to multi-lib the installed
20865 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
20867 OMP_LOCK_KIND=$OMP_LOCK_SIZE
20868 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
20869 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
20872 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
20873 OMP_NEST_LOCK_KIND=8
20875 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
20876 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
20877 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
20880 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
20881 OMP_NEST_LOCK_25_KIND=8
20896 CFLAGS="$save_CFLAGS"
20898 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
20900 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
20902 cat >confcache <<\_ACEOF
20903 # This file is a shell script that caches the results of configure
20904 # tests run on this system so they can be shared between configure
20905 # scripts and configure runs, see configure's option --config-cache.
20906 # It is not useful on other systems. If it contains results you don't
20907 # want to keep, you may remove or edit it.
20909 # config.status only pays attention to the cache file if you give it
20910 # the --recheck option to rerun configure.
20912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20914 # following values.
20918 # The following way of writing the cache mishandles newlines in values,
20919 # but we know of no workaround that is simple, portable, and efficient.
20920 # So, don't put newlines in cache variables' values.
20921 # Ultrix sh set writes to stderr and can't be redirected directly,
20922 # and sets the high bit in the cache file unless we assign to the vars.
20925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20927 # `set' does not quote correctly, so add quotes (double-quote
20928 # substitution turns \\\\ into \\, and sed turns \\ into \).
20931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20934 # `set' quotes correctly as required by POSIX, so do not add quotes.
20936 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20945 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20947 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20948 if test -w $cache_file; then
20949 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20950 cat confcache >$cache_file
20952 echo "not updating unwritable cache $cache_file"
20957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20958 # Let make expand exec_prefix.
20959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20963 # trailing colons and then remove the whole line if VPATH becomes empty
20964 # (actually we leave an empty line to preserve line numbers).
20965 if test "x$srcdir" = x.; then
20966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20967 s/:*\$(srcdir):*/:/;
20968 s/:*\${srcdir}:*/:/;
20970 s/^\([^=]*=[ ]*\):*/\1/;
20976 DEFS=-DHAVE_CONFIG_H
20980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20981 # 1. Remove the extension, and $U if already installed.
20982 ac_i=`echo "$ac_i" |
20983 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20985 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20986 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20988 LIBOBJS=$ac_libobjs
20990 LTLIBOBJS=$ac_ltlibobjs
20993 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
20994 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
20995 Usually this means the macro was only invoked conditionally." >&5
20996 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
20997 Usually this means the macro was only invoked conditionally." >&2;}
20998 { (exit 1); exit 1; }; }
21000 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21001 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21002 Usually this means the macro was only invoked conditionally." >&5
21003 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21004 Usually this means the macro was only invoked conditionally." >&2;}
21005 { (exit 1); exit 1; }; }
21007 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21008 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21009 Usually this means the macro was only invoked conditionally." >&5
21010 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21011 Usually this means the macro was only invoked conditionally." >&2;}
21012 { (exit 1); exit 1; }; }
21014 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
21015 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
21016 Usually this means the macro was only invoked conditionally." >&5
21017 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
21018 Usually this means the macro was only invoked conditionally." >&2;}
21019 { (exit 1); exit 1; }; }
21021 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21022 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21023 Usually this means the macro was only invoked conditionally." >&5
21024 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21025 Usually this means the macro was only invoked conditionally." >&2;}
21026 { (exit 1); exit 1; }; }
21028 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
21029 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21030 Usually this means the macro was only invoked conditionally." >&5
21031 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21032 Usually this means the macro was only invoked conditionally." >&2;}
21033 { (exit 1); exit 1; }; }
21035 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
21036 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
21037 Usually this means the macro was only invoked conditionally." >&5
21038 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
21039 Usually this means the macro was only invoked conditionally." >&2;}
21040 { (exit 1); exit 1; }; }
21043 : ${CONFIG_STATUS=./config.status}
21044 ac_clean_files_save=$ac_clean_files
21045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21046 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21047 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21048 cat >$CONFIG_STATUS <<_ACEOF
21050 # Generated by $as_me.
21051 # Run this file to recreate the current configuration.
21052 # Compiler output produced by configure, useful for debugging
21053 # configure, is in config.log if it exists.
21056 ac_cs_recheck=false
21058 SHELL=\${CONFIG_SHELL-$SHELL}
21061 cat >>$CONFIG_STATUS <<\_ACEOF
21062 ## --------------------- ##
21063 ## M4sh Initialization. ##
21064 ## --------------------- ##
21066 # Be Bourne compatible
21067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21070 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21071 # is contrary to our usage. Disable this feature.
21072 alias -g '${1+"$@"}'='"$@"'
21073 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21076 DUALCASE=1; export DUALCASE # for MKS sh
21078 # Support unset when possible.
21079 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21086 # Work around bugs in pre-3.0 UWIN ksh.
21087 $as_unset ENV MAIL MAILPATH
21094 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21095 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21096 LC_TELEPHONE LC_TIME
21098 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21099 eval $as_var=C; export $as_var
21105 # Required to use basename.
21106 if expr a : '\(a\)' >/dev/null 2>&1; then
21112 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21113 as_basename=basename
21119 # Name of the executable.
21120 as_me=`$as_basename "$0" ||
21121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21122 X"$0" : 'X\(//\)$' \| \
21123 X"$0" : 'X\(/\)$' \| \
21124 . : '\(.\)' 2>/dev/null ||
21126 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21127 /^X\/\(\/\/\)$/{ s//\1/; q; }
21128 /^X\/\(\/\).*/{ s//\1/; q; }
21132 # PATH needs CR, and LINENO needs CR and PATH.
21133 # Avoid depending upon Character Ranges.
21134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21137 as_cr_digits='0123456789'
21138 as_cr_alnum=$as_cr_Letters$as_cr_digits
21140 # The user is always right.
21141 if test "${PATH_SEPARATOR+set}" != set; then
21142 echo "#! /bin/sh" >conf$$.sh
21143 echo "exit 0" >>conf$$.sh
21145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21154 as_lineno_1=$LINENO
21155 as_lineno_2=$LINENO
21156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21157 test "x$as_lineno_1" != "x$as_lineno_2" &&
21158 test "x$as_lineno_3" = "x$as_lineno_2" || {
21159 # Find who we are. Look in the path if we contain no path at all
21162 *[\\/]* ) as_myself=$0 ;;
21163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21164 for as_dir in $PATH
21167 test -z "$as_dir" && as_dir=.
21168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21173 # We did not find ourselves, most probably we were run as `sh COMMAND'
21174 # in which case we are not to be found in the path.
21175 if test "x$as_myself" = x; then
21178 if test ! -f "$as_myself"; then
21179 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21180 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21181 { (exit 1); exit 1; }; }
21183 case $CONFIG_SHELL in
21185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21189 test -z "$as_dir" && as_dir=.
21190 for as_base in sh bash ksh sh5; do
21193 if ("$as_dir/$as_base" -c '
21194 as_lineno_1=$LINENO
21195 as_lineno_2=$LINENO
21196 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21197 test "x$as_lineno_1" != "x$as_lineno_2" &&
21198 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21199 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21200 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21201 CONFIG_SHELL=$as_dir/$as_base
21202 export CONFIG_SHELL
21203 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21212 # uniformly replaced by the line number. The first 'sed' inserts a
21213 # line-number line before each line; the second 'sed' does the real
21214 # work. The second script uses 'N' to pair each line-number line
21215 # with the numbered line, and appends trailing '-' during
21216 # substitution so that $LINENO is not a special case at line end.
21217 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21218 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21219 sed '=' <$as_myself |
21224 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21227 s,^['$as_cr_digits']*\n,,
21228 ' >$as_me.lineno &&
21229 chmod +x $as_me.lineno ||
21230 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21231 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21232 { (exit 1); exit 1; }; }
21234 # Don't try to exec as it changes $[0], causing all sort of problems
21235 # (the dirname of $[0] is not the place where we might find the
21236 # original and so on. Autoconf is especially sensible to this).
21238 # Exit status is that of the last command.
21243 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21244 *c*,-n*) ECHO_N= ECHO_C='
21246 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21247 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21250 if expr a : '\(a\)' >/dev/null 2>&1; then
21256 rm -f conf$$ conf$$.exe conf$$.file
21258 if ln -s conf$$.file conf$$ 2>/dev/null; then
21259 # We could just check for DJGPP; but this test a) works b) is more generic
21260 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21261 if test -f conf$$.exe; then
21262 # Don't use ln at all; we don't have any links
21267 elif ln conf$$.file conf$$ 2>/dev/null; then
21272 rm -f conf$$ conf$$.exe conf$$.file
21274 if mkdir -p . 2>/dev/null; then
21277 test -d ./-p && rmdir ./-p
21281 as_executable_p="test -f"
21283 # Sed expression to map a string onto a valid CPP name.
21284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21286 # Sed expression to map a string onto a valid variable name.
21287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21291 # We need space, tab and new line, in precisely that order.
21301 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21302 # report actual input values of CONFIG_FILES etc. instead of their
21303 # values after options handling. Logging --version etc. is OK.
21307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21308 ## Running $as_me. ##
21313 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
21314 generated by GNU Autoconf 2.59. Invocation command line was
21316 CONFIG_FILES = $CONFIG_FILES
21317 CONFIG_HEADERS = $CONFIG_HEADERS
21318 CONFIG_LINKS = $CONFIG_LINKS
21319 CONFIG_COMMANDS = $CONFIG_COMMANDS
21323 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21327 # Files that config.status was made for.
21328 if test -n "$ac_config_files"; then
21329 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21332 if test -n "$ac_config_headers"; then
21333 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21336 if test -n "$ac_config_links"; then
21337 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21340 if test -n "$ac_config_commands"; then
21341 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21347 \`$as_me' instantiates files from templates according to the
21348 current configuration.
21350 Usage: $0 [OPTIONS] [FILE]...
21352 -h, --help print this help, then exit
21353 -V, --version print version number, then exit
21354 -q, --quiet do not print progress messages
21355 -d, --debug don't remove temporary files
21356 --recheck update $as_me by reconfiguring in the same conditions
21357 --file=FILE[:TEMPLATE]
21358 instantiate the configuration file FILE
21359 --header=FILE[:TEMPLATE]
21360 instantiate the configuration header FILE
21362 Configuration files:
21365 Configuration headers:
21368 Configuration commands:
21371 Report bugs to <bug-autoconf@gnu.org>."
21374 cat >>$CONFIG_STATUS <<_ACEOF
21376 GNU OpenMP Runtime Library config.status 1.0
21377 configured by $0, generated by GNU Autoconf 2.59,
21378 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21380 Copyright (C) 2003 Free Software Foundation, Inc.
21381 This config.status script is free software; the Free Software Foundation
21382 gives unlimited permission to copy, distribute and modify it."
21387 cat >>$CONFIG_STATUS <<\_ACEOF
21388 # If no file are specified by the user, then we need to provide default
21389 # value. By we need to know if files were specified by the user.
21395 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21396 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21404 *) # This is not an option, so the user has probably given explicit
21407 ac_need_defaults=false;;
21411 # Handling of the options.
21413 cat >>$CONFIG_STATUS <<\_ACEOF
21414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21416 --version | --vers* | -V )
21417 echo "$ac_cs_version"; exit 0 ;;
21419 # Conflict between --help and --header
21420 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21421 Try \`$0 --help' for more information." >&5
21422 echo "$as_me: error: ambiguous option: $1
21423 Try \`$0 --help' for more information." >&2;}
21424 { (exit 1); exit 1; }; };;
21425 --help | --hel | -h )
21426 echo "$ac_cs_usage"; exit 0 ;;
21427 --debug | --d* | -d )
21429 --file | --fil | --fi | --f )
21431 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21432 ac_need_defaults=false;;
21433 --header | --heade | --head | --hea )
21435 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21436 ac_need_defaults=false;;
21437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21441 # This is an error.
21442 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21443 Try \`$0 --help' for more information." >&5
21444 echo "$as_me: error: unrecognized option: $1
21445 Try \`$0 --help' for more information." >&2;}
21446 { (exit 1); exit 1; }; } ;;
21448 *) ac_config_targets="$ac_config_targets $1" ;;
21454 ac_configure_extra_args=
21456 if $ac_cs_silent; then
21458 ac_configure_extra_args="$ac_configure_extra_args --silent"
21462 cat >>$CONFIG_STATUS <<_ACEOF
21463 if \$ac_cs_recheck; then
21464 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21465 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21470 cat >>$CONFIG_STATUS <<_ACEOF
21472 # INIT-COMMANDS section.
21479 with_multisubdir="$with_multisubdir"
21480 with_multisrctop="$with_multisrctop"
21481 with_target_subdir="$with_target_subdir"
21482 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21483 multi_basedir="$multi_basedir"
21484 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21486 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21489 # The HP-UX ksh and POSIX shell print the target directory to stdout
21490 # if CDPATH is set.
21491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21493 sed_quote_subst='$sed_quote_subst'
21494 double_quote_subst='$double_quote_subst'
21495 delay_variable_subst='$delay_variable_subst'
21496 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21497 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21498 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21499 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21500 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21501 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21502 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21503 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21504 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21505 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21506 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21507 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21508 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21509 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21510 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21511 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21512 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21513 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21514 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21515 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21516 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21517 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21518 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21519 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21520 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21521 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21522 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21523 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21524 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21525 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21526 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21527 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21528 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21529 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21530 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21531 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21532 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21533 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21534 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21535 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21536 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21537 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21538 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21539 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21540 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21541 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21542 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21543 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21544 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21545 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21546 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21547 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21548 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21549 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21550 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21551 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21552 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21553 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21554 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21555 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21556 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21557 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21558 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21559 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21560 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21561 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21562 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21563 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21564 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21565 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21566 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21567 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21568 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21569 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21570 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21571 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21572 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21573 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21574 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21575 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21576 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21577 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21578 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21579 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21580 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21581 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21582 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21583 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21584 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21585 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21586 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21587 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21588 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21589 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21590 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21591 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21592 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21593 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21594 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21595 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21596 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21597 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21598 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21599 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21600 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21601 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21602 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21603 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21604 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21605 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21606 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21607 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21608 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21609 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21610 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21611 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21612 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
21613 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21614 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
21615 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
21616 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21617 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
21618 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21619 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
21620 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
21621 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
21622 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
21623 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21624 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21625 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
21626 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21627 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21628 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21629 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21630 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21631 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21632 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21633 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21634 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21635 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21636 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21637 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
21638 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
21639 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
21640 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
21641 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
21642 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21643 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
21644 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
21645 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21646 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
21647 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21648 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21649 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21650 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21651 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21652 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
21653 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21654 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21655 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21656 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21657 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21660 LTCFLAGS='$LTCFLAGS'
21661 compiler='$compiler_DEFAULT'
21663 # Quote evaled strings.
21674 deplibs_check_method \
21683 lt_cv_sys_global_symbol_pipe \
21684 lt_cv_sys_global_symbol_to_cdecl \
21685 lt_cv_sys_global_symbol_to_c_name_address \
21688 lt_prog_compiler_no_builtin_flag \
21689 lt_prog_compiler_wl \
21690 lt_prog_compiler_pic \
21691 lt_prog_compiler_static \
21692 lt_cv_prog_compiler_c_o \
21695 export_dynamic_flag_spec \
21696 whole_archive_flag_spec \
21697 compiler_needs_object \
21699 allow_undefined_flag \
21700 no_undefined_flag \
21701 hardcode_libdir_flag_spec \
21702 hardcode_libdir_flag_spec_ld \
21703 hardcode_libdir_separator \
21708 variables_saved_for_relink \
21710 library_names_spec \
21719 compiler_lib_search_path \
21722 lt_prog_compiler_no_builtin_flag_FC \
21723 lt_prog_compiler_wl_FC \
21724 lt_prog_compiler_pic_FC \
21725 lt_prog_compiler_static_FC \
21726 lt_cv_prog_compiler_c_o_FC \
21727 export_dynamic_flag_spec_FC \
21728 whole_archive_flag_spec_FC \
21729 compiler_needs_object_FC \
21731 allow_undefined_flag_FC \
21732 no_undefined_flag_FC \
21733 hardcode_libdir_flag_spec_FC \
21734 hardcode_libdir_flag_spec_ld_FC \
21735 hardcode_libdir_separator_FC \
21736 fix_srcfile_path_FC \
21737 exclude_expsyms_FC \
21738 include_expsyms_FC \
21739 file_list_spec_FC \
21740 predep_objects_FC \
21741 postdep_objects_FC \
21744 compiler_lib_search_path_FC; do
21745 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21746 *[\\\\\\\`\\"\\\$]*)
21747 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21750 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21755 # Double-quote double-evaled strings.
21756 for var in reload_cmds \
21757 old_postinstall_cmds \
21758 old_postuninstall_cmds \
21760 extract_expsyms_cmds \
21761 old_archive_from_new_cmds \
21762 old_archive_from_expsyms_cmds \
21764 archive_expsym_cmds \
21766 module_expsym_cmds \
21767 export_symbols_cmds \
21770 postuninstall_cmds \
21772 sys_lib_search_path_spec \
21773 sys_lib_dlsearch_path_spec \
21774 old_archive_cmds_FC \
21775 old_archive_from_new_cmds_FC \
21776 old_archive_from_expsyms_cmds_FC \
21778 archive_expsym_cmds_FC \
21780 module_expsym_cmds_FC \
21781 export_symbols_cmds_FC \
21782 prelink_cmds_FC; do
21783 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21784 *[\\\\\\\`\\"\\\$]*)
21785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21793 # Fix-up fallback echo if it was mangled by the above quoting rules.
21795 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21799 ac_aux_dir='$ac_aux_dir'
21800 xsi_shell='$xsi_shell'
21801 lt_shell_append='$lt_shell_append'
21803 # See if we are running on zsh, and set the options which allow our
21804 # commands through without removal of \ escapes INIT.
21805 if test -n "\${ZSH_VERSION+set}" ; then
21806 setopt NO_GLOB_SUBST
21812 TIMESTAMP='$TIMESTAMP'
21823 acx_cv_header_stdint="$acx_cv_header_stdint"
21824 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21825 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21826 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21827 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21828 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21829 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21830 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21831 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21832 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21833 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21834 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21835 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21836 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21843 cat >>$CONFIG_STATUS <<\_ACEOF
21844 for ac_config_target in $ac_config_targets
21846 case "$ac_config_target" in
21847 # Handling of arguments.
21848 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
21849 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
21850 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
21851 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
21852 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21853 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
21854 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
21855 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21856 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21857 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21858 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
21859 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21860 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21861 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21862 { (exit 1); exit 1; }; };;
21866 # If the user did not use the arguments to specify the items to instantiate,
21867 # then the envvar interface is used. Set only those that are not.
21868 # We use the long form for the default assignment because of an extremely
21869 # bizarre bug on SunOS 4.1.3.
21870 if $ac_need_defaults; then
21871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21872 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21873 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21876 # Have a temporary directory for convenience. Make it in the build tree
21877 # simply because there is no reason to put it here, and in addition,
21878 # creating and moving files from /tmp can sometimes cause problems.
21879 # Create a temporary directory, and hook for its removal unless debugging.
21882 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21883 trap '{ (exit 1); exit 1; }' 1 2 13 15
21886 # Create a (secure) tmp directory for tmp files.
21889 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21890 test -n "$tmp" && test -d "$tmp"
21893 tmp=./confstat$$-$RANDOM
21894 (umask 077 && mkdir $tmp)
21897 echo "$me: cannot create a temporary directory in ." >&2
21898 { (exit 1); exit 1; }
21903 cat >>$CONFIG_STATUS <<_ACEOF
21906 # CONFIG_FILES section.
21909 # No need to generate the scripts if there are no CONFIG_FILES.
21910 # This happens for instance when ./config.status config.h
21911 if test -n "\$CONFIG_FILES"; then
21912 # Protect against being on the right side of a sed subst in config.status.
21913 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21914 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21915 s,@SHELL@,$SHELL,;t t
21916 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21917 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21918 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21919 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21920 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21921 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21922 s,@exec_prefix@,$exec_prefix,;t t
21923 s,@prefix@,$prefix,;t t
21924 s,@program_transform_name@,$program_transform_name,;t t
21925 s,@bindir@,$bindir,;t t
21926 s,@sbindir@,$sbindir,;t t
21927 s,@libexecdir@,$libexecdir,;t t
21928 s,@datadir@,$datadir,;t t
21929 s,@sysconfdir@,$sysconfdir,;t t
21930 s,@sharedstatedir@,$sharedstatedir,;t t
21931 s,@localstatedir@,$localstatedir,;t t
21932 s,@libdir@,$libdir,;t t
21933 s,@includedir@,$includedir,;t t
21934 s,@oldincludedir@,$oldincludedir,;t t
21935 s,@infodir@,$infodir,;t t
21936 s,@mandir@,$mandir,;t t
21937 s,@build_alias@,$build_alias,;t t
21938 s,@host_alias@,$host_alias,;t t
21939 s,@target_alias@,$target_alias,;t t
21940 s,@DEFS@,$DEFS,;t t
21941 s,@ECHO_C@,$ECHO_C,;t t
21942 s,@ECHO_N@,$ECHO_N,;t t
21943 s,@ECHO_T@,$ECHO_T,;t t
21944 s,@LIBS@,$LIBS,;t t
21945 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
21946 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
21947 s,@build@,$build,;t t
21948 s,@build_cpu@,$build_cpu,;t t
21949 s,@build_vendor@,$build_vendor,;t t
21950 s,@build_os@,$build_os,;t t
21951 s,@host@,$host,;t t
21952 s,@host_cpu@,$host_cpu,;t t
21953 s,@host_vendor@,$host_vendor,;t t
21954 s,@host_os@,$host_os,;t t
21955 s,@target@,$target,;t t
21956 s,@target_cpu@,$target_cpu,;t t
21957 s,@target_vendor@,$target_vendor,;t t
21958 s,@target_os@,$target_os,;t t
21959 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21960 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21961 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21962 s,@CYGPATH_W@,$CYGPATH_W,;t t
21963 s,@PACKAGE@,$PACKAGE,;t t
21964 s,@VERSION@,$VERSION,;t t
21965 s,@ACLOCAL@,$ACLOCAL,;t t
21966 s,@AUTOCONF@,$AUTOCONF,;t t
21967 s,@AUTOMAKE@,$AUTOMAKE,;t t
21968 s,@AUTOHEADER@,$AUTOHEADER,;t t
21969 s,@MAKEINFO@,$MAKEINFO,;t t
21970 s,@install_sh@,$install_sh,;t t
21971 s,@STRIP@,$STRIP,;t t
21972 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21973 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21974 s,@mkdir_p@,$mkdir_p,;t t
21976 s,@SET_MAKE@,$SET_MAKE,;t t
21977 s,@am__leading_dot@,$am__leading_dot,;t t
21978 s,@AMTAR@,$AMTAR,;t t
21979 s,@am__tar@,$am__tar,;t t
21980 s,@am__untar@,$am__untar,;t t
21981 s,@multi_basedir@,$multi_basedir,;t t
21982 s,@toolexecdir@,$toolexecdir,;t t
21983 s,@toolexeclibdir@,$toolexeclibdir,;t t
21985 s,@ac_ct_CC@,$ac_ct_CC,;t t
21986 s,@EXEEXT@,$EXEEXT,;t t
21987 s,@OBJEXT@,$OBJEXT,;t t
21988 s,@DEPDIR@,$DEPDIR,;t t
21989 s,@am__include@,$am__include,;t t
21990 s,@am__quote@,$am__quote,;t t
21991 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21992 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21993 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21994 s,@CCDEPMODE@,$CCDEPMODE,;t t
21995 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21996 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21997 s,@CFLAGS@,$CFLAGS,;t t
21999 s,@ac_ct_AR@,$ac_ct_AR,;t t
22000 s,@RANLIB@,$RANLIB,;t t
22001 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22002 s,@PERL@,$PERL,;t t
22003 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
22004 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
22005 s,@LIBTOOL@,$LIBTOOL,;t t
22007 s,@EGREP@,$EGREP,;t t
22008 s,@FGREP@,$FGREP,;t t
22009 s,@GREP@,$GREP,;t t
22011 s,@DUMPBIN@,$DUMPBIN,;t t
22012 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22014 s,@LN_S@,$LN_S,;t t
22015 s,@lt_ECHO@,$lt_ECHO,;t t
22017 s,@CPPFLAGS@,$CPPFLAGS,;t t
22018 s,@enable_shared@,$enable_shared,;t t
22019 s,@enable_static@,$enable_static,;t t
22020 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22021 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22022 s,@MAINT@,$MAINT,;t t
22024 s,@FCFLAGS@,$FCFLAGS,;t t
22025 s,@LDFLAGS@,$LDFLAGS,;t t
22026 s,@ac_ct_FC@,$ac_ct_FC,;t t
22027 s,@libtool_VERSION@,$libtool_VERSION,;t t
22028 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
22029 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
22030 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
22031 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
22032 s,@config_path@,$config_path,;t t
22033 s,@XCFLAGS@,$XCFLAGS,;t t
22034 s,@XLDFLAGS@,$XLDFLAGS,;t t
22035 s,@link_gomp@,$link_gomp,;t t
22036 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
22037 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
22038 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
22039 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
22040 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
22041 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
22042 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
22043 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
22044 s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
22045 s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
22046 s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
22047 s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
22048 s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
22049 s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
22050 s,@LIBOBJS@,$LIBOBJS,;t t
22051 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22056 cat >>$CONFIG_STATUS <<\_ACEOF
22057 # Split the substitutions into bite-sized pieces for seds with
22058 # small command number limits, like on Digital OSF/1 and HP-UX.
22059 ac_max_sed_lines=48
22060 ac_sed_frag=1 # Number of current file.
22061 ac_beg=1 # First line for current file.
22062 ac_end=$ac_max_sed_lines # Line after last line for current file.
22065 while $ac_more_lines; do
22066 if test $ac_beg -gt 1; then
22067 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22069 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22071 if test ! -s $tmp/subs.frag; then
22072 ac_more_lines=false
22074 # The purpose of the label and of the branching condition is to
22075 # speed up the sed processing (if there are no `@' at all, there
22076 # is no need to browse any of the substitutions).
22077 # These are the two extra sed commands mentioned above.
22079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22080 if test -z "$ac_sed_cmds"; then
22081 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22083 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22085 ac_sed_frag=`expr $ac_sed_frag + 1`
22087 ac_end=`expr $ac_end + $ac_max_sed_lines`
22090 if test -z "$ac_sed_cmds"; then
22093 fi # test -n "$CONFIG_FILES"
22096 cat >>$CONFIG_STATUS <<\_ACEOF
22097 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22098 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22100 - | *:- | *:-:* ) # input from stdin
22102 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22103 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22104 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22106 * ) ac_file_in=$ac_file.in ;;
22109 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22110 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22112 X"$ac_file" : 'X\(//\)[^/]' \| \
22113 X"$ac_file" : 'X\(//\)$' \| \
22114 X"$ac_file" : 'X\(/\)' \| \
22115 . : '\(.\)' 2>/dev/null ||
22117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22119 /^X\(\/\/\)$/{ s//\1/; q; }
22120 /^X\(\/\).*/{ s//\1/; q; }
22122 { if $as_mkdir_p; then
22127 while test ! -d "$as_dir"; do
22128 as_dirs="$as_dir $as_dirs"
22129 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22131 X"$as_dir" : 'X\(//\)[^/]' \| \
22132 X"$as_dir" : 'X\(//\)$' \| \
22133 X"$as_dir" : 'X\(/\)' \| \
22134 . : '\(.\)' 2>/dev/null ||
22136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22138 /^X\(\/\/\)$/{ s//\1/; q; }
22139 /^X\(\/\).*/{ s//\1/; q; }
22142 test ! -n "$as_dirs" || mkdir $as_dirs
22143 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22144 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22145 { (exit 1); exit 1; }; }; }
22149 if test "$ac_dir" != .; then
22150 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22151 # A "../" for each directory in $ac_dir_suffix.
22152 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22154 ac_dir_suffix= ac_top_builddir=
22158 .) # No --srcdir option. We are building in place.
22160 if test -z "$ac_top_builddir"; then
22163 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22165 [\\/]* | ?:[\\/]* ) # Absolute path.
22166 ac_srcdir=$srcdir$ac_dir_suffix;
22167 ac_top_srcdir=$srcdir ;;
22168 *) # Relative path.
22169 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22170 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22173 # Do not use `cd foo && pwd` to compute absolute paths, because
22174 # the directories may not exist.
22176 .) ac_abs_builddir="$ac_dir";;
22179 .) ac_abs_builddir=`pwd`;;
22180 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22181 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22184 case $ac_abs_builddir in
22185 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22187 case ${ac_top_builddir}. in
22188 .) ac_abs_top_builddir=$ac_abs_builddir;;
22189 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22190 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22193 case $ac_abs_builddir in
22194 .) ac_abs_srcdir=$ac_srcdir;;
22197 .) ac_abs_srcdir=$ac_abs_builddir;;
22198 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22199 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22202 case $ac_abs_builddir in
22203 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22205 case $ac_top_srcdir in
22206 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22207 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22208 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22215 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22218 if test x"$ac_file" != x-; then
22219 { echo "$as_me:$LINENO: creating $ac_file" >&5
22220 echo "$as_me: creating $ac_file" >&6;}
22223 # Let's still pretend it is `configure' which instantiates (i.e., don't
22224 # use $as_me), people would be surprised to read:
22225 # /* config.h. Generated by config.status. */
22226 if test x"$ac_file" = x-; then
22229 configure_input="$ac_file. "
22231 configure_input=$configure_input"Generated from `echo $ac_file_in |
22232 sed 's,.*/,,'` by configure."
22234 # First look for the input files in the build tree, otherwise in the
22236 ac_file_inputs=`IFS=:
22237 for f in $ac_file_in; do
22239 -) echo $tmp/stdin ;;
22241 # Absolute (can't be DOS-style, as IFS=:)
22242 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22243 echo "$as_me: error: cannot find input file: $f" >&2;}
22244 { (exit 1); exit 1; }; }
22247 if test -f "$f"; then
22250 elif test -f "$srcdir/$f"; then
22255 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22256 echo "$as_me: error: cannot find input file: $f" >&2;}
22257 { (exit 1); exit 1; }; }
22260 done` || { (exit 1); exit 1; }
22262 cat >>$CONFIG_STATUS <<_ACEOF
22266 cat >>$CONFIG_STATUS <<\_ACEOF
22268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22269 s,@configure_input@,$configure_input,;t t
22270 s,@srcdir@,$ac_srcdir,;t t
22271 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22272 s,@top_srcdir@,$ac_top_srcdir,;t t
22273 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22274 s,@builddir@,$ac_builddir,;t t
22275 s,@abs_builddir@,$ac_abs_builddir,;t t
22276 s,@top_builddir@,$ac_top_builddir,;t t
22277 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22278 s,@INSTALL@,$ac_INSTALL,;t t
22279 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22281 if test x"$ac_file" != x-; then
22282 mv $tmp/out $ac_file
22290 cat >>$CONFIG_STATUS <<\_ACEOF
22293 # CONFIG_HEADER section.
22296 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22297 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22299 # ac_d sets the value in "#define NAME VALUE" lines.
22300 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22301 ac_dB='[ ].*$,\1#\2'
22304 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22305 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22306 ac_uB='$,\1#\2define\3'
22310 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22311 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22313 - | *:- | *:-:* ) # input from stdin
22315 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22317 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22319 * ) ac_file_in=$ac_file.in ;;
22322 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22323 echo "$as_me: creating $ac_file" >&6;}
22325 # First look for the input files in the build tree, otherwise in the
22327 ac_file_inputs=`IFS=:
22328 for f in $ac_file_in; do
22330 -) echo $tmp/stdin ;;
22332 # Absolute (can't be DOS-style, as IFS=:)
22333 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22334 echo "$as_me: error: cannot find input file: $f" >&2;}
22335 { (exit 1); exit 1; }; }
22336 # Do quote $f, to prevent DOS paths from being IFS'd.
22339 if test -f "$f"; then
22342 elif test -f "$srcdir/$f"; then
22347 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22348 echo "$as_me: error: cannot find input file: $f" >&2;}
22349 { (exit 1); exit 1; }; }
22352 done` || { (exit 1); exit 1; }
22353 # Remove the trailing spaces.
22354 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22358 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22359 # `conftest.undefs', that substitutes the proper values into
22360 # config.h.in to produce config.h. The first handles `#define'
22361 # templates, and the second `#undef' templates.
22362 # And first: Protect against being on the right side of a sed subst in
22363 # config.status. Protect against being in an unquoted here document
22364 # in config.status.
22365 rm -f conftest.defines conftest.undefs
22366 # Using a here document instead of a string reduces the quoting nightmare.
22367 # Putting comments in sed scripts is not portable.
22369 # `end' is used to avoid that the second main sed command (meant for
22370 # 0-ary CPP macros) applies to n-ary macro definitions.
22371 # See the Autoconf documentation for `clear'.
22372 cat >confdef2sed.sed <<\_ACEOF
22377 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22379 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22382 # If some macros were called several times there might be several times
22383 # the same #defines, which is useless. Nevertheless, we may not want to
22384 # sort them, since we want the *last* AC-DEFINE to be honored.
22385 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22386 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22387 rm -f confdef2sed.sed
22389 # This sed command replaces #undef with comments. This is necessary, for
22390 # example, in the case of _POSIX_SOURCE, which is predefined and required
22391 # on some systems where configure will not decide to define it.
22392 cat >>conftest.undefs <<\_ACEOF
22393 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22396 # Break up conftest.defines because some shells have a limit on the size
22397 # of here documents, and old seds have small limits too (100 cmds).
22398 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22399 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22400 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22401 echo ' :' >>$CONFIG_STATUS
22402 rm -f conftest.tail
22403 while grep . conftest.defines >/dev/null
22405 # Write a limited-size here document to $tmp/defines.sed.
22406 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22407 # Speed up: don't consider the non `#define' lines.
22408 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22409 # Work around the forget-to-reset-the-flag bug.
22410 echo 't clr' >>$CONFIG_STATUS
22411 echo ': clr' >>$CONFIG_STATUS
22412 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22414 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22416 mv $tmp/out $tmp/in
22418 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22419 rm -f conftest.defines
22420 mv conftest.tail conftest.defines
22422 rm -f conftest.defines
22423 echo ' fi # grep' >>$CONFIG_STATUS
22424 echo >>$CONFIG_STATUS
22426 # Break up conftest.undefs because some shells have a limit on the size
22427 # of here documents, and old seds have small limits too (100 cmds).
22428 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22429 rm -f conftest.tail
22430 while grep . conftest.undefs >/dev/null
22432 # Write a limited-size here document to $tmp/undefs.sed.
22433 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22434 # Speed up: don't consider the non `#undef'
22435 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22436 # Work around the forget-to-reset-the-flag bug.
22437 echo 't clr' >>$CONFIG_STATUS
22438 echo ': clr' >>$CONFIG_STATUS
22439 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22441 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22443 mv $tmp/out $tmp/in
22445 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22446 rm -f conftest.undefs
22447 mv conftest.tail conftest.undefs
22449 rm -f conftest.undefs
22451 cat >>$CONFIG_STATUS <<\_ACEOF
22452 # Let's still pretend it is `configure' which instantiates (i.e., don't
22453 # use $as_me), people would be surprised to read:
22454 # /* config.h. Generated by config.status. */
22455 if test x"$ac_file" = x-; then
22456 echo "/* Generated by configure. */" >$tmp/config.h
22458 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22460 cat $tmp/in >>$tmp/config.h
22462 if test x"$ac_file" != x-; then
22463 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22464 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22465 echo "$as_me: $ac_file is unchanged" >&6;}
22467 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22469 X"$ac_file" : 'X\(//\)[^/]' \| \
22470 X"$ac_file" : 'X\(//\)$' \| \
22471 X"$ac_file" : 'X\(/\)' \| \
22472 . : '\(.\)' 2>/dev/null ||
22474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22476 /^X\(\/\/\)$/{ s//\1/; q; }
22477 /^X\(\/\).*/{ s//\1/; q; }
22479 { if $as_mkdir_p; then
22484 while test ! -d "$as_dir"; do
22485 as_dirs="$as_dir $as_dirs"
22486 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22488 X"$as_dir" : 'X\(//\)[^/]' \| \
22489 X"$as_dir" : 'X\(//\)$' \| \
22490 X"$as_dir" : 'X\(/\)' \| \
22491 . : '\(.\)' 2>/dev/null ||
22493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22495 /^X\(\/\/\)$/{ s//\1/; q; }
22496 /^X\(\/\).*/{ s//\1/; q; }
22499 test ! -n "$as_dirs" || mkdir $as_dirs
22500 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22501 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22502 { (exit 1); exit 1; }; }; }
22505 mv $tmp/config.h $ac_file
22509 rm -f $tmp/config.h
22511 # Compute $ac_file's index in $config_headers.
22513 for _am_header in $config_headers :; do
22514 case $_am_header in
22515 $ac_file | $ac_file:* )
22518 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22521 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22522 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22523 X$ac_file : 'X\(//\)[^/]' \| \
22524 X$ac_file : 'X\(//\)$' \| \
22525 X$ac_file : 'X\(/\)' \| \
22526 . : '\(.\)' 2>/dev/null ||
22528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22530 /^X\(\/\/\)$/{ s//\1/; q; }
22531 /^X\(\/\).*/{ s//\1/; q; }
22532 s/.*/./; q'`/stamp-h$_am_stamp_count
22535 cat >>$CONFIG_STATUS <<\_ACEOF
22538 # CONFIG_COMMANDS section.
22540 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22541 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22542 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22543 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22544 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22545 X"$ac_dest" : 'X\(//\)[^/]' \| \
22546 X"$ac_dest" : 'X\(//\)$' \| \
22547 X"$ac_dest" : 'X\(/\)' \| \
22548 . : '\(.\)' 2>/dev/null ||
22550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22552 /^X\(\/\/\)$/{ s//\1/; q; }
22553 /^X\(\/\).*/{ s//\1/; q; }
22555 { if $as_mkdir_p; then
22560 while test ! -d "$as_dir"; do
22561 as_dirs="$as_dir $as_dirs"
22562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22564 X"$as_dir" : 'X\(//\)[^/]' \| \
22565 X"$as_dir" : 'X\(//\)$' \| \
22566 X"$as_dir" : 'X\(/\)' \| \
22567 . : '\(.\)' 2>/dev/null ||
22569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22571 /^X\(\/\/\)$/{ s//\1/; q; }
22572 /^X\(\/\).*/{ s//\1/; q; }
22575 test ! -n "$as_dirs" || mkdir $as_dirs
22576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22578 { (exit 1); exit 1; }; }; }
22582 if test "$ac_dir" != .; then
22583 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22584 # A "../" for each directory in $ac_dir_suffix.
22585 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22587 ac_dir_suffix= ac_top_builddir=
22591 .) # No --srcdir option. We are building in place.
22593 if test -z "$ac_top_builddir"; then
22596 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22598 [\\/]* | ?:[\\/]* ) # Absolute path.
22599 ac_srcdir=$srcdir$ac_dir_suffix;
22600 ac_top_srcdir=$srcdir ;;
22601 *) # Relative path.
22602 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22603 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22606 # Do not use `cd foo && pwd` to compute absolute paths, because
22607 # the directories may not exist.
22609 .) ac_abs_builddir="$ac_dir";;
22612 .) ac_abs_builddir=`pwd`;;
22613 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22614 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22617 case $ac_abs_builddir in
22618 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22620 case ${ac_top_builddir}. in
22621 .) ac_abs_top_builddir=$ac_abs_builddir;;
22622 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22623 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22626 case $ac_abs_builddir in
22627 .) ac_abs_srcdir=$ac_srcdir;;
22630 .) ac_abs_srcdir=$ac_abs_builddir;;
22631 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22632 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22635 case $ac_abs_builddir in
22636 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22638 case $ac_top_srcdir in
22639 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22640 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22641 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22646 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22647 echo "$as_me: executing $ac_dest commands" >&6;}
22650 # Only add multilib support code if we just rebuilt the top-level
22652 case " $CONFIG_FILES " in
22654 ac_file=Makefile . ${multi_basedir}/config-ml.in
22657 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22658 # Strip MF so we end up with the name of the file.
22659 mf=`echo "$mf" | sed -e 's/:.*$//'`
22660 # Check whether this is an Automake generated Makefile or not.
22661 # We used to match only the files named `Makefile.in', but
22662 # some people rename them; so instead we look at the file content.
22663 # Grep'ing the first line is not enough: some people post-process
22664 # each Makefile.in and add a new line on top of each file to say so.
22665 # So let's grep whole file.
22666 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22667 dirpart=`(dirname "$mf") 2>/dev/null ||
22668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22669 X"$mf" : 'X\(//\)[^/]' \| \
22670 X"$mf" : 'X\(//\)$' \| \
22671 X"$mf" : 'X\(/\)' \| \
22672 . : '\(.\)' 2>/dev/null ||
22674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22676 /^X\(\/\/\)$/{ s//\1/; q; }
22677 /^X\(\/\).*/{ s//\1/; q; }
22682 # Extract the definition of DEPDIR, am__include, and am__quote
22683 # from the Makefile without running `make'.
22684 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22685 test -z "$DEPDIR" && continue
22686 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22687 test -z "am__include" && continue
22688 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22689 # When using ansi2knr, U may be empty or an underscore; expand it
22690 U=`sed -n 's/^U = //p' < "$mf"`
22691 # Find all dependency output files, they are included files with
22692 # $(DEPDIR) in their names. We invoke sed twice because it is the
22693 # simplest approach to changing $(DEPDIR) to its actual value in the
22695 for file in `sed -n "
22696 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22697 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22698 # Make sure the directory exists.
22699 test -f "$dirpart/$file" && continue
22700 fdir=`(dirname "$file") 2>/dev/null ||
22701 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22702 X"$file" : 'X\(//\)[^/]' \| \
22703 X"$file" : 'X\(//\)$' \| \
22704 X"$file" : 'X\(/\)' \| \
22705 . : '\(.\)' 2>/dev/null ||
22707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22709 /^X\(\/\/\)$/{ s//\1/; q; }
22710 /^X\(\/\).*/{ s//\1/; q; }
22712 { if $as_mkdir_p; then
22713 mkdir -p $dirpart/$fdir
22715 as_dir=$dirpart/$fdir
22717 while test ! -d "$as_dir"; do
22718 as_dirs="$as_dir $as_dirs"
22719 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22721 X"$as_dir" : 'X\(//\)[^/]' \| \
22722 X"$as_dir" : 'X\(//\)$' \| \
22723 X"$as_dir" : 'X\(/\)' \| \
22724 . : '\(.\)' 2>/dev/null ||
22726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22728 /^X\(\/\/\)$/{ s//\1/; q; }
22729 /^X\(\/\).*/{ s//\1/; q; }
22732 test ! -n "$as_dirs" || mkdir $as_dirs
22733 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22734 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22735 { (exit 1); exit 1; }; }; }
22737 # echo "creating $dirpart/$file"
22738 echo '# dummy' > "$dirpart/$file"
22744 # See if we are running on zsh, and set the options which allow our
22745 # commands through without removal of \ escapes.
22746 if test -n "${ZSH_VERSION+set}" ; then
22747 setopt NO_GLOB_SUBST
22750 cfgfile="${ofile}T"
22751 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22754 cat <<_LT_EOF >> "$cfgfile"
22757 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22758 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22762 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22763 # 2006, 2007 Free Software Foundation, Inc.
22765 # This file is part of GNU Libtool:
22766 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22768 # This program is free software; you can redistribute it and/or modify
22769 # it under the terms of the GNU General Public License as published by
22770 # the Free Software Foundation; either version 2 of the License, or
22771 # (at your option) any later version.
22773 # This program is distributed in the hope that it will be useful, but
22774 # WITHOUT ANY WARRANTY; without even the implied warranty of
22775 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22776 # General Public License for more details.
22778 # You should have received a copy of the GNU General Public License
22779 # along with this program; if not, a copy can be downloaded from
22780 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22781 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22782 # MA 02110-1301, USA.
22784 # As a special exception to the GNU General Public License, if you
22785 # distribute this file as part of a program that contains a
22786 # configuration script generated by Autoconf, you may include it under
22787 # the same distribution terms that you use for the rest of that program.
22790 # The names of the tagged configurations supported by this script.
22791 available_tags="FC "
22793 # ### BEGIN LIBTOOL CONFIG
22795 # Which release of libtool.m4 was used?
22796 macro_version=$macro_version
22797 macro_revision=$macro_revision
22799 # Whether or not to build shared libraries.
22800 build_libtool_libs=$enable_shared
22802 # Whether or not to build static libraries.
22803 build_old_libs=$enable_static
22805 # What type of objects to build.
22808 # Whether or not to optimize for fast installation.
22809 fast_install=$enable_fast_install
22812 host_alias=$host_alias
22816 # The build system.
22817 build_alias=$build_alias
22821 # A sed program that does not truncate output.
22824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22825 Xsed="\$SED -e 1s/^X//"
22827 # A grep program that handles long lines.
22833 # A literal string matcher.
22836 # A BSD- or MS-compatible name lister.
22839 # Whether we need soft or hard links.
22842 # What is the maximum length of a command?
22843 max_cmd_len=$max_cmd_len
22845 # Object file suffix (normally "o").
22848 # Executable file suffix (normally "").
22851 # whether the shell understands "unset".
22854 # turn spaces into newlines.
22857 # turn newlines into spaces.
22860 # How to create reloadable object files.
22861 reload_flag=$lt_reload_flag
22862 reload_cmds=$lt_reload_cmds
22864 # Method to check whether dependent libraries are shared objects.
22865 deplibs_check_method=$lt_deplibs_check_method
22867 # Command to use when deplibs_check_method == "file_magic".
22868 file_magic_cmd=$lt_file_magic_cmd
22872 AR_FLAGS=$lt_AR_FLAGS
22874 # A symbol stripping program.
22877 # Commands used to install an old-style archive.
22879 old_postinstall_cmds=$lt_old_postinstall_cmds
22880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22885 # LTCC compiler flags.
22886 LTCFLAGS=$lt_CFLAGS
22888 # Take the output of nm and produce a listing of raw symbols and C names.
22889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22891 # Transform the output of nm in a proper C declaration.
22892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22894 # Transform the output of nm in a C name address pair.
22895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22897 # The name of the directory that contains temporary libtool files.
22900 # Shell to use when invoking shell scripts.
22903 # An echo program that does not interpret backslashes.
22906 # Used to examine libraries when file_magic_cmd begins with "file".
22907 MAGIC_CMD=$MAGIC_CMD
22909 # Must we lock files when doing compilation?
22910 need_locks=$lt_need_locks
22912 # Old archive suffix (normally "a").
22915 # Shared library suffix (normally ".so").
22916 shrext_cmds=$lt_shrext_cmds
22918 # The commands to extract the exported symbol list from a shared archive.
22919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22921 # Variables whose values should be saved in libtool wrapper scripts and
22922 # restored at link time.
22923 variables_saved_for_relink=$lt_variables_saved_for_relink
22925 # Do we need the "lib" prefix for modules?
22926 need_lib_prefix=$need_lib_prefix
22928 # Do we need a version for libraries?
22929 need_version=$need_version
22931 # Library versioning type.
22932 version_type=$version_type
22934 # Shared library runtime path variable.
22935 runpath_var=$runpath_var
22937 # Shared library path variable.
22938 shlibpath_var=$shlibpath_var
22940 # Is shlibpath searched before the hard-coded library search path?
22941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22943 # Format of library name prefix.
22944 libname_spec=$lt_libname_spec
22946 # List of archive names. First name is the real one, the rest are links.
22947 # The last name is the one that the linker finds with -lNAME
22948 library_names_spec=$lt_library_names_spec
22950 # The coded name of the library, if different from the real name.
22951 soname_spec=$lt_soname_spec
22953 # Command to use after installation of a shared archive.
22954 postinstall_cmds=$lt_postinstall_cmds
22956 # Command to use after uninstallation of a shared archive.
22957 postuninstall_cmds=$lt_postuninstall_cmds
22959 # Commands used to finish a libtool library installation in a directory.
22960 finish_cmds=$lt_finish_cmds
22962 # As "finish_cmds", except a single script fragment to be evaled but
22964 finish_eval=$lt_finish_eval
22966 # Whether we should hardcode library paths into libraries.
22967 hardcode_into_libs=$hardcode_into_libs
22969 # Compile-time system search path for libraries.
22970 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22972 # Run-time system search path for libraries.
22973 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22975 # Whether dlopen is supported.
22976 dlopen_support=$enable_dlopen
22978 # Whether dlopen of programs is supported.
22979 dlopen_self=$enable_dlopen_self
22981 # Whether dlopen of statically linked programs is supported.
22982 dlopen_self_static=$enable_dlopen_self_static
22984 # Commands to strip libraries.
22985 old_striplib=$lt_old_striplib
22986 striplib=$lt_striplib
22989 # The linker used to build libraries.
22992 # Commands used to build an old-style archive.
22993 old_archive_cmds=$lt_old_archive_cmds
22995 # A language specific compiler.
22998 # Is the compiler the GNU compiler?
23001 # Compiler flag to turn off builtin functions.
23002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23004 # How to pass a linker flag through the compiler.
23005 wl=$lt_lt_prog_compiler_wl
23007 # Additional compiler flags for building library objects.
23008 pic_flag=$lt_lt_prog_compiler_pic
23010 # Compiler flag to prevent dynamic linking.
23011 link_static_flag=$lt_lt_prog_compiler_static
23013 # Does compiler simultaneously support -c and -o options?
23014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23016 # Whether or not to add -lc for building shared libraries.
23017 build_libtool_need_lc=$archive_cmds_need_lc
23019 # Whether or not to disallow shared libs when runtime libs are static.
23020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23022 # Compiler flag to allow reflexive dlopens.
23023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23025 # Compiler flag to generate shared objects directly from archives.
23026 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23028 # Whether the compiler copes with passing no objects directly.
23029 compiler_needs_object=$lt_compiler_needs_object
23031 # Create an old-style archive from a shared archive.
23032 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23034 # Create a temporary old-style archive to link instead of a shared archive.
23035 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23037 # Commands used to build a shared archive.
23038 archive_cmds=$lt_archive_cmds
23039 archive_expsym_cmds=$lt_archive_expsym_cmds
23041 # Commands used to build a loadable module if different from building
23042 # a shared archive.
23043 module_cmds=$lt_module_cmds
23044 module_expsym_cmds=$lt_module_expsym_cmds
23046 # Whether we are building with GNU ld or not.
23047 with_gnu_ld=$lt_with_gnu_ld
23049 # Flag that allows shared libraries with undefined symbols to be built.
23050 allow_undefined_flag=$lt_allow_undefined_flag
23052 # Flag that enforces no undefined symbols.
23053 no_undefined_flag=$lt_no_undefined_flag
23055 # Flag to hardcode \$libdir into a binary during linking.
23056 # This must work even if \$libdir does not exist
23057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23059 # If ld is used when linking, flag to hardcode \$libdir into a binary
23060 # during linking. This must work even if \$libdir does not exist.
23061 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23063 # Whether we need a single "-rpath" flag with a separated argument.
23064 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23067 # DIR into the resulting binary.
23068 hardcode_direct=$hardcode_direct
23070 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23071 # DIR into the resulting binary and the resulting library dependency is
23072 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23073 # library is relocated.
23074 hardcode_direct_absolute=$hardcode_direct_absolute
23076 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23077 # into the resulting binary.
23078 hardcode_minus_L=$hardcode_minus_L
23080 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23081 # into the resulting binary.
23082 hardcode_shlibpath_var=$hardcode_shlibpath_var
23084 # Set to "yes" if building a shared library automatically hardcodes DIR
23085 # into the library and all subsequent libraries and executables linked
23087 hardcode_automatic=$hardcode_automatic
23089 # Set to yes if linker adds runtime paths of dependent libraries
23090 # to runtime path list.
23091 inherit_rpath=$inherit_rpath
23093 # Whether libtool must link a program against all its dependency libraries.
23094 link_all_deplibs=$link_all_deplibs
23096 # Fix the shell variable \$srcfile for the compiler.
23097 fix_srcfile_path=$lt_fix_srcfile_path
23099 # Set to "yes" if exported symbols are required.
23100 always_export_symbols=$always_export_symbols
23102 # The commands to list exported symbols.
23103 export_symbols_cmds=$lt_export_symbols_cmds
23105 # Symbols that should not be listed in the preloaded symbols.
23106 exclude_expsyms=$lt_exclude_expsyms
23108 # Symbols that must always be exported.
23109 include_expsyms=$lt_include_expsyms
23111 # Commands necessary for linking programs (against libraries) with templates.
23112 prelink_cmds=$lt_prelink_cmds
23114 # Specify filename containing input files.
23115 file_list_spec=$lt_file_list_spec
23117 # How to hardcode a shared library path into an executable.
23118 hardcode_action=$hardcode_action
23120 # Dependencies to place before and after the objects being linked to
23121 # create a shared library.
23122 predep_objects=$lt_predep_objects
23123 postdep_objects=$lt_postdep_objects
23124 predeps=$lt_predeps
23125 postdeps=$lt_postdeps
23127 # The library search path used internally by the compiler when linking
23128 # a shared library.
23129 compiler_lib_search_path=$lt_compiler_lib_search_path
23131 # ### END LIBTOOL CONFIG
23137 cat <<\_LT_EOF >> "$cfgfile"
23138 # AIX sometimes has problems with the GCC collect2 program. For some
23139 # reason, if we set the COLLECT_NAMES environment variable, the problems
23140 # vanish in a puff of smoke.
23141 if test "X${COLLECT_NAMES+set}" != Xset; then
23143 export COLLECT_NAMES
23150 ltmain="$ac_aux_dir/ltmain.sh"
23153 # We use sed instead of cat because bash on DJGPP gets confused if
23154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23155 # text mode, it properly converts lines to CR/LF. This bash problem
23156 # is reportedly fixed, but why not run on old versions too?
23157 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23158 || (rm -f "$cfgfile"; exit 1)
23162 cat << \_LT_EOF >> "$cfgfile"
23163 # func_dirname file append nondir_replacement
23164 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23165 # otherwise set result to NONDIR_REPLACEMENT.
23169 */*) func_dirname_result="${1%/*}${2}" ;;
23170 * ) func_dirname_result="${3}" ;;
23174 # func_basename file
23177 func_basename_result="${1##*/}"
23180 # func_stripname prefix suffix name
23181 # strip PREFIX and SUFFIX off of NAME.
23182 # PREFIX and SUFFIX must not contain globbing or regex special
23183 # characters, hashes, percent signs, but SUFFIX may contain a leading
23184 # dot (in which case that matches only a dot).
23187 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23188 # positional parameters, so assign one to ordinary parameter first.
23189 func_stripname_result=${3}
23190 func_stripname_result=${func_stripname_result#"${1}"}
23191 func_stripname_result=${func_stripname_result%"${2}"}
23197 func_opt_split_opt=${1%%=*}
23198 func_opt_split_arg=${1#*=}
23205 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23206 *) func_lo2o_result=${1} ;;
23211 *) # Bourne compatible functions.
23212 cat << \_LT_EOF >> "$cfgfile"
23213 # func_dirname file append nondir_replacement
23214 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23215 # otherwise set result to NONDIR_REPLACEMENT.
23218 # Extract subdirectory from the argument.
23219 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23220 if test "X$func_dirname_result" = "X${1}"; then
23221 func_dirname_result="${3}"
23223 func_dirname_result="$func_dirname_result${2}"
23227 # func_basename file
23230 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23233 # func_stripname prefix suffix name
23234 # strip PREFIX and SUFFIX off of NAME.
23235 # PREFIX and SUFFIX must not contain globbing or regex special
23236 # characters, hashes, percent signs, but SUFFIX may contain a leading
23237 # dot (in which case that matches only a dot).
23238 # func_strip_suffix prefix name
23242 .*) func_stripname_result=`$ECHO "X${3}" \
23243 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23244 *) func_stripname_result=`$ECHO "X${3}" \
23245 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23251 my_sed_long_arg='1s/^-[^=]*=//'
23256 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23257 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23263 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23268 case $lt_shell_append in
23270 cat << \_LT_EOF >> "$cfgfile"
23272 # func_append var value
23273 # Append VALUE to the end of shell variable VAR.
23281 cat << \_LT_EOF >> "$cfgfile"
23283 # func_append var value
23284 # Append VALUE to the end of shell variable VAR.
23294 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23295 || (rm -f "$cfgfile"; exit 1)
23297 mv -f "$cfgfile" "$ofile" ||
23298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23302 cat <<_LT_EOF >> "$ofile"
23304 # ### BEGIN LIBTOOL TAG CONFIG: FC
23306 # The linker used to build libraries.
23309 # Commands used to build an old-style archive.
23310 old_archive_cmds=$lt_old_archive_cmds_FC
23312 # A language specific compiler.
23315 # Is the compiler the GNU compiler?
23318 # Compiler flag to turn off builtin functions.
23319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
23321 # How to pass a linker flag through the compiler.
23322 wl=$lt_lt_prog_compiler_wl_FC
23324 # Additional compiler flags for building library objects.
23325 pic_flag=$lt_lt_prog_compiler_pic_FC
23327 # Compiler flag to prevent dynamic linking.
23328 link_static_flag=$lt_lt_prog_compiler_static_FC
23330 # Does compiler simultaneously support -c and -o options?
23331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
23333 # Whether or not to add -lc for building shared libraries.
23334 build_libtool_need_lc=$archive_cmds_need_lc_FC
23336 # Whether or not to disallow shared libs when runtime libs are static.
23337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
23339 # Compiler flag to allow reflexive dlopens.
23340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
23342 # Compiler flag to generate shared objects directly from archives.
23343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
23345 # Whether the compiler copes with passing no objects directly.
23346 compiler_needs_object=$lt_compiler_needs_object_FC
23348 # Create an old-style archive from a shared archive.
23349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
23351 # Create a temporary old-style archive to link instead of a shared archive.
23352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
23354 # Commands used to build a shared archive.
23355 archive_cmds=$lt_archive_cmds_FC
23356 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
23358 # Commands used to build a loadable module if different from building
23359 # a shared archive.
23360 module_cmds=$lt_module_cmds_FC
23361 module_expsym_cmds=$lt_module_expsym_cmds_FC
23363 # Whether we are building with GNU ld or not.
23364 with_gnu_ld=$lt_with_gnu_ld_FC
23366 # Flag that allows shared libraries with undefined symbols to be built.
23367 allow_undefined_flag=$lt_allow_undefined_flag_FC
23369 # Flag that enforces no undefined symbols.
23370 no_undefined_flag=$lt_no_undefined_flag_FC
23372 # Flag to hardcode \$libdir into a binary during linking.
23373 # This must work even if \$libdir does not exist
23374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
23376 # If ld is used when linking, flag to hardcode \$libdir into a binary
23377 # during linking. This must work even if \$libdir does not exist.
23378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
23380 # Whether we need a single "-rpath" flag with a separated argument.
23381 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
23383 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23384 # DIR into the resulting binary.
23385 hardcode_direct=$hardcode_direct_FC
23387 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23388 # DIR into the resulting binary and the resulting library dependency is
23389 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23390 # library is relocated.
23391 hardcode_direct_absolute=$hardcode_direct_absolute_FC
23393 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23394 # into the resulting binary.
23395 hardcode_minus_L=$hardcode_minus_L_FC
23397 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23398 # into the resulting binary.
23399 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
23401 # Set to "yes" if building a shared library automatically hardcodes DIR
23402 # into the library and all subsequent libraries and executables linked
23404 hardcode_automatic=$hardcode_automatic_FC
23406 # Set to yes if linker adds runtime paths of dependent libraries
23407 # to runtime path list.
23408 inherit_rpath=$inherit_rpath_FC
23410 # Whether libtool must link a program against all its dependency libraries.
23411 link_all_deplibs=$link_all_deplibs_FC
23413 # Fix the shell variable \$srcfile for the compiler.
23414 fix_srcfile_path=$lt_fix_srcfile_path_FC
23416 # Set to "yes" if exported symbols are required.
23417 always_export_symbols=$always_export_symbols_FC
23419 # The commands to list exported symbols.
23420 export_symbols_cmds=$lt_export_symbols_cmds_FC
23422 # Symbols that should not be listed in the preloaded symbols.
23423 exclude_expsyms=$lt_exclude_expsyms_FC
23425 # Symbols that must always be exported.
23426 include_expsyms=$lt_include_expsyms_FC
23428 # Commands necessary for linking programs (against libraries) with templates.
23429 prelink_cmds=$lt_prelink_cmds_FC
23431 # Specify filename containing input files.
23432 file_list_spec=$lt_file_list_spec_FC
23434 # How to hardcode a shared library path into an executable.
23435 hardcode_action=$hardcode_action_FC
23437 # Dependencies to place before and after the objects being linked to
23438 # create a shared library.
23439 predep_objects=$lt_predep_objects_FC
23440 postdep_objects=$lt_postdep_objects_FC
23441 predeps=$lt_predeps_FC
23442 postdeps=$lt_postdeps_FC
23444 # The library search path used internally by the compiler when linking
23445 # a shared library.
23446 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
23448 # ### END LIBTOOL TAG CONFIG: FC
23453 if test "$GCC" = yes; then
23454 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23456 echo "/* generated for $CC */" > tmp-stdint.h
23459 sed 's/^ *//' >> tmp-stdint.h <<EOF
23461 #ifndef GCC_GENERATED_STDINT_H
23462 #define GCC_GENERATED_STDINT_H 1
23464 #include <sys/types.h>
23467 if test "$acx_cv_header_stdint" != stdint.h; then
23468 echo "#include <stddef.h>" >> tmp-stdint.h
23470 if test "$acx_cv_header_stdint" != stddef.h; then
23471 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23474 sed 's/^ *//' >> tmp-stdint.h <<EOF
23475 /* glibc uses these symbols as guards to prevent redefinitions. */
23476 #ifdef __int8_t_defined
23481 #ifdef __uint32_t_defined
23487 # ----------------- done header, emit basic int types -------------
23488 if test "$acx_cv_header_stdint" = stddef.h; then
23489 sed 's/^ *//' >> tmp-stdint.h <<EOF
23493 #ifndef __uint8_t_defined
23494 #define __uint8_t_defined
23495 typedef unsigned $acx_cv_type_int8_t uint8_t;
23501 #ifndef __uint16_t_defined
23502 #define __uint16_t_defined
23503 typedef unsigned $acx_cv_type_int16_t uint16_t;
23509 #ifndef __uint32_t_defined
23510 #define __uint32_t_defined
23511 typedef unsigned $acx_cv_type_int32_t uint32_t;
23517 #ifndef __int8_t_defined
23518 #define __int8_t_defined
23519 typedef $acx_cv_type_int8_t int8_t;
23525 #ifndef __int16_t_defined
23526 #define __int16_t_defined
23527 typedef $acx_cv_type_int16_t int16_t;
23533 #ifndef __int32_t_defined
23534 #define __int32_t_defined
23535 typedef $acx_cv_type_int32_t int32_t;
23539 elif test "$ac_cv_type_u_int32_t" = yes; then
23540 sed 's/^ *//' >> tmp-stdint.h <<EOF
23542 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23555 #ifndef __uint8_t_defined
23556 #define __uint8_t_defined
23557 typedef u_int8_t uint8_t;
23563 #ifndef __uint16_t_defined
23564 #define __uint16_t_defined
23565 typedef u_int16_t uint16_t;
23571 #ifndef __uint32_t_defined
23572 #define __uint32_t_defined
23573 typedef u_int32_t uint32_t;
23578 sed 's/^ *//' >> tmp-stdint.h <<EOF
23580 /* Some systems have guard macros to prevent redefinitions, define them. */
23602 # ------------- done basic int types, emit int64_t types ------------
23603 if test "$ac_cv_type_uint64_t" = yes; then
23604 sed 's/^ *//' >> tmp-stdint.h <<EOF
23606 /* system headers have good uint64_t and int64_t */
23614 elif test "$ac_cv_type_u_int64_t" = yes; then
23615 sed 's/^ *//' >> tmp-stdint.h <<EOF
23617 /* system headers have an u_int64_t (and int64_t) */
23623 #ifndef __uint64_t_defined
23624 #define __uint64_t_defined
23625 typedef u_int64_t uint64_t;
23629 elif test -n "$acx_cv_type_int64_t"; then
23630 sed 's/^ *//' >> tmp-stdint.h <<EOF
23632 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23635 typedef $acx_cv_type_int64_t int64_t;
23639 #ifndef __uint64_t_defined
23640 #define __uint64_t_defined
23641 typedef unsigned $acx_cv_type_int64_t uint64_t;
23646 sed 's/^ *//' >> tmp-stdint.h <<EOF
23648 /* some common heuristics for int64_t, using compiler-specific tests */
23649 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23652 #ifndef __int64_t_defined
23653 typedef long long int64_t;
23658 typedef unsigned long long uint64_t;
23661 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23662 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23663 does not implement __extension__. But that compiler doesn't define
23665 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23666 # define __extension__
23671 __extension__ typedef long long int64_t;
23675 __extension__ typedef unsigned long long uint64_t;
23678 #elif !defined __STRICT_ANSI__
23679 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23683 typedef __int64 int64_t;
23687 typedef unsigned __int64 uint64_t;
23689 # endif /* compiler */
23691 #endif /* ANSI version */
23695 # ------------- done int64_t types, emit intptr types ------------
23696 if test "$ac_cv_type_uintptr_t" != yes; then
23697 sed 's/^ *//' >> tmp-stdint.h <<EOF
23699 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23700 #ifndef __uintptr_t_defined
23701 typedef u$acx_cv_type_intptr_t uintptr_t;
23703 #ifndef __intptr_t_defined
23704 typedef $acx_cv_type_intptr_t intptr_t;
23709 # ------------- done intptr types, emit int_least types ------------
23710 if test "$ac_cv_type_int_least32_t" != yes; then
23711 sed 's/^ *//' >> tmp-stdint.h <<EOF
23713 /* Define int_least types */
23714 typedef int8_t int_least8_t;
23715 typedef int16_t int_least16_t;
23716 typedef int32_t int_least32_t;
23718 typedef int64_t int_least64_t;
23721 typedef uint8_t uint_least8_t;
23722 typedef uint16_t uint_least16_t;
23723 typedef uint32_t uint_least32_t;
23725 typedef uint64_t uint_least64_t;
23730 # ------------- done intptr types, emit int_fast types ------------
23731 if test "$ac_cv_type_int_fast32_t" != yes; then
23732 sed 's/^ *//' >> tmp-stdint.h <<EOF
23734 /* Define int_fast types. short is often slow */
23735 typedef int8_t int_fast8_t;
23736 typedef int int_fast16_t;
23737 typedef int32_t int_fast32_t;
23739 typedef int64_t int_fast64_t;
23742 typedef uint8_t uint_fast8_t;
23743 typedef unsigned int uint_fast16_t;
23744 typedef uint32_t uint_fast32_t;
23746 typedef uint64_t uint_fast64_t;
23751 if test "$ac_cv_type_uintmax_t" != yes; then
23752 sed 's/^ *//' >> tmp-stdint.h <<EOF
23754 /* Define intmax based on what we found */
23756 typedef int64_t intmax_t;
23758 typedef long intmax_t;
23761 typedef uint64_t uintmax_t;
23763 typedef unsigned long uintmax_t;
23768 sed 's/^ *//' >> tmp-stdint.h <<EOF
23770 #endif /* GCC_GENERATED_STDINT_H */
23773 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
23776 mv -f tmp-stdint.h gstdint.h
23784 cat >>$CONFIG_STATUS <<\_ACEOF
23786 { (exit 0); exit 0; }
23788 chmod +x $CONFIG_STATUS
23789 ac_clean_files=$ac_clean_files_save
23792 # configure is writing to config.log, and then calls config.status.
23793 # config.status does its own redirection, appending to config.log.
23794 # Unfortunately, on DOS this fails, as config.log is still kept open
23795 # by configure, so config.status won't be able to write to it; its
23796 # output is simply discarded. So we exec the FD to /dev/null,
23797 # effectively closing config.log, so it can be properly (re)opened and
23798 # appended to by config.status. When coming back to configure, we
23799 # need to make the FD available again.
23800 if test "$no_create" != yes; then
23802 ac_config_status_args=
23803 test "$silent" = yes &&
23804 ac_config_status_args="$ac_config_status_args --quiet"
23806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23809 # would make configure fail if this is the last instruction.
23810 $ac_cs_success || { (exit 1); exit 1; }