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 LIBOBJS LTLIBOBJS'
463 # Initialize some variables set by options.
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
475 program_transform_name=s,x,x,
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513 # Accept the important Cygnus configure options, so we can diagnose typos.
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
535 cache_file=config.cache ;;
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 datadir=$ac_optarg ;;
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 eval "enable_$ac_feature='$ac_optarg'" ;;
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
578 -help | --help | --hel | --he | -h)
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
602 -libdir | --libdir | --libdi | --libd)
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 # Obsolete; use --without-fp.
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 sbindir=$ac_optarg ;;
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 sharedstatedir=$ac_optarg ;;
706 -site | --site | --sit)
708 -site=* | --site=* | --sit=*)
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 -version | --version | --versio | --versi | --vers | -V)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 eval "with_$ac_package='$ac_optarg'" ;;
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
757 # Obsolete; use --with-x.
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
809 eval ac_val=$`echo $ac_var`
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
821 eval ac_val=$`echo $ac_var`
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850 test "$silent" = yes && exec 6>/dev/null
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
870 if test ! -r $srcdir/$ac_unique_file; then
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 # Report the --help message.
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
931 Usage: $0 [OPTION]... [VAR=VALUE]...
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
936 Defaults for the options are specified in brackets.
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
963 For better control, use the options below.
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 --target=TARGET configure for building compilers for TARGET [HOST]
994 if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-version-specific-runtime-libs
1004 Specify that runtime libraries should be installed
1005 in a compiler-specific directory [default=no]
1006 --enable-generated-files-in-srcdir
1007 put copies of generated files in source dir intended
1008 for creating source tarballs for users without
1009 texinfo bison or flex. [default=no]
1010 --enable-multilib build many library versions (default)
1011 --disable-dependency-tracking speeds up one-time build
1012 --enable-dependency-tracking do not reject slow dependency extractors
1013 --enable-shared[=PKGS]
1014 build shared libraries [default=yes]
1015 --enable-static[=PKGS]
1016 build static libraries [default=yes]
1017 --enable-fast-install[=PKGS]
1018 optimize for fast installation [default=yes]
1019 --disable-libtool-lock avoid locking (might break parallel builds)
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-linux-futex use the Linux futex system call
1024 --enable-tls Use thread-local storage [default=yes]
1025 --enable-symvers=STYLE enables symbol versioning of the shared library
1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1031 --with-pic try to use only PIC/non-PIC objects [default=use
1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1035 Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1043 FC Fortran compiler command
1044 FCFLAGS Fortran compiler flags
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 ac_dir_suffix= ac_top_builddir=
1068 .) # No --srcdir option. We are building in place.
1070 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1086 .) ac_abs_builddir="$ac_dir";;
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1133 $ac_configure --help
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1218 ac_must_keep_next=false
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1247 -* ) ac_must_keep_next=true ;;
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1276 # The following way of writing the cache mishandles newlines in values,
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1306 if test -n "$ac_subst_files"; then
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -s confdefs.h; then
1328 sed "/^$/d" confdefs.h | sort
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1411 # Check that the precious variables saved in the cache have kept the same
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1463 if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1465 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1466 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1467 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1468 { (exit 1); exit 1; }; }
1472 ac_cpp='$CPP $CPPFLAGS'
1473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 ac_config_headers="$ac_config_headers config.h"
1510 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1511 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1512 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1513 if test "${enable_version_specific_runtime_libs+set}" = set; then
1514 enableval="$enable_version_specific_runtime_libs"
1516 case "$enableval" in
1518 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1519 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1520 { (exit 1); exit 1; }; } ;;
1524 enable_version_specific_runtime_libs=no
1527 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1528 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1530 # We would like our source tree to be readonly. However when releases or
1531 # pre-releases are generated, the flex/bison generated files as well as the
1532 # various formats of manuals need to be included along with the rest of the
1533 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1535 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1536 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1537 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1538 if test "${enable_generated_files_in_srcdir+set}" = set; then
1539 enableval="$enable_generated_files_in_srcdir"
1541 case "$enableval" in
1543 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1544 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1545 { (exit 1); exit 1; }; } ;;
1549 enable_generated_files_in_srcdir=no
1552 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1553 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1556 if test "$enable_generated_files_in_srcdir" = yes; then
1569 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1571 # You will slowly go insane if you do not grok the following fact: when
1572 # building this library, the top-level /target/ becomes the library's /host/.
1574 # configure then causes --target to default to --host, exactly like any
1575 # other package using autoconf. Therefore, 'target' and 'host' will
1576 # always be the same. This makes sense both for native and cross compilers
1577 # just think about it for a little while. :-)
1579 # Also, if this library is being configured as part of a cross compiler, the
1580 # top-level configure script will pass the "real" host as $with_cross_host.
1582 # Do not delete or change the following two lines. For why, see
1583 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1585 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1586 if test -f $ac_dir/install-sh; then
1588 ac_install_sh="$ac_aux_dir/install-sh -c"
1590 elif test -f $ac_dir/install.sh; then
1592 ac_install_sh="$ac_aux_dir/install.sh -c"
1594 elif test -f $ac_dir/shtool; then
1596 ac_install_sh="$ac_aux_dir/shtool install -c"
1600 if test -z "$ac_aux_dir"; then
1601 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1602 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1603 { (exit 1); exit 1; }; }
1605 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1606 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1607 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1690 program_prefix=${target_alias}-
1691 target_alias=${target_alias-$host_alias}
1693 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1694 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1695 # 1.9.0: minimum required version
1696 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1697 # of other PACKAGE_* variables will, however, and there's nothing
1698 # we can do about that; they come from AC_INIT).
1699 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1700 # file in the top srcdir, etc, etc), so stop complaining.
1701 # -Wall: turns on all automake warnings...
1702 # -Wno-portability: ...except this one, since GNU make is required.
1703 # -Wno-override: ... and this one, since we do want this in testsuite.
1704 am__api_version="1.9"
1705 # Find a good install program. We prefer a C program (faster),
1706 # so one script is as good as another. But avoid the broken or
1707 # incompatible versions:
1708 # SysV /etc/install, /usr/sbin/install
1709 # SunOS /usr/etc/install
1710 # IRIX /sbin/install
1712 # AmigaOS /C/install, which installs bootblocks on floppy discs
1713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1716 # OS/2's system install, which has a completely different semantic
1717 # ./install, which can be erroneously created by make from ./install.sh.
1718 # Reject install programs that cannot install multiple files.
1719 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1720 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1721 if test -z "$INSTALL"; then
1722 if test "${ac_cv_path_install+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 # Account for people who put trailing slashes in PATH elements.
1732 ./ | .// | /cC/* | \
1733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1734 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1737 # OSF1 and SCO ODT 3.0 have their own names for install.
1738 # Don't use installbsd from OSF since it installs stuff as root
1740 for ac_prog in ginstall scoinst install; do
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1743 if test $ac_prog = install &&
1744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1745 # AIX install. It has an incompatible calling convention.
1747 elif test $ac_prog = install &&
1748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1749 # program-specific install script used by HP pwplus--don't use.
1752 rm -rf conftest.one conftest.two conftest.dir
1753 echo one > conftest.one
1754 echo two > conftest.two
1756 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1757 test -s conftest.one && test -s conftest.two &&
1758 test -s conftest.dir/conftest.one &&
1759 test -s conftest.dir/conftest.two
1761 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1772 rm -rf conftest.one conftest.two conftest.dir
1775 if test "${ac_cv_path_install+set}" = set; then
1776 INSTALL=$ac_cv_path_install
1778 # As a last resort, use the slow shell script. Don't cache a
1779 # value for INSTALL within a source directory, because that will
1780 # break other packages using the cache if that directory is
1781 # removed, or if the value is a relative name.
1782 INSTALL=$ac_install_sh
1785 echo "$as_me:$LINENO: result: $INSTALL" >&5
1786 echo "${ECHO_T}$INSTALL" >&6
1788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1789 # It thinks the first close brace ends the variable substitution.
1790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1796 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1797 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1800 echo timestamp > conftest.file
1801 # Do `set' in a subshell so we don't clobber the current shell's
1802 # arguments. Must try -L first in case configure is actually a
1803 # symlink; some systems play weird games with the mod time of symlinks
1804 # (eg FreeBSD returns the mod time of the symlink's containing
1807 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1808 if test "$*" = "X"; then
1810 set X `ls -t $srcdir/configure conftest.file`
1813 if test "$*" != "X $srcdir/configure conftest.file" \
1814 && test "$*" != "X conftest.file $srcdir/configure"; then
1816 # If neither matched, then we have a broken ls. This can happen
1817 # if, for instance, CONFIG_SHELL is bash and it inherits a
1818 # broken ls alias from the environment. This has actually
1819 # happened. Such a system could not be considered "sane".
1820 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1821 alias in your environment" >&5
1822 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1823 alias in your environment" >&2;}
1824 { (exit 1); exit 1; }; }
1827 test "$2" = conftest.file
1833 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1834 Check your system clock" >&5
1835 echo "$as_me: error: newly created file is older than distributed files!
1836 Check your system clock" >&2;}
1837 { (exit 1); exit 1; }; }
1839 echo "$as_me:$LINENO: result: yes" >&5
1840 echo "${ECHO_T}yes" >&6
1841 test "$program_prefix" != NONE &&
1842 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1843 # Use a double $ so make ignores it.
1844 test "$program_suffix" != NONE &&
1845 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1846 # Double any \ or $. echo might interpret backslashes.
1847 # By default was `s,x,x', remove it if useless.
1848 cat <<\_ACEOF >conftest.sed
1849 s/[\\$]/&&/g;s/;s,x,x,$//
1851 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1854 # expand $ac_aux_dir to an absolute path
1855 am_aux_dir=`cd $ac_aux_dir && pwd`
1857 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1858 # Use eval to expand $SHELL
1859 if eval "$MISSING --run true"; then
1860 am_missing_run="$MISSING --run "
1863 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1864 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1867 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1868 # We used to keeping the `.' as first argument, in order to
1869 # allow $(mkdir_p) to be used without argument. As in
1870 # $(mkdir_p) $(somedir)
1871 # where $(somedir) is conditionally defined. However this is wrong
1873 # 1. if the package is installed by a user who cannot write `.'
1874 # make install will fail,
1875 # 2. the above comment should most certainly read
1876 # $(mkdir_p) $(DESTDIR)$(somedir)
1877 # so it does not work when $(somedir) is undefined and
1878 # $(DESTDIR) is not.
1879 # To support the latter case, we have to write
1880 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1881 # so the `.' trick is pointless.
1882 mkdir_p='mkdir -p --'
1884 # On NextStep and OpenStep, the `mkdir' command does not
1885 # recognize any option. It will interpret all options as
1886 # directories to create, and then abort because `.' already
1888 for d in ./-p ./--version;
1890 test -d $d && rmdir $d
1892 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1893 if test -f "$ac_aux_dir/mkinstalldirs"; then
1894 mkdir_p='$(mkinstalldirs)'
1896 mkdir_p='$(install_sh) -d'
1900 for ac_prog in gawk mawk nawk awk
1902 # Extract the first word of "$ac_prog", so it can be a program name with args.
1903 set dummy $ac_prog; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_AWK+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$AWK"; then
1910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_AWK="$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 if test -n "$AWK"; then
1930 echo "$as_me:$LINENO: result: $AWK" >&5
1931 echo "${ECHO_T}$AWK" >&6
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1937 test -n "$AWK" && break
1940 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1941 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1942 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1943 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 cat >conftest.make <<\_ACEOF
1948 @echo 'ac_maketemp="$(MAKE)"'
1950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1951 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1952 if test -n "$ac_maketemp"; then
1953 eval ac_cv_prog_make_${ac_make}_set=yes
1955 eval ac_cv_prog_make_${ac_make}_set=no
1959 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1960 echo "$as_me:$LINENO: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 SET_MAKE="MAKE=${MAKE-make}"
1969 rm -rf .tst 2>/dev/null
1970 mkdir .tst 2>/dev/null
1971 if test -d .tst; then
1976 rmdir .tst 2>/dev/null
1978 # test to see if srcdir already configured
1979 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1980 test -f $srcdir/config.status; then
1981 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1982 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1983 { (exit 1); exit 1; }; }
1986 # test whether we have cygpath
1987 if test -z "$CYGPATH_W"; then
1988 if (cygpath --version) >/dev/null 2>/dev/null; then
1989 CYGPATH_W='cygpath -w'
1996 # Define the identity of the package.
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE "$PACKAGE"
2006 cat >>confdefs.h <<_ACEOF
2007 #define VERSION "$VERSION"
2010 # Some tools Automake needs.
2012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2026 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2028 # Installed binaries are usually stripped using `strip' when the user
2029 # run `make install-strip'. However `strip' might not be the right
2030 # tool to use in cross-compilation environments, therefore Automake
2031 # will honor the `STRIP' environment variable to overrule this program.
2032 if test "$cross_compiling" != no; then
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$STRIP"; then
2042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 STRIP=$ac_cv_prog_STRIP
2061 if test -n "$STRIP"; then
2062 echo "$as_me:$LINENO: result: $STRIP" >&5
2063 echo "${ECHO_T}$STRIP" >&6
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2070 if test -z "$ac_cv_prog_STRIP"; then
2072 # Extract the first word of "strip", so it can be a program name with args.
2073 set dummy strip; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_STRIP"; then
2080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_STRIP="strip"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2100 if test -n "$ac_ct_STRIP"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2102 echo "${ECHO_T}$ac_ct_STRIP" >&6
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2110 STRIP="$ac_cv_prog_STRIP"
2114 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2116 # We need awk for the "check" target. The system "awk" is bad on
2118 # Always define AMTAR for backward compatibility.
2120 AMTAR=${AMTAR-"${am_missing_run}tar"}
2122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2128 # Default to --enable-multilib
2129 # Check whether --enable-multilib or --disable-multilib was given.
2130 if test "${enable_multilib+set}" = set; then
2131 enableval="$enable_multilib"
2132 case "$enableval" in
2133 yes) multilib=yes ;;
2135 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2136 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2137 { (exit 1); exit 1; }; } ;;
2143 # We may get other options which we leave undocumented:
2144 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2145 # See config-ml.in if you want the gory details.
2147 if test "$srcdir" = "."; then
2148 if test "$with_target_subdir" != "."; then
2149 multi_basedir="$srcdir/$with_multisrctop../.."
2151 multi_basedir="$srcdir/$with_multisrctop.."
2154 multi_basedir="$srcdir/.."
2158 # Even if the default multilib is not a cross compilation,
2159 # it may be that some of the other multilibs are.
2160 if test $cross_compiling = no && test $multilib = yes \
2161 && test "x${with_multisubdir}" != x ; then
2162 cross_compiling=maybe
2165 ac_config_commands="$ac_config_commands default-1"
2168 # Calculate toolexeclibdir
2169 # Also toolexecdir, though it's only used in toolexeclibdir
2170 case ${enable_version_specific_runtime_libs} in
2172 # Need the gcc compiler version to know where to install libraries
2173 # and header files if --enable-version-specific-runtime-libs option
2175 toolexecdir='$(libdir)/gcc/$(target_alias)'
2176 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2179 if test -n "$with_cross_host" &&
2180 test x"$with_cross_host" != x"no"; then
2181 # Install a library built with a cross compiler in tooldir, not libdir.
2182 toolexecdir='$(exec_prefix)/$(target_alias)'
2183 toolexeclibdir='$(toolexecdir)/lib'
2185 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2186 toolexeclibdir='$(libdir)'
2188 multi_os_directory=`$CC -print-multi-os-directory`
2189 case $multi_os_directory in
2190 .) ;; # Avoid trailing /.
2191 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2198 # Check the compiler.
2199 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2200 # We must force CC to /not/ be precious variables; otherwise
2201 # the wrong, non-multilib-adjusted value will be used in multilibs.
2202 # As a side effect, we have to subst CFLAGS ourselves.
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2248 if test -z "$ac_cv_prog_CC"; then
2250 # Extract the first word of "gcc", so it can be a program name with args.
2251 set dummy gcc; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_ac_ct_CC="gcc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}cc; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_CC="${ac_tool_prefix}cc"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 if test -n "$CC"; then
2320 echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2328 if test -z "$ac_cv_prog_CC"; then
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_CC="cc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy $ac_cv_prog_CC
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2416 if test -n "$CC"; then
2417 echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 if test -n "$CC"; then
2457 echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2464 test -n "$CC" && break
2467 if test -z "$CC"; then
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_ac_ct_CC="$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 test -n "$ac_ct_CC" && break
2515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2521 # Provide some information about the compiler.
2522 echo "$as_me:$LINENO:" \
2523 "checking for C compiler version" >&5
2524 ac_compiler=`set X $ac_compile; echo $2`
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2526 (eval $ac_compiler --version </dev/null >&5) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2531 (eval $ac_compiler -v </dev/null >&5) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2536 (eval $ac_compiler -V </dev/null >&5) 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2541 cat >conftest.$ac_ext <<_ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2565 (eval $ac_link_default) 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; then
2569 # Find the output, starting from the most likely. This scheme is
2570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2573 # Be careful to initialize this variable, since it used to be cached.
2574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2576 # b.out is created by i960 compilers.
2577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2579 test -f "$ac_file" || continue
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2584 # This is the source file.
2587 # We found the default executable, but exeext='' is most
2591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 # FIXME: I believe we export ac_cv_exeext for Libtool,
2593 # but it would be cool to find out if it's true. Does anybody
2594 # maintain Libtool? --akim.
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609 { (exit 77); exit 77; }; }
2612 ac_exeext=$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2621 # If not cross compiling, check that we can run a simple program.
2622 if test "$cross_compiling" != yes; then
2623 if { ac_try='./$ac_file'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 if test "$cross_compiling" = maybe; then
2634 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'.
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2644 echo "$as_me:$LINENO: result: yes" >&5
2645 echo "${ECHO_T}yes" >&6
2647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2648 ac_clean_files=$ac_clean_files_save
2649 # Check the compiler produces executables we can run. If not, either
2650 # the compiler is broken, or we cross compile.
2651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2654 echo "${ECHO_T}$cross_compiling" >&6
2656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2667 for ac_file in conftest.exe conftest conftest.*; do
2668 test -f "$ac_file" || continue
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2685 rm -f conftest$ac_cv_exeext
2686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2687 echo "${ECHO_T}$ac_cv_exeext" >&6
2689 rm -f conftest.$ac_ext
2690 EXEEXT=$ac_cv_exeext
2692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2694 if test "${ac_cv_objext+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2712 rm -f conftest.o conftest.obj
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2739 echo "${ECHO_T}$ac_cv_objext" >&6
2740 OBJEXT=$ac_cv_objext
2742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2800 GCC=`test $ac_compiler_gnu = yes && echo yes`
2801 ac_test_CFLAGS=${CFLAGS+set}
2802 ac_save_CFLAGS=$CFLAGS
2804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_g+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2828 grep -v '^ *+' conftest.er1 >conftest.err
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2857 if test "$ac_test_CFLAGS" = set; then
2858 CFLAGS=$ac_save_CFLAGS
2859 elif test $ac_cv_prog_cc_g = yes; then
2860 if test "$GCC" = yes; then
2866 if test "$GCC" = yes; then
2872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 ac_cv_prog_cc_stdc=no
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2887 #include <sys/types.h>
2888 #include <sys/stat.h>
2889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2890 struct buf { int x; };
2891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2892 static char *e (p, i)
2898 static char *f (char * (*g) (char **, int), char **p, ...)
2903 s = g (p, va_arg (v,int));
2908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2909 function prototypes and stuff, but not '\xHH' hex character constants.
2910 These don't provoke an error unfortunately, instead are silently treated
2911 as 'x'. The following induces an error, until -std1 is added to get
2912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2913 array size at least. It's necessary to write '\x00'==0 to get something
2914 that's true only with -std1. */
2915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2931 # Don't try gcc -ansi; that turns off useful extensions and
2932 # breaks some systems' header files.
2933 # AIX -qlanglvl=ansi
2934 # Ultrix and OSF/1 -std1
2935 # HP-UX 10.20 and later -Ae
2936 # HP-UX older versions -Aa -D_HPUX_SOURCE
2937 # SVR4 -Xc -D__EXTENSIONS__
2938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2940 CC="$ac_save_CC $ac_arg"
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_prog_cc_stdc=$ac_arg
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f conftest.err conftest.$ac_objext
2972 rm -f conftest.$ac_ext conftest.$ac_objext
2977 case "x$ac_cv_prog_cc_stdc" in
2979 echo "$as_me:$LINENO: result: none needed" >&5
2980 echo "${ECHO_T}none needed" >&6 ;;
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2984 CC="$CC $ac_cv_prog_cc_stdc" ;;
2987 # Some people use a C++ compiler to compile C. Since we use `exit',
2988 # in C++ we need to declare it. In case someone uses the same compiler
2989 # for both compiling C and C++ we need to have the C++ compiler decide
2990 # the declaration of exit, since it's the most demanding environment.
2991 cat >conftest.$ac_ext <<_ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 for ac_declaration in \
3020 'extern "C" void std::exit (int) throw (); using std::exit;' \
3021 'extern "C" void std::exit (int); using std::exit;' \
3022 'extern "C" void exit (int) throw ();' \
3023 'extern "C" void exit (int);' \
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag"
3097 || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 if test -n "$ac_declaration"; then
3119 echo '#ifdef __cplusplus' >>confdefs.h
3120 echo $ac_declaration >>confdefs.h
3121 echo '#endif' >>confdefs.h
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 DEPDIR="${am__leading_dot}deps"
3137 ac_config_commands="$ac_config_commands depfiles"
3140 am_make=${MAKE-make}
3141 cat > confinc << 'END'
3146 # If we don't find an include directive, just comment out the code.
3147 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3148 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3152 # First try GNU make style include.
3153 echo "include confinc" > confmf
3154 # We grep out `Entering directory' and `Leaving directory'
3155 # messages which can occur if `w' ends up in MAKEFLAGS.
3156 # In particular we don't look at `^make:' because GNU make might
3157 # be invoked under some other name (usually "gmake"), in which
3158 # case it prints its new name instead of `make'.
3159 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3164 # Now try BSD make style include.
3165 if test "$am__include" = "#"; then
3166 echo '.include "confinc"' > confmf
3167 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3168 am__include=.include
3175 echo "$as_me:$LINENO: result: $_am_result" >&5
3176 echo "${ECHO_T}$_am_result" >&6
3177 rm -f confinc confmf
3179 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3180 if test "${enable_dependency_tracking+set}" = set; then
3181 enableval="$enable_dependency_tracking"
3184 if test "x$enable_dependency_tracking" != xno; then
3185 am_depcomp="$ac_aux_dir/depcomp"
3190 if test "x$enable_dependency_tracking" != xno; then
3201 depcc="$CC" am_compiler_list=
3203 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209 # We make a subdir and do the tests there. Otherwise we can end up
3210 # making bogus files that we don't know about and never remove. For
3211 # instance it was reported that on HP-UX the gcc test will end up
3212 # making a dummy file named `D' -- because `-MD' means `put the output
3215 # Copy depcomp to subdir because otherwise we won't find it if we're
3216 # using a relative directory.
3217 cp "$am_depcomp" conftest.dir
3219 # We will build objects and dependencies in a subdirectory because
3220 # it helps to detect inapplicable dependency modes. For instance
3221 # both Tru64's cc and ICC support -MD to output dependencies as a
3222 # side effect of compilation, but ICC will put the dependencies in
3223 # the current directory while Tru64 will put them in the object
3227 am_cv_CC_dependencies_compiler_type=none
3228 if test "$am_compiler_list" = ""; then
3229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3231 for depmode in $am_compiler_list; do
3232 # Setup a source with many dependencies, because some compilers
3233 # like to wrap large dependency lists on column 80 (with \), and
3234 # we should not choose a depcomp mode which is confused by this.
3236 # We need to recreate these files for each test, as the compiler may
3237 # overwrite some of them when testing with obscure command lines.
3238 # This happens at least with the AIX C compiler.
3240 for i in 1 2 3 4 5 6; do
3241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243 # Solaris 8's {/usr,}/bin/sh.
3244 touch sub/conftst$i.h
3246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3250 # after this tag, mechanisms are not by side-effect, so they'll
3251 # only be used when explicitly requested
3252 if test "x$enable_dependency_tracking" = xyes; then
3260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261 # mode. It turns out that the SunPro C++ compiler does not properly
3262 # handle `-M -o', and we need to detect this.
3263 if depmode=$depmode \
3264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267 >/dev/null 2>conftest.err &&
3268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271 # icc doesn't choke on unknown options, it will just issue warnings
3272 # or remarks (even with -Werror). So we grep stderr for any message
3273 # that says an option was ignored or not supported.
3274 # When given -MP, icc 7.0 and 7.1 complain thusly:
3275 # icc: Command line warning: ignoring option '-M'; no argument required
3276 # The diagnosis changed in icc 8.0:
3277 # icc: Command line remark: option '-MP' not supported
3278 if (grep 'ignoring option' conftest.err ||
3279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280 am_cv_CC_dependencies_compiler_type=$depmode
3289 am_cv_CC_dependencies_compiler_type=none
3293 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3294 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3300 test "x$enable_dependency_tracking" != xno \
3301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3303 am__fastdepCC_FALSE='#'
3305 am__fastdepCC_TRUE='#'
3306 am__fastdepCC_FALSE=
3314 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3315 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3316 # in both places for now and restore CFLAGS at the end of config.
3317 save_CFLAGS="$CFLAGS"
3319 # Add -Wall -Werror if we are using GCC.
3320 if test "x$GCC" = "xyes"; then
3321 XCFLAGS="$XCFLAGS -Wall -Werror"
3324 # Find other programs we need.
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}ar; ac_word=$2
3328 echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_AR+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$AR"; then
3334 ac_cv_prog_AR="$AR" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_AR="${ac_tool_prefix}ar"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test -n "$AR"; then
3354 echo "$as_me:$LINENO: result: $AR" >&5
3355 echo "${ECHO_T}$AR" >&6
3357 echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6
3362 if test -z "$ac_cv_prog_AR"; then
3364 # Extract the first word of "ar", so it can be a program name with args.
3365 set dummy ar; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$ac_ct_AR"; then
3372 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_AR="ar"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3391 if test -n "$ac_ct_AR"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3393 echo "${ECHO_T}$ac_ct_AR" >&6
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3407 echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_prog_RANLIB+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 if test -n "$RANLIB"; then
3413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 RANLIB=$ac_cv_prog_RANLIB
3432 if test -n "$RANLIB"; then
3433 echo "$as_me:$LINENO: result: $RANLIB" >&5
3434 echo "${ECHO_T}$RANLIB" >&6
3436 echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3441 if test -z "$ac_cv_prog_RANLIB"; then
3442 ac_ct_RANLIB=$RANLIB
3443 # Extract the first word of "ranlib", so it can be a program name with args.
3444 set dummy ranlib; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 if test -n "$ac_ct_RANLIB"; then
3451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_ac_ct_RANLIB="ranlib"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3471 if test -n "$ac_ct_RANLIB"; then
3472 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3473 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3475 echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3479 RANLIB=$ac_ct_RANLIB
3481 RANLIB="$ac_cv_prog_RANLIB"
3484 # Extract the first word of "perl", so it can be a program name with args.
3485 set dummy perl; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_path_PERL+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3514 PERL=$ac_cv_path_PERL
3516 if test -n "$PERL"; then
3517 echo "$as_me:$LINENO: result: $PERL" >&5
3518 echo "${ECHO_T}$PERL" >&6
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3525 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3526 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3527 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 cat >conftest.make <<\_ACEOF
3532 @echo 'ac_maketemp="$(MAKE)"'
3534 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3535 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3536 if test -n "$ac_maketemp"; then
3537 eval ac_cv_prog_make_${ac_make}_set=yes
3539 eval ac_cv_prog_make_${ac_make}_set=no
3543 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3544 echo "$as_me:$LINENO: result: yes" >&5
3545 echo "${ECHO_T}yes" >&6
3548 echo "$as_me:$LINENO: result: no" >&5
3549 echo "${ECHO_T}no" >&6
3550 SET_MAKE="MAKE=${MAKE-make}"
3553 # Find a good install program. We prefer a C program (faster),
3554 # so one script is as good as another. But avoid the broken or
3555 # incompatible versions:
3556 # SysV /etc/install, /usr/sbin/install
3557 # SunOS /usr/etc/install
3558 # IRIX /sbin/install
3560 # AmigaOS /C/install, which installs bootblocks on floppy discs
3561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3564 # OS/2's system install, which has a completely different semantic
3565 # ./install, which can be erroneously created by make from ./install.sh.
3566 # Reject install programs that cannot install multiple files.
3567 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3568 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3569 if test -z "$INSTALL"; then
3570 if test "${ac_cv_path_install+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 # Account for people who put trailing slashes in PATH elements.
3580 ./ | .// | /cC/* | \
3581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3582 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3585 # OSF1 and SCO ODT 3.0 have their own names for install.
3586 # Don't use installbsd from OSF since it installs stuff as root
3588 for ac_prog in ginstall scoinst install; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3591 if test $ac_prog = install &&
3592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3595 elif test $ac_prog = install &&
3596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3600 rm -rf conftest.one conftest.two conftest.dir
3601 echo one > conftest.one
3602 echo two > conftest.two
3604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3605 test -s conftest.one && test -s conftest.two &&
3606 test -s conftest.dir/conftest.one &&
3607 test -s conftest.dir/conftest.two
3609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3620 rm -rf conftest.one conftest.two conftest.dir
3623 if test "${ac_cv_path_install+set}" = set; then
3624 INSTALL=$ac_cv_path_install
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for INSTALL within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 INSTALL=$ac_install_sh
3633 echo "$as_me:$LINENO: result: $INSTALL" >&5
3634 echo "${ECHO_T}$INSTALL" >&6
3636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3637 # It thinks the first close brace ends the variable substitution.
3638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3645 # See if makeinfo has been installed and is modern enough
3646 # that we can use it.
3648 # Extract the first word of "makeinfo", so it can be a program name with args.
3649 set dummy makeinfo; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if test -n "$MAKEINFO"; then
3656 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_MAKEINFO="makeinfo"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 MAKEINFO=$ac_cv_prog_MAKEINFO
3675 if test -n "$MAKEINFO"; then
3676 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3677 echo "${ECHO_T}$MAKEINFO" >&6
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3683 if test -n "$MAKEINFO"; then
3684 # Found it, now check the version.
3685 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3686 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3687 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3691 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3693 case $ac_prog_version in
3694 '') gcc_cv_prog_makeinfo_modern=no;;
3695 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3696 *) gcc_cv_prog_makeinfo_modern=no;;
3700 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3701 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3703 gcc_cv_prog_makeinfo_modern=no
3705 if test $gcc_cv_prog_makeinfo_modern = no; then
3706 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3711 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3713 BUILD_INFO_FALSE='#'
3724 macro_version='2.1a'
3725 macro_revision='1.2435'
3738 ltmain="$ac_aux_dir/ltmain.sh"
3748 # Check whether --enable-shared or --disable-shared was given.
3749 if test "${enable_shared+set}" = set; then
3750 enableval="$enable_shared"
3751 p=${PACKAGE-default}
3753 yes) enable_shared=yes ;;
3754 no) enable_shared=no ;;
3757 # Look at the argument we got. We use all the common list separators.
3758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3759 for pkg in $enableval; do
3761 if test "X$pkg" = "X$p"; then
3779 # Check whether --enable-static or --disable-static was given.
3780 if test "${enable_static+set}" = set; then
3781 enableval="$enable_static"
3782 p=${PACKAGE-default}
3784 yes) enable_static=yes ;;
3785 no) enable_static=no ;;
3788 # Look at the argument we got. We use all the common list separators.
3789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3790 for pkg in $enableval; do
3792 if test "X$pkg" = "X$p"; then
3811 # Check whether --with-pic or --without-pic was given.
3812 if test "${with_pic+set}" = set; then
3819 test -z "$pic_mode" && pic_mode=default
3827 # Check whether --enable-fast-install or --disable-fast-install was given.
3828 if test "${enable_fast_install+set}" = set; then
3829 enableval="$enable_fast_install"
3830 p=${PACKAGE-default}
3832 yes) enable_fast_install=yes ;;
3833 no) enable_fast_install=no ;;
3835 enable_fast_install=no
3836 # Look at the argument we got. We use all the common list separators.
3837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3838 for pkg in $enableval; do
3840 if test "X$pkg" = "X$p"; then
3841 enable_fast_install=yes
3848 enable_fast_install=yes
3858 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3859 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3860 if test "${lt_cv_path_SED+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 # Loop through the user's path and test for sed and gsed.
3864 # Then use that list of sed's as ones to test for truncation.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir=.
3870 for lt_ac_prog in sed gsed; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3873 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3881 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3882 # along with /bin/sed that truncates output.
3883 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3884 test ! -f $lt_ac_sed && continue
3885 cat /dev/null > conftest.in
3887 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3888 # Check for GNU sed and select it if it is found.
3889 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3890 lt_cv_path_SED=$lt_ac_sed
3894 cat conftest.in conftest.in >conftest.tmp
3895 mv conftest.tmp conftest.in
3896 cp conftest.in conftest.nl
3898 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3899 cmp -s conftest.out conftest.nl || break
3900 # 10000 chars as input seems more than enough
3901 test $lt_ac_count -gt 10 && break
3902 lt_ac_count=`expr $lt_ac_count + 1`
3903 if test $lt_ac_count -gt $lt_ac_max; then
3904 lt_ac_max=$lt_ac_count
3905 lt_cv_path_SED=$lt_ac_sed
3914 echo "$as_me:$LINENO: result: $SED" >&5
3915 echo "${ECHO_T}$SED" >&6
3917 test -z "$SED" && SED=sed
3918 Xsed="$SED -e 1s/^X//"
3930 echo "$as_me:$LINENO: checking for egrep" >&5
3931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3932 if test "${ac_cv_prog_egrep+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3936 then ac_cv_prog_egrep='grep -E'
3937 else ac_cv_prog_egrep='egrep'
3940 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3941 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3942 EGREP=$ac_cv_prog_egrep
3945 echo "$as_me:$LINENO: checking for fgrep" >&5
3946 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3947 if test "${ac_cv_prog_fgrep+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3951 then ac_cv_prog_fgrep='grep -F'
3952 else ac_cv_prog_fgrep='fgrep'
3955 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3956 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3957 FGREP=$ac_cv_prog_fgrep
3960 test -z "$GREP" && GREP=grep
3980 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3981 if test "${with_gnu_ld+set}" = set; then
3982 withval="$with_gnu_ld"
3983 test "$withval" = no || with_gnu_ld=yes
3988 if test "$GCC" = yes; then
3989 # Check if gcc -print-prog-name=ld gives a path.
3990 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3991 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3994 # gcc leaves a trailing carriage return which upsets mingw
3995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4000 # Accept absolute paths.
4002 re_direlt='/[^/][^/]*/\.\./'
4003 # Canonicalize the pathname of ld
4004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4008 test -z "$LD" && LD="$ac_prog"
4011 # If it fails, then pretend we aren't using GCC.
4015 # If it is relative, then search for the first ld in PATH.
4019 elif test "$with_gnu_ld" = yes; then
4020 echo "$as_me:$LINENO: checking for GNU ld" >&5
4021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4023 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4026 if test "${lt_cv_path_LD+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 if test -z "$LD"; then
4030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4031 for ac_dir in $PATH; do
4033 test -z "$ac_dir" && ac_dir=.
4034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4035 lt_cv_path_LD="$ac_dir/$ac_prog"
4036 # Check to see if the program is GNU ld. I'd rather use --version,
4037 # but apparently some variants of GNU ld only accept -v.
4038 # Break only if it was the GNU/non-GNU ld that we prefer.
4039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 test "$with_gnu_ld" != no && break
4044 test "$with_gnu_ld" != yes && break
4051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4056 if test -n "$LD"; then
4057 echo "$as_me:$LINENO: result: $LD" >&5
4058 echo "${ECHO_T}$LD" >&6
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4063 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4064 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4065 { (exit 1); exit 1; }; }
4066 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4067 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4068 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4072 case `$LD -v 2>&1 </dev/null` in
4073 *GNU* | *'with BFD'*)
4074 lt_cv_prog_gnu_ld=yes
4077 lt_cv_prog_gnu_ld=no
4081 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4082 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4083 with_gnu_ld=$lt_cv_prog_gnu_ld
4094 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4095 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4096 if test "${lt_cv_path_NM+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -n "$NM"; then
4100 # Let the user override the test.
4103 lt_nm_to_check="${ac_tool_prefix}nm"
4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4105 lt_nm_to_check="$lt_nm_to_check nm"
4107 for lt_tmp_nm in $lt_nm_to_check; do
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4111 test -z "$ac_dir" && ac_dir=.
4112 tmp_nm="$ac_dir/$lt_tmp_nm"
4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4114 # Check to see if the nm accepts a BSD-compat flag.
4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116 # nm: unknown option "B" ignored
4117 # Tru64's nm complains that /dev/null is an invalid object file
4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119 */dev/null* | *'Invalid file or object type'*)
4120 lt_cv_path_NM="$tmp_nm -B"
4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4126 lt_cv_path_NM="$tmp_nm -p"
4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131 continue # so that we can try to find one that supports BSD flags
4140 : ${lt_cv_path_NM=no}
4143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4144 echo "${ECHO_T}$lt_cv_path_NM" >&6
4145 if test "$lt_cv_path_NM" != "no"; then
4148 # Didn't find any BSD compatible name lister, look for dumpbin.
4149 if test -n "$ac_tool_prefix"; then
4150 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$DUMPBIN"; then
4160 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 DUMPBIN=$ac_cv_prog_DUMPBIN
4179 if test -n "$DUMPBIN"; then
4180 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4181 echo "${ECHO_T}$DUMPBIN" >&6
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4187 test -n "$DUMPBIN" && break
4190 if test -z "$DUMPBIN"; then
4191 ac_ct_DUMPBIN=$DUMPBIN
4192 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4194 # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test -n "$ac_ct_DUMPBIN"; then
4202 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4221 if test -n "$ac_ct_DUMPBIN"; then
4222 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4223 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4225 echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4229 test -n "$ac_ct_DUMPBIN" && break
4231 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4233 DUMPBIN=$ac_ct_DUMPBIN
4237 if test "$DUMPBIN" != ":"; then
4241 test -z "$NM" && NM=nm
4248 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4249 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4250 if test "${lt_cv_nm_interface+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 lt_cv_nm_interface="BSD nm"
4254 echo "int some_variable = 0;" > conftest.$ac_ext
4255 (eval echo "\"\$as_me:4255: $ac_compile\"" >&5)
4256 (eval "$ac_compile" 2>conftest.err)
4257 cat conftest.err >&5
4258 (eval echo "\"\$as_me:4258: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4260 cat conftest.err >&5
4261 (eval echo "\"\$as_me:4261: output\"" >&5)
4262 cat conftest.out >&5
4263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4264 lt_cv_nm_interface="MS dumpbin"
4268 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4269 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4271 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4272 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4274 if test "$LN_S" = "ln -s"; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276 echo "${ECHO_T}yes" >&6
4278 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4279 echo "${ECHO_T}no, using $LN_S" >&6
4282 # find the maximum length of command line arguments
4283 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4284 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 # On DJGPP, this test can blow up pretty badly due to problems in libc
4294 # (any single argument exceeding 2000 bytes causes a buffer overrun
4295 # during glob expansion). Even if it were fixed, the result of this
4296 # check would be larger than it should be.
4297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4301 # Under GNU Hurd, this test is not required because there is
4302 # no limit to the length of command line arguments.
4303 # Libtool will interpret -1 as no limit whatsoever
4304 lt_cv_sys_max_cmd_len=-1;
4308 # On Win9x/ME, this test blows up -- it succeeds, but takes
4309 # about 5 minutes as the teststring grows exponentially.
4310 # Worse, since 9x/ME are not pre-emptively multitasking,
4311 # you end up with a "frozen" computer, even though with patience
4312 # the test eventually succeeds (with a max line length of 256k).
4313 # Instead, let's just punt: use the minimum linelength reported by
4314 # all of the supported platforms: 8192 (on NT/2K/XP).
4315 lt_cv_sys_max_cmd_len=8192;
4319 # On AmigaOS with pdksh, this test takes hours, literally.
4320 # So we just punt and use a minimum line length of 8192.
4321 lt_cv_sys_max_cmd_len=8192;
4324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4325 # This has been around since 386BSD, at least. Likely further.
4326 if test -x /sbin/sysctl; then
4327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4328 elif test -x /usr/sbin/sysctl; then
4329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4333 # And add a safety zone
4334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4340 lt_cv_sys_max_cmd_len=196608
4344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4346 # nice to cause kernel panics so lets avoid the loop below.
4347 # First set a reasonable default.
4348 lt_cv_sys_max_cmd_len=16384
4350 if test -x /sbin/sysconfig; then
4351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4357 lt_cv_sys_max_cmd_len=102400
4359 sysv5* | sco5v6* | sysv4.2uw2*)
4360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4361 if test -n "$kargmax"; then
4362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4364 lt_cv_sys_max_cmd_len=32768
4368 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4369 if test -n $lt_cv_sys_max_cmd_len; then
4370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4373 # Make teststring a little bigger before we do anything with it.
4374 # a 1K string should be a reasonable start.
4375 for i in 1 2 3 4 5 6 7 8 ; do
4376 teststring=$teststring$teststring
4378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4379 # If test is not a shell built-in, we'll probably end up computing a
4380 # maximum length that is only half of the actual maximum length, but
4382 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4383 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4384 test $i != 17 # 1/2 MB should be enough
4387 teststring=$teststring$teststring
4389 # Only check the string length outside the loop.
4390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4392 # Add a significant safety factor because C++ compilers can tack on
4393 # massive amounts of additional arguments before passing them to the
4394 # linker. It appears as though 1/2 is a usable value.
4395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4402 if test -n $lt_cv_sys_max_cmd_len ; then
4403 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4404 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4406 echo "$as_me:$LINENO: result: none" >&5
4407 echo "${ECHO_T}none" >&6
4409 max_cmd_len=$lt_cv_sys_max_cmd_len
4421 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4422 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4423 # Try some XSI features
4426 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4427 = c,a/b,, ) >/dev/null 2>&1 \
4429 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4430 echo "${ECHO_T}$xsi_shell" >&6
4433 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4434 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4436 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4438 && lt_shell_append=yes
4439 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4440 echo "${ECHO_T}$lt_shell_append" >&6
4443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4453 # test EBCDIC or ASCII
4454 case `echo X|tr X '\101'` in
4455 A) # ASCII based system
4456 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4457 lt_SP2NL='tr \040 \012'
4458 lt_NL2SP='tr \015\012 \040\040'
4460 *) # EBCDIC based system
4461 lt_SP2NL='tr \100 \n'
4462 lt_NL2SP='tr \r\n \100\100'
4474 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4475 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4476 if test "${lt_cv_ld_reload_flag+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 lt_cv_ld_reload_flag='-r'
4481 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4482 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4483 reload_flag=$lt_cv_ld_reload_flag
4484 case $reload_flag in
4486 *) reload_flag=" $reload_flag" ;;
4488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4491 if test "$GCC" = yes; then
4492 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4508 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4509 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4510 if test "${lt_cv_deplibs_check_method+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 lt_cv_file_magic_cmd='$MAGIC_CMD'
4514 lt_cv_file_magic_test_file=
4515 lt_cv_deplibs_check_method='unknown'
4516 # Need to set the preceding variable on all platforms that support
4517 # interlibrary dependencies.
4518 # 'none' -- dependencies not supported.
4519 # `unknown' -- same as none, but documents that we really don't know.
4520 # 'pass_all' -- all dependencies passed with no checks.
4521 # 'test_compile' -- check by making test program.
4522 # 'file_magic [[regex]]' -- check by looking for files in library path
4523 # which responds to the $file_magic_cmd with a given extended regex.
4524 # If you have `file' or equivalent on your system and you're not sure
4525 # whether `pass_all' will *always* work, you probably want this one.
4529 lt_cv_deplibs_check_method=pass_all
4533 lt_cv_deplibs_check_method=pass_all
4537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4538 lt_cv_file_magic_cmd='/usr/bin/file -L'
4539 lt_cv_file_magic_test_file=/shlib/libc.so
4543 # func_win32_libid is a shell function defined in ltmain.sh
4544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4545 lt_cv_file_magic_cmd='func_win32_libid'
4549 # Base MSYS/MinGW do not provide the 'file' command needed by
4550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4551 # unless we find 'file', for example because we are cross-compiling.
4552 if ( file / ) >/dev/null 2>&1; then
4553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4554 lt_cv_file_magic_cmd='func_win32_libid'
4556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4557 lt_cv_file_magic_cmd='$OBJDUMP -f'
4561 darwin* | rhapsody*)
4562 lt_cv_deplibs_check_method=pass_all
4565 freebsd* | dragonfly*)
4566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4569 # Not sure whether the presence of OpenBSD here was a mistake.
4570 # Let's accept both of them until this is cleared up.
4571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4572 lt_cv_file_magic_cmd=/usr/bin/file
4573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4577 lt_cv_deplibs_check_method=pass_all
4582 lt_cv_deplibs_check_method=pass_all
4585 hpux10.20* | hpux11*)
4586 lt_cv_file_magic_cmd=/usr/bin/file
4589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4593 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]'
4594 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4598 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4604 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4608 irix5* | irix6* | nonstopux*)
4610 *-32|*"-32 ") libmagic=32-bit;;
4611 *-n32|*"-n32 ") libmagic=N32;;
4612 *-64|*"-64 ") libmagic=64-bit;;
4613 *) libmagic=never-match;;
4615 lt_cv_deplibs_check_method=pass_all
4618 # This must be Linux ELF.
4619 linux* | k*bsd*-gnu)
4620 lt_cv_deplibs_check_method=pass_all
4624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4633 lt_cv_file_magic_cmd=/usr/bin/file
4634 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4638 lt_cv_deplibs_check_method=pass_all
4642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4649 osf3* | osf4* | osf5*)
4650 lt_cv_deplibs_check_method=pass_all
4654 lt_cv_deplibs_check_method=pass_all
4658 lt_cv_deplibs_check_method=pass_all
4661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4662 lt_cv_deplibs_check_method=pass_all
4666 case $host_vendor in
4668 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]'
4669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4672 lt_cv_deplibs_check_method=pass_all
4675 lt_cv_file_magic_cmd='/bin/file'
4676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4679 lt_cv_file_magic_cmd='/bin/file'
4680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4681 lt_cv_file_magic_test_file=/lib/libc.so
4684 lt_cv_deplibs_check_method=pass_all
4687 lt_cv_deplibs_check_method=pass_all
4693 lt_cv_deplibs_check_method=pass_all
4698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4700 file_magic_cmd=$lt_cv_file_magic_cmd
4701 deplibs_check_method=$lt_cv_deplibs_check_method
4702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ar; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_AR+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 if test -n "$AR"; then
4724 ac_cv_prog_AR="$AR" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_AR="${ac_tool_prefix}ar"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 if test -n "$AR"; then
4744 echo "$as_me:$LINENO: result: $AR" >&5
4745 echo "${ECHO_T}$AR" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_AR"; then
4754 # Extract the first word of "ar", so it can be a program name with args.
4755 set dummy ar; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$ac_ct_AR"; then
4762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_AR="ar"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4782 if test -n "$ac_ct_AR"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4784 echo "${ECHO_T}$ac_ct_AR" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4795 test -z "$AR" && AR=ar
4796 test -z "$AR_FLAGS" && AR_FLAGS=cru
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}strip; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_STRIP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if test -n "$STRIP"; then
4817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 STRIP=$ac_cv_prog_STRIP
4836 if test -n "$STRIP"; then
4837 echo "$as_me:$LINENO: result: $STRIP" >&5
4838 echo "${ECHO_T}$STRIP" >&6
4840 echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4845 if test -z "$ac_cv_prog_STRIP"; then
4847 # Extract the first word of "strip", so it can be a program name with args.
4848 set dummy strip; ac_word=$2
4849 echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 if test -n "$ac_ct_STRIP"; then
4855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_ac_ct_STRIP="strip"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4875 if test -n "$ac_ct_STRIP"; then
4876 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4877 echo "${ECHO_T}$ac_ct_STRIP" >&6
4879 echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4885 STRIP="$ac_cv_prog_STRIP"
4888 test -z "$STRIP" && STRIP=:
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -n "$RANLIB"; then
4904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 RANLIB=$ac_cv_prog_RANLIB
4923 if test -n "$RANLIB"; then
4924 echo "$as_me:$LINENO: result: $RANLIB" >&5
4925 echo "${ECHO_T}$RANLIB" >&6
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4932 if test -z "$ac_cv_prog_RANLIB"; then
4933 ac_ct_RANLIB=$RANLIB
4934 # Extract the first word of "ranlib", so it can be a program name with args.
4935 set dummy ranlib; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 if test -n "$ac_ct_RANLIB"; then
4942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_RANLIB="ranlib"
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4962 if test -n "$ac_ct_RANLIB"; then
4963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4966 echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4970 RANLIB=$ac_ct_RANLIB
4972 RANLIB="$ac_cv_prog_RANLIB"
4975 test -z "$RANLIB" && RANLIB=:
4982 # Determine commands to create old-style static archives.
4983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4984 old_postinstall_cmds='chmod 644 $oldlib'
4985 old_postuninstall_cmds=
4987 if test -n "$RANLIB"; then
4990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5032 # If no C compiler was specified, use CC.
5035 # If no C compiler flags were specified, use CFLAGS.
5036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5038 # Allow CC to be a program name with arguments.
5042 # Check for command to grab the raw symbol name followed by C symbol from nm.
5043 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5044 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 # These are sane defaults that work on at least a few old systems.
5050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5052 # Character class describing NM global symbol codes.
5053 symcode='[BCDEGRST]'
5055 # Regexp to match symbols that can be accessed directly from C.
5056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5058 # Define system-specific variables.
5063 cygwin* | mingw* | pw32*)
5064 symcode='[ABCDGISTW]'
5067 if test "$host_cpu" = ia64; then
5068 symcode='[ABCDEGRST]'
5072 symcode='[BCDEGRST]'
5075 symcode='[BCDEGQRST]'
5086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5094 # If we're using GNU nm, then use its standard symbol codes.
5095 case `$NM -V 2>&1` in
5096 *GNU* | *'with BFD'*)
5097 symcode='[ABCDGIRSTW]' ;;
5100 # Transform an extracted symbol line into a proper C declaration.
5101 # Some systems (esp. on ia64) link data and code symbols differently,
5102 # so use this general approach.
5103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5105 # Transform an extracted symbol line into symbol name and symbol address
5106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5108 # Handle CRLF in mingw tool chain
5112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5116 # Try without a prefix underscore, then with it.
5117 for ac_symprfx in "" "_"; do
5119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5120 symxfrm="\\1 $ac_symprfx\\2 \\2"
5122 # Write the raw and C identifiers.
5123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5124 # Fake it for dumpbin and say T for any non-static function
5125 # and D for any global variable.
5126 # Also find C++ and __fastcall symbols from MSVC++,
5127 # which start with @ or ?.
5128 lt_cv_sys_global_symbol_pipe="$AWK '"\
5129 " {last_section=section; section=\$ 3};"\
5130 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5131 " \$ 0!~/External *\|/{next};"\
5132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5133 " {if(hide[section]) next};"\
5134 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5135 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5136 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5137 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5138 " ' prfx=^$ac_symprfx"
5140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5143 # Check to see that the pipe works correctly.
5147 cat > conftest.$ac_ext <<_LT_EOF
5152 void nm_test_func(void);
5153 void nm_test_func(void){}
5157 int main(){nm_test_var='a';nm_test_func();return(0);}
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; then
5165 # Now try to grab the symbols.
5167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && test -s "$nlist"; then
5172 # Try sorting and uniquifying the output.
5173 if sort "$nlist" | uniq > "$nlist"T; then
5174 mv -f "$nlist"T "$nlist"
5179 # Make sure that we snagged all the symbols we need.
5180 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5181 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5182 cat <<_LT_EOF > conftest.$ac_ext
5188 # Now generate the symbol file.
5189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5191 cat <<_LT_EOF >> conftest.$ac_ext
5193 /* The mapping between symbol names and symbols. */
5198 lt__PROGRAM__LTX_preloaded_symbols[] =
5200 { "@PROGRAM@", (void *) 0 },
5202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5203 cat <<\_LT_EOF >> conftest.$ac_ext
5207 /* This works around a problem in FreeBSD linker */
5208 #ifdef FREEBSD_WORKAROUND
5209 static const void *lt_preloaded_setup() {
5210 return lt__PROGRAM__LTX_preloaded_symbols;
5218 # Now try linking the two files.
5219 mv conftest.$ac_objext conftstm.$ac_objext
5220 lt_save_LIBS="$LIBS"
5221 lt_save_CFLAGS="$CFLAGS"
5222 LIBS="conftstm.$ac_objext"
5223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5231 LIBS="$lt_save_LIBS"
5232 CFLAGS="$lt_save_CFLAGS"
5234 echo "cannot find nm_test_func in $nlist" >&5
5237 echo "cannot find nm_test_var in $nlist" >&5
5240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5243 echo "$progname: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 rm -f conftest* conftst*
5248 # Do not use the global_symbol_pipe unless it works.
5249 if test "$pipe_works" = yes; then
5252 lt_cv_sys_global_symbol_pipe=
5258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5259 lt_cv_sys_global_symbol_to_cdecl=
5261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5262 echo "$as_me:$LINENO: result: failed" >&5
5263 echo "${ECHO_T}failed" >&6
5265 echo "$as_me:$LINENO: result: ok" >&5
5266 echo "${ECHO_T}ok" >&6
5286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5287 if test "${enable_libtool_lock+set}" = set; then
5288 enableval="$enable_libtool_lock"
5291 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5293 # Some flags need to be propagated to the compiler or linker for good
5297 # Find out which ABI we are using.
5298 echo 'int i;' > conftest.$ac_ext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; then
5304 case `/usr/bin/file conftest.$ac_objext` in
5316 # Find out which ABI we are using.
5317 echo '#line 5317 "configure"' > conftest.$ac_ext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; then
5323 if test "$lt_cv_prog_gnu_ld" = yes; then
5324 case `/usr/bin/file conftest.$ac_objext` in
5326 LD="${LD-ld} -melf32bsmip"
5329 LD="${LD-ld} -melf32bmipn32"
5332 LD="${LD-ld} -melf64bmip"
5336 case `/usr/bin/file conftest.$ac_objext` in
5352 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5353 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5354 # Find out which ABI we are using.
5355 echo 'int i;' > conftest.$ac_ext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; then
5361 case `/usr/bin/file conftest.o` in
5364 x86_64-*kfreebsd*-gnu)
5365 LD="${LD-ld} -m elf_i386_fbsd"
5368 LD="${LD-ld} -m elf_i386"
5370 ppc64-*linux*|powerpc64-*linux*)
5371 LD="${LD-ld} -m elf32ppclinux"
5374 LD="${LD-ld} -m elf_s390"
5377 LD="${LD-ld} -m elf32_sparc"
5383 x86_64-*kfreebsd*-gnu)
5384 LD="${LD-ld} -m elf_x86_64_fbsd"
5387 LD="${LD-ld} -m elf_x86_64"
5389 ppc*-*linux*|powerpc*-*linux*)
5390 LD="${LD-ld} -m elf64ppc"
5392 s390*-*linux*|s390*-*tpf*)
5393 LD="${LD-ld} -m elf64_s390"
5396 LD="${LD-ld} -m elf64_sparc"
5406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5407 SAVE_CFLAGS="$CFLAGS"
5408 CFLAGS="$CFLAGS -belf"
5409 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5410 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5411 if test "${lt_cv_cc_needs_belf+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5435 rm -f conftest.$ac_objext conftest$ac_exeext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5437 (eval $ac_link) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try='test -s conftest$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 lt_cv_cc_needs_belf=yes
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 lt_cv_cc_needs_belf=no
5464 rm -f conftest.err conftest.$ac_objext \
5465 conftest$ac_exeext conftest.$ac_ext
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5473 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5474 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5477 CFLAGS="$SAVE_CFLAGS"
5481 # Find out which ABI we are using.
5482 echo 'int i;' > conftest.$ac_ext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; then
5488 case `/usr/bin/file conftest.o` in
5490 case $lt_cv_prog_gnu_ld in
5491 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5492 *) LD="${LD-ld} -64" ;;
5501 need_locks="$enable_libtool_lock"
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5510 # On Suns, sometimes $CPP names a directory.
5511 if test -n "$CPP" && test -d "$CPP"; then
5514 if test -z "$CPP"; then
5515 if test "${ac_cv_prog_CPP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5522 for ac_c_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5537 # include <limits.h>
5539 # include <assert.h>
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5546 grep -v '^ *+' conftest.er1 >conftest.err
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev/null; then
5551 if test -s conftest.err; then
5552 ac_cpp_err=$ac_c_preproc_warn_flag
5553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560 if test -z "$ac_cpp_err"; then
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 # Broken: fails on valid input.
5569 rm -f conftest.err conftest.$ac_ext
5571 # OK, works on sane cases. Now check whether non-existent headers
5572 # can be detected and how.
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5584 grep -v '^ *+' conftest.er1 >conftest.err
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null; then
5589 if test -s conftest.err; then
5590 ac_cpp_err=$ac_c_preproc_warn_flag
5591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5598 if test -z "$ac_cpp_err"; then
5599 # Broken: success on invalid input.
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 # Passes both tests.
5609 rm -f conftest.err conftest.$ac_ext
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then
5626 echo "$as_me:$LINENO: result: $CPP" >&5
5627 echo "${ECHO_T}$CPP" >&6
5629 for ac_c_preproc_warn_flag in '' yes
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5644 # include <limits.h>
5646 # include <assert.h>
5650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } >/dev/null; then
5658 if test -s conftest.err; then
5659 ac_cpp_err=$ac_c_preproc_warn_flag
5660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5667 if test -z "$ac_cpp_err"; then
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Broken: fails on valid input.
5676 rm -f conftest.err conftest.$ac_ext
5678 # OK, works on sane cases. Now check whether non-existent headers
5679 # can be detected and how.
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #include <ac_nonexistent.h>
5688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } >/dev/null; then
5696 if test -s conftest.err; then
5697 ac_cpp_err=$ac_c_preproc_warn_flag
5698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5705 if test -z "$ac_cpp_err"; then
5706 # Broken: success on invalid input.
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 # Passes both tests.
5716 rm -f conftest.err conftest.$ac_ext
5719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5720 rm -f conftest.err conftest.$ac_ext
5721 if $ac_preproc_ok; then
5724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5739 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5740 if test "${ac_cv_header_stdc+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_header_stdc=yes
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 ac_cv_header_stdc=no
5791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793 if test $ac_cv_header_stdc = yes; then
5794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5795 cat >conftest.$ac_ext <<_ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5805 $EGREP "memchr" >/dev/null 2>&1; then
5808 ac_cv_header_stdc=no
5814 if test $ac_cv_header_stdc = yes; then
5815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826 $EGREP "free" >/dev/null 2>&1; then
5829 ac_cv_header_stdc=no
5835 if test $ac_cv_header_stdc = yes; then
5836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5837 if test "$cross_compiling" = yes; then
5840 cat >conftest.$ac_ext <<_ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5847 #if ((' ' & 0x0FF) == 0x020)
5848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5851 # define ISLOWER(c) \
5852 (('a' <= (c) && (c) <= 'i') \
5853 || ('j' <= (c) && (c) <= 'r') \
5854 || ('s' <= (c) && (c) <= 'z'))
5855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5863 for (i = 0; i < 256; i++)
5864 if (XOR (islower (i), ISLOWER (i))
5865 || toupper (i) != TOUPPER (i))
5870 rm -f conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5883 echo "$as_me: program exited with status $ac_status" >&5
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_cv_header_stdc=no
5890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5895 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5896 if test $ac_cv_header_stdc = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define STDC_HEADERS 1
5904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5915 inttypes.h stdint.h unistd.h
5917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918 echo "$as_me:$LINENO: checking for $ac_header" >&5
5919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 cat >conftest.$ac_ext <<_ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5931 #include <$ac_header>
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 eval "$as_ac_Header=yes"
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 eval "$as_ac_Header=no"
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5977 for ac_header in dlfcn.h
5979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 $ac_includes_default
5993 #include <$ac_header>
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag"
6005 || test ! -s conftest.err'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 eval "$as_ac_Header=yes"
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 eval "$as_ac_Header=no"
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6029 cat >>confdefs.h <<_ACEOF
6030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6039 # This can be used to rebuild libtool when needed
6040 LIBTOOL_DEPS="$ltmain"
6042 # Always use our own libtool.
6043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6069 test -z "$LN_S" && LN_S="ln -s"
6084 if test -n "${ZSH_VERSION+set}" ; then
6085 setopt NO_GLOB_SUBST
6088 echo "$as_me:$LINENO: checking for objdir" >&5
6089 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6090 if test "${lt_cv_objdir+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 rm -f .libs 2>/dev/null
6094 mkdir .libs 2>/dev/null
6095 if test -d .libs; then
6098 # MS-DOS does not allow filenames that begin with a dot.
6101 rmdir .libs 2>/dev/null
6103 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6104 echo "${ECHO_T}$lt_cv_objdir" >&6
6105 objdir=$lt_cv_objdir
6111 cat >>confdefs.h <<_ACEOF
6112 #define LT_OBJDIR "$lt_cv_objdir/"
6133 # AIX sometimes has problems with the GCC collect2 program. For some
6134 # reason, if we set the COLLECT_NAMES environment variable, the problems
6135 # vanish in a puff of smoke.
6136 if test "X${COLLECT_NAMES+set}" != Xset; then
6138 export COLLECT_NAMES
6143 # Sed substitution that helps us do robust quoting. It backslashifies
6144 # metacharacters that are still active within double-quoted strings.
6145 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6147 # Same as above, but do not quote variable references.
6148 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6150 # Sed substitution to delay expansion of an escaped shell variable in a
6151 # double_quote_subst'ed string.
6152 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6154 # Sed substitution to delay expansion of an escaped single quote.
6155 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6157 # Sed substitution to avoid accidental globbing in evaled expressions
6158 no_glob_subst='s/\*/\\\*/g'
6162 can_build_shared=yes
6164 # All known linkers require a `.a' archive for static linking (except MSVC,
6165 # which needs '.lib').
6168 with_gnu_ld="$lt_cv_prog_gnu_ld"
6171 old_CFLAGS="$CFLAGS"
6173 # Set sane defaults for various variables
6174 test -z "$CC" && CC=cc
6175 test -z "$LTCC" && LTCC=$CC
6176 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6177 test -z "$LD" && LD=ld
6178 test -z "$ac_objext" && ac_objext=o
6180 for cc_temp in $compiler""; do
6182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6188 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6191 # Only perform the check for file, if the check method requires it
6192 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6193 case $deplibs_check_method in
6195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6196 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6197 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6206 lt_save_MAGIC_CMD="$MAGIC_CMD"
6207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6209 for ac_dir in $ac_dummy; do
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f $ac_dir/${ac_tool_prefix}file; then
6213 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6214 if test -n "$file_magic_test_file"; then
6215 case $deplibs_check_method in
6217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6220 $EGREP "$file_magic_regex" > /dev/null; then
6225 *** Warning: the command libtool uses to detect shared libraries,
6226 *** $file_magic_cmd, produces output that libtool cannot recognize.
6227 *** The result is that libtool may fail to recognize shared libraries
6228 *** as such. This will affect the creation of libtool libraries that
6229 *** depend on shared libraries, but programs linked with such libtool
6230 *** libraries will work regardless of this problem. Nevertheless, you
6231 *** may want to report the problem to your system manager and/or to
6232 *** bug-libtool@gnu.org
6242 MAGIC_CMD="$lt_save_MAGIC_CMD"
6247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248 if test -n "$MAGIC_CMD"; then
6249 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6250 echo "${ECHO_T}$MAGIC_CMD" >&6
6252 echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6
6260 if test -z "$lt_cv_path_MAGIC_CMD"; then
6261 if test -n "$ac_tool_prefix"; then
6262 echo "$as_me:$LINENO: checking for file" >&5
6263 echo $ECHO_N "checking for file... $ECHO_C" >&6
6264 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6272 lt_save_MAGIC_CMD="$MAGIC_CMD"
6273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6275 for ac_dir in $ac_dummy; do
6277 test -z "$ac_dir" && ac_dir=.
6278 if test -f $ac_dir/file; then
6279 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6280 if test -n "$file_magic_test_file"; then
6281 case $deplibs_check_method in
6283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6286 $EGREP "$file_magic_regex" > /dev/null; then
6291 *** Warning: the command libtool uses to detect shared libraries,
6292 *** $file_magic_cmd, produces output that libtool cannot recognize.
6293 *** The result is that libtool may fail to recognize shared libraries
6294 *** as such. This will affect the creation of libtool libraries that
6295 *** depend on shared libraries, but programs linked with such libtool
6296 *** libraries will work regardless of this problem. Nevertheless, you
6297 *** may want to report the problem to your system manager and/or to
6298 *** bug-libtool@gnu.org
6308 MAGIC_CMD="$lt_save_MAGIC_CMD"
6313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314 if test -n "$MAGIC_CMD"; then
6315 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6316 echo "${ECHO_T}$MAGIC_CMD" >&6
6318 echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6
6332 # Use C for the default configuration in the libtool script
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6342 # Source file extension for C test sources.
6345 # Object file extension for compiled C test sources.
6349 # Code to be used in simple compile tests
6350 lt_simple_compile_test_code="int some_variable = 0;"
6352 # Code to be used in simple link tests
6353 lt_simple_link_test_code='int main(){return(0);}'
6361 # If no C compiler was specified, use CC.
6364 # If no C compiler flags were specified, use CFLAGS.
6365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6367 # Allow CC to be a program name with arguments.
6370 # Save the default compiler, since it gets overwritten when the other
6371 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6372 compiler_DEFAULT=$CC
6374 # save warnings/boilerplate of simple test code
6375 ac_outfile=conftest.$ac_objext
6376 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6378 _lt_compiler_boilerplate=`cat conftest.err`
6381 ac_outfile=conftest.$ac_objext
6382 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6384 _lt_linker_boilerplate=`cat conftest.err`
6389 ## There is no encapsulation within the following macros, do not change
6390 ## the running order or otherwise move them around unless you know exactly
6391 ## what you are doing...
6392 if test -n "$compiler"; then
6394 lt_prog_compiler_no_builtin_flag=
6396 if test "$GCC" = yes; then
6397 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6399 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 lt_cv_prog_compiler_rtti_exceptions=no
6405 ac_outfile=conftest.$ac_objext
6406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6407 lt_compiler_flag="-fno-rtti -fno-exceptions"
6408 # Insert the option either (1) after the last *FLAGS variable, or
6409 # (2) before a word containing "conftest.", or (3) at the end.
6410 # Note that $ac_compile itself does not contain backslashes and begins
6411 # with a dollar sign (not a hyphen), so the echo should work correctly.
6412 # The option is referenced via a variable to avoid confusing sed.
6413 lt_compile=`echo "$ac_compile" | $SED \
6414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416 -e 's:$: $lt_compiler_flag:'`
6417 (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
6418 (eval "$lt_compile" 2>conftest.err)
6420 cat conftest.err >&5
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 if (exit $ac_status) && test -s "$ac_outfile"; then
6423 # The compiler can only warn and ignore the option if not recognized
6424 # So say no if there are warnings other than the usual output.
6425 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6428 lt_cv_prog_compiler_rtti_exceptions=yes
6434 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6450 lt_prog_compiler_wl=
6451 lt_prog_compiler_pic=
6452 lt_prog_compiler_static=
6454 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6457 if test "$GCC" = yes; then
6458 lt_prog_compiler_wl='-Wl,'
6459 lt_prog_compiler_static='-static'
6463 # All AIX code is PIC.
6464 if test "$host_cpu" = ia64; then
6465 # AIX 5 now supports IA64 processor
6466 lt_prog_compiler_static='-Bstatic'
6471 if test "$host_cpu" = m68k; then
6472 # FIXME: we need at least 68020 code to build shared libraries, but
6473 # adding the `-m68020' flag to GCC prevents building anything better,
6475 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6480 # PIC is the default for these OSes.
6483 mingw* | cygwin* | pw32* | os2*)
6484 # This hack is so that the source file can tell whether it is being
6485 # built for inclusion in a dll (and should export symbols for example).
6486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6487 # (--disable-auto-import) libraries
6488 lt_prog_compiler_pic='-DDLL_EXPORT'
6491 darwin* | rhapsody*)
6492 # PIC is the default on this platform
6493 # Common symbols not allowed in MH_DYLIB files
6494 lt_prog_compiler_pic='-fno-common'
6498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6505 lt_prog_compiler_pic='-fPIC'
6511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6512 # Instead, we relocate shared libraries at runtime.
6516 # Just because we use GCC doesn't mean we suddenly get shared libraries
6517 # on systems that don't support them.
6518 lt_prog_compiler_can_build_shared=no
6523 # QNX uses GNU C++, but need to define -shared option too, otherwise
6525 lt_prog_compiler_pic='-fPIC -shared'
6529 if test -d /usr/nec; then
6530 lt_prog_compiler_pic=-Kconform_pic
6535 lt_prog_compiler_pic='-fPIC'
6539 # PORTME Check for flag to pass linker flags through the system compiler.
6542 lt_prog_compiler_wl='-Wl,'
6543 if test "$host_cpu" = ia64; then
6544 # AIX 5 now supports IA64 processor
6545 lt_prog_compiler_static='-Bstatic'
6547 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6551 # PIC is the default on this platform
6552 # Common symbols not allowed in MH_DYLIB files
6553 case $cc_basename in
6555 lt_prog_compiler_pic='-qnocommon'
6556 lt_prog_compiler_wl='-Wl,'
6561 mingw* | cygwin* | pw32* | os2*)
6562 # This hack is so that the source file can tell whether it is being
6563 # built for inclusion in a dll (and should export symbols for example).
6564 lt_prog_compiler_pic='-DDLL_EXPORT'
6567 hpux9* | hpux10* | hpux11*)
6568 lt_prog_compiler_wl='-Wl,'
6569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6576 lt_prog_compiler_pic='+Z'
6579 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6580 lt_prog_compiler_static='${wl}-a ${wl}archive'
6583 irix5* | irix6* | nonstopux*)
6584 lt_prog_compiler_wl='-Wl,'
6585 # PIC (with -KPIC) is the default.
6586 lt_prog_compiler_static='-non_shared'
6589 linux* | k*bsd*-gnu)
6590 case $cc_basename in
6592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_pic='-KPIC'
6594 lt_prog_compiler_static='-static'
6596 pgcc* | pgf77* | pgf90* | pgf95*)
6597 # Portland Group compilers (*not* the Pentium gcc compiler,
6598 # which looks to be a dead project)
6599 lt_prog_compiler_wl='-Wl,'
6600 lt_prog_compiler_pic='-fpic'
6601 lt_prog_compiler_static='-Bstatic'
6604 lt_prog_compiler_wl='-Wl,'
6605 # All Alpha code is PIC.
6606 lt_prog_compiler_static='-non_shared'
6609 case `$CC -V 2>&1 | sed 5q` in
6612 lt_prog_compiler_pic='-KPIC'
6613 lt_prog_compiler_static='-Bstatic'
6614 lt_prog_compiler_wl='-Wl,'
6617 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6620 lt_prog_compiler_wl=''
6628 lt_prog_compiler_pic='-KPIC'
6629 lt_prog_compiler_static='-Bstatic'
6633 # QNX uses GNU C++, but need to define -shared option too, otherwise
6635 lt_prog_compiler_pic='-fPIC -shared'
6638 osf3* | osf4* | osf5*)
6639 lt_prog_compiler_wl='-Wl,'
6640 # All OSF/1 code is PIC.
6641 lt_prog_compiler_static='-non_shared'
6645 lt_prog_compiler_static='-non_shared'
6649 lt_prog_compiler_pic='-KPIC'
6650 lt_prog_compiler_static='-Bstatic'
6651 case $cc_basename in
6653 lt_prog_compiler_wl='-Qoption ld ';;
6655 lt_prog_compiler_wl='-Wl,';;
6660 lt_prog_compiler_wl='-Qoption ld '
6661 lt_prog_compiler_pic='-PIC'
6662 lt_prog_compiler_static='-Bstatic'
6665 sysv4 | sysv4.2uw2* | sysv4.3*)
6666 lt_prog_compiler_wl='-Wl,'
6667 lt_prog_compiler_pic='-KPIC'
6668 lt_prog_compiler_static='-Bstatic'
6672 if test -d /usr/nec ;then
6673 lt_prog_compiler_pic='-Kconform_pic'
6674 lt_prog_compiler_static='-Bstatic'
6678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6679 lt_prog_compiler_wl='-Wl,'
6680 lt_prog_compiler_pic='-KPIC'
6681 lt_prog_compiler_static='-Bstatic'
6685 lt_prog_compiler_wl='-Wl,'
6686 lt_prog_compiler_can_build_shared=no
6690 lt_prog_compiler_pic='-pic'
6691 lt_prog_compiler_static='-Bstatic'
6695 lt_prog_compiler_can_build_shared=no
6701 # For platforms which do not support PIC, -DPIC is meaningless:
6703 lt_prog_compiler_pic=
6706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6709 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6710 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6718 # Check to make sure the PIC flag actually works.
6720 if test -n "$lt_prog_compiler_pic"; then
6721 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6723 if test "${lt_prog_compiler_pic_works+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 lt_prog_compiler_pic_works=no
6727 ac_outfile=conftest.$ac_objext
6728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6729 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6730 # Insert the option either (1) after the last *FLAGS variable, or
6731 # (2) before a word containing "conftest.", or (3) at the end.
6732 # Note that $ac_compile itself does not contain backslashes and begins
6733 # with a dollar sign (not a hyphen), so the echo should work correctly.
6734 # The option is referenced via a variable to avoid confusing sed.
6735 lt_compile=`echo "$ac_compile" | $SED \
6736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6738 -e 's:$: $lt_compiler_flag:'`
6739 (eval echo "\"\$as_me:6739: $lt_compile\"" >&5)
6740 (eval "$lt_compile" 2>conftest.err)
6742 cat conftest.err >&5
6743 echo "$as_me:6743: \$? = $ac_status" >&5
6744 if (exit $ac_status) && test -s "$ac_outfile"; then
6745 # The compiler can only warn and ignore the option if not recognized
6746 # So say no if there are warnings other than the usual output.
6747 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6750 lt_prog_compiler_pic_works=yes
6756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6757 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6759 if test x"$lt_prog_compiler_pic_works" = xyes; then
6760 case $lt_prog_compiler_pic in
6762 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6765 lt_prog_compiler_pic=
6766 lt_prog_compiler_can_build_shared=no
6777 # Check to make sure the static flag actually works.
6779 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6780 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6781 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6782 if test "${lt_prog_compiler_static_works+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 lt_prog_compiler_static_works=no
6786 save_LDFLAGS="$LDFLAGS"
6787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6790 # The linker can only warn and ignore the option if not recognized
6791 # So say no if there are warnings
6792 if test -s conftest.err; then
6793 # Append any errors to the config.log.
6794 cat conftest.err 1>&5
6795 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6797 if diff conftest.exp conftest.er2 >/dev/null; then
6798 lt_prog_compiler_static_works=yes
6801 lt_prog_compiler_static_works=yes
6805 LDFLAGS="$save_LDFLAGS"
6808 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6809 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6811 if test x"$lt_prog_compiler_static_works" = xyes; then
6814 lt_prog_compiler_static=
6823 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6824 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6825 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 lt_cv_prog_compiler_c_o=no
6829 $RM -r conftest 2>/dev/null
6833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6835 lt_compiler_flag="-o out/conftest2.$ac_objext"
6836 # Insert the option either (1) after the last *FLAGS variable, or
6837 # (2) before a word containing "conftest.", or (3) at the end.
6838 # Note that $ac_compile itself does not contain backslashes and begins
6839 # with a dollar sign (not a hyphen), so the echo should work correctly.
6840 lt_compile=`echo "$ac_compile" | $SED \
6841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6843 -e 's:$: $lt_compiler_flag:'`
6844 (eval echo "\"\$as_me:6844: $lt_compile\"" >&5)
6845 (eval "$lt_compile" 2>out/conftest.err)
6847 cat out/conftest.err >&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6851 # The compiler can only warn and ignore the option if not recognized
6852 # So say no if there are warnings
6853 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6856 lt_cv_prog_compiler_c_o=yes
6861 # SGI C++ compiler will create directory out/ii_files/ for
6862 # template instantiation
6863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6864 $RM out/* && rmdir out
6870 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6878 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6880 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 lt_cv_prog_compiler_c_o=no
6884 $RM -r conftest 2>/dev/null
6888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6890 lt_compiler_flag="-o out/conftest2.$ac_objext"
6891 # Insert the option either (1) after the last *FLAGS variable, or
6892 # (2) before a word containing "conftest.", or (3) at the end.
6893 # Note that $ac_compile itself does not contain backslashes and begins
6894 # with a dollar sign (not a hyphen), so the echo should work correctly.
6895 lt_compile=`echo "$ac_compile" | $SED \
6896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6898 -e 's:$: $lt_compiler_flag:'`
6899 (eval echo "\"\$as_me:6899: $lt_compile\"" >&5)
6900 (eval "$lt_compile" 2>out/conftest.err)
6902 cat out/conftest.err >&5
6903 echo "$as_me:6903: \$? = $ac_status" >&5
6904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6906 # The compiler can only warn and ignore the option if not recognized
6907 # So say no if there are warnings
6908 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6911 lt_cv_prog_compiler_c_o=yes
6916 # SGI C++ compiler will create directory out/ii_files/ for
6917 # template instantiation
6918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6919 $RM out/* && rmdir out
6925 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6931 hard_links="nottested"
6932 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6933 # do not overwrite the value of need_locks provided by the user
6934 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6935 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6940 ln conftest.a conftest.b 2>&5 || hard_links=no
6941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6942 echo "$as_me:$LINENO: result: $hard_links" >&5
6943 echo "${ECHO_T}$hard_links" >&6
6944 if test "$hard_links" = no; then
6945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6946 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6958 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6959 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6962 allow_undefined_flag=
6963 always_export_symbols=no
6965 archive_expsym_cmds=
6966 compiler_needs_object=no
6967 enable_shared_with_static_runtimes=no
6968 export_dynamic_flag_spec=
6969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6970 hardcode_automatic=no
6972 hardcode_direct_absolute=no
6973 hardcode_libdir_flag_spec=
6974 hardcode_libdir_flag_spec_ld=
6975 hardcode_libdir_separator=
6977 hardcode_shlibpath_var=unsupported
6979 link_all_deplibs=unknown
6982 old_archive_from_new_cmds=
6983 old_archive_from_expsyms_cmds=
6984 thread_safe_flag_spec=
6985 whole_archive_flag_spec=
6986 # include_expsyms should be a list of space-separated symbols to be *always*
6987 # included in the symbol list
6989 # exclude_expsyms can be an extended regexp of symbols to exclude
6990 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6992 # as well as any symbol that contains `d'.
6993 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6995 # platforms (ab)use it in PIC code, but their linkers get confused if
6996 # the symbol is explicitly referenced. Since portable code cannot
6997 # rely on this symbol name, it's probably fine to never include it in
6998 # preloaded symbol tables.
6999 extract_expsyms_cmds=
7002 cygwin* | mingw* | pw32*)
7003 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7004 # When not using gcc, we currently assume that we are using
7005 # Microsoft Visual C++.
7006 if test "$GCC" != yes; then
7011 # we just hope/assume this is gcc and not c89 (= MSVC++)
7020 if test "$with_gnu_ld" = yes; then
7021 # If archive_cmds runs LD, not CC, wlarc should be empty
7024 # Set some defaults for GNU ld with shared library support. These
7025 # are reset later if shared libraries are not supported. Putting them
7026 # here allows them to be overridden if necessary.
7027 runpath_var=LD_RUN_PATH
7028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7029 export_dynamic_flag_spec='${wl}--export-dynamic'
7030 # ancient GNU ld didn't support --whole-archive et. al.
7031 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7034 whole_archive_flag_spec=
7036 supports_anon_versioning=no
7037 case `$LD -v 2>&1` in
7038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7041 *\ 2.11.*) ;; # other 2.11 versions
7042 *) supports_anon_versioning=yes ;;
7045 # See if GNU ld supports shared libraries.
7048 # On AIX/PPC, the GNU linker is very broken
7049 if test "$host_cpu" != ia64; then
7053 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7054 *** to be unable to reliably create shared libraries on AIX.
7055 *** Therefore, libtool is disabling shared libraries support. If you
7056 *** really care for shared libraries, you may want to modify your PATH
7057 *** so that a non-GNU linker is found, and then restart.
7064 if test "$host_cpu" = m68k; then
7065 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)'
7066 hardcode_libdir_flag_spec='-L$libdir'
7067 hardcode_minus_L=yes
7070 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7071 # that the semantics of dynamic libraries on AmigaOS, at least up
7072 # to version 4, is to share data among multiple programs linked
7073 # with the same dynamic library. Since this doesn't match the
7074 # behavior of shared libraries on other platforms, we can't use
7080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7081 allow_undefined_flag=unsupported
7082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7083 # support --undefined. This deserves some investigation. FIXME
7084 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7090 cygwin* | mingw* | pw32*)
7091 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7092 # as there is no search path for DLLs.
7093 hardcode_libdir_flag_spec='-L$libdir'
7094 allow_undefined_flag=unsupported
7095 always_export_symbols=no
7096 enable_shared_with_static_runtimes=yes
7097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7101 # If the export-symbols file already is a .def file (1st line
7102 # is EXPORTS), use it as is; otherwise, prepend...
7103 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7104 cp $export_symbols $output_objdir/$soname.def;
7106 echo EXPORTS > $output_objdir/$soname.def;
7107 cat $export_symbols >> $output_objdir/$soname.def;
7109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7117 hardcode_shlibpath_var=no
7118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7119 export_dynamic_flag_spec='${wl}-E'
7120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7121 # Instead, shared libraries are loaded at an image base (0x10000000 by
7122 # default) and relocated if they conflict, which is a slow very memory
7123 # consuming and fragmenting process. To avoid this, we pick a random,
7124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7127 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'
7130 gnu* | linux* | tpf* | k*bsd*-gnu)
7132 if test "$host_os" = linux-dietlibc; then
7133 case $cc_basename in
7134 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7137 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7138 && test "$tmp_diet" = no
7141 case $cc_basename,$host_cpu in
7142 pgcc*) # Portland Group C compiler
7143 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'
7144 tmp_addflag=' $pic_flag'
7146 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7147 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'
7148 tmp_addflag=' $pic_flag -Mnomain' ;;
7149 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7150 tmp_addflag=' -i_dynamic' ;;
7151 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7152 tmp_addflag=' -i_dynamic -nofor_main' ;;
7153 ifc* | ifort*) # Intel Fortran compiler
7154 tmp_addflag=' -nofor_main' ;;
7156 case `$CC -V 2>&1 | sed 5q` in
7157 *Sun\ C*) # Sun C 5.9
7158 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'
7159 compiler_needs_object=yes
7160 tmp_sharedflag='-G' ;;
7161 *Sun\ F*) # Sun Fortran 8.3
7162 tmp_sharedflag='-G' ;;
7164 tmp_sharedflag='-shared' ;;
7166 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7168 if test "x$supports_anon_versioning" = xyes; then
7169 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7171 echo "local: *; };" >> $output_objdir/$libname.ver~
7172 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7181 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7190 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7195 *** create shared libraries on Solaris systems. Therefore, libtool
7196 *** is disabling shared libraries support. We urge you to upgrade GNU
7197 *** binutils to release 2.9.1 or newer. Another option is to modify
7198 *** your PATH or compiler configuration so that the native linker is
7199 *** used, and then restart.
7202 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7211 case `$LD -v 2>&1` in
7212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7217 *** reliably create shared libraries on SCO systems. Therefore, libtool
7218 *** is disabling shared libraries support. We urge you to upgrade GNU
7219 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7220 *** your PATH or compiler configuration so that the native linker is
7221 *** used, and then restart.
7226 # For security reasons, it is highly recommended that you always
7227 # use absolute paths for naming shared libraries, and exclude the
7228 # DT_RUNPATH tag from executables and libraries. But doing so
7229 # requires that you compile everything twice, which is a pain.
7230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7242 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7245 hardcode_shlibpath_var=no
7249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
7258 if test "$ld_shlibs" = no; then
7260 hardcode_libdir_flag_spec=
7261 export_dynamic_flag_spec=
7262 whole_archive_flag_spec=
7265 # PORTME fill in a description of your system's linker (not GNU ld)
7268 allow_undefined_flag=unsupported
7269 always_export_symbols=yes
7270 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'
7271 # Note: this linker hardcodes the directories in LIBPATH if there
7272 # are no directories specified by -L.
7273 hardcode_minus_L=yes
7274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7275 # Neither direct hardcoding nor static linking is supported with a
7277 hardcode_direct=unsupported
7282 if test "$host_cpu" = ia64; then
7283 # On IA64, the linker does run time linking by default, so we don't
7284 # have to do anything special.
7285 aix_use_runtimelinking=no
7286 exp_sym_flag='-Bexport'
7289 # If we're using GNU nm, then we don't want the "-C" option.
7290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7291 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7292 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'
7294 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'
7296 aix_use_runtimelinking=no
7298 # Test if we are trying to use run time linking or normal
7299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7300 # need to do runtime linking.
7301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7302 for ld_flag in $LDFLAGS; do
7303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7304 aix_use_runtimelinking=yes
7311 exp_sym_flag='-bexport'
7312 no_entry_flag='-bnoentry'
7315 # When large executables or shared objects are built, AIX ld can
7316 # have problems creating the table of contents. If linking a library
7317 # or program results in "error TOC overflow" add -mminimal-toc to
7318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7323 hardcode_direct_absolute=yes
7324 hardcode_libdir_separator=':'
7325 link_all_deplibs=yes
7326 file_list_spec='${wl}-f,'
7328 if test "$GCC" = yes; then
7329 case $host_os in aix4.[012]|aix4.[012].*)
7330 # We only want to do this on AIX 4.2 and lower, the check
7331 # below for broken collect2 doesn't work under 4.3+
7332 collect2name=`${CC} -print-prog-name=collect2`
7333 if test -f "$collect2name" &&
7334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7336 # We have reworked collect2
7339 # We have old collect2
7340 hardcode_direct=unsupported
7341 # It fails to find uninstalled libraries when the uninstalled
7342 # path is not listed in the libpath. Setting hardcode_minus_L
7343 # to unsupported forces relinking
7344 hardcode_minus_L=yes
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_libdir_separator=
7350 shared_flag='-shared'
7351 if test "$aix_use_runtimelinking" = yes; then
7352 shared_flag="$shared_flag "'${wl}-G'
7356 if test "$host_cpu" = ia64; then
7357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7358 # chokes on -Wl,-G. The following line is correct:
7361 if test "$aix_use_runtimelinking" = yes; then
7362 shared_flag='${wl}-G'
7364 shared_flag='${wl}-bM:SRE'
7369 # It seems that -bexpall does not export symbols beginning with
7370 # underscore (_), so it is better to generate a list of symbols to export.
7371 always_export_symbols=yes
7372 if test "$aix_use_runtimelinking" = yes; then
7373 # Warning - without using the other runtime loading flags (-brtl),
7374 # -berok will link without error, but may produce a broken library.
7375 allow_undefined_flag='-berok'
7376 # Determine the default libpath from the value encoded in an
7378 cat >conftest.$ac_ext <<_ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7416 lt_aix_libpath_sed='
7417 /Import File Strings/,/^$/ {
7423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7424 # Check for a 64-bit object if we didn't find anything.
7425 if test -z "$aix_libpath"; then
7426 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7433 rm -f conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7438 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"
7440 if test "$host_cpu" = ia64; then
7441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7442 allow_undefined_flag="-z nodefs"
7443 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"
7445 # Determine the default libpath from the value encoded in an
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7462 rm -f conftest.$ac_objext conftest$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>conftest.er1
7466 grep -v '^ *+' conftest.er1 >conftest.err
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } &&
7471 { ac_try='test -z "$ac_c_werror_flag"
7472 || test ! -s conftest.err'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try='test -s conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7485 lt_aix_libpath_sed='
7486 /Import File Strings/,/^$/ {
7492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7493 # Check for a 64-bit object if we didn't find anything.
7494 if test -z "$aix_libpath"; then
7495 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7502 rm -f conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7507 # Warning - without using the other run time loading flags,
7508 # -berok will link without error, but may produce a broken library.
7509 no_undefined_flag=' ${wl}-bernotok'
7510 allow_undefined_flag=' ${wl}-berok'
7511 # Exported symbols can be pulled into shared objects from archives
7512 whole_archive_flag_spec='$convenience'
7513 archive_cmds_need_lc=yes
7514 # This is similar to how AIX traditionally builds its shared libraries.
7515 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'
7521 if test "$host_cpu" = m68k; then
7522 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)'
7523 hardcode_libdir_flag_spec='-L$libdir'
7524 hardcode_minus_L=yes
7526 # see comment about different semantics on the GNU ld section
7531 export_dynamic_flag_spec=-rdynamic
7534 cygwin* | mingw* | pw32*)
7535 # When not using gcc, we currently assume that we are using
7536 # Microsoft Visual C++.
7537 # hardcode_libdir_flag_spec is actually meaningless, as there is
7538 # no search path for DLLs.
7539 hardcode_libdir_flag_spec=' '
7540 allow_undefined_flag=unsupported
7541 # Tell ltmain to make .lib files, not .a files.
7543 # Tell ltmain to make .dll files, not .so files.
7545 # FIXME: Setting linknames here is a bad hack.
7546 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7547 # The linker will automatically build a .lib file if we build a DLL.
7548 old_archive_from_new_cmds='true'
7549 # FIXME: Should let the user specify the lib program.
7550 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7551 fix_srcfile_path='`cygpath -w "$srcfile"`'
7552 enable_shared_with_static_runtimes=yes
7555 darwin* | rhapsody*)
7557 rhapsody* | darwin1.[012])
7558 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7561 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7563 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7566 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7571 archive_cmds_need_lc=no
7573 hardcode_automatic=yes
7574 hardcode_shlibpath_var=unsupported
7575 whole_archive_flag_spec=''
7576 link_all_deplibs=yes
7577 if test "$GCC" = yes ; then
7578 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 lt_cv_apple_cc_single_mod=no
7582 if test -z "${LT_MULTI_MODULE}"; then
7583 # By default we will add the -single_module flag. You can override
7584 # by either setting the environment variable LT_MULTI_MODULE
7585 # non-empty at configure time, or by adding -multi-module to the
7587 echo "int foo(void){return 1;}" > conftest.c
7588 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7589 -dynamiclib ${wl}-single_module conftest.c
7590 if test -f libconftest.dylib; then
7591 lt_cv_apple_cc_single_mod=yes
7592 rm libconftest.dylib
7598 output_verbose_link_cmd=echo
7599 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7600 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7601 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}'
7603 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7604 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}'
7606 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7607 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}'
7609 case $cc_basename in
7611 output_verbose_link_cmd=echo
7612 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7613 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7615 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}'
7616 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}'
7626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627 hardcode_libdir_flag_spec='-L$libdir'
7628 hardcode_shlibpath_var=no
7635 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7636 # support. Future versions do this automatically, but an explicit c++rt0.o
7637 # does not break anything, and helps significantly (at the cost of a little
7640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7641 hardcode_libdir_flag_spec='-R$libdir'
7643 hardcode_shlibpath_var=no
7646 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_minus_L=yes
7651 hardcode_shlibpath_var=no
7654 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7655 freebsd* | dragonfly*)
7656 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7657 hardcode_libdir_flag_spec='-R$libdir'
7659 hardcode_shlibpath_var=no
7663 if test "$GCC" = yes; then
7664 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'
7666 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'
7668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7669 hardcode_libdir_separator=:
7672 # hardcode_minus_L: Not really in the search PATH,
7673 # but as the default location of the library.
7674 hardcode_minus_L=yes
7675 export_dynamic_flag_spec='${wl}-E'
7679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7682 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7684 if test "$with_gnu_ld" = no; then
7685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7686 hardcode_libdir_flag_spec_ld='+b $libdir'
7687 hardcode_libdir_separator=:
7689 hardcode_direct_absolute=yes
7690 export_dynamic_flag_spec='${wl}-E'
7691 # hardcode_minus_L: Not really in the search PATH,
7692 # but as the default location of the library.
7693 hardcode_minus_L=yes
7698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7701 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7704 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7713 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7719 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7723 if test "$with_gnu_ld" = no; then
7724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7725 hardcode_libdir_separator=:
7730 hardcode_shlibpath_var=no
7734 hardcode_direct_absolute=yes
7735 export_dynamic_flag_spec='${wl}-E'
7737 # hardcode_minus_L: Not really in the search PATH,
7738 # but as the default location of the library.
7739 hardcode_minus_L=yes
7745 irix5* | irix6* | nonstopux*)
7746 if test "$GCC" = yes; then
7747 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'
7748 # Try to use the -exported_symbol ld option, if it does not
7749 # work, assume that -exports_file does not work either and
7750 # implicitly export all symbols.
7751 save_LDFLAGS="$LDFLAGS"
7752 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7753 cat >conftest.$ac_ext <<_ACEOF
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 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'
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7785 rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 LDFLAGS="$save_LDFLAGS"
7789 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'
7790 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'
7792 archive_cmds_need_lc='no'
7793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7794 hardcode_libdir_separator=:
7796 link_all_deplibs=yes
7800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7805 hardcode_libdir_flag_spec='-R$libdir'
7807 hardcode_shlibpath_var=no
7811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7814 hardcode_libdir_separator=:
7815 hardcode_shlibpath_var=no
7823 hardcode_shlibpath_var=no
7824 hardcode_direct_absolute=yes
7825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829 export_dynamic_flag_spec='${wl}-E'
7832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_libdir_flag_spec='-R$libdir'
7837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7845 hardcode_libdir_flag_spec='-L$libdir'
7846 hardcode_minus_L=yes
7847 allow_undefined_flag=unsupported
7848 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'
7849 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855 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'
7857 allow_undefined_flag=' -expect_unresolved \*'
7858 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'
7860 archive_cmds_need_lc='no'
7861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7862 hardcode_libdir_separator=:
7865 osf4* | osf5*) # as osf3* with the addition of -msym flag
7866 if test "$GCC" = yes; then
7867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7868 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'
7869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7871 allow_undefined_flag=' -expect_unresolved \*'
7872 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'
7873 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~
7874 $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'
7876 # Both c and cxx compiler support -rpath directly
7877 hardcode_libdir_flag_spec='-rpath $libdir'
7879 archive_cmds_need_lc='no'
7880 hardcode_libdir_separator=:
7884 no_undefined_flag=' -z defs'
7885 if test "$GCC" = yes; then
7887 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7889 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7891 case `$CC -V 2>&1` in
7894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7900 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7902 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7906 hardcode_libdir_flag_spec='-R$libdir'
7907 hardcode_shlibpath_var=no
7909 solaris2.[0-5] | solaris2.[0-5].*) ;;
7911 # The compiler driver will combine and reorder linker options,
7912 # but understands `-z linker_flag'. GCC discards it without `$wl',
7913 # but is careful enough not to reorder.
7914 # Supported since Solaris 2.6 (maybe 2.5.1?)
7915 if test "$GCC" = yes; then
7916 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7922 link_all_deplibs=yes
7926 if test "x$host_vendor" = xsequent; then
7927 # Use $CC to link under sequent, because it throws in some extra .o
7928 # files that make .init and .fini sections work.
7929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7933 hardcode_libdir_flag_spec='-L$libdir'
7935 hardcode_minus_L=yes
7936 hardcode_shlibpath_var=no
7940 case $host_vendor in
7942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct=yes # is this really true???
7946 ## LD is ld it makes a PLAMLIB
7947 ## CC just makes a GrossModule.
7948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7949 reload_cmds='$CC -r -o $output$reload_objs'
7953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7957 runpath_var='LD_RUN_PATH'
7958 hardcode_shlibpath_var=no
7962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7963 hardcode_shlibpath_var=no
7964 export_dynamic_flag_spec='-Bexport'
7968 if test -d /usr/nec; then
7969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_shlibpath_var=no
7971 runpath_var=LD_RUN_PATH
7972 hardcode_runpath_var=yes
7977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7978 no_undefined_flag='${wl}-z,text'
7979 archive_cmds_need_lc=no
7980 hardcode_shlibpath_var=no
7981 runpath_var='LD_RUN_PATH'
7983 if test "$GCC" = yes; then
7984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992 sysv5* | sco3.2v5* | sco5v6*)
7993 # Note: We can NOT use -z defs as we might desire, because we do not
7994 # link with -lc, and that would cause any symbols used from libc to
7995 # always be unresolved, which means just about no library would
7996 # ever link correctly. If we're not using GNU ld we use -z text
7997 # though, which does catch some bad symbols but isn't as heavy-handed
7999 no_undefined_flag='${wl}-z,text'
8000 allow_undefined_flag='${wl}-z,nodefs'
8001 archive_cmds_need_lc=no
8002 hardcode_shlibpath_var=no
8003 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8004 hardcode_libdir_separator=':'
8005 link_all_deplibs=yes
8006 export_dynamic_flag_spec='${wl}-Bexport'
8007 runpath_var='LD_RUN_PATH'
8009 if test "$GCC" = yes; then
8010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_libdir_flag_spec='-L$libdir'
8021 hardcode_shlibpath_var=no
8029 if test x$host_vendor = xsni; then
8031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8032 export_dynamic_flag_spec='${wl}-Blargedynsym'
8038 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8039 echo "${ECHO_T}$ld_shlibs" >&6
8040 test "$ld_shlibs" = no && can_build_shared=no
8042 with_gnu_ld=$with_gnu_ld
8059 # Do we need to explicitly link libc?
8061 case "x$archive_cmds_need_lc" in
8063 # Assume -lc should be added
8064 archive_cmds_need_lc=yes
8066 if test "$enable_shared" = yes && test "$GCC" = yes; then
8067 case $archive_cmds in
8069 # FIXME: we may have to deal with multi-command sequences.
8072 # Test whether the compiler implicitly links with -lc since on some
8073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8074 # to ld, don't add -lc before -lgcc.
8075 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } 2>conftest.err; then
8087 libobjs=conftest.$ac_objext
8089 wl=$lt_prog_compiler_wl
8090 pic_flag=$lt_prog_compiler_pic
8096 lt_save_allow_undefined_flag=$allow_undefined_flag
8097 allow_undefined_flag=
8098 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8099 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }
8104 archive_cmds_need_lc=no
8106 archive_cmds_need_lc=yes
8108 allow_undefined_flag=$lt_save_allow_undefined_flag
8110 cat conftest.err 1>&5
8113 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8114 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8277 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8280 if test "$withGCC" = yes; then
8282 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8283 *) lt_awk_arg="/^libraries:/" ;;
8285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8286 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8287 # if the path contains ";" then we assume it to be the separator
8288 # otherwise default to the standard path separator (i.e. ":") - it is
8289 # assumed that no part of a normal pathname contains ";" but that should
8290 # okay in the real world where ";" in dirpaths is itself problematic.
8291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8295 # Ok, now we have the path, separated by spaces, we can step through it
8296 # and add multilib dir if necessary.
8297 lt_tmp_lt_search_path_spec=
8298 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8299 for lt_sys_path in $lt_search_path_spec; do
8300 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8301 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8303 test -d "$lt_sys_path" && \
8304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8307 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8308 BEGIN {RS=" "; FS="/|\n";} {
8311 for (lt_i = NF; lt_i > 0; lt_i--) {
8312 if ($lt_i != "" && $lt_i != ".") {
8313 if ($lt_i == "..") {
8316 if (lt_count == 0) {
8317 lt_foo="/" $lt_i lt_foo;
8324 if (lt_foo != "") { lt_freq[lt_foo]++; }
8325 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8327 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8332 libname_spec='lib$name'
8340 shlibpath_overrides_runpath=unknown
8342 dynamic_linker="$host_os ld.so"
8343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8344 need_lib_prefix=unknown
8345 hardcode_into_libs=no
8347 # when you set need_version to no, make sure it does not cause -set_version
8348 # flags to be left without arguments
8349 need_version=unknown
8354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8355 shlibpath_var=LIBPATH
8357 # AIX 3 has no versioning support, so we append a major version to the name.
8358 soname_spec='${libname}${release}${shared_ext}$major'
8365 hardcode_into_libs=yes
8366 if test "$host_cpu" = ia64; then
8367 # AIX 5 supports IA64
8368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8369 shlibpath_var=LD_LIBRARY_PATH
8371 # With GCC up to 2.95.x, collect2 would create an import file
8372 # for dependence libraries. The import file would start with
8373 # the line `#! .'. This would cause the generated library to
8374 # depend on `.', always an invalid library. This was fixed in
8375 # development snapshots of GCC prior to 3.0.
8377 aix4 | aix4.[01] | aix4.[01].*)
8378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8388 # soname into executable. Probably we can add versioning support to
8389 # collect2, so additional links can be useful in future.
8390 if test "$aix_use_runtimelinking" = yes; then
8391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8392 # instead of lib<name>.a to let people know that these are not
8393 # typical AIX shared libraries.
8394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8396 # We preserve .a as extension for shared libraries through AIX4.2
8397 # and later when we are not doing run time linking.
8398 library_names_spec='${libname}${release}.a $libname.a'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8401 shlibpath_var=LIBPATH
8406 if test "$host_cpu" = m68k; then
8407 library_names_spec='$libname.ixlibrary $libname.a'
8408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8409 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'
8416 library_names_spec='${libname}${shared_ext}'
8417 dynamic_linker="$host_os ld.so"
8418 shlibpath_var=LIBRARY_PATH
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8430 # the default ld.so.conf also contains /usr/contrib/lib and
8431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8432 # libtool to hard-code these into programs
8435 cygwin* | mingw* | pw32*)
8436 version_type=windows
8441 case $withGCC,$host_os in
8442 yes,cygwin* | yes,mingw* | yes,pw32*)
8443 library_names_spec='$libname.dll.a'
8444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8445 postinstall_cmds='base_file=`basename \${file}`~
8446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8447 dldir=$destdir/`dirname \$dlpath`~
8448 test -d \$dldir || mkdir -p \$dldir~
8449 $install_prog $dir/$dlname \$dldir/$dlname~
8450 chmod a+x \$dldir/$dlname~
8451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8455 dlpath=$dir/\$dldll~
8457 shlibpath_overrides_runpath=yes
8461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8463 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8466 # MinGW DLLs use traditional 'lib' prefix
8467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8468 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8470 # It is most probably a Windows format PATH printed by
8471 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8472 # path with ; separators, and with drive letters. We can handle the
8473 # drive letters (cygwin fileutils understands them), so leave them,
8474 # especially as we might pass files found there to a mingw objdump,
8475 # which wouldn't understand a cygwinified path. Ahh.
8476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8482 # pw32 DLLs use 'pw' prefix rather than 'lib'
8483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8492 dynamic_linker='Win32 ld.exe'
8493 # FIXME: first we should search . and the directory the executable is in
8497 darwin* | rhapsody*)
8498 dynamic_linker="$host_os dyld"
8502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8503 soname_spec='${libname}${release}${major}$shared_ext'
8504 shlibpath_overrides_runpath=yes
8505 shlibpath_var=DYLD_LIBRARY_PATH
8506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8525 freebsd* | dragonfly*)
8526 # DragonFly does not have aout. When/if they implement a new
8527 # versioning mechanism, adjust this.
8528 if test -x /usr/bin/objformat; then
8529 objformat=`/usr/bin/objformat`
8532 freebsd[123]*) objformat=aout ;;
8536 version_type=freebsd-$objformat
8537 case $version_type in
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8548 shlibpath_var=LD_LIBRARY_PATH
8551 shlibpath_overrides_runpath=yes
8553 freebsd3.[01]* | freebsdelf3.[01]*)
8554 shlibpath_overrides_runpath=yes
8555 hardcode_into_libs=yes
8557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8559 shlibpath_overrides_runpath=no
8560 hardcode_into_libs=yes
8562 *) # from 4.6 on, and DragonFly
8563 shlibpath_overrides_runpath=yes
8564 hardcode_into_libs=yes
8573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8574 soname_spec='${libname}${release}${shared_ext}$major'
8575 shlibpath_var=LD_LIBRARY_PATH
8576 hardcode_into_libs=yes
8579 hpux9* | hpux10* | hpux11*)
8580 # Give a soname corresponding to the major version so that dld.sl refuses to
8581 # link against other versions.
8588 hardcode_into_libs=yes
8589 dynamic_linker="$host_os dld.so"
8590 shlibpath_var=LD_LIBRARY_PATH
8591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 if test "X$HPUX_IA64_MODE" = X32; then
8595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8603 hardcode_into_libs=yes
8604 dynamic_linker="$host_os dld.sl"
8605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8614 dynamic_linker="$host_os dld.sl"
8615 shlibpath_var=SHLIB_PATH
8616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8621 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8622 postinstall_cmds='chmod 555 $lib'
8629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8630 soname_spec='${libname}${release}${shared_ext}$major'
8631 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 shlibpath_overrides_runpath=no
8634 hardcode_into_libs=yes
8637 irix5* | irix6* | nonstopux*)
8639 nonstopux*) version_type=nonstopux ;;
8641 if test "$lt_cv_prog_gnu_ld" = yes; then
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8652 irix5* | nonstopux*)
8656 case $LD in # libtool.m4 will add one of these switches to LD
8657 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8658 libsuff= shlibsuff= libmagic=32-bit;;
8659 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8660 libsuff=32 shlibsuff=N32 libmagic=N32;;
8661 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8662 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8663 *) libsuff= shlibsuff= libmagic=never-match;;
8667 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8668 shlibpath_overrides_runpath=no
8669 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8670 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8671 hardcode_into_libs=yes
8674 # No shared lib support for Linux oldld, aout, or coff.
8675 linux*oldld* | linux*aout* | linux*coff*)
8679 # This must be Linux ELF.
8680 linux* | k*bsd*-gnu)
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8687 shlibpath_var=LD_LIBRARY_PATH
8688 shlibpath_overrides_runpath=no
8689 # Some binutils ld are patched to set DT_RUNPATH
8690 save_LDFLAGS=$LDFLAGS
8692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8732 shlibpath_overrides_runpath=yes
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LDFLAGS=$save_LDFLAGS
8745 # This implies no fast_install, which is unacceptable.
8746 # Some rework will be needed to allow for fast_install
8747 # before this can be enabled.
8748 hardcode_into_libs=yes
8750 # Append ld.so.conf contents to the search path
8751 if test -f /etc/ld.so.conf; then
8752 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' ' '`
8753 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8756 # We used to test for /lib/ld.so.1 and disable shared libraries on
8757 # powerpc, because MkLinux only supported shared libraries with the
8758 # GNU dynamic linker. Since this was broken with cross compilers,
8759 # most powerpc-linux boxes support dynamic linking these days and
8760 # people can always --disable-shared, the test was removed, and we
8761 # assume the GNU/Linux dynamic linker is in use.
8762 dynamic_linker='GNU/Linux ld.so'
8769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8772 dynamic_linker='NetBSD (a.out) ld.so'
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 dynamic_linker='NetBSD ld.elf_so'
8778 shlibpath_var=LD_LIBRARY_PATH
8779 shlibpath_overrides_runpath=yes
8780 hardcode_into_libs=yes
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 shlibpath_overrides_runpath=yes
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 shlibpath_var=LD_LIBRARY_PATH
8797 shlibpath_overrides_runpath=no
8798 hardcode_into_libs=yes
8799 dynamic_linker='ldqnx.so'
8804 sys_lib_dlsearch_path_spec="/usr/lib"
8806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8809 *) need_version=no ;;
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8816 openbsd2.[89] | openbsd2.[89].*)
8817 shlibpath_overrides_runpath=no
8820 shlibpath_overrides_runpath=yes
8824 shlibpath_overrides_runpath=yes
8829 libname_spec='$name'
8832 library_names_spec='$libname${shared_ext} $libname.a'
8833 dynamic_linker='OS/2 ld.exe'
8834 shlibpath_var=LIBPATH
8837 osf3* | osf4* | osf5*)
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8861 # ldd complains unless libraries are executable
8862 postinstall_cmds='chmod +x $lib'
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes
8871 if test "$with_gnu_ld" = yes; then
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 case $host_vendor in
8884 shlibpath_overrides_runpath=no
8886 runpath_var=LD_RUN_PATH
8894 shlibpath_overrides_runpath=no
8895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8901 if test -d /usr/nec ;then
8903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8904 soname_spec='$libname${shared_ext}.$major'
8905 shlibpath_var=LD_LIBRARY_PATH
8909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8910 version_type=freebsd-elf
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8917 hardcode_into_libs=yes
8918 if test "$with_gnu_ld" = yes; then
8919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8928 sys_lib_dlsearch_path_spec='/usr/lib'
8932 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8936 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8953 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8954 echo "${ECHO_T}$dynamic_linker" >&6
8955 test "$dynamic_linker" = no && can_build_shared=no
8957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8958 if test "$GCC" = yes; then
8959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9048 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9049 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9051 if test -n "$hardcode_libdir_flag_spec" ||
9052 test -n "$runpath_var" ||
9053 test "X$hardcode_automatic" = "Xyes" ; then
9055 # We can hardcode non-existent directories.
9056 if test "$hardcode_direct" != no &&
9057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9058 # have to relink, otherwise we might link with an installed library
9059 # when we should be linking with a yet-to-be-installed one
9060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9061 test "$hardcode_minus_L" != no; then
9062 # Linking always hardcodes the temporary library directory.
9063 hardcode_action=relink
9065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9066 hardcode_action=immediate
9069 # We cannot hardcode anything, or else we can only hardcode existing
9071 hardcode_action=unsupported
9073 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9074 echo "${ECHO_T}$hardcode_action" >&6
9076 if test "$hardcode_action" = relink ||
9077 test "$inherit_rpath" = yes; then
9078 # Fast installation is not supported
9079 enable_fast_install=no
9080 elif test "$shlibpath_overrides_runpath" = yes ||
9081 test "$enable_shared" = no; then
9082 # Fast installation is not necessary
9083 enable_fast_install=needless
9091 if test "x$enable_dlopen" != xyes; then
9092 enable_dlopen=unknown
9093 enable_dlopen_self=unknown
9094 enable_dlopen_self_static=unknown
9101 lt_cv_dlopen="load_add_on"
9103 lt_cv_dlopen_self=yes
9107 lt_cv_dlopen="LoadLibrary"
9112 lt_cv_dlopen="dlopen"
9117 # if libdl is installed we need to link against it
9118 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9119 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 ac_check_lib_save_LIBS=$LIBS
9125 cat >conftest.$ac_ext <<_ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9132 /* Override any gcc2 internal prototype to avoid an error. */
9136 /* We use char because int might match the return type of a gcc2
9137 builtin and then its argument prototype would still apply. */
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>conftest.er1
9151 grep -v '^ *+' conftest.er1 >conftest.err
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_lib_dl_dlopen=yes
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 ac_cv_lib_dl_dlopen=no
9176 rm -f conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9181 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9182 if test $ac_cv_lib_dl_dlopen = yes; then
9183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9188 lt_cv_dlopen_self=yes
9195 echo "$as_me:$LINENO: checking for shl_load" >&5
9196 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9197 if test "${ac_cv_func_shl_load+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9208 #define shl_load innocuous_shl_load
9210 /* System header to define __stub macros and hopefully few prototypes,
9211 which can conflict with char shl_load (); below.
9212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9213 <limits.h> exists even on freestanding compilers. */
9216 # include <limits.h>
9218 # include <assert.h>
9223 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9231 /* The GNU C library defines this for functions which it implements
9232 to always fail with ENOSYS. Some functions are actually named
9233 something starting with __ and the normal name is an alias. */
9234 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9237 char (*f) () = shl_load;
9246 return f != shl_load;
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_func_shl_load=yes
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 ac_cv_func_shl_load=no
9280 rm -f conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9284 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9285 if test $ac_cv_func_shl_load = yes; then
9286 lt_cv_dlopen="shl_load"
9288 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9289 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9290 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 ac_check_lib_save_LIBS=$LIBS
9295 cat >conftest.$ac_ext <<_ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9302 /* Override any gcc2 internal prototype to avoid an error. */
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
9321 grep -v '^ *+' conftest.er1 >conftest.err
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_cv_lib_dld_shl_load=yes
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9344 ac_cv_lib_dld_shl_load=no
9346 rm -f conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS=$ac_check_lib_save_LIBS
9350 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9351 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9352 if test $ac_cv_lib_dld_shl_load = yes; then
9353 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9355 echo "$as_me:$LINENO: checking for dlopen" >&5
9356 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9357 if test "${ac_cv_func_dlopen+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 cat >conftest.$ac_ext <<_ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9368 #define dlopen innocuous_dlopen
9370 /* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char dlopen (); below.
9372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 <limits.h> exists even on freestanding compilers. */
9376 # include <limits.h>
9378 # include <assert.h>
9383 /* Override any gcc2 internal prototype to avoid an error. */
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9391 /* The GNU C library defines this for functions which it implements
9392 to always fail with ENOSYS. Some functions are actually named
9393 something starting with __ and the normal name is an alias. */
9394 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9397 char (*f) () = dlopen;
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_func_dlopen=yes
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_cv_func_dlopen=no
9440 rm -f conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9443 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9444 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9445 if test $ac_cv_func_dlopen = yes; then
9446 lt_cv_dlopen="dlopen"
9448 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9449 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9450 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 ac_check_lib_save_LIBS=$LIBS
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9462 /* Override any gcc2 internal prototype to avoid an error. */
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_cv_lib_dl_dlopen=yes
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9504 ac_cv_lib_dl_dlopen=no
9506 rm -f conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9511 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9512 if test $ac_cv_lib_dl_dlopen = yes; then
9513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9515 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9516 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9517 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 ac_check_lib_save_LIBS=$LIBS
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any gcc2 internal prototype to avoid an error. */
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9548 grep -v '^ *+' conftest.er1 >conftest.err
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -z "$ac_c_werror_flag"
9554 || test ! -s conftest.err'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_lib_svld_dlopen=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_lib_svld_dlopen=no
9573 rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 LIBS=$ac_check_lib_save_LIBS
9577 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9578 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9579 if test $ac_cv_lib_svld_dlopen = yes; then
9580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9582 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9583 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9584 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 ac_check_lib_save_LIBS=$LIBS
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9596 /* Override any gcc2 internal prototype to avoid an error. */
9600 /* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dld_dld_link=yes
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_lib_dld_dld_link=no
9640 rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9646 if test $ac_cv_lib_dld_dld_link = yes; then
9647 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9668 if test "x$lt_cv_dlopen" != xno; then
9674 case $lt_cv_dlopen in
9676 save_CPPFLAGS="$CPPFLAGS"
9677 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9679 save_LDFLAGS="$LDFLAGS"
9680 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9683 LIBS="$lt_cv_dlopen_libs $LIBS"
9685 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9687 if test "${lt_cv_dlopen_self+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 if test "$cross_compiling" = yes; then :
9691 lt_cv_dlopen_self=cross
9693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9694 lt_status=$lt_dlunknown
9695 cat > conftest.$ac_ext <<_LT_EOF
9696 #line 9696 "configure"
9697 #include "confdefs.h"
9706 # define LT_DLGLOBAL RTLD_GLOBAL
9709 # define LT_DLGLOBAL DL_GLOBAL
9711 # define LT_DLGLOBAL 0
9715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9716 find out it does not work in some platform. */
9717 #ifndef LT_DLLAZY_OR_NOW
9719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9722 # define LT_DLLAZY_OR_NOW DL_LAZY
9725 # define LT_DLLAZY_OR_NOW RTLD_NOW
9728 # define LT_DLLAZY_OR_NOW DL_NOW
9730 # define LT_DLLAZY_OR_NOW 0
9738 extern "C" void exit (int);
9741 void fnord() { int i=42;}
9744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9745 int status = $lt_dlunknown;
9749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9751 /* dlclose (self); */
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9764 (./conftest; exit; ) >&5 2>/dev/null
9767 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9768 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9769 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9772 # compilation failed
9773 lt_cv_dlopen_self=no
9780 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9781 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9783 if test "x$lt_cv_dlopen_self" = xyes; then
9784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9785 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9786 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9787 if test "${lt_cv_dlopen_self_static+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 if test "$cross_compiling" = yes; then :
9791 lt_cv_dlopen_self_static=cross
9793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9794 lt_status=$lt_dlunknown
9795 cat > conftest.$ac_ext <<_LT_EOF
9796 #line 9796 "configure"
9797 #include "confdefs.h"
9806 # define LT_DLGLOBAL RTLD_GLOBAL
9809 # define LT_DLGLOBAL DL_GLOBAL
9811 # define LT_DLGLOBAL 0
9815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9816 find out it does not work in some platform. */
9817 #ifndef LT_DLLAZY_OR_NOW
9819 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9822 # define LT_DLLAZY_OR_NOW DL_LAZY
9825 # define LT_DLLAZY_OR_NOW RTLD_NOW
9828 # define LT_DLLAZY_OR_NOW DL_NOW
9830 # define LT_DLLAZY_OR_NOW 0
9838 extern "C" void exit (int);
9841 void fnord() { int i=42;}
9844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9845 int status = $lt_dlunknown;
9849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9851 /* dlclose (self); */
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9864 (./conftest; exit; ) >&5 2>/dev/null
9867 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9868 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9869 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9872 # compilation failed
9873 lt_cv_dlopen_self_static=no
9880 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9881 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9884 CPPFLAGS="$save_CPPFLAGS"
9885 LDFLAGS="$save_LDFLAGS"
9890 case $lt_cv_dlopen_self in
9891 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9892 *) enable_dlopen_self=unknown ;;
9895 case $lt_cv_dlopen_self_static in
9896 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9897 *) enable_dlopen_self_static=unknown ;;
9919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9921 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9924 echo "$as_me:$LINENO: result: yes" >&5
9925 echo "${ECHO_T}yes" >&6
9927 # FIXME - insert some real tests, host_os isn't really good enough
9930 if test -n "$STRIP" ; then
9931 striplib="$STRIP -x"
9932 old_striplib="$STRIP -S"
9933 echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9941 echo "$as_me:$LINENO: result: no" >&5
9942 echo "${ECHO_T}no" >&6
9958 # Report which library types will actually be built
9959 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9961 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9962 echo "${ECHO_T}$can_build_shared" >&6
9964 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9966 test "$can_build_shared" = "no" && enable_shared=no
9968 # On AIX, shared libraries and static libraries use the same namespace, and
9969 # are all built from PIC.
9972 test "$enable_shared" = yes && enable_static=no
9973 if test -n "$RANLIB"; then
9974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9975 postinstall_cmds='$RANLIB $lib'
9980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9981 test "$enable_shared" = yes && enable_static=no
9985 echo "$as_me:$LINENO: result: $enable_shared" >&5
9986 echo "${ECHO_T}$enable_shared" >&6
9988 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9989 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9990 # Make sure either enable_shared or enable_static is yes.
9991 test "$enable_shared" = yes || enable_static=yes
9992 echo "$as_me:$LINENO: result: $enable_static" >&5
9993 echo "${ECHO_T}$enable_static" >&6
10000 ac_cpp='$CPP $CPPFLAGS'
10001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10019 ac_config_commands="$ac_config_commands libtool"
10024 # Only expand once:
10030 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10031 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10032 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10033 if test "${enable_maintainer_mode+set}" = set; then
10034 enableval="$enable_maintainer_mode"
10035 USE_MAINTAINER_MODE=$enableval
10037 USE_MAINTAINER_MODE=no
10039 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10040 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10043 if test $USE_MAINTAINER_MODE = yes; then
10044 MAINTAINER_MODE_TRUE=
10045 MAINTAINER_MODE_FALSE='#'
10047 MAINTAINER_MODE_TRUE='#'
10048 MAINTAINER_MODE_FALSE=
10051 MAINT=$MAINTAINER_MODE_TRUE
10055 # We need gfortran to compile parts of the library
10056 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10057 #AC_PROG_FC(gfortran)
10059 ac_ext=${FC_SRCEXT-f}
10060 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10061 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10062 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10063 if test -n "$ac_tool_prefix"; then
10064 for ac_prog in gfortran
10066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10068 echo "$as_me:$LINENO: checking for $ac_word" >&5
10069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10070 if test "${ac_cv_prog_FC+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 if test -n "$FC"; then
10074 ac_cv_prog_FC="$FC" # Let the user override the test.
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 if test -n "$FC"; then
10094 echo "$as_me:$LINENO: result: $FC" >&5
10095 echo "${ECHO_T}$FC" >&6
10097 echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10101 test -n "$FC" && break
10104 if test -z "$FC"; then
10106 for ac_prog in gfortran
10108 # Extract the first word of "$ac_prog", so it can be a program name with args.
10109 set dummy $ac_prog; ac_word=$2
10110 echo "$as_me:$LINENO: checking for $ac_word" >&5
10111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10112 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 if test -n "$ac_ct_FC"; then
10116 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_prog_ac_ct_FC="$ac_prog"
10126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10135 if test -n "$ac_ct_FC"; then
10136 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10137 echo "${ECHO_T}$ac_ct_FC" >&6
10139 echo "$as_me:$LINENO: result: no" >&5
10140 echo "${ECHO_T}no" >&6
10143 test -n "$ac_ct_FC" && break
10150 # Provide some information about the compiler.
10151 echo "$as_me:10151:" \
10152 "checking for Fortran compiler version" >&5
10153 ac_compiler=`set X $ac_compile; echo $2`
10154 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10155 (eval $ac_compiler --version </dev/null >&5) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }
10159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10160 (eval $ac_compiler -v </dev/null >&5) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }
10164 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10165 (eval $ac_compiler -V </dev/null >&5) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }
10171 # If we don't use `.F' as extension, the preprocessor is not run on the
10172 # input file. (Note that this only needs to work for GNU compilers.)
10173 ac_save_ext=$ac_ext
10175 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10176 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10177 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 cat >conftest.$ac_ext <<_ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>conftest.er1
10192 grep -v '^ *+' conftest.er1 >conftest.err
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_fc_werror_flag"
10198 || test ! -s conftest.err'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_compiler_gnu=yes
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10221 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10222 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10223 ac_ext=$ac_save_ext
10224 ac_test_FFLAGS=${FCFLAGS+set}
10225 ac_save_FFLAGS=$FCFLAGS
10227 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10228 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10229 if test "${ac_cv_prog_fc_g+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 cat >conftest.$ac_ext <<_ACEOF
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10240 (eval $ac_compile) 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_fc_werror_flag"
10248 || test ! -s conftest.err'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest.$ac_objext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_prog_fc_g=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10271 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10272 if test "$ac_test_FFLAGS" = set; then
10273 FCFLAGS=$ac_save_FFLAGS
10274 elif test $ac_cv_prog_fc_g = yes; then
10275 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10281 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10289 ac_cpp='$CPP $CPPFLAGS'
10290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10295 ac_ext=${FC_SRCEXT-f}
10296 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10297 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10299 if test -n "$ac_tool_prefix"; then
10300 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10304 echo "$as_me:$LINENO: checking for $ac_word" >&5
10305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306 if test "${ac_cv_prog_FC+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 if test -n "$FC"; then
10310 ac_cv_prog_FC="$FC" # Let the user override the test.
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 if test -n "$FC"; then
10330 echo "$as_me:$LINENO: result: $FC" >&5
10331 echo "${ECHO_T}$FC" >&6
10333 echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10337 test -n "$FC" && break
10340 if test -z "$FC"; then
10342 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 echo "$as_me:$LINENO: checking for $ac_word" >&5
10347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 if test -n "$ac_ct_FC"; then
10352 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_ac_ct_FC="$ac_prog"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10371 if test -n "$ac_ct_FC"; then
10372 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10373 echo "${ECHO_T}$ac_ct_FC" >&6
10375 echo "$as_me:$LINENO: result: no" >&5
10376 echo "${ECHO_T}no" >&6
10379 test -n "$ac_ct_FC" && break
10386 # Provide some information about the compiler.
10387 echo "$as_me:10387:" \
10388 "checking for Fortran compiler version" >&5
10389 ac_compiler=`set X $ac_compile; echo $2`
10390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10391 (eval $ac_compiler --version </dev/null >&5) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }
10395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10396 (eval $ac_compiler -v </dev/null >&5) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }
10400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10401 (eval $ac_compiler -V </dev/null >&5) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }
10407 # If we don't use `.F' as extension, the preprocessor is not run on the
10408 # input file. (Note that this only needs to work for GNU compilers.)
10409 ac_save_ext=$ac_ext
10411 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10412 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10413 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 cat >conftest.$ac_ext <<_ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_fc_werror_flag"
10434 || test ! -s conftest.err'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest.$ac_objext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_compiler_gnu=yes
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10457 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10458 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10459 ac_ext=$ac_save_ext
10460 ac_test_FFLAGS=${FCFLAGS+set}
10461 ac_save_FFLAGS=$FCFLAGS
10463 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10464 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10465 if test "${ac_cv_prog_fc_g+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 cat >conftest.$ac_ext <<_ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_fc_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_prog_fc_g=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10506 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10507 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10508 if test "$ac_test_FFLAGS" = set; then
10509 FCFLAGS=$ac_save_FFLAGS
10510 elif test $ac_cv_prog_fc_g = yes; then
10511 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10517 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10530 if test -z "$FC" || test "X$FC" = "Xno"; then
10536 ac_ext=${FC_SRCEXT-f}
10537 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10538 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10542 archive_cmds_need_lc_FC=no
10543 allow_undefined_flag_FC=
10544 always_export_symbols_FC=no
10545 archive_expsym_cmds_FC=
10546 export_dynamic_flag_spec_FC=
10547 hardcode_direct_FC=no
10548 hardcode_direct_absolute_FC=no
10549 hardcode_libdir_flag_spec_FC=
10550 hardcode_libdir_flag_spec_ld_FC=
10551 hardcode_libdir_separator_FC=
10552 hardcode_minus_L_FC=no
10553 hardcode_automatic_FC=no
10554 inherit_rpath_FC=no
10556 module_expsym_cmds_FC=
10557 link_all_deplibs_FC=unknown
10558 old_archive_cmds_FC=$old_archive_cmds
10559 no_undefined_flag_FC=
10560 whole_archive_flag_spec_FC=
10561 enable_shared_with_static_runtimes_FC=no
10563 # Source file extension for fc test sources.
10564 ac_ext=${ac_fc_srcext-f}
10566 # Object file extension for compiled fc test sources.
10570 # No sense in running all these tests if we already determined that
10571 # the FC compiler isn't working. Some variables (like enable_shared)
10572 # are currently assumed to apply to all compilers on this platform,
10573 # and will be corrupted by setting them based on a non-working compiler.
10574 if test "$_lt_disable_FC" != yes; then
10575 # Code to be used in simple compile tests
10576 lt_simple_compile_test_code="\
10582 # Code to be used in simple link tests
10583 lt_simple_link_test_code="\
10588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10595 # If no C compiler was specified, use CC.
10598 # If no C compiler flags were specified, use CFLAGS.
10599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10601 # Allow CC to be a program name with arguments.
10605 # save warnings/boilerplate of simple test code
10606 ac_outfile=conftest.$ac_objext
10607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10609 _lt_compiler_boilerplate=`cat conftest.err`
10612 ac_outfile=conftest.$ac_objext
10613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10615 _lt_linker_boilerplate=`cat conftest.err`
10619 # Allow CC to be a program name with arguments.
10624 for cc_temp in $compiler""; do
10626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10632 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10635 if test -n "$compiler"; then
10636 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10637 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10638 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10639 echo "${ECHO_T}$can_build_shared" >&6
10641 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10642 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10643 test "$can_build_shared" = "no" && enable_shared=no
10645 # On AIX, shared libraries and static libraries use the same namespace, and
10646 # are all built from PIC.
10649 test "$enable_shared" = yes && enable_static=no
10650 if test -n "$RANLIB"; then
10651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10652 postinstall_cmds='$RANLIB $lib'
10656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10657 test "$enable_shared" = yes && enable_static=no
10661 echo "$as_me:$LINENO: result: $enable_shared" >&5
10662 echo "${ECHO_T}$enable_shared" >&6
10664 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10665 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10666 # Make sure either enable_shared or enable_static is yes.
10667 test "$enable_shared" = yes || enable_static=yes
10668 echo "$as_me:$LINENO: result: $enable_static" >&5
10669 echo "${ECHO_T}$enable_static" >&6
10671 GCC_FC="$ac_cv_fc_compiler_gnu"
10675 ## There is no encapsulation within the following macros, do not change
10676 ## the running order or otherwise move them around unless you know exactly
10677 ## what you are doing...
10678 # Dependencies to place before and after the object being linked:
10680 postdep_objects_FC=
10683 compiler_lib_search_path_FC=
10685 cat > conftest.$ac_ext <<_LT_EOF
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; then
10699 # Parse the compiler output and extract the necessary
10700 # objects, libraries and library flags.
10702 # Sentinel used to keep track of whether or not we are before
10703 # the conftest object file.
10704 pre_test_object_deps_done=no
10706 # The `*' in the case matches for architectures that use `case' in
10707 # $output_verbose_cmd can trigger glob expansion during the loop
10708 # eval without this substitution.
10709 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10711 for p in `eval $output_verbose_link_cmd`; do
10715 # Some compilers place space between "-{L,R}" and the path.
10716 # Remove the space.
10717 if test $p = "-L" ||
10718 test $p = "-R"; then
10725 if test "$pre_test_object_deps_done" = no; then
10728 # Internal compiler library paths should come after those
10729 # provided the user. The postdeps already come after the
10730 # user supplied libs so there is no need to process them.
10731 if test -z "$compiler_lib_search_path_FC"; then
10732 compiler_lib_search_path_FC="${prev}${p}"
10734 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10737 # The "-l" case would never come before the object being
10738 # linked, so don't bother handling this case.
10741 if test -z "$postdeps_FC"; then
10742 postdeps_FC="${prev}${p}"
10744 postdeps_FC="${postdeps_FC} ${prev}${p}"
10750 # This assumes that the test object file only shows up
10751 # once in the compiler output.
10752 if test "$p" = "conftest.$objext"; then
10753 pre_test_object_deps_done=yes
10757 if test "$pre_test_object_deps_done" = no; then
10758 if test -z "$predep_objects_FC"; then
10759 predep_objects_FC="$p"
10761 predep_objects_FC="$predep_objects_FC $p"
10764 if test -z "$postdep_objects_FC"; then
10765 postdep_objects_FC="$p"
10767 postdep_objects_FC="$postdep_objects_FC $p"
10772 *) ;; # Ignore the rest.
10780 echo "libtool.m4: error: problem compiling FC test program"
10783 $RM -f confest.$objext
10785 # PORTME: override above test on systems where it is broken
10788 case " $postdeps_FC " in
10789 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10817 lt_prog_compiler_wl_FC=
10818 lt_prog_compiler_pic_FC=
10819 lt_prog_compiler_static_FC=
10821 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10822 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10824 if test "$GCC" = yes; then
10825 lt_prog_compiler_wl_FC='-Wl,'
10826 lt_prog_compiler_static_FC='-static'
10830 # All AIX code is PIC.
10831 if test "$host_cpu" = ia64; then
10832 # AIX 5 now supports IA64 processor
10833 lt_prog_compiler_static_FC='-Bstatic'
10838 if test "$host_cpu" = m68k; then
10839 # FIXME: we need at least 68020 code to build shared libraries, but
10840 # adding the `-m68020' flag to GCC prevents building anything better,
10842 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10847 # PIC is the default for these OSes.
10850 mingw* | cygwin* | pw32* | os2*)
10851 # This hack is so that the source file can tell whether it is being
10852 # built for inclusion in a dll (and should export symbols for example).
10853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10854 # (--disable-auto-import) libraries
10855 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10858 darwin* | rhapsody*)
10859 # PIC is the default on this platform
10860 # Common symbols not allowed in MH_DYLIB files
10861 lt_prog_compiler_pic_FC='-fno-common'
10865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10866 # not for PA HP-UX.
10872 lt_prog_compiler_pic_FC='-fPIC'
10878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10879 # Instead, we relocate shared libraries at runtime.
10883 # Just because we use GCC doesn't mean we suddenly get shared libraries
10884 # on systems that don't support them.
10885 lt_prog_compiler_can_build_shared_FC=no
10890 # QNX uses GNU C++, but need to define -shared option too, otherwise
10891 # it will coredump.
10892 lt_prog_compiler_pic_FC='-fPIC -shared'
10896 if test -d /usr/nec; then
10897 lt_prog_compiler_pic_FC=-Kconform_pic
10902 lt_prog_compiler_pic_FC='-fPIC'
10906 # PORTME Check for flag to pass linker flags through the system compiler.
10909 lt_prog_compiler_wl_FC='-Wl,'
10910 if test "$host_cpu" = ia64; then
10911 # AIX 5 now supports IA64 processor
10912 lt_prog_compiler_static_FC='-Bstatic'
10914 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10918 # PIC is the default on this platform
10919 # Common symbols not allowed in MH_DYLIB files
10920 case $cc_basename in
10922 lt_prog_compiler_pic_FC='-qnocommon'
10923 lt_prog_compiler_wl_FC='-Wl,'
10928 mingw* | cygwin* | pw32* | os2*)
10929 # This hack is so that the source file can tell whether it is being
10930 # built for inclusion in a dll (and should export symbols for example).
10931 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10934 hpux9* | hpux10* | hpux11*)
10935 lt_prog_compiler_wl_FC='-Wl,'
10936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10937 # not for PA HP-UX.
10943 lt_prog_compiler_pic_FC='+Z'
10946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10947 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10950 irix5* | irix6* | nonstopux*)
10951 lt_prog_compiler_wl_FC='-Wl,'
10952 # PIC (with -KPIC) is the default.
10953 lt_prog_compiler_static_FC='-non_shared'
10956 linux* | k*bsd*-gnu)
10957 case $cc_basename in
10959 lt_prog_compiler_wl_FC='-Wl,'
10960 lt_prog_compiler_pic_FC='-KPIC'
10961 lt_prog_compiler_static_FC='-static'
10963 pgcc* | pgf77* | pgf90* | pgf95*)
10964 # Portland Group compilers (*not* the Pentium gcc compiler,
10965 # which looks to be a dead project)
10966 lt_prog_compiler_wl_FC='-Wl,'
10967 lt_prog_compiler_pic_FC='-fpic'
10968 lt_prog_compiler_static_FC='-Bstatic'
10971 lt_prog_compiler_wl_FC='-Wl,'
10972 # All Alpha code is PIC.
10973 lt_prog_compiler_static_FC='-non_shared'
10976 case `$CC -V 2>&1 | sed 5q` in
10979 lt_prog_compiler_pic_FC='-KPIC'
10980 lt_prog_compiler_static_FC='-Bstatic'
10981 lt_prog_compiler_wl_FC='-Wl,'
10984 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10985 lt_prog_compiler_pic_FC='-KPIC'
10986 lt_prog_compiler_static_FC='-Bstatic'
10987 lt_prog_compiler_wl_FC=''
10995 lt_prog_compiler_pic_FC='-KPIC'
10996 lt_prog_compiler_static_FC='-Bstatic'
11000 # QNX uses GNU C++, but need to define -shared option too, otherwise
11001 # it will coredump.
11002 lt_prog_compiler_pic_FC='-fPIC -shared'
11005 osf3* | osf4* | osf5*)
11006 lt_prog_compiler_wl_FC='-Wl,'
11007 # All OSF/1 code is PIC.
11008 lt_prog_compiler_static_FC='-non_shared'
11012 lt_prog_compiler_static_FC='-non_shared'
11016 lt_prog_compiler_pic_FC='-KPIC'
11017 lt_prog_compiler_static_FC='-Bstatic'
11018 case $cc_basename in
11019 f77* | f90* | f95*)
11020 lt_prog_compiler_wl_FC='-Qoption ld ';;
11022 lt_prog_compiler_wl_FC='-Wl,';;
11027 lt_prog_compiler_wl_FC='-Qoption ld '
11028 lt_prog_compiler_pic_FC='-PIC'
11029 lt_prog_compiler_static_FC='-Bstatic'
11032 sysv4 | sysv4.2uw2* | sysv4.3*)
11033 lt_prog_compiler_wl_FC='-Wl,'
11034 lt_prog_compiler_pic_FC='-KPIC'
11035 lt_prog_compiler_static_FC='-Bstatic'
11039 if test -d /usr/nec ;then
11040 lt_prog_compiler_pic_FC='-Kconform_pic'
11041 lt_prog_compiler_static_FC='-Bstatic'
11045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11046 lt_prog_compiler_wl_FC='-Wl,'
11047 lt_prog_compiler_pic_FC='-KPIC'
11048 lt_prog_compiler_static_FC='-Bstatic'
11052 lt_prog_compiler_wl_FC='-Wl,'
11053 lt_prog_compiler_can_build_shared_FC=no
11057 lt_prog_compiler_pic_FC='-pic'
11058 lt_prog_compiler_static_FC='-Bstatic'
11062 lt_prog_compiler_can_build_shared_FC=no
11068 # For platforms which do not support PIC, -DPIC is meaningless:
11070 lt_prog_compiler_pic_FC=
11073 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11076 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11077 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11082 # Check to make sure the PIC flag actually works.
11084 if test -n "$lt_prog_compiler_pic_FC"; then
11085 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11086 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11087 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 lt_prog_compiler_pic_works_FC=no
11091 ac_outfile=conftest.$ac_objext
11092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11093 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11094 # Insert the option either (1) after the last *FLAGS variable, or
11095 # (2) before a word containing "conftest.", or (3) at the end.
11096 # Note that $ac_compile itself does not contain backslashes and begins
11097 # with a dollar sign (not a hyphen), so the echo should work correctly.
11098 # The option is referenced via a variable to avoid confusing sed.
11099 lt_compile=`echo "$ac_compile" | $SED \
11100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102 -e 's:$: $lt_compiler_flag:'`
11103 (eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
11104 (eval "$lt_compile" 2>conftest.err)
11106 cat conftest.err >&5
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 if (exit $ac_status) && test -s "$ac_outfile"; then
11109 # The compiler can only warn and ignore the option if not recognized
11110 # So say no if there are warnings other than the usual output.
11111 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11114 lt_prog_compiler_pic_works_FC=yes
11120 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11121 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11123 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11124 case $lt_prog_compiler_pic_FC in
11126 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11129 lt_prog_compiler_pic_FC=
11130 lt_prog_compiler_can_build_shared_FC=no
11138 # Check to make sure the static flag actually works.
11140 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11141 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11142 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11143 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 lt_prog_compiler_static_works_FC=no
11147 save_LDFLAGS="$LDFLAGS"
11148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11151 # The linker can only warn and ignore the option if not recognized
11152 # So say no if there are warnings
11153 if test -s conftest.err; then
11154 # Append any errors to the config.log.
11155 cat conftest.err 1>&5
11156 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11158 if diff conftest.exp conftest.er2 >/dev/null; then
11159 lt_prog_compiler_static_works_FC=yes
11162 lt_prog_compiler_static_works_FC=yes
11166 LDFLAGS="$save_LDFLAGS"
11169 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11170 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11172 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11175 lt_prog_compiler_static_FC=
11181 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11182 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11183 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 lt_cv_prog_compiler_c_o_FC=no
11187 $RM -r conftest 2>/dev/null
11191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11193 lt_compiler_flag="-o out/conftest2.$ac_objext"
11194 # Insert the option either (1) after the last *FLAGS variable, or
11195 # (2) before a word containing "conftest.", or (3) at the end.
11196 # Note that $ac_compile itself does not contain backslashes and begins
11197 # with a dollar sign (not a hyphen), so the echo should work correctly.
11198 lt_compile=`echo "$ac_compile" | $SED \
11199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11201 -e 's:$: $lt_compiler_flag:'`
11202 (eval echo "\"\$as_me:11202: $lt_compile\"" >&5)
11203 (eval "$lt_compile" 2>out/conftest.err)
11205 cat out/conftest.err >&5
11206 echo "$as_me:11206: \$? = $ac_status" >&5
11207 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11209 # The compiler can only warn and ignore the option if not recognized
11210 # So say no if there are warnings
11211 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11212 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11213 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11214 lt_cv_prog_compiler_c_o_FC=yes
11219 # SGI C++ compiler will create directory out/ii_files/ for
11220 # template instantiation
11221 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11222 $RM out/* && rmdir out
11228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11229 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11233 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11234 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11235 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 lt_cv_prog_compiler_c_o_FC=no
11239 $RM -r conftest 2>/dev/null
11243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11245 lt_compiler_flag="-o out/conftest2.$ac_objext"
11246 # Insert the option either (1) after the last *FLAGS variable, or
11247 # (2) before a word containing "conftest.", or (3) at the end.
11248 # Note that $ac_compile itself does not contain backslashes and begins
11249 # with a dollar sign (not a hyphen), so the echo should work correctly.
11250 lt_compile=`echo "$ac_compile" | $SED \
11251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11253 -e 's:$: $lt_compiler_flag:'`
11254 (eval echo "\"\$as_me:11254: $lt_compile\"" >&5)
11255 (eval "$lt_compile" 2>out/conftest.err)
11257 cat out/conftest.err >&5
11258 echo "$as_me:11258: \$? = $ac_status" >&5
11259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11261 # The compiler can only warn and ignore the option if not recognized
11262 # So say no if there are warnings
11263 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11266 lt_cv_prog_compiler_c_o_FC=yes
11271 # SGI C++ compiler will create directory out/ii_files/ for
11272 # template instantiation
11273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11274 $RM out/* && rmdir out
11280 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11281 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11286 hard_links="nottested"
11287 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11288 # do not overwrite the value of need_locks provided by the user
11289 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11290 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11295 ln conftest.a conftest.b 2>&5 || hard_links=no
11296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11297 echo "$as_me:$LINENO: result: $hard_links" >&5
11298 echo "${ECHO_T}$hard_links" >&6
11299 if test "$hard_links" = no; then
11300 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11301 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11310 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11311 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11314 allow_undefined_flag_FC=
11315 always_export_symbols_FC=no
11317 archive_expsym_cmds_FC=
11318 compiler_needs_object_FC=no
11319 enable_shared_with_static_runtimes_FC=no
11320 export_dynamic_flag_spec_FC=
11321 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11322 hardcode_automatic_FC=no
11323 hardcode_direct_FC=no
11324 hardcode_direct_absolute_FC=no
11325 hardcode_libdir_flag_spec_FC=
11326 hardcode_libdir_flag_spec_ld_FC=
11327 hardcode_libdir_separator_FC=
11328 hardcode_minus_L_FC=no
11329 hardcode_shlibpath_var_FC=unsupported
11330 inherit_rpath_FC=no
11331 link_all_deplibs_FC=unknown
11333 module_expsym_cmds_FC=
11334 old_archive_from_new_cmds_FC=
11335 old_archive_from_expsyms_cmds_FC=
11336 thread_safe_flag_spec_FC=
11337 whole_archive_flag_spec_FC=
11338 # include_expsyms should be a list of space-separated symbols to be *always*
11339 # included in the symbol list
11340 include_expsyms_FC=
11341 # exclude_expsyms can be an extended regexp of symbols to exclude
11342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11344 # as well as any symbol that contains `d'.
11345 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11347 # platforms (ab)use it in PIC code, but their linkers get confused if
11348 # the symbol is explicitly referenced. Since portable code cannot
11349 # rely on this symbol name, it's probably fine to never include it in
11350 # preloaded symbol tables.
11351 extract_expsyms_cmds=
11354 cygwin* | mingw* | pw32*)
11355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11356 # When not using gcc, we currently assume that we are using
11357 # Microsoft Visual C++.
11358 if test "$GCC" != yes; then
11363 # we just hope/assume this is gcc and not c89 (= MSVC++)
11372 if test "$with_gnu_ld" = yes; then
11373 # If archive_cmds runs LD, not CC, wlarc should be empty
11376 # Set some defaults for GNU ld with shared library support. These
11377 # are reset later if shared libraries are not supported. Putting them
11378 # here allows them to be overridden if necessary.
11379 runpath_var=LD_RUN_PATH
11380 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11381 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11382 # ancient GNU ld didn't support --whole-archive et. al.
11383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11384 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11386 whole_archive_flag_spec_FC=
11388 supports_anon_versioning=no
11389 case `$LD -v 2>&1` in
11390 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11393 *\ 2.11.*) ;; # other 2.11 versions
11394 *) supports_anon_versioning=yes ;;
11397 # See if GNU ld supports shared libraries.
11400 # On AIX/PPC, the GNU linker is very broken
11401 if test "$host_cpu" != ia64; then
11405 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11406 *** to be unable to reliably create shared libraries on AIX.
11407 *** Therefore, libtool is disabling shared libraries support. If you
11408 *** really care for shared libraries, you may want to modify your PATH
11409 *** so that a non-GNU linker is found, and then restart.
11416 if test "$host_cpu" = m68k; then
11417 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)'
11418 hardcode_libdir_flag_spec_FC='-L$libdir'
11419 hardcode_minus_L_FC=yes
11422 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11423 # that the semantics of dynamic libraries on AmigaOS, at least up
11424 # to version 4, is to share data among multiple programs linked
11425 # with the same dynamic library. Since this doesn't match the
11426 # behavior of shared libraries on other platforms, we can't use
11432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11433 allow_undefined_flag_FC=unsupported
11434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11435 # support --undefined. This deserves some investigation. FIXME
11436 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442 cygwin* | mingw* | pw32*)
11443 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11444 # as there is no search path for DLLs.
11445 hardcode_libdir_flag_spec_FC='-L$libdir'
11446 allow_undefined_flag_FC=unsupported
11447 always_export_symbols_FC=no
11448 enable_shared_with_static_runtimes_FC=yes
11449 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11451 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11452 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11453 # If the export-symbols file already is a .def file (1st line
11454 # is EXPORTS), use it as is; otherwise, prepend...
11455 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11456 cp $export_symbols $output_objdir/$soname.def;
11458 echo EXPORTS > $output_objdir/$soname.def;
11459 cat $export_symbols >> $output_objdir/$soname.def;
11461 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11468 hardcode_direct_FC=no
11469 hardcode_shlibpath_var_FC=no
11470 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11471 export_dynamic_flag_spec_FC='${wl}-E'
11472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11473 # Instead, shared libraries are loaded at an image base (0x10000000 by
11474 # default) and relocated if they conflict, which is a slow very memory
11475 # consuming and fragmenting process. To avoid this, we pick a random,
11476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11477 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11478 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'
11479 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'
11482 gnu* | linux* | tpf* | k*bsd*-gnu)
11484 if test "$host_os" = linux-dietlibc; then
11485 case $cc_basename in
11486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11490 && test "$tmp_diet" = no
11493 case $cc_basename,$host_cpu in
11494 pgcc*) # Portland Group C compiler
11495 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'
11496 tmp_addflag=' $pic_flag'
11498 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11499 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'
11500 tmp_addflag=' $pic_flag -Mnomain' ;;
11501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11502 tmp_addflag=' -i_dynamic' ;;
11503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11504 tmp_addflag=' -i_dynamic -nofor_main' ;;
11505 ifc* | ifort*) # Intel Fortran compiler
11506 tmp_addflag=' -nofor_main' ;;
11508 case `$CC -V 2>&1 | sed 5q` in
11509 *Sun\ C*) # Sun C 5.9
11510 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'
11511 compiler_needs_object_FC=yes
11512 tmp_sharedflag='-G' ;;
11513 *Sun\ F*) # Sun Fortran 8.3
11514 tmp_sharedflag='-G' ;;
11516 tmp_sharedflag='-shared' ;;
11518 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520 if test "x$supports_anon_versioning" = xyes; then
11521 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11523 echo "local: *; };" >> $output_objdir/$libname.ver~
11524 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11533 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11536 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11537 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11542 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11547 *** create shared libraries on Solaris systems. Therefore, libtool
11548 *** is disabling shared libraries support. We urge you to upgrade GNU
11549 *** binutils to release 2.9.1 or newer. Another option is to modify
11550 *** your PATH or compiler configuration so that the native linker is
11551 *** used, and then restart.
11554 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11555 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11556 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11563 case `$LD -v 2>&1` in
11564 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11568 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11569 *** reliably create shared libraries on SCO systems. Therefore, libtool
11570 *** is disabling shared libraries support. We urge you to upgrade GNU
11571 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11572 *** your PATH or compiler configuration so that the native linker is
11573 *** used, and then restart.
11578 # For security reasons, it is highly recommended that you always
11579 # use absolute paths for naming shared libraries, and exclude the
11580 # DT_RUNPATH tag from executables and libraries. But doing so
11581 # requires that you compile everything twice, which is a pain.
11582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11583 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11584 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11594 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11596 hardcode_direct_FC=yes
11597 hardcode_shlibpath_var_FC=no
11601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
11610 if test "$ld_shlibs_FC" = no; then
11612 hardcode_libdir_flag_spec_FC=
11613 export_dynamic_flag_spec_FC=
11614 whole_archive_flag_spec_FC=
11617 # PORTME fill in a description of your system's linker (not GNU ld)
11620 allow_undefined_flag_FC=unsupported
11621 always_export_symbols_FC=yes
11622 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'
11623 # Note: this linker hardcodes the directories in LIBPATH if there
11624 # are no directories specified by -L.
11625 hardcode_minus_L_FC=yes
11626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11627 # Neither direct hardcoding nor static linking is supported with a
11629 hardcode_direct_FC=unsupported
11634 if test "$host_cpu" = ia64; then
11635 # On IA64, the linker does run time linking by default, so we don't
11636 # have to do anything special.
11637 aix_use_runtimelinking=no
11638 exp_sym_flag='-Bexport'
11641 # If we're using GNU nm, then we don't want the "-C" option.
11642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11644 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'
11646 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'
11648 aix_use_runtimelinking=no
11650 # Test if we are trying to use run time linking or normal
11651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11652 # need to do runtime linking.
11653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11654 for ld_flag in $LDFLAGS; do
11655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11656 aix_use_runtimelinking=yes
11663 exp_sym_flag='-bexport'
11664 no_entry_flag='-bnoentry'
11667 # When large executables or shared objects are built, AIX ld can
11668 # have problems creating the table of contents. If linking a library
11669 # or program results in "error TOC overflow" add -mminimal-toc to
11670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11674 hardcode_direct_FC=yes
11675 hardcode_direct_absolute_FC=yes
11676 hardcode_libdir_separator_FC=':'
11677 link_all_deplibs_FC=yes
11678 file_list_spec_FC='${wl}-f,'
11680 if test "$GCC" = yes; then
11681 case $host_os in aix4.[012]|aix4.[012].*)
11682 # We only want to do this on AIX 4.2 and lower, the check
11683 # below for broken collect2 doesn't work under 4.3+
11684 collect2name=`${CC} -print-prog-name=collect2`
11685 if test -f "$collect2name" &&
11686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11688 # We have reworked collect2
11691 # We have old collect2
11692 hardcode_direct_FC=unsupported
11693 # It fails to find uninstalled libraries when the uninstalled
11694 # path is not listed in the libpath. Setting hardcode_minus_L
11695 # to unsupported forces relinking
11696 hardcode_minus_L_FC=yes
11697 hardcode_libdir_flag_spec_FC='-L$libdir'
11698 hardcode_libdir_separator_FC=
11702 shared_flag='-shared'
11703 if test "$aix_use_runtimelinking" = yes; then
11704 shared_flag="$shared_flag "'${wl}-G'
11708 if test "$host_cpu" = ia64; then
11709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11710 # chokes on -Wl,-G. The following line is correct:
11713 if test "$aix_use_runtimelinking" = yes; then
11714 shared_flag='${wl}-G'
11716 shared_flag='${wl}-bM:SRE'
11721 # It seems that -bexpall does not export symbols beginning with
11722 # underscore (_), so it is better to generate a list of symbols to export.
11723 always_export_symbols_FC=yes
11724 if test "$aix_use_runtimelinking" = yes; then
11725 # Warning - without using the other runtime loading flags (-brtl),
11726 # -berok will link without error, but may produce a broken library.
11727 allow_undefined_flag_FC='-berok'
11728 # Determine the default libpath from the value encoded in an
11729 # empty executable.
11730 cat >conftest.$ac_ext <<_ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_fc_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11758 lt_aix_libpath_sed='
11759 /Import File Strings/,/^$/ {
11765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766 # Check for a 64-bit object if we didn't find anything.
11767 if test -z "$aix_libpath"; then
11768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11779 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11780 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"
11782 if test "$host_cpu" = ia64; then
11783 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11784 allow_undefined_flag_FC="-z nodefs"
11785 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"
11787 # Determine the default libpath from the value encoded in an
11788 # empty executable.
11789 cat >conftest.$ac_ext <<_ACEOF
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796 (eval $ac_link) 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_fc_werror_flag"
11804 || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11817 lt_aix_libpath_sed='
11818 /Import File Strings/,/^$/ {
11824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11825 # Check for a 64-bit object if we didn't find anything.
11826 if test -z "$aix_libpath"; then
11827 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11834 rm -f conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11838 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11839 # Warning - without using the other run time loading flags,
11840 # -berok will link without error, but may produce a broken library.
11841 no_undefined_flag_FC=' ${wl}-bernotok'
11842 allow_undefined_flag_FC=' ${wl}-berok'
11843 # Exported symbols can be pulled into shared objects from archives
11844 whole_archive_flag_spec_FC='$convenience'
11845 archive_cmds_need_lc_FC=yes
11846 # This is similar to how AIX traditionally builds its shared libraries.
11847 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'
11853 if test "$host_cpu" = m68k; then
11854 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)'
11855 hardcode_libdir_flag_spec_FC='-L$libdir'
11856 hardcode_minus_L_FC=yes
11858 # see comment about different semantics on the GNU ld section
11863 export_dynamic_flag_spec_FC=-rdynamic
11866 cygwin* | mingw* | pw32*)
11867 # When not using gcc, we currently assume that we are using
11868 # Microsoft Visual C++.
11869 # hardcode_libdir_flag_spec is actually meaningless, as there is
11870 # no search path for DLLs.
11871 hardcode_libdir_flag_spec_FC=' '
11872 allow_undefined_flag_FC=unsupported
11873 # Tell ltmain to make .lib files, not .a files.
11875 # Tell ltmain to make .dll files, not .so files.
11877 # FIXME: Setting linknames here is a bad hack.
11878 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11879 # The linker will automatically build a .lib file if we build a DLL.
11880 old_archive_from_new_cmds_FC='true'
11881 # FIXME: Should let the user specify the lib program.
11882 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11883 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11884 enable_shared_with_static_runtimes_FC=yes
11887 darwin* | rhapsody*)
11889 rhapsody* | darwin1.[012])
11890 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11893 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11895 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11898 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11903 archive_cmds_need_lc_FC=no
11904 hardcode_direct_FC=no
11905 hardcode_automatic_FC=yes
11906 hardcode_shlibpath_var_FC=unsupported
11907 whole_archive_flag_spec_FC=''
11908 link_all_deplibs_FC=yes
11909 if test "$GCC" = yes ; then
11910 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 lt_cv_apple_cc_single_mod=no
11914 if test -z "${LT_MULTI_MODULE}"; then
11915 # By default we will add the -single_module flag. You can override
11916 # by either setting the environment variable LT_MULTI_MODULE
11917 # non-empty at configure time, or by adding -multi-module to the
11919 echo "int foo(void){return 1;}" > conftest.c
11920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11921 -dynamiclib ${wl}-single_module conftest.c
11922 if test -f libconftest.dylib; then
11923 lt_cv_apple_cc_single_mod=yes
11924 rm libconftest.dylib
11926 rm conftest.$ac_ext
11930 output_verbose_link_cmd=echo
11931 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11932 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11933 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}'
11935 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11936 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}'
11938 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11939 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}'
11941 case $cc_basename in
11943 output_verbose_link_cmd=echo
11944 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11945 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11946 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11947 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}'
11948 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}'
11958 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11959 hardcode_libdir_flag_spec_FC='-L$libdir'
11960 hardcode_shlibpath_var_FC=no
11967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11968 # support. Future versions do this automatically, but an explicit c++rt0.o
11969 # does not break anything, and helps significantly (at the cost of a little
11972 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11973 hardcode_libdir_flag_spec_FC='-R$libdir'
11974 hardcode_direct_FC=yes
11975 hardcode_shlibpath_var_FC=no
11978 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11980 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11981 hardcode_direct_FC=yes
11982 hardcode_minus_L_FC=yes
11983 hardcode_shlibpath_var_FC=no
11986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11987 freebsd* | dragonfly*)
11988 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11989 hardcode_libdir_flag_spec_FC='-R$libdir'
11990 hardcode_direct_FC=yes
11991 hardcode_shlibpath_var_FC=no
11995 if test "$GCC" = yes; then
11996 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'
11998 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'
12000 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12001 hardcode_libdir_separator_FC=:
12002 hardcode_direct_FC=yes
12004 # hardcode_minus_L: Not really in the search PATH,
12005 # but as the default location of the library.
12006 hardcode_minus_L_FC=yes
12007 export_dynamic_flag_spec_FC='${wl}-E'
12011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12012 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12014 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12016 if test "$with_gnu_ld" = no; then
12017 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12018 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12019 hardcode_libdir_separator_FC=:
12020 hardcode_direct_FC=yes
12021 hardcode_direct_absolute_FC=yes
12022 export_dynamic_flag_spec_FC='${wl}-E'
12023 # hardcode_minus_L: Not really in the search PATH,
12024 # but as the default location of the library.
12025 hardcode_minus_L_FC=yes
12030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12033 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12036 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12039 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12045 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12048 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12051 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12055 if test "$with_gnu_ld" = no; then
12056 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12057 hardcode_libdir_separator_FC=:
12061 hardcode_direct_FC=no
12062 hardcode_shlibpath_var_FC=no
12065 hardcode_direct_FC=yes
12066 hardcode_direct_absolute_FC=yes
12067 export_dynamic_flag_spec_FC='${wl}-E'
12069 # hardcode_minus_L: Not really in the search PATH,
12070 # but as the default location of the library.
12071 hardcode_minus_L_FC=yes
12077 irix5* | irix6* | nonstopux*)
12078 if test "$GCC" = yes; then
12079 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'
12080 # Try to use the -exported_symbol ld option, if it does not
12081 # work, assume that -exports_file does not work either and
12082 # implicitly export all symbols.
12083 save_LDFLAGS="$LDFLAGS"
12084 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12085 cat >conftest.$ac_ext <<_ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_fc_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 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'
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12117 rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LDFLAGS="$save_LDFLAGS"
12121 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'
12122 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'
12124 archive_cmds_need_lc_FC='no'
12125 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12126 hardcode_libdir_separator_FC=:
12127 inherit_rpath_FC=yes
12128 link_all_deplibs_FC=yes
12132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12133 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12135 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12137 hardcode_libdir_flag_spec_FC='-R$libdir'
12138 hardcode_direct_FC=yes
12139 hardcode_shlibpath_var_FC=no
12143 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12144 hardcode_direct_FC=yes
12145 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12146 hardcode_libdir_separator_FC=:
12147 hardcode_shlibpath_var_FC=no
12154 hardcode_direct_FC=yes
12155 hardcode_shlibpath_var_FC=no
12156 hardcode_direct_absolute_FC=yes
12157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12158 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12159 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12160 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12161 export_dynamic_flag_spec_FC='${wl}-E'
12164 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12165 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12166 hardcode_libdir_flag_spec_FC='-R$libdir'
12169 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12170 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12177 hardcode_libdir_flag_spec_FC='-L$libdir'
12178 hardcode_minus_L_FC=yes
12179 allow_undefined_flag_FC=unsupported
12180 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'
12181 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12185 if test "$GCC" = yes; then
12186 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12187 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'
12189 allow_undefined_flag_FC=' -expect_unresolved \*'
12190 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'
12192 archive_cmds_need_lc_FC='no'
12193 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12194 hardcode_libdir_separator_FC=:
12197 osf4* | osf5*) # as osf3* with the addition of -msym flag
12198 if test "$GCC" = yes; then
12199 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12200 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'
12201 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12203 allow_undefined_flag_FC=' -expect_unresolved \*'
12204 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'
12205 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~
12206 $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'
12208 # Both c and cxx compiler support -rpath directly
12209 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12211 archive_cmds_need_lc_FC='no'
12212 hardcode_libdir_separator_FC=:
12216 no_undefined_flag_FC=' -z defs'
12217 if test "$GCC" = yes; then
12219 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12221 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12223 case `$CC -V 2>&1` in
12226 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12227 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12232 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12233 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12234 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12238 hardcode_libdir_flag_spec_FC='-R$libdir'
12239 hardcode_shlibpath_var_FC=no
12241 solaris2.[0-5] | solaris2.[0-5].*) ;;
12243 # The compiler driver will combine and reorder linker options,
12244 # but understands `-z linker_flag'. GCC discards it without `$wl',
12245 # but is careful enough not to reorder.
12246 # Supported since Solaris 2.6 (maybe 2.5.1?)
12247 if test "$GCC" = yes; then
12248 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12250 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12254 link_all_deplibs_FC=yes
12258 if test "x$host_vendor" = xsequent; then
12259 # Use $CC to link under sequent, because it throws in some extra .o
12260 # files that make .init and .fini sections work.
12261 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12263 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12265 hardcode_libdir_flag_spec_FC='-L$libdir'
12266 hardcode_direct_FC=yes
12267 hardcode_minus_L_FC=yes
12268 hardcode_shlibpath_var_FC=no
12272 case $host_vendor in
12274 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12275 hardcode_direct_FC=yes # is this really true???
12278 ## LD is ld it makes a PLAMLIB
12279 ## CC just makes a GrossModule.
12280 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12281 reload_cmds_FC='$CC -r -o $output$reload_objs'
12282 hardcode_direct_FC=no
12285 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12286 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12289 runpath_var='LD_RUN_PATH'
12290 hardcode_shlibpath_var_FC=no
12294 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12295 hardcode_shlibpath_var_FC=no
12296 export_dynamic_flag_spec_FC='-Bexport'
12300 if test -d /usr/nec; then
12301 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12302 hardcode_shlibpath_var_FC=no
12303 runpath_var=LD_RUN_PATH
12304 hardcode_runpath_var=yes
12309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12310 no_undefined_flag_FC='${wl}-z,text'
12311 archive_cmds_need_lc_FC=no
12312 hardcode_shlibpath_var_FC=no
12313 runpath_var='LD_RUN_PATH'
12315 if test "$GCC" = yes; then
12316 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12319 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12324 sysv5* | sco3.2v5* | sco5v6*)
12325 # Note: We can NOT use -z defs as we might desire, because we do not
12326 # link with -lc, and that would cause any symbols used from libc to
12327 # always be unresolved, which means just about no library would
12328 # ever link correctly. If we're not using GNU ld we use -z text
12329 # though, which does catch some bad symbols but isn't as heavy-handed
12331 no_undefined_flag_FC='${wl}-z,text'
12332 allow_undefined_flag_FC='${wl}-z,nodefs'
12333 archive_cmds_need_lc_FC=no
12334 hardcode_shlibpath_var_FC=no
12335 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12336 hardcode_libdir_separator_FC=':'
12337 link_all_deplibs_FC=yes
12338 export_dynamic_flag_spec_FC='${wl}-Bexport'
12339 runpath_var='LD_RUN_PATH'
12341 if test "$GCC" = yes; then
12342 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12345 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12346 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12351 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12352 hardcode_libdir_flag_spec_FC='-L$libdir'
12353 hardcode_shlibpath_var_FC=no
12361 if test x$host_vendor = xsni; then
12363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12364 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12370 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12371 echo "${ECHO_T}$ld_shlibs_FC" >&6
12372 test "$ld_shlibs_FC" = no && can_build_shared=no
12374 with_gnu_ld_FC=$with_gnu_ld
12382 # Do we need to explicitly link libc?
12384 case "x$archive_cmds_need_lc_FC" in
12386 # Assume -lc should be added
12387 archive_cmds_need_lc_FC=yes
12389 if test "$enable_shared" = yes && test "$GCC" = yes; then
12390 case $archive_cmds_FC in
12392 # FIXME: we may have to deal with multi-command sequences.
12395 # Test whether the compiler implicitly links with -lc since on some
12396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12397 # to ld, don't add -lc before -lgcc.
12398 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } 2>conftest.err; then
12410 libobjs=conftest.$ac_objext
12412 wl=$lt_prog_compiler_wl_FC
12413 pic_flag=$lt_prog_compiler_pic_FC
12419 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12420 allow_undefined_flag_FC=
12421 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12422 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }
12427 archive_cmds_need_lc_FC=no
12429 archive_cmds_need_lc_FC=yes
12431 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12433 cat conftest.err 1>&5
12436 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12437 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12509 withGCC=$ac_cv_fc_compiler_gnu
12510 library_names_spec=
12511 libname_spec='lib$name'
12515 postuninstall_cmds=
12519 shlibpath_overrides_runpath=unknown
12521 dynamic_linker="$host_os ld.so"
12522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12523 need_lib_prefix=unknown
12524 hardcode_into_libs=no
12526 # when you set need_version to no, make sure it does not cause -set_version
12527 # flags to be left without arguments
12528 need_version=unknown
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12534 shlibpath_var=LIBPATH
12536 # AIX 3 has no versioning support, so we append a major version to the name.
12537 soname_spec='${libname}${release}${shared_ext}$major'
12544 hardcode_into_libs=yes
12545 if test "$host_cpu" = ia64; then
12546 # AIX 5 supports IA64
12547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12548 shlibpath_var=LD_LIBRARY_PATH
12550 # With GCC up to 2.95.x, collect2 would create an import file
12551 # for dependence libraries. The import file would start with
12552 # the line `#! .'. This would cause the generated library to
12553 # depend on `.', always an invalid library. This was fixed in
12554 # development snapshots of GCC prior to 3.0.
12556 aix4 | aix4.[01] | aix4.[01].*)
12557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12562 can_build_shared=no
12566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12567 # soname into executable. Probably we can add versioning support to
12568 # collect2, so additional links can be useful in future.
12569 if test "$aix_use_runtimelinking" = yes; then
12570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12571 # instead of lib<name>.a to let people know that these are not
12572 # typical AIX shared libraries.
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12575 # We preserve .a as extension for shared libraries through AIX4.2
12576 # and later when we are not doing run time linking.
12577 library_names_spec='${libname}${release}.a $libname.a'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12580 shlibpath_var=LIBPATH
12585 if test "$host_cpu" = m68k; then
12586 library_names_spec='$libname.ixlibrary $libname.a'
12587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12588 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'
12595 library_names_spec='${libname}${shared_ext}'
12596 dynamic_linker="$host_os ld.so"
12597 shlibpath_var=LIBRARY_PATH
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12609 # the default ld.so.conf also contains /usr/contrib/lib and
12610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12611 # libtool to hard-code these into programs
12614 cygwin* | mingw* | pw32*)
12615 version_type=windows
12620 case $withGCC,$host_os in
12621 yes,cygwin* | yes,mingw* | yes,pw32*)
12622 library_names_spec='$libname.dll.a'
12623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12624 postinstall_cmds='base_file=`basename \${file}`~
12625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12626 dldir=$destdir/`dirname \$dlpath`~
12627 test -d \$dldir || mkdir -p \$dldir~
12628 $install_prog $dir/$dlname \$dldir/$dlname~
12629 chmod a+x \$dldir/$dlname~
12630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12634 dlpath=$dir/\$dldll~
12636 shlibpath_overrides_runpath=yes
12640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12645 # MinGW DLLs use traditional 'lib' prefix
12646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12647 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12648 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12649 # It is most probably a Windows format PATH printed by
12650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12651 # path with ; separators, and with drive letters. We can handle the
12652 # drive letters (cygwin fileutils understands them), so leave them,
12653 # especially as we might pass files found there to a mingw objdump,
12654 # which wouldn't understand a cygwinified path. Ahh.
12655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12661 # pw32 DLLs use 'pw' prefix rather than 'lib'
12662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12671 dynamic_linker='Win32 ld.exe'
12672 # FIXME: first we should search . and the directory the executable is in
12676 darwin* | rhapsody*)
12677 dynamic_linker="$host_os dyld"
12678 version_type=darwin
12681 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12682 soname_spec='${libname}${release}${major}$shared_ext'
12683 shlibpath_overrides_runpath=yes
12684 shlibpath_var=DYLD_LIBRARY_PATH
12685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 shlibpath_var=LD_LIBRARY_PATH
12703 freebsd* | dragonfly*)
12704 # DragonFly does not have aout. When/if they implement a new
12705 # versioning mechanism, adjust this.
12706 if test -x /usr/bin/objformat; then
12707 objformat=`/usr/bin/objformat`
12710 freebsd[123]*) objformat=aout ;;
12711 *) objformat=elf ;;
12714 version_type=freebsd-$objformat
12715 case $version_type in
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12726 shlibpath_var=LD_LIBRARY_PATH
12729 shlibpath_overrides_runpath=yes
12731 freebsd3.[01]* | freebsdelf3.[01]*)
12732 shlibpath_overrides_runpath=yes
12733 hardcode_into_libs=yes
12735 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12736 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12737 shlibpath_overrides_runpath=no
12738 hardcode_into_libs=yes
12740 *) # from 4.6 on, and DragonFly
12741 shlibpath_overrides_runpath=yes
12742 hardcode_into_libs=yes
12751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12752 soname_spec='${libname}${release}${shared_ext}$major'
12753 shlibpath_var=LD_LIBRARY_PATH
12754 hardcode_into_libs=yes
12757 hpux9* | hpux10* | hpux11*)
12758 # Give a soname corresponding to the major version so that dld.sl refuses to
12759 # link against other versions.
12766 hardcode_into_libs=yes
12767 dynamic_linker="$host_os dld.so"
12768 shlibpath_var=LD_LIBRARY_PATH
12769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771 soname_spec='${libname}${release}${shared_ext}$major'
12772 if test "X$HPUX_IA64_MODE" = X32; then
12773 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12781 hardcode_into_libs=yes
12782 dynamic_linker="$host_os dld.sl"
12783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12792 dynamic_linker="$host_os dld.sl"
12793 shlibpath_var=SHLIB_PATH
12794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796 soname_spec='${libname}${release}${shared_ext}$major'
12799 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12800 postinstall_cmds='chmod 555 $lib'
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12810 shlibpath_var=LD_LIBRARY_PATH
12811 shlibpath_overrides_runpath=no
12812 hardcode_into_libs=yes
12815 irix5* | irix6* | nonstopux*)
12817 nonstopux*) version_type=nonstopux ;;
12819 if test "$lt_cv_prog_gnu_ld" = yes; then
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12830 irix5* | nonstopux*)
12831 libsuff= shlibsuff=
12834 case $LD in # libtool.m4 will add one of these switches to LD
12835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12836 libsuff= shlibsuff= libmagic=32-bit;;
12837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12838 libsuff=32 shlibsuff=N32 libmagic=N32;;
12839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12841 *) libsuff= shlibsuff= libmagic=never-match;;
12845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12846 shlibpath_overrides_runpath=no
12847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12849 hardcode_into_libs=yes
12852 # No shared lib support for Linux oldld, aout, or coff.
12853 linux*oldld* | linux*aout* | linux*coff*)
12857 # This must be Linux ELF.
12858 linux* | k*bsd*-gnu)
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12863 soname_spec='${libname}${release}${shared_ext}$major'
12864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 shlibpath_overrides_runpath=no
12867 # Some binutils ld are patched to set DT_RUNPATH
12868 save_LDFLAGS=$LDFLAGS
12869 save_libdir=$libdir
12870 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12871 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12872 cat >conftest.$ac_ext <<_ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12881 grep -v '^ *+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_fc_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12900 shlibpath_overrides_runpath=yes
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12908 rm -f conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LDFLAGS=$save_LDFLAGS
12911 libdir=$save_libdir
12913 # This implies no fast_install, which is unacceptable.
12914 # Some rework will be needed to allow for fast_install
12915 # before this can be enabled.
12916 hardcode_into_libs=yes
12918 # Append ld.so.conf contents to the search path
12919 if test -f /etc/ld.so.conf; then
12920 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' ' '`
12921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12924 # We used to test for /lib/ld.so.1 and disable shared libraries on
12925 # powerpc, because MkLinux only supported shared libraries with the
12926 # GNU dynamic linker. Since this was broken with cross compilers,
12927 # most powerpc-linux boxes support dynamic linking these days and
12928 # people can always --disable-shared, the test was removed, and we
12929 # assume the GNU/Linux dynamic linker is in use.
12930 dynamic_linker='GNU/Linux ld.so'
12937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12940 dynamic_linker='NetBSD (a.out) ld.so'
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 dynamic_linker='NetBSD ld.elf_so'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12948 hardcode_into_libs=yes
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 shlibpath_overrides_runpath=yes
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 shlibpath_overrides_runpath=no
12966 hardcode_into_libs=yes
12967 dynamic_linker='ldqnx.so'
12972 sys_lib_dlsearch_path_spec="/usr/lib"
12974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12977 *) need_version=no ;;
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12984 openbsd2.[89] | openbsd2.[89].*)
12985 shlibpath_overrides_runpath=no
12988 shlibpath_overrides_runpath=yes
12992 shlibpath_overrides_runpath=yes
12997 libname_spec='$name'
13000 library_names_spec='$libname${shared_ext} $libname.a'
13001 dynamic_linker='OS/2 ld.exe'
13002 shlibpath_var=LIBPATH
13005 osf3* | osf4* | osf5*)
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec='${libname}${release}${shared_ext}$major'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 hardcode_into_libs=yes
13029 # ldd complains unless libraries are executable
13030 postinstall_cmds='chmod +x $lib'
13035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13037 shlibpath_var=LD_LIBRARY_PATH
13038 shlibpath_overrides_runpath=yes
13039 if test "$with_gnu_ld" = yes; then
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 case $host_vendor in
13052 shlibpath_overrides_runpath=no
13054 runpath_var=LD_RUN_PATH
13062 shlibpath_overrides_runpath=no
13063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13069 if test -d /usr/nec ;then
13071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13072 soname_spec='$libname${shared_ext}.$major'
13073 shlibpath_var=LD_LIBRARY_PATH
13077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13078 version_type=freebsd-elf
13081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13082 soname_spec='${libname}${release}${shared_ext}$major'
13083 shlibpath_var=LD_LIBRARY_PATH
13084 shlibpath_overrides_runpath=yes
13085 hardcode_into_libs=yes
13086 if test "$with_gnu_ld" = yes; then
13087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13089 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13096 sys_lib_dlsearch_path_spec='/usr/lib'
13100 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13104 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=no
13107 hardcode_into_libs=yes
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13121 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13122 echo "${ECHO_T}$dynamic_linker" >&6
13123 test "$dynamic_linker" = no && can_build_shared=no
13125 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13126 if test "$GCC" = yes; then
13127 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13165 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13167 hardcode_action_FC=
13168 if test -n "$hardcode_libdir_flag_spec_FC" ||
13169 test -n "$runpath_var_FC" ||
13170 test "X$hardcode_automatic_FC" = "Xyes" ; then
13172 # We can hardcode non-existent directories.
13173 if test "$hardcode_direct_FC" != no &&
13174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13175 # have to relink, otherwise we might link with an installed library
13176 # when we should be linking with a yet-to-be-installed one
13177 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13178 test "$hardcode_minus_L_FC" != no; then
13179 # Linking always hardcodes the temporary library directory.
13180 hardcode_action_FC=relink
13182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13183 hardcode_action_FC=immediate
13186 # We cannot hardcode anything, or else we can only hardcode existing
13188 hardcode_action_FC=unsupported
13190 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13191 echo "${ECHO_T}$hardcode_action_FC" >&6
13193 if test "$hardcode_action_FC" = relink ||
13194 test "$inherit_rpath_FC" = yes; then
13195 # Fast installation is not supported
13196 enable_fast_install=no
13197 elif test "$shlibpath_overrides_runpath" = yes ||
13198 test "$enable_shared" = no; then
13199 # Fast installation is not necessary
13200 enable_fast_install=needless
13209 fi # test -n "$compiler"
13212 fi # test "$_lt_disable_FC" != yes
13215 ac_cpp='$CPP $CPPFLAGS'
13216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221 FCFLAGS="$FCFLAGS -Wall"
13223 # For libtool versioning info, format is CURRENT:REVISION:AGE
13224 libtool_VERSION=1:0:0
13227 # Check header files.
13228 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13230 if test "${ac_cv_header_stdc+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 cat >conftest.$ac_ext <<_ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include <stdlib.h>
13240 #include <stdarg.h>
13241 #include <string.h>
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_header_stdc=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_cv_header_stdc=no
13281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 if test $ac_cv_header_stdc = yes; then
13284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <string.h>
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295 $EGREP "memchr" >/dev/null 2>&1; then
13298 ac_cv_header_stdc=no
13304 if test $ac_cv_header_stdc = yes; then
13305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <stdlib.h>
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "free" >/dev/null 2>&1; then
13319 ac_cv_header_stdc=no
13325 if test $ac_cv_header_stdc = yes; then
13326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13327 if test "$cross_compiling" = yes; then
13330 cat >conftest.$ac_ext <<_ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13337 #if ((' ' & 0x0FF) == 0x020)
13338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13341 # define ISLOWER(c) \
13342 (('a' <= (c) && (c) <= 'i') \
13343 || ('j' <= (c) && (c) <= 'r') \
13344 || ('s' <= (c) && (c) <= 'z'))
13345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13353 for (i = 0; i < 256; i++)
13354 if (XOR (islower (i), ISLOWER (i))
13355 || toupper (i) != TOUPPER (i))
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13373 echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 ( exit $ac_status )
13378 ac_cv_header_stdc=no
13380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13385 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13386 if test $ac_cv_header_stdc = yes; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13394 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13396 if test "${ac_cv_header_time+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <sys/types.h>
13406 #include <sys/time.h>
13412 if ((struct tm *) 0)
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_header_time=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 ac_cv_header_time=no
13447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13450 echo "${ECHO_T}$ac_cv_header_time" >&6
13451 if test $ac_cv_header_time = yes; then
13453 cat >>confdefs.h <<\_ACEOF
13454 #define TIME_WITH_SYS_TIME 1
13459 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13460 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13461 if test "${gcc_cv_header_string+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 cat >conftest.$ac_ext <<_ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13470 #include <string.h>
13471 #include <strings.h>
13480 rm -f conftest.$ac_objext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482 (eval $ac_compile) 2>conftest.er1
13484 grep -v '^ *+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag"
13490 || test ! -s conftest.err'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest.$ac_objext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 gcc_cv_header_string=yes
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 gcc_cv_header_string=no
13509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13511 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13512 echo "${ECHO_T}$gcc_cv_header_string" >&6
13513 if test $gcc_cv_header_string = yes; then
13515 cat >>confdefs.h <<\_ACEOF
13516 #define STRING_WITH_STRINGS 1
13525 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13529 echo "$as_me:$LINENO: checking for $ac_header" >&5
13530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13537 # Is the header compilable?
13538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 #include <$ac_header>
13549 rm -f conftest.$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>conftest.er1
13553 grep -v '^ *+' conftest.er1 >conftest.err
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -z "$ac_c_werror_flag"
13559 || test ! -s conftest.err'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest.$ac_objext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_header_compiler=yes
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 ac_header_compiler=no
13578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13580 echo "${ECHO_T}$ac_header_compiler" >&6
13582 # Is the header present?
13583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <$ac_header>
13593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } >/dev/null; then
13601 if test -s conftest.err; then
13602 ac_cpp_err=$ac_c_preproc_warn_flag
13603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13610 if test -z "$ac_cpp_err"; then
13611 ac_header_preproc=yes
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 ac_header_preproc=no
13618 rm -f conftest.err conftest.$ac_ext
13619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13620 echo "${ECHO_T}$ac_header_preproc" >&6
13622 # So? What about this header?
13623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13629 ac_header_preproc=yes
13632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13646 ## ----------------------------------------------------- ##
13647 ## Report this to the GNU OpenMP Runtime Library lists. ##
13648 ## ----------------------------------------------------- ##
13651 sed "s/^/$as_me: WARNING: /" >&2
13654 echo "$as_me:$LINENO: checking for $ac_header" >&5
13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 eval "$as_ac_Header=\$ac_header_preproc"
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13666 cat >>confdefs.h <<_ACEOF
13667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13679 acx_cv_header_stdint=stddef.h
13680 acx_cv_header_stdint_kind="(already complete)"
13681 for i in stdint.h $inttype_headers; do
13682 unset ac_cv_type_uintptr_t
13683 unset ac_cv_type_uintmax_t
13684 unset ac_cv_type_int_least32_t
13685 unset ac_cv_type_int_fast32_t
13686 unset ac_cv_type_uint64_t
13687 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13688 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13689 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13690 if test "${ac_cv_type_uintmax_t+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 cat >conftest.$ac_ext <<_ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 #include <sys/types.h>
13705 if ((uintmax_t *) 0)
13707 if (sizeof (uintmax_t))
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag"
13723 || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_type_uintmax_t=yes
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_cv_type_uintmax_t=no
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13744 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13745 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13746 if test $ac_cv_type_uintmax_t = yes; then
13747 acx_cv_header_stdint=$i
13752 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13753 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13754 if test "${ac_cv_type_uintptr_t+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <sys/types.h>
13769 if ((uintptr_t *) 0)
13771 if (sizeof (uintptr_t))
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_type_uintptr_t=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_type_uintptr_t=no
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13808 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13809 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13810 if test $ac_cv_type_uintptr_t = yes; then
13813 acx_cv_header_stdint_kind="(mostly complete)"
13816 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13817 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13818 if test "${ac_cv_type_int_least32_t+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <sys/types.h>
13833 if ((int_least32_t *) 0)
13835 if (sizeof (int_least32_t))
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>conftest.er1
13845 grep -v '^ *+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_c_werror_flag"
13851 || test ! -s conftest.err'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest.$ac_objext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_type_int_least32_t=yes
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13868 ac_cv_type_int_least32_t=no
13870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13872 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13873 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13874 if test $ac_cv_type_int_least32_t = yes; then
13877 acx_cv_header_stdint_kind="(mostly complete)"
13880 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13881 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13882 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 cat >conftest.$ac_ext <<_ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 #include <sys/types.h>
13897 if ((int_fast32_t *) 0)
13899 if (sizeof (int_fast32_t))
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_type_int_fast32_t=yes
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_cv_type_int_fast32_t=no
13934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13936 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13937 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13938 if test $ac_cv_type_int_fast32_t = yes; then
13941 acx_cv_header_stdint_kind="(mostly complete)"
13944 echo "$as_me:$LINENO: checking for uint64_t" >&5
13945 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13946 if test "${ac_cv_type_uint64_t+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 cat >conftest.$ac_ext <<_ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <sys/types.h>
13961 if ((uint64_t *) 0)
13963 if (sizeof (uint64_t))
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971 (eval $ac_compile) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag"
13979 || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_type_uint64_t=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_type_uint64_t=no
13998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14000 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14001 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14002 if test $ac_cv_type_uint64_t = yes; then
14005 acx_cv_header_stdint_kind="(lacks uint64_t)"
14010 if test "$acx_cv_header_stdint" = stddef.h; then
14011 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14012 for i in stdint.h $inttype_headers; do
14013 unset ac_cv_type_uintptr_t
14014 unset ac_cv_type_uint32_t
14015 unset ac_cv_type_uint64_t
14016 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14017 echo "$as_me:$LINENO: checking for uint32_t" >&5
14018 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14019 if test "${ac_cv_type_uint32_t+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 #include <sys/types.h>
14034 if ((uint32_t *) 0)
14036 if (sizeof (uint32_t))
14042 rm -f conftest.$ac_objext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest.$ac_objext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_type_uint32_t=yes
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_cv_type_uint32_t=no
14071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14073 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14074 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14075 if test $ac_cv_type_uint32_t = yes; then
14076 acx_cv_header_stdint=$i
14081 echo "$as_me:$LINENO: checking for uint64_t" >&5
14082 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14083 if test "${ac_cv_type_uint64_t+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 cat >conftest.$ac_ext <<_ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 #include <sys/types.h>
14098 if ((uint64_t *) 0)
14100 if (sizeof (uint64_t))
14106 rm -f conftest.$ac_objext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>conftest.er1
14110 grep -v '^ *+' conftest.er1 >conftest.err
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_c_werror_flag"
14116 || test ! -s conftest.err'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest.$ac_objext'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_type_uint64_t=yes
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_cv_type_uint64_t=no
14135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14137 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14138 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14140 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14141 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14142 if test "${ac_cv_type_uintptr_t+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <sys/types.h>
14157 if ((uintptr_t *) 0)
14159 if (sizeof (uintptr_t))
14165 rm -f conftest.$ac_objext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>conftest.er1
14169 grep -v '^ *+' conftest.er1 >conftest.err
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -z "$ac_c_werror_flag"
14175 || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_type_uintptr_t=yes
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_type_uintptr_t=no
14194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14196 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14197 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14202 if test "$acx_cv_header_stdint" = stddef.h; then
14203 acx_cv_header_stdint_kind="(u_intXX_t style)"
14204 for i in sys/types.h $inttype_headers; do
14205 unset ac_cv_type_u_int32_t
14206 unset ac_cv_type_u_int64_t
14207 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14208 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14209 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14210 if test "${ac_cv_type_u_int32_t+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 cat >conftest.$ac_ext <<_ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <sys/types.h>
14225 if ((u_int32_t *) 0)
14227 if (sizeof (u_int32_t))
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235 (eval $ac_compile) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_type_u_int32_t=yes
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_type_u_int32_t=no
14262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14264 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14265 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14266 if test $ac_cv_type_u_int32_t = yes; then
14267 acx_cv_header_stdint=$i
14272 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14273 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14274 if test "${ac_cv_type_u_int64_t+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <sys/types.h>
14289 if ((u_int64_t *) 0)
14291 if (sizeof (u_int64_t))
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14301 grep -v '^ *+' conftest.er1 >conftest.err
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag"
14307 || test ! -s conftest.err'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest.$ac_objext'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_type_u_int64_t=yes
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_cv_type_u_int64_t=no
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14328 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14329 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14334 if test "$acx_cv_header_stdint" = stddef.h; then
14335 acx_cv_header_stdint_kind="(using manual detection)"
14338 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14339 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14340 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14341 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14342 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14344 # ----------------- Summarize what we found so far
14346 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14347 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14349 case `$as_basename gstdint.h ||
14350 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14351 Xgstdint.h : 'X\(//\)$' \| \
14352 Xgstdint.h : 'X\(/\)$' \| \
14353 . : '\(.\)' 2>/dev/null ||
14355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14356 /^X\/\(\/\/\)$/{ s//\1/; q; }
14357 /^X\/\(\/\).*/{ s//\1/; q; }
14359 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14360 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14361 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14362 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14366 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14367 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14369 # ----------------- done included file, check C basic types --------
14371 # Lacking an uintptr_t? Test size of void *
14372 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14373 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14374 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14375 if test "${ac_cv_type_void_p+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 $ac_includes_default
14390 if (sizeof (void *))
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14400 grep -v '^ *+' conftest.er1 >conftest.err
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_type_void_p=yes
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_type_void_p=no
14425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14427 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14428 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14430 echo "$as_me:$LINENO: checking size of void *" >&5
14431 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14432 if test "${ac_cv_sizeof_void_p+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 if test "$ac_cv_type_void_p" = yes; then
14436 # The cast to unsigned long works around a bug in the HP C Compiler
14437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14439 # This bug is HP SR number 8606223364.
14440 if test "$cross_compiling" = yes; then
14441 # Depending upon the size, compute the lo and hi bounds.
14442 cat >conftest.$ac_ext <<_ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14452 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14463 grep -v '^ *+' conftest.er1 >conftest.err
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -z "$ac_c_werror_flag"
14469 || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14483 cat >conftest.$ac_ext <<_ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 $ac_includes_default
14493 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>conftest.er1
14504 grep -v '^ *+' conftest.er1 >conftest.err
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag"
14510 || test ! -s conftest.err'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest.$ac_objext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_hi=$ac_mid; break
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 ac_lo=`expr $ac_mid + 1`
14528 if test $ac_lo -le $ac_mid; then
14532 ac_mid=`expr 2 '*' $ac_mid + 1`
14534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 $ac_includes_default
14550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>conftest.er1
14561 grep -v '^ *+' conftest.er1 >conftest.err
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14591 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14598 rm -f conftest.$ac_objext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14600 (eval $ac_compile) 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag"
14608 || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_lo=$ac_mid; break
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_hi=`expr '(' $ac_mid ')' - 1`
14626 if test $ac_mid -le $ac_hi; then
14630 ac_mid=`expr 2 '*' $ac_mid`
14632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 # Binary search between lo and hi bounds.
14644 while test "x$ac_lo" != "x$ac_hi"; do
14645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 $ac_includes_default
14656 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14667 grep -v '^ *+' conftest.er1 >conftest.err
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_lo=`expr '(' $ac_mid ')' + 1`
14692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14695 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14696 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14697 See \`config.log' for more details." >&5
14698 echo "$as_me: error: cannot compute sizeof (void *), 77
14699 See \`config.log' for more details." >&2;}
14700 { (exit 1); exit 1; }; } ;;
14703 if test "$cross_compiling" = yes; then
14704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14705 See \`config.log' for more details." >&5
14706 echo "$as_me: error: cannot run test program while cross compiling
14707 See \`config.log' for more details." >&2;}
14708 { (exit 1); exit 1; }; }
14710 cat >conftest.$ac_ext <<_ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 $ac_includes_default
14717 long longval () { return (long) (sizeof (void *)); }
14718 unsigned long ulongval () { return (long) (sizeof (void *)); }
14720 #include <stdlib.h>
14725 FILE *f = fopen ("conftest.val", "w");
14728 if (((long) (sizeof (void *))) < 0)
14730 long i = longval ();
14731 if (i != ((long) (sizeof (void *))))
14733 fprintf (f, "%ld\n", i);
14737 unsigned long i = ulongval ();
14738 if (i != ((long) (sizeof (void *))))
14740 fprintf (f, "%lu\n", i);
14742 exit (ferror (f) || fclose (f) != 0);
14748 rm -f conftest$ac_exeext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14750 (eval $ac_link) 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_sizeof_void_p=`cat conftest.val`
14761 echo "$as_me: program exited with status $ac_status" >&5
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ( exit $ac_status )
14766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14767 See \`config.log' for more details." >&5
14768 echo "$as_me: error: cannot compute sizeof (void *), 77
14769 See \`config.log' for more details." >&2;}
14770 { (exit 1); exit 1; }; }
14772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14777 ac_cv_sizeof_void_p=0
14780 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14781 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14782 cat >>confdefs.h <<_ACEOF
14783 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14789 # Lacking an uint64_t? Test size of long
14790 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14791 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14792 echo $ECHO_N "checking for long... $ECHO_C" >&6
14793 if test "${ac_cv_type_long+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 cat >conftest.$ac_ext <<_ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802 $ac_includes_default
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_type_long=yes
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14846 echo "${ECHO_T}$ac_cv_type_long" >&6
14848 echo "$as_me:$LINENO: checking size of long" >&5
14849 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14850 if test "${ac_cv_sizeof_long+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 if test "$ac_cv_type_long" = yes; then
14854 # The cast to unsigned long works around a bug in the HP C Compiler
14855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14857 # This bug is HP SR number 8606223364.
14858 if test "$cross_compiling" = yes; then
14859 # Depending upon the size, compute the lo and hi bounds.
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 $ac_includes_default
14870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14877 rm -f conftest.$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879 (eval $ac_compile) 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag"
14887 || test ! -s conftest.err'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; } &&
14893 { ac_try='test -s conftest.$ac_objext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14901 cat >conftest.$ac_ext <<_ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14911 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_hi=$ac_mid; break
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_lo=`expr $ac_mid + 1`
14946 if test $ac_lo -le $ac_mid; then
14950 ac_mid=`expr 2 '*' $ac_mid + 1`
14952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14968 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14999 cat >conftest.$ac_ext <<_ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 $ac_includes_default
15009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15016 rm -f conftest.$ac_objext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15018 (eval $ac_compile) 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_lo=$ac_mid; break
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 ac_hi=`expr '(' $ac_mid ')' - 1`
15044 if test $ac_mid -le $ac_hi; then
15048 ac_mid=`expr 2 '*' $ac_mid`
15050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061 # Binary search between lo and hi bounds.
15062 while test "x$ac_lo" != "x$ac_hi"; do
15063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 $ac_includes_default
15074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15081 rm -f conftest.$ac_objext
15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083 (eval $ac_compile) 2>conftest.er1
15085 grep -v '^ *+' conftest.er1 >conftest.err
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag"
15091 || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 ac_lo=`expr '(' $ac_mid ')' + 1`
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113 ?*) ac_cv_sizeof_long=$ac_lo;;
15114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15115 See \`config.log' for more details." >&5
15116 echo "$as_me: error: cannot compute sizeof (long), 77
15117 See \`config.log' for more details." >&2;}
15118 { (exit 1); exit 1; }; } ;;
15121 if test "$cross_compiling" = yes; then
15122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15123 See \`config.log' for more details." >&5
15124 echo "$as_me: error: cannot run test program while cross compiling
15125 See \`config.log' for more details." >&2;}
15126 { (exit 1); exit 1; }; }
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 $ac_includes_default
15135 long longval () { return (long) (sizeof (long)); }
15136 unsigned long ulongval () { return (long) (sizeof (long)); }
15138 #include <stdlib.h>
15143 FILE *f = fopen ("conftest.val", "w");
15146 if (((long) (sizeof (long))) < 0)
15148 long i = longval ();
15149 if (i != ((long) (sizeof (long))))
15151 fprintf (f, "%ld\n", i);
15155 unsigned long i = ulongval ();
15156 if (i != ((long) (sizeof (long))))
15158 fprintf (f, "%lu\n", i);
15160 exit (ferror (f) || fclose (f) != 0);
15166 rm -f conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_sizeof_long=`cat conftest.val`
15179 echo "$as_me: program exited with status $ac_status" >&5
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ( exit $ac_status )
15184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15185 See \`config.log' for more details." >&5
15186 echo "$as_me: error: cannot compute sizeof (long), 77
15187 See \`config.log' for more details." >&2;}
15188 { (exit 1); exit 1; }; }
15190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15195 ac_cv_sizeof_long=0
15198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15199 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15200 cat >>confdefs.h <<_ACEOF
15201 #define SIZEOF_LONG $ac_cv_sizeof_long
15207 if test $acx_cv_header_stdint = stddef.h; then
15208 # Lacking a good header? Test size of everything and deduce all types.
15209 echo "$as_me:$LINENO: checking for int" >&5
15210 echo $ECHO_N "checking for int... $ECHO_C" >&6
15211 if test "${ac_cv_type_int+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 $ac_includes_default
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234 (eval $ac_compile) 2>conftest.er1
15236 grep -v '^ *+' conftest.er1 >conftest.err
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag"
15242 || test ! -s conftest.err'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15263 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15264 echo "${ECHO_T}$ac_cv_type_int" >&6
15266 echo "$as_me:$LINENO: checking size of int" >&5
15267 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15268 if test "${ac_cv_sizeof_int+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 if test "$ac_cv_type_int" = yes; then
15272 # The cast to unsigned long works around a bug in the HP C Compiler
15273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15275 # This bug is HP SR number 8606223364.
15276 if test "$cross_compiling" = yes; then
15277 # Depending upon the size, compute the lo and hi bounds.
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 $ac_includes_default
15288 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag"
15305 || test ! -s conftest.err'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try='test -s conftest.$ac_objext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 $ac_includes_default
15329 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15336 rm -f conftest.$ac_objext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15338 (eval $ac_compile) 2>conftest.er1
15340 grep -v '^ *+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag"
15346 || test ! -s conftest.err'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest.$ac_objext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_hi=$ac_mid; break
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_lo=`expr $ac_mid + 1`
15364 if test $ac_lo -le $ac_mid; then
15368 ac_mid=`expr 2 '*' $ac_mid + 1`
15370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 $ac_includes_default
15386 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15393 rm -f conftest.$ac_objext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15395 (eval $ac_compile) 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag"
15403 || test ! -s conftest.err'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest.$ac_objext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15427 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15434 rm -f conftest.$ac_objext
15435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15436 (eval $ac_compile) 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag"
15444 || test ! -s conftest.err'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_lo=$ac_mid; break
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_hi=`expr '(' $ac_mid ')' - 1`
15462 if test $ac_mid -le $ac_hi; then
15466 ac_mid=`expr 2 '*' $ac_mid`
15468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15479 # Binary search between lo and hi bounds.
15480 while test "x$ac_lo" != "x$ac_hi"; do
15481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 $ac_includes_default
15492 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15499 rm -f conftest.$ac_objext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501 (eval $ac_compile) 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag"
15509 || test ! -s conftest.err'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; } &&
15515 { ac_try='test -s conftest.$ac_objext'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_lo=`expr '(' $ac_mid ')' + 1`
15528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15531 ?*) ac_cv_sizeof_int=$ac_lo;;
15532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15533 See \`config.log' for more details." >&5
15534 echo "$as_me: error: cannot compute sizeof (int), 77
15535 See \`config.log' for more details." >&2;}
15536 { (exit 1); exit 1; }; } ;;
15539 if test "$cross_compiling" = yes; then
15540 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15541 See \`config.log' for more details." >&5
15542 echo "$as_me: error: cannot run test program while cross compiling
15543 See \`config.log' for more details." >&2;}
15544 { (exit 1); exit 1; }; }
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 $ac_includes_default
15553 long longval () { return (long) (sizeof (int)); }
15554 unsigned long ulongval () { return (long) (sizeof (int)); }
15556 #include <stdlib.h>
15561 FILE *f = fopen ("conftest.val", "w");
15564 if (((long) (sizeof (int))) < 0)
15566 long i = longval ();
15567 if (i != ((long) (sizeof (int))))
15569 fprintf (f, "%ld\n", i);
15573 unsigned long i = ulongval ();
15574 if (i != ((long) (sizeof (int))))
15576 fprintf (f, "%lu\n", i);
15578 exit (ferror (f) || fclose (f) != 0);
15584 rm -f conftest$ac_exeext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15586 (eval $ac_link) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_sizeof_int=`cat conftest.val`
15597 echo "$as_me: program exited with status $ac_status" >&5
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ( exit $ac_status )
15602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15603 See \`config.log' for more details." >&5
15604 echo "$as_me: error: cannot compute sizeof (int), 77
15605 See \`config.log' for more details." >&2;}
15606 { (exit 1); exit 1; }; }
15608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15617 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15618 cat >>confdefs.h <<_ACEOF
15619 #define SIZEOF_INT $ac_cv_sizeof_int
15623 echo "$as_me:$LINENO: checking for short" >&5
15624 echo $ECHO_N "checking for short... $ECHO_C" >&6
15625 if test "${ac_cv_type_short+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 cat >conftest.$ac_ext <<_ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 $ac_includes_default
15640 if (sizeof (short))
15646 rm -f conftest.$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_type_short=yes
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_cv_type_short=no
15675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15678 echo "${ECHO_T}$ac_cv_type_short" >&6
15680 echo "$as_me:$LINENO: checking size of short" >&5
15681 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15682 if test "${ac_cv_sizeof_short+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 if test "$ac_cv_type_short" = yes; then
15686 # The cast to unsigned long works around a bug in the HP C Compiler
15687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15689 # This bug is HP SR number 8606223364.
15690 if test "$cross_compiling" = yes; then
15691 # Depending upon the size, compute the lo and hi bounds.
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15702 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711 (eval $ac_compile) 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag"
15719 || test ! -s conftest.err'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15743 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15750 rm -f conftest.$ac_objext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>conftest.er1
15754 grep -v '^ *+' conftest.er1 >conftest.err
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag"
15760 || test ! -s conftest.err'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest.$ac_objext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_hi=$ac_mid; break
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 ac_lo=`expr $ac_mid + 1`
15778 if test $ac_lo -le $ac_mid; then
15782 ac_mid=`expr 2 '*' $ac_mid + 1`
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 cat >conftest.$ac_ext <<_ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 $ac_includes_default
15800 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15807 rm -f conftest.$ac_objext
15808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809 (eval $ac_compile) 2>conftest.er1
15811 grep -v '^ *+' conftest.er1 >conftest.err
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -z "$ac_c_werror_flag"
15817 || test ! -s conftest.err'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest.$ac_objext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15841 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15848 rm -f conftest.$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag"
15858 || test ! -s conftest.err'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_lo=$ac_mid; break
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_hi=`expr '(' $ac_mid ')' - 1`
15876 if test $ac_mid -le $ac_hi; then
15880 ac_mid=`expr 2 '*' $ac_mid`
15882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15893 # Binary search between lo and hi bounds.
15894 while test "x$ac_lo" != "x$ac_hi"; do
15895 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15896 cat >conftest.$ac_ext <<_ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 $ac_includes_default
15906 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15913 rm -f conftest.$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ac_lo=`expr '(' $ac_mid ')' + 1`
15942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15945 ?*) ac_cv_sizeof_short=$ac_lo;;
15946 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15947 See \`config.log' for more details." >&5
15948 echo "$as_me: error: cannot compute sizeof (short), 77
15949 See \`config.log' for more details." >&2;}
15950 { (exit 1); exit 1; }; } ;;
15953 if test "$cross_compiling" = yes; then
15954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15955 See \`config.log' for more details." >&5
15956 echo "$as_me: error: cannot run test program while cross compiling
15957 See \`config.log' for more details." >&2;}
15958 { (exit 1); exit 1; }; }
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 long longval () { return (long) (sizeof (short)); }
15968 unsigned long ulongval () { return (long) (sizeof (short)); }
15970 #include <stdlib.h>
15975 FILE *f = fopen ("conftest.val", "w");
15978 if (((long) (sizeof (short))) < 0)
15980 long i = longval ();
15981 if (i != ((long) (sizeof (short))))
15983 fprintf (f, "%ld\n", i);
15987 unsigned long i = ulongval ();
15988 if (i != ((long) (sizeof (short))))
15990 fprintf (f, "%lu\n", i);
15992 exit (ferror (f) || fclose (f) != 0);
15998 rm -f conftest$ac_exeext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000 (eval $ac_link) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_cv_sizeof_short=`cat conftest.val`
16011 echo "$as_me: program exited with status $ac_status" >&5
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ( exit $ac_status )
16016 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16017 See \`config.log' for more details." >&5
16018 echo "$as_me: error: cannot compute sizeof (short), 77
16019 See \`config.log' for more details." >&2;}
16020 { (exit 1); exit 1; }; }
16022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16027 ac_cv_sizeof_short=0
16030 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16031 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16032 cat >>confdefs.h <<_ACEOF
16033 #define SIZEOF_SHORT $ac_cv_sizeof_short
16037 echo "$as_me:$LINENO: checking for char" >&5
16038 echo $ECHO_N "checking for char... $ECHO_C" >&6
16039 if test "${ac_cv_type_char+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 cat >conftest.$ac_ext <<_ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 $ac_includes_default
16060 rm -f conftest.$ac_objext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16062 (eval $ac_compile) 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag"
16070 || test ! -s conftest.err'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest.$ac_objext'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }; then
16082 ac_cv_type_char=yes
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16091 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16092 echo "${ECHO_T}$ac_cv_type_char" >&6
16094 echo "$as_me:$LINENO: checking size of char" >&5
16095 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16096 if test "${ac_cv_sizeof_char+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 if test "$ac_cv_type_char" = yes; then
16100 # The cast to unsigned long works around a bug in the HP C Compiler
16101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16103 # This bug is HP SR number 8606223364.
16104 if test "$cross_compiling" = yes; then
16105 # Depending upon the size, compute the lo and hi bounds.
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 $ac_includes_default
16116 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16123 rm -f conftest.$ac_objext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125 (eval $ac_compile) 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag"
16133 || test ! -s conftest.err'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest.$ac_objext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 $ac_includes_default
16157 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16164 rm -f conftest.$ac_objext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>conftest.er1
16168 grep -v '^ *+' conftest.er1 >conftest.err
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -z "$ac_c_werror_flag"
16174 || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_hi=$ac_mid; break
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_lo=`expr $ac_mid + 1`
16192 if test $ac_lo -le $ac_mid; then
16196 ac_mid=`expr 2 '*' $ac_mid + 1`
16198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16214 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16255 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16262 rm -f conftest.$ac_objext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16264 (eval $ac_compile) 2>conftest.er1
16266 grep -v '^ *+' conftest.er1 >conftest.err
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -z "$ac_c_werror_flag"
16272 || test ! -s conftest.err'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 ac_lo=$ac_mid; break
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_hi=`expr '(' $ac_mid ')' - 1`
16290 if test $ac_mid -le $ac_hi; then
16294 ac_mid=`expr 2 '*' $ac_mid`
16296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16307 # Binary search between lo and hi bounds.
16308 while test "x$ac_lo" != "x$ac_hi"; do
16309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16310 cat >conftest.$ac_ext <<_ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 $ac_includes_default
16320 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16327 rm -f conftest.$ac_objext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>conftest.er1
16331 grep -v '^ *+' conftest.er1 >conftest.err
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag"
16337 || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try='test -s conftest.$ac_objext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ac_lo=`expr '(' $ac_mid ')' + 1`
16356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16359 ?*) ac_cv_sizeof_char=$ac_lo;;
16360 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16361 See \`config.log' for more details." >&5
16362 echo "$as_me: error: cannot compute sizeof (char), 77
16363 See \`config.log' for more details." >&2;}
16364 { (exit 1); exit 1; }; } ;;
16367 if test "$cross_compiling" = yes; then
16368 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16369 See \`config.log' for more details." >&5
16370 echo "$as_me: error: cannot run test program while cross compiling
16371 See \`config.log' for more details." >&2;}
16372 { (exit 1); exit 1; }; }
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 long longval () { return (long) (sizeof (char)); }
16382 unsigned long ulongval () { return (long) (sizeof (char)); }
16384 #include <stdlib.h>
16389 FILE *f = fopen ("conftest.val", "w");
16392 if (((long) (sizeof (char))) < 0)
16394 long i = longval ();
16395 if (i != ((long) (sizeof (char))))
16397 fprintf (f, "%ld\n", i);
16401 unsigned long i = ulongval ();
16402 if (i != ((long) (sizeof (char))))
16404 fprintf (f, "%lu\n", i);
16406 exit (ferror (f) || fclose (f) != 0);
16412 rm -f conftest$ac_exeext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414 (eval $ac_link) 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_sizeof_char=`cat conftest.val`
16425 echo "$as_me: program exited with status $ac_status" >&5
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ( exit $ac_status )
16430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16431 See \`config.log' for more details." >&5
16432 echo "$as_me: error: cannot compute sizeof (char), 77
16433 See \`config.log' for more details." >&2;}
16434 { (exit 1); exit 1; }; }
16436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16441 ac_cv_sizeof_char=0
16444 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16445 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16446 cat >>confdefs.h <<_ACEOF
16447 #define SIZEOF_CHAR $ac_cv_sizeof_char
16452 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16453 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16454 case "$ac_cv_sizeof_char" in
16455 1) acx_cv_type_int8_t=char ;;
16456 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16457 echo "$as_me: error: no 8-bit type" >&2;}
16458 { (exit please report a bug); exit please report a bug; }; }
16460 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16461 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16463 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16464 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16465 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16466 2:*) acx_cv_type_int16_t=int ;;
16467 *:2) acx_cv_type_int16_t=short ;;
16468 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16469 echo "$as_me: error: no 16-bit type" >&2;}
16470 { (exit please report a bug); exit please report a bug; }; }
16472 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16473 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16475 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16476 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16477 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16478 4:*) acx_cv_type_int32_t=int ;;
16479 *:4) acx_cv_type_int32_t=long ;;
16480 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16481 echo "$as_me: error: no 32-bit type" >&2;}
16482 { (exit please report a bug); exit please report a bug; }; }
16484 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16485 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16488 # These tests are here to make the output prettier
16490 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16491 case "$ac_cv_sizeof_long" in
16492 8) acx_cv_type_int64_t=long ;;
16494 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16495 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16496 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16497 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16500 # Now we can use the above types
16502 if test "$ac_cv_type_uintptr_t" != yes; then
16503 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16504 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16505 case $ac_cv_sizeof_void_p in
16506 2) acx_cv_type_intptr_t=int16_t ;;
16507 4) acx_cv_type_intptr_t=int32_t ;;
16508 8) acx_cv_type_intptr_t=int64_t ;;
16509 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16510 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16511 { (exit please report a bug); exit please report a bug; }; }
16513 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16514 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16517 # ----------------- done all checks, emit header -------------
16518 ac_config_commands="$ac_config_commands gstdint.h"
16523 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16524 # In case the pthread.h system header is not found, this test will fail.
16526 CFLAGS="$CFLAGS -pthread"
16527 cat >conftest.$ac_ext <<_ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 #include <pthread.h>
16534 void *g(void *d) { return NULL; }
16538 pthread_t t; pthread_create(&t,NULL,g,NULL);
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545 (eval $ac_link) 2>conftest.er1
16547 grep -v '^ *+' conftest.er1 >conftest.err
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 XPCFLAGS=" -Wc,-pthread"
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 #include <pthread.h>
16578 void *g(void *d) { return NULL; }
16582 pthread_t t; pthread_create(&t,NULL,g,NULL);
16587 rm -f conftest.$ac_objext conftest$ac_exeext
16588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16589 (eval $ac_link) 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag"
16597 || test ! -s conftest.err'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16615 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16616 { (exit 1); exit 1; }; }
16618 rm -f conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16621 rm -f conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16624 # Check for functions needed.
16627 for ac_func in getloadavg clock_gettime
16629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16630 echo "$as_me:$LINENO: checking for $ac_func" >&5
16631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16632 if eval "test \"\${$as_ac_var+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 cat >conftest.$ac_ext <<_ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16643 #define $ac_func innocuous_$ac_func
16645 /* System header to define __stub macros and hopefully few prototypes,
16646 which can conflict with char $ac_func (); below.
16647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16648 <limits.h> exists even on freestanding compilers. */
16651 # include <limits.h>
16653 # include <assert.h>
16658 /* Override any gcc2 internal prototype to avoid an error. */
16663 /* We use char because int might match the return type of a gcc2
16664 builtin and then its argument prototype would still apply. */
16666 /* The GNU C library defines this for functions which it implements
16667 to always fail with ENOSYS. Some functions are actually named
16668 something starting with __ and the normal name is an alias. */
16669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16672 char (*f) () = $ac_func;
16681 return f != $ac_func;
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>conftest.er1
16690 grep -v '^ *+' conftest.er1 >conftest.err
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag"
16696 || test ! -s conftest.err'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 eval "$as_ac_var=yes"
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 eval "$as_ac_var=no"
16715 rm -f conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16720 if test `eval echo '${'$as_ac_var'}'` = yes; then
16721 cat >>confdefs.h <<_ACEOF
16722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16729 # Check for broken semaphore implementation on darwin.
16730 # sem_init returns: sem_init error: Function not implemented.
16734 cat >>confdefs.h <<\_ACEOF
16735 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16741 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16742 if test "${enable_linux_futex+set}" = set; then
16743 enableval="$enable_linux_futex"
16745 case "$enableval" in
16747 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16748 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16749 { (exit 1); exit 1; }; } ;;
16753 enable_linux_futex=default
16758 case "$enable_linux_futex" in
16760 # If headers don't have gettid/futex syscalls definition, then
16761 # default to no, otherwise there will be compile time failures.
16762 # Otherwise, default to yes. If we don't detect we are
16763 # compiled/linked against NPTL and not cross-compiling, check
16764 # if programs are run by default against NPTL and if not, issue
16766 enable_linux_futex=no
16767 cat >conftest.$ac_ext <<_ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <sys/syscall.h>
16778 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16785 (eval $ac_link) 2>conftest.er1
16787 grep -v '^ *+' conftest.er1 >conftest.err
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest$ac_exeext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16806 LIBS="-lpthread $LIBS"
16807 cat >conftest.$ac_ext <<_ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 #ifndef _GNU_SOURCE
16814 #define _GNU_SOURCE 1
16816 #include <pthread.h>
16817 pthread_t th; void *status;
16821 pthread_tryjoin_np (th, &status);
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16848 enable_linux_futex=yes
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 if test x$cross_compiling = xno; then
16854 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16855 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16856 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16857 If so, please configure with --disable-linux-futex" >&5
16858 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16859 If so, please configure with --disable-linux-futex" >&2;}
16862 enable_linux_futex=yes
16864 rm -f conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16872 rm -f conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 #include <sys/syscall.h>
16887 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>conftest.er1
16896 grep -v '^ *+' conftest.er1 >conftest.err
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag"
16902 || test ! -s conftest.err'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16919 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16920 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16921 { (exit 1); exit 1; }; }
16923 rm -f conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16929 enable_linux_futex=no
16932 if test x$enable_linux_futex = xyes; then
16937 # Check for pthread_{,attr_}[sg]etaffinity_np.
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 #define _GNU_SOURCE
16945 #include <pthread.h>
16950 pthread_attr_t attr;
16951 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16952 if (CPU_ISSET (0, &cpuset))
16953 CPU_SET (1, &cpuset);
16955 CPU_ZERO (&cpuset);
16956 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16957 pthread_attr_init (&attr);
16958 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16959 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>conftest.er1
16968 grep -v '^ *+' conftest.er1 >conftest.err
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_PTHREAD_AFFINITY_NP 1
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16996 rm -f conftest.err conftest.$ac_objext \
16997 conftest$ac_exeext conftest.$ac_ext
16999 # At least for glibc, clock_gettime is in librt. But don't pull that
17000 # in if it still doesn't give us the function we want.
17001 if test $ac_cv_func_clock_gettime = no; then
17002 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17003 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17004 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 ac_check_lib_save_LIBS=$LIBS
17009 cat >conftest.$ac_ext <<_ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17016 /* Override any gcc2 internal prototype to avoid an error. */
17020 /* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17022 char clock_gettime ();
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_lib_rt_clock_gettime=yes
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_cv_lib_rt_clock_gettime=no
17060 rm -f conftest.err conftest.$ac_objext \
17061 conftest$ac_exeext conftest.$ac_ext
17062 LIBS=$ac_check_lib_save_LIBS
17064 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17065 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17066 if test $ac_cv_lib_rt_clock_gettime = yes; then
17069 cat >>confdefs.h <<\_ACEOF
17070 #define HAVE_CLOCK_GETTIME 1
17077 # See if we support thread-local storage.
17079 # Check whether --enable-tls or --disable-tls was given.
17080 if test "${enable_tls+set}" = set; then
17081 enableval="$enable_tls"
17083 case "$enableval" in
17085 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17086 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17087 { (exit 1); exit 1; }; } ;;
17094 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17095 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17096 if test "${gcc_cv_have_tls+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 if test "$cross_compiling" = yes; then
17101 cat >conftest.$ac_ext <<_ACEOF
17102 __thread int a; int b; int main() { return a = b; }
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 gcc_cv_have_tls=yes
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17133 rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17138 cat >conftest.$ac_ext <<_ACEOF
17139 __thread int a; int b; int main() { return a = b; }
17141 rm -f conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 chktls_save_LDFLAGS="$LDFLAGS"
17153 LDFLAGS="-static $LDFLAGS"
17154 cat >conftest.$ac_ext <<_ACEOF
17155 int main() { return 0; }
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17159 (eval $ac_link) 2>conftest.er1
17161 grep -v '^ *+' conftest.er1 >conftest.err
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag"
17167 || test ! -s conftest.err'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 if test "$cross_compiling" = yes; then
17180 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17181 See \`config.log' for more details." >&5
17182 echo "$as_me: error: cannot run test program while cross compiling
17183 See \`config.log' for more details." >&2;}
17184 { (exit 1); exit 1; }; }
17186 cat >conftest.$ac_ext <<_ACEOF
17187 __thread int a; int b; int main() { return a = b; }
17189 rm -f conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 gcc_cv_have_tls=yes
17202 echo "$as_me: program exited with status $ac_status" >&5
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 ( exit $ac_status )
17209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 gcc_cv_have_tls=yes
17217 rm -f conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LDFLAGS="$chktls_save_LDFLAGS"
17220 if test $gcc_cv_have_tls = yes; then
17221 chktls_save_CFLAGS="$CFLAGS"
17222 thread_CFLAGS=failed
17223 for flag in '' '-pthread' '-lpthread'; do
17224 CFLAGS="$flag $chktls_save_CFLAGS"
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <pthread.h>
17232 void *g(void *d) { return NULL; }
17236 pthread_t t; pthread_create(&t,NULL,g,NULL);
17241 rm -f conftest.$ac_objext conftest$ac_exeext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17243 (eval $ac_link) 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest$ac_exeext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 thread_CFLAGS="$flag"
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17269 rm -f conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 if test "X$thread_CFLAGS" != Xfailed; then
17275 CFLAGS="$chktls_save_CFLAGS"
17276 if test "X$thread_CFLAGS" != Xfailed; then
17277 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17278 if test "$cross_compiling" = yes; then
17279 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17280 See \`config.log' for more details." >&5
17281 echo "$as_me: error: cannot run test program while cross compiling
17282 See \`config.log' for more details." >&2;}
17283 { (exit 1); exit 1; }; }
17285 cat >conftest.$ac_ext <<_ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17291 #include <pthread.h>
17293 static int *a_in_other_thread;
17295 thread_func (void *arg)
17297 a_in_other_thread = &a;
17304 void *thread_retval;
17305 int *a_in_main_thread;
17306 if (pthread_create (&thread, (pthread_attr_t *)0,
17307 thread_func, (void *)0))
17309 a_in_main_thread = &a;
17310 if (pthread_join (thread, &thread_retval))
17312 return (a_in_other_thread == a_in_main_thread);
17317 rm -f conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 gcc_cv_have_tls=yes
17330 echo "$as_me: program exited with status $ac_status" >&5
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17334 ( exit $ac_status )
17337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17339 CFLAGS="$chktls_save_CFLAGS"
17343 echo "$as_me: program exited with status $ac_status" >&5
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ( exit $ac_status )
17350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17353 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17354 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17355 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17357 cat >>confdefs.h <<\_ACEOF
17363 # See what sort of export controls are availible.
17365 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17366 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17367 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 save_CFLAGS="$CFLAGS"
17372 CFLAGS="$CFLAGS -Werror"
17373 cat >conftest.$ac_ext <<_ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 void __attribute__((visibility("hidden"))) foo(void) { }
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390 (eval $ac_compile) 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest.$ac_objext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 libgomp_cv_have_attribute_visibility=yes
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 libgomp_cv_have_attribute_visibility=no
17417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17418 CFLAGS="$save_CFLAGS"
17420 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
17421 echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
17422 if test $libgomp_cv_have_attribute_visibility = yes; then
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_ATTRIBUTE_VISIBILITY 1
17430 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17431 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17432 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 save_CFLAGS="$CFLAGS"
17437 CFLAGS="$CFLAGS -Werror"
17438 cat >conftest.$ac_ext <<_ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 void __attribute__((dllexport)) foo(void) { }
17453 rm -f conftest.$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17457 grep -v '^ *+' conftest.er1 >conftest.err
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag"
17463 || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 libgomp_cv_have_attribute_dllexport=yes
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 libgomp_cv_have_attribute_dllexport=no
17482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17483 CFLAGS="$save_CFLAGS"
17485 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
17486 echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
17487 if test $libgomp_cv_have_attribute_dllexport = yes; then
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17495 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17496 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17497 if test "${libgomp_cv_have_attribute_alias+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17509 extern void bar(void) __attribute__((alias("foo")));
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17522 grep -v '^ *+' conftest.er1 >conftest.err
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 libgomp_cv_have_attribute_alias=yes
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 libgomp_cv_have_attribute_alias=no
17547 rm -f conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17550 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
17551 echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
17552 if test $libgomp_cv_have_attribute_alias = yes; then
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_ATTRIBUTE_ALIAS 1
17561 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17562 if test "${with_gnu_ld+set}" = set; then
17563 withval="$with_gnu_ld"
17564 test "$withval" = no || with_gnu_ld=yes
17569 if test "$GCC" = yes; then
17570 # Check if gcc -print-prog-name=ld gives a path.
17571 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17572 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17575 # gcc leaves a trailing carriage return which upsets mingw
17576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17581 # Accept absolute paths.
17583 re_direlt='/[^/][^/]*/\.\./'
17584 # Canonicalize the pathname of ld
17585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17589 test -z "$LD" && LD="$ac_prog"
17592 # If it fails, then pretend we aren't using GCC.
17596 # If it is relative, then search for the first ld in PATH.
17597 with_gnu_ld=unknown
17600 elif test "$with_gnu_ld" = yes; then
17601 echo "$as_me:$LINENO: checking for GNU ld" >&5
17602 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17604 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17605 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17607 if test "${lt_cv_path_LD+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 if test -z "$LD"; then
17611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17612 for ac_dir in $PATH; do
17614 test -z "$ac_dir" && ac_dir=.
17615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17616 lt_cv_path_LD="$ac_dir/$ac_prog"
17617 # Check to see if the program is GNU ld. I'd rather use --version,
17618 # but apparently some variants of GNU ld only accept -v.
17619 # Break only if it was the GNU/non-GNU ld that we prefer.
17620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17621 *GNU* | *'with BFD'*)
17622 test "$with_gnu_ld" != no && break
17625 test "$with_gnu_ld" != yes && break
17632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17636 LD="$lt_cv_path_LD"
17637 if test -n "$LD"; then
17638 echo "$as_me:$LINENO: result: $LD" >&5
17639 echo "${ECHO_T}$LD" >&6
17641 echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17644 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17645 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17646 { (exit 1); exit 1; }; }
17647 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17648 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17649 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17653 case `$LD -v 2>&1 </dev/null` in
17654 *GNU* | *'with BFD'*)
17655 lt_cv_prog_gnu_ld=yes
17658 lt_cv_prog_gnu_ld=no
17662 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17663 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17664 with_gnu_ld=$lt_cv_prog_gnu_ld
17672 # If we're not using GNU ld, then there's no point in even trying these
17673 # tests. Check for that first. We should have already tested for gld
17674 # by now (in libtool), but require it now just to be safe...
17675 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17676 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17680 # The name set by libtool depends on the version of libtool. Shame on us
17681 # for depending on an impl detail, but c'est la vie. Older versions used
17682 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17683 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17684 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17685 # set (hence we're using an older libtool), then set it.
17686 if test x${with_gnu_ld+set} != xset; then
17687 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17688 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17691 with_gnu_ld=$ac_cv_prog_gnu_ld
17695 # Start by getting the version number. I think the libtool test already
17696 # does some of this, but throws away the result.
17698 ldver=`$LD --version 2>/dev/null | head -1 | \
17699 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17701 libgomp_gnu_ld_version=`echo $ldver | \
17702 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17704 # Set --gc-sections.
17705 if test "$with_gnu_ld" = "notbroken"; then
17706 # GNU ld it is! Joy and bunny rabbits!
17708 # All these tests are for C++; save the language and the compiler flags.
17709 # Need to do this so that g++ won't try to link in libstdc++
17710 ac_test_CFLAGS="${CFLAGS+set}"
17711 ac_save_CFLAGS="$CFLAGS"
17712 CFLAGS='-x c++ -Wl,--gc-sections'
17714 # Check for -Wl,--gc-sections
17715 # XXX This test is broken at the moment, as symbols required for linking
17716 # are now in libsupc++ (not built yet). In addition, this test has
17717 # cored on solaris in the past. In addition, --gc-sections doesn't
17718 # really work at the moment (keeps on discarding used sections, first
17719 # .eh_frame and now some of the glibc sections for iconv).
17720 # Bzzzzt. Thanks for playing, maybe next time.
17721 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17722 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17723 if test "$cross_compiling" = yes; then
17724 ac_sectionLDflags=yes
17726 cat >conftest.$ac_ext <<_ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17741 rm -f conftest$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_sectionLDflags=yes
17754 echo "$as_me: program exited with status $ac_status" >&5
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 ( exit $ac_status )
17759 ac_sectionLDflags=no
17761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17763 if test "$ac_test_CFLAGS" = set; then
17764 CFLAGS="$ac_save_CFLAGS"
17766 # this is the suspicious part
17769 if test "$ac_sectionLDflags" = "yes"; then
17770 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17772 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17773 echo "${ECHO_T}$ac_sectionLDflags" >&6
17776 # Set linker optimization flags.
17777 if test x"$with_gnu_ld" = x"yes"; then
17778 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17786 # Check whether --enable-symvers or --disable-symvers was given.
17787 if test "${enable_symvers+set}" = set; then
17788 enableval="$enable_symvers"
17790 case "$enableval" in
17792 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17793 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17794 { (exit 1); exit 1; }; } ;;
17802 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17803 # don't know enough about $LD to do tricks...
17805 # FIXME The following test is too strict, in theory.
17806 if test $enable_shared = no ||
17808 test x$libgomp_gnu_ld_version = x; then
17812 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17813 if test $enable_symvers != no; then
17814 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17815 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17816 ac_save_CFLAGS="$CFLAGS"
17818 cat >conftest.$ac_ext <<_ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17833 rm -f conftest.$ac_objext conftest$ac_exeext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17835 (eval $ac_link) 2>conftest.er1
17837 grep -v '^ *+' conftest.er1 >conftest.err
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag"
17843 || test ! -s conftest.err'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest$ac_exeext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 libgomp_shared_libgcc=yes
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 libgomp_shared_libgcc=no
17862 rm -f conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864 CFLAGS="$ac_save_CFLAGS"
17865 if test $libgomp_shared_libgcc = no; then
17866 cat > conftest.c <<EOF
17867 int main (void) { return 0; }
17869 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17870 -shared -shared-libgcc -o conftest.so \
17871 conftest.c -v 2>&1 >/dev/null \
17872 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17873 rm -f conftest.c conftest.so
17874 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17875 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17895 grep -v '^ *+' conftest.er1 >conftest.err
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest$ac_exeext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 libgomp_shared_libgcc=yes
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17919 rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 CFLAGS="$ac_save_CFLAGS"
17924 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17925 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17928 # For GNU ld, we need at least this version. The format is described in
17929 # LIBGOMP_CHECK_LINKER_FEATURES above.
17930 libgomp_min_gnu_ld_version=21400
17931 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17933 # Check to see if unspecified "yes" value can win, given results above.
17934 # Change "yes" into either "no" or a style name.
17935 if test $enable_symvers = yes; then
17936 if test $with_gnu_ld = yes &&
17937 test $libgomp_shared_libgcc = yes;
17939 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17942 # The right tools, the right setup, but too old. Fallbacks?
17943 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17944 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17946 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17947 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17948 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17950 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17951 if test $libgomp_gnu_ld_version -ge 21200 ; then
17952 # Globbing fix is present, proper block support is not.
17953 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17954 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17958 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17959 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17964 # just fail for now
17965 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17966 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17968 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17970 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17971 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17972 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17979 if test $enable_symvers != no; then
17980 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17981 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17983 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17984 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17987 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17988 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17991 # Get target configury.
17992 . ${srcdir}/configure.tgt
17993 CFLAGS="$save_CFLAGS $XCFLAGS"
17995 # Check for __sync_val_compare_and_swap, but only after the target has
17996 # had a chance to set XCFLAGS.
17998 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17999 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
18000 if test "${libgomp_cv_have_sync_builtins+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18014 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>conftest.er1
18023 grep -v '^ *+' conftest.er1 >conftest.err
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_c_werror_flag"
18029 || test ! -s conftest.err'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 libgomp_cv_have_sync_builtins=yes
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 libgomp_cv_have_sync_builtins=no
18048 rm -f conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18051 echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18052 echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18053 if test $libgomp_cv_have_sync_builtins = yes; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE_SYNC_BUILTINS 1
18061 XCFLAGS="$XCFLAGS$XPCFLAGS"
18067 # Cleanup and exit.
18068 CFLAGS="$save_CFLAGS"
18069 cat >confcache <<\_ACEOF
18070 # This file is a shell script that caches the results of configure
18071 # tests run on this system so they can be shared between configure
18072 # scripts and configure runs, see configure's option --config-cache.
18073 # It is not useful on other systems. If it contains results you don't
18074 # want to keep, you may remove or edit it.
18076 # config.status only pays attention to the cache file if you give it
18077 # the --recheck option to rerun configure.
18079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18081 # following values.
18085 # The following way of writing the cache mishandles newlines in values,
18086 # but we know of no workaround that is simple, portable, and efficient.
18087 # So, don't put newlines in cache variables' values.
18088 # Ultrix sh set writes to stderr and can't be redirected directly,
18089 # and sets the high bit in the cache file unless we assign to the vars.
18092 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18094 # `set' does not quote correctly, so add quotes (double-quote
18095 # substitution turns \\\\ into \\, and sed turns \\ into \).
18098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18101 # `set' quotes correctly as required by POSIX, so do not add quotes.
18103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18112 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18114 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18115 if test -w $cache_file; then
18116 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18117 cat confcache >$cache_file
18119 echo "not updating unwritable cache $cache_file"
18124 if test ${multilib} = yes; then
18125 multilib_arg="--enable-multilib"
18130 # Set up the set of libraries that we need to link against for libgomp.
18131 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18132 # which will force linkage against -lpthread (or equivalent for the system).
18133 # That's not 100% ideal, but about the best we can do easily.
18134 if test $enable_shared = yes; then
18135 link_gomp="-lgomp %{static: $LIBS}"
18137 link_gomp="-lgomp $LIBS"
18143 if test "$ac_cv_fc_compiler_gnu" = yes; then
18145 USE_FORTRAN_FALSE='#'
18147 USE_FORTRAN_TRUE='#'
18152 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18153 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18154 # the underscore here and update the PREREQ. If it doesn't, then we'll
18155 # need to copy this macro to our acinclude.m4.
18156 save_CFLAGS="$CFLAGS"
18157 for i in $config_path; do
18158 if test -f $srcdir/config/$i/omp-lock.h; then
18159 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18164 if test "$cross_compiling" = yes; then
18165 # Depending upon the size, compute the lo and hi bounds.
18166 cat >conftest.$ac_ext <<_ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18176 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18183 rm -f conftest.$ac_objext
18184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18185 (eval $ac_compile) 2>conftest.er1
18187 grep -v '^ *+' conftest.er1 >conftest.err
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
18192 { ac_try='test -z "$ac_c_werror_flag"
18193 || test ! -s conftest.err'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18207 cat >conftest.$ac_ext <<_ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18217 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18224 rm -f conftest.$ac_objext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18226 (eval $ac_compile) 2>conftest.er1
18228 grep -v '^ *+' conftest.er1 >conftest.err
18230 cat conftest.err >&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
18233 { ac_try='test -z "$ac_c_werror_flag"
18234 || test ! -s conftest.err'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest.$ac_objext'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 ac_hi=$ac_mid; break
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_lo=`expr $ac_mid + 1`
18252 if test $ac_lo -le $ac_mid; then
18256 ac_mid=`expr 2 '*' $ac_mid + 1`
18258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18264 cat >conftest.$ac_ext <<_ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18274 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18281 rm -f conftest.$ac_objext
18282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18283 (eval $ac_compile) 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_c_werror_flag"
18291 || test ! -s conftest.err'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest.$ac_objext'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18305 cat >conftest.$ac_ext <<_ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18315 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18322 rm -f conftest.$ac_objext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18324 (eval $ac_compile) 2>conftest.er1
18326 grep -v '^ *+' conftest.er1 >conftest.err
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag"
18332 || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest.$ac_objext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_lo=$ac_mid; break
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 ac_hi=`expr '(' $ac_mid ')' - 1`
18350 if test $ac_mid -le $ac_hi; then
18354 ac_mid=`expr 2 '*' $ac_mid`
18356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 # Binary search between lo and hi bounds.
18368 while test "x$ac_lo" != "x$ac_hi"; do
18369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18380 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18387 rm -f conftest.$ac_objext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18389 (eval $ac_compile) 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_lo=`expr '(' $ac_mid ')' + 1`
18416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18419 ?*) OMP_LOCK_SIZE=$ac_lo;;
18420 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18421 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18422 { (exit 1); exit 1; }; } ;;
18425 if test "$cross_compiling" = yes; then
18426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18427 See \`config.log' for more details." >&5
18428 echo "$as_me: error: cannot run test program while cross compiling
18429 See \`config.log' for more details." >&2;}
18430 { (exit 1); exit 1; }; }
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18439 long longval () { return sizeof (omp_lock_t); }
18440 unsigned long ulongval () { return sizeof (omp_lock_t); }
18442 #include <stdlib.h>
18447 FILE *f = fopen ("conftest.val", "w");
18450 if ((sizeof (omp_lock_t)) < 0)
18452 long i = longval ();
18453 if (i != (sizeof (omp_lock_t)))
18455 fprintf (f, "%ld\n", i);
18459 unsigned long i = ulongval ();
18460 if (i != (sizeof (omp_lock_t)))
18462 fprintf (f, "%lu\n", i);
18464 exit (ferror (f) || fclose (f) != 0);
18470 rm -f conftest$ac_exeext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18472 (eval $ac_link) 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 OMP_LOCK_SIZE=`cat conftest.val`
18483 echo "$as_me: program exited with status $ac_status" >&5
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ( exit $ac_status )
18488 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18489 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18490 { (exit 1); exit 1; }; }
18492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18496 if test "$cross_compiling" = yes; then
18497 # Depending upon the size, compute the lo and hi bounds.
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18508 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18519 grep -v '^ *+' conftest.er1 >conftest.err
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag"
18525 || test ! -s conftest.err'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18539 cat >conftest.$ac_ext <<_ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18549 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18556 rm -f conftest.$ac_objext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18558 (eval $ac_compile) 2>conftest.er1
18560 grep -v '^ *+' conftest.er1 >conftest.err
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
18565 { ac_try='test -z "$ac_c_werror_flag"
18566 || test ! -s conftest.err'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_hi=$ac_mid; break
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_lo=`expr $ac_mid + 1`
18584 if test $ac_lo -le $ac_mid; then
18588 ac_mid=`expr 2 '*' $ac_mid + 1`
18590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18606 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18613 rm -f conftest.$ac_objext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18647 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18654 rm -f conftest.$ac_objext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18656 (eval $ac_compile) 2>conftest.er1
18658 grep -v '^ *+' conftest.er1 >conftest.err
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -z "$ac_c_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_lo=$ac_mid; break
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_hi=`expr '(' $ac_mid ')' - 1`
18682 if test $ac_mid -le $ac_hi; then
18686 ac_mid=`expr 2 '*' $ac_mid`
18688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18699 # Binary search between lo and hi bounds.
18700 while test "x$ac_lo" != "x$ac_hi"; do
18701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18712 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18719 rm -f conftest.$ac_objext
18720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18721 (eval $ac_compile) 2>conftest.er1
18723 grep -v '^ *+' conftest.er1 >conftest.err
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -z "$ac_c_werror_flag"
18729 || test ! -s conftest.err'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest.$ac_objext'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18743 echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18746 ac_lo=`expr '(' $ac_mid ')' + 1`
18748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18751 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18755 if test "$cross_compiling" = yes; then
18756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18757 See \`config.log' for more details." >&5
18758 echo "$as_me: error: cannot run test program while cross compiling
18759 See \`config.log' for more details." >&2;}
18760 { (exit 1); exit 1; }; }
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18769 long longval () { return __alignof (omp_lock_t); }
18770 unsigned long ulongval () { return __alignof (omp_lock_t); }
18772 #include <stdlib.h>
18777 FILE *f = fopen ("conftest.val", "w");
18780 if ((__alignof (omp_lock_t)) < 0)
18782 long i = longval ();
18783 if (i != (__alignof (omp_lock_t)))
18785 fprintf (f, "%ld\n", i);
18789 unsigned long i = ulongval ();
18790 if (i != (__alignof (omp_lock_t)))
18792 fprintf (f, "%lu\n", i);
18794 exit (ferror (f) || fclose (f) != 0);
18800 rm -f conftest$ac_exeext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18802 (eval $ac_link) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 OMP_LOCK_ALIGN=`cat conftest.val`
18813 echo "$as_me: program exited with status $ac_status" >&5
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18822 if test "$cross_compiling" = yes; then
18823 # Depending upon the size, compute the lo and hi bounds.
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18834 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest.$ac_objext'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18865 cat >conftest.$ac_ext <<_ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18875 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18882 rm -f conftest.$ac_objext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18884 (eval $ac_compile) 2>conftest.er1
18886 grep -v '^ *+' conftest.er1 >conftest.err
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag"
18892 || test ! -s conftest.err'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest.$ac_objext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_hi=$ac_mid; break
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_lo=`expr $ac_mid + 1`
18910 if test $ac_lo -le $ac_mid; then
18914 ac_mid=`expr 2 '*' $ac_mid + 1`
18916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18932 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18939 rm -f conftest.$ac_objext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18941 (eval $ac_compile) 2>conftest.er1
18943 grep -v '^ *+' conftest.er1 >conftest.err
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_c_werror_flag"
18949 || test ! -s conftest.err'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18963 cat >conftest.$ac_ext <<_ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18973 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18980 rm -f conftest.$ac_objext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>conftest.er1
18984 grep -v '^ *+' conftest.er1 >conftest.err
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_c_werror_flag"
18990 || test ! -s conftest.err'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_lo=$ac_mid; break
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_hi=`expr '(' $ac_mid ')' - 1`
19008 if test $ac_mid -le $ac_hi; then
19012 ac_mid=`expr 2 '*' $ac_mid`
19014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 # Binary search between lo and hi bounds.
19026 while test "x$ac_lo" != "x$ac_hi"; do
19027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_lo=`expr '(' $ac_mid ')' + 1`
19074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19077 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19081 if test "$cross_compiling" = yes; then
19082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19083 See \`config.log' for more details." >&5
19084 echo "$as_me: error: cannot run test program while cross compiling
19085 See \`config.log' for more details." >&2;}
19086 { (exit 1); exit 1; }; }
19088 cat >conftest.$ac_ext <<_ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19095 long longval () { return sizeof (omp_nest_lock_t); }
19096 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19098 #include <stdlib.h>
19103 FILE *f = fopen ("conftest.val", "w");
19106 if ((sizeof (omp_nest_lock_t)) < 0)
19108 long i = longval ();
19109 if (i != (sizeof (omp_nest_lock_t)))
19111 fprintf (f, "%ld\n", i);
19115 unsigned long i = ulongval ();
19116 if (i != (sizeof (omp_nest_lock_t)))
19118 fprintf (f, "%lu\n", i);
19120 exit (ferror (f) || fclose (f) != 0);
19126 rm -f conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128 (eval $ac_link) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19139 echo "$as_me: program exited with status $ac_status" >&5
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19148 if test "$cross_compiling" = yes; then
19149 # Depending upon the size, compute the lo and hi bounds.
19150 cat >conftest.$ac_ext <<_ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19160 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19167 rm -f conftest.$ac_objext
19168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19169 (eval $ac_compile) 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_c_werror_flag"
19177 || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try='test -s conftest.$ac_objext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19191 cat >conftest.$ac_ext <<_ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19201 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19208 rm -f conftest.$ac_objext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19210 (eval $ac_compile) 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_hi=$ac_mid; break
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_lo=`expr $ac_mid + 1`
19236 if test $ac_lo -le $ac_mid; then
19240 ac_mid=`expr 2 '*' $ac_mid + 1`
19242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19258 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19265 rm -f conftest.$ac_objext
19266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19267 (eval $ac_compile) 2>conftest.er1
19269 grep -v '^ *+' conftest.er1 >conftest.err
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag"
19275 || test ! -s conftest.err'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; } &&
19281 { ac_try='test -s conftest.$ac_objext'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19299 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19306 rm -f conftest.$ac_objext
19307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19308 (eval $ac_compile) 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_c_werror_flag"
19316 || test ! -s conftest.err'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_lo=$ac_mid; break
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ac_hi=`expr '(' $ac_mid ')' - 1`
19334 if test $ac_mid -le $ac_hi; then
19338 ac_mid=`expr 2 '*' $ac_mid`
19340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351 # Binary search between lo and hi bounds.
19352 while test "x$ac_lo" != "x$ac_hi"; do
19353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19354 cat >conftest.$ac_ext <<_ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19364 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_lo=`expr '(' $ac_mid ')' + 1`
19400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19403 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19407 if test "$cross_compiling" = yes; then
19408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19409 See \`config.log' for more details." >&5
19410 echo "$as_me: error: cannot run test program while cross compiling
19411 See \`config.log' for more details." >&2;}
19412 { (exit 1); exit 1; }; }
19414 cat >conftest.$ac_ext <<_ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19421 long longval () { return __alignof (omp_nest_lock_t); }
19422 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19424 #include <stdlib.h>
19429 FILE *f = fopen ("conftest.val", "w");
19432 if ((__alignof (omp_nest_lock_t)) < 0)
19434 long i = longval ();
19435 if (i != (__alignof (omp_nest_lock_t)))
19437 fprintf (f, "%ld\n", i);
19441 unsigned long i = ulongval ();
19442 if (i != (__alignof (omp_nest_lock_t)))
19444 fprintf (f, "%lu\n", i);
19446 exit (ferror (f) || fclose (f) != 0);
19452 rm -f conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19465 echo "$as_me: program exited with status $ac_status" >&5
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19475 # If the lock fits in an integer, then arrange for Fortran to use that
19476 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19477 # Except that we don't have a way at present to multi-lib the installed
19478 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19480 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19481 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19482 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19485 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19486 OMP_NEST_LOCK_KIND=8
19495 CFLAGS="$save_CFLAGS"
19497 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19499 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19501 cat >confcache <<\_ACEOF
19502 # This file is a shell script that caches the results of configure
19503 # tests run on this system so they can be shared between configure
19504 # scripts and configure runs, see configure's option --config-cache.
19505 # It is not useful on other systems. If it contains results you don't
19506 # want to keep, you may remove or edit it.
19508 # config.status only pays attention to the cache file if you give it
19509 # the --recheck option to rerun configure.
19511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19513 # following values.
19517 # The following way of writing the cache mishandles newlines in values,
19518 # but we know of no workaround that is simple, portable, and efficient.
19519 # So, don't put newlines in cache variables' values.
19520 # Ultrix sh set writes to stderr and can't be redirected directly,
19521 # and sets the high bit in the cache file unless we assign to the vars.
19524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19526 # `set' does not quote correctly, so add quotes (double-quote
19527 # substitution turns \\\\ into \\, and sed turns \\ into \).
19530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19533 # `set' quotes correctly as required by POSIX, so do not add quotes.
19535 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19544 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19546 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19547 if test -w $cache_file; then
19548 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19549 cat confcache >$cache_file
19551 echo "not updating unwritable cache $cache_file"
19556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19557 # Let make expand exec_prefix.
19558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19562 # trailing colons and then remove the whole line if VPATH becomes empty
19563 # (actually we leave an empty line to preserve line numbers).
19564 if test "x$srcdir" = x.; then
19565 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19566 s/:*\$(srcdir):*/:/;
19567 s/:*\${srcdir}:*/:/;
19569 s/^\([^=]*=[ ]*\):*/\1/;
19575 DEFS=-DHAVE_CONFIG_H
19579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19580 # 1. Remove the extension, and $U if already installed.
19581 ac_i=`echo "$ac_i" |
19582 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19584 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19585 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19587 LIBOBJS=$ac_libobjs
19589 LTLIBOBJS=$ac_ltlibobjs
19592 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19593 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19594 Usually this means the macro was only invoked conditionally." >&5
19595 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19596 Usually this means the macro was only invoked conditionally." >&2;}
19597 { (exit 1); exit 1; }; }
19599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19600 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19601 Usually this means the macro was only invoked conditionally." >&5
19602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19603 Usually this means the macro was only invoked conditionally." >&2;}
19604 { (exit 1); exit 1; }; }
19606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19608 Usually this means the macro was only invoked conditionally." >&5
19609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19610 Usually this means the macro was only invoked conditionally." >&2;}
19611 { (exit 1); exit 1; }; }
19613 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19614 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19615 Usually this means the macro was only invoked conditionally." >&5
19616 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19617 Usually this means the macro was only invoked conditionally." >&2;}
19618 { (exit 1); exit 1; }; }
19620 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19621 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19622 Usually this means the macro was only invoked conditionally." >&5
19623 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19624 Usually this means the macro was only invoked conditionally." >&2;}
19625 { (exit 1); exit 1; }; }
19627 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19628 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19629 Usually this means the macro was only invoked conditionally." >&5
19630 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19631 Usually this means the macro was only invoked conditionally." >&2;}
19632 { (exit 1); exit 1; }; }
19634 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19635 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19636 Usually this means the macro was only invoked conditionally." >&5
19637 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19638 Usually this means the macro was only invoked conditionally." >&2;}
19639 { (exit 1); exit 1; }; }
19642 : ${CONFIG_STATUS=./config.status}
19643 ac_clean_files_save=$ac_clean_files
19644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19647 cat >$CONFIG_STATUS <<_ACEOF
19649 # Generated by $as_me.
19650 # Run this file to recreate the current configuration.
19651 # Compiler output produced by configure, useful for debugging
19652 # configure, is in config.log if it exists.
19655 ac_cs_recheck=false
19657 SHELL=\${CONFIG_SHELL-$SHELL}
19660 cat >>$CONFIG_STATUS <<\_ACEOF
19661 ## --------------------- ##
19662 ## M4sh Initialization. ##
19663 ## --------------------- ##
19665 # Be Bourne compatible
19666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19669 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19670 # is contrary to our usage. Disable this feature.
19671 alias -g '${1+"$@"}'='"$@"'
19672 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19675 DUALCASE=1; export DUALCASE # for MKS sh
19677 # Support unset when possible.
19678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19685 # Work around bugs in pre-3.0 UWIN ksh.
19686 $as_unset ENV MAIL MAILPATH
19693 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19694 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19695 LC_TELEPHONE LC_TIME
19697 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19698 eval $as_var=C; export $as_var
19704 # Required to use basename.
19705 if expr a : '\(a\)' >/dev/null 2>&1; then
19711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19712 as_basename=basename
19718 # Name of the executable.
19719 as_me=`$as_basename "$0" ||
19720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19721 X"$0" : 'X\(//\)$' \| \
19722 X"$0" : 'X\(/\)$' \| \
19723 . : '\(.\)' 2>/dev/null ||
19725 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19726 /^X\/\(\/\/\)$/{ s//\1/; q; }
19727 /^X\/\(\/\).*/{ s//\1/; q; }
19731 # PATH needs CR, and LINENO needs CR and PATH.
19732 # Avoid depending upon Character Ranges.
19733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19736 as_cr_digits='0123456789'
19737 as_cr_alnum=$as_cr_Letters$as_cr_digits
19739 # The user is always right.
19740 if test "${PATH_SEPARATOR+set}" != set; then
19741 echo "#! /bin/sh" >conf$$.sh
19742 echo "exit 0" >>conf$$.sh
19744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19753 as_lineno_1=$LINENO
19754 as_lineno_2=$LINENO
19755 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19756 test "x$as_lineno_1" != "x$as_lineno_2" &&
19757 test "x$as_lineno_3" = "x$as_lineno_2" || {
19758 # Find who we are. Look in the path if we contain no path at all
19761 *[\\/]* ) as_myself=$0 ;;
19762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19763 for as_dir in $PATH
19766 test -z "$as_dir" && as_dir=.
19767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19772 # We did not find ourselves, most probably we were run as `sh COMMAND'
19773 # in which case we are not to be found in the path.
19774 if test "x$as_myself" = x; then
19777 if test ! -f "$as_myself"; then
19778 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19779 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19780 { (exit 1); exit 1; }; }
19782 case $CONFIG_SHELL in
19784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19788 test -z "$as_dir" && as_dir=.
19789 for as_base in sh bash ksh sh5; do
19792 if ("$as_dir/$as_base" -c '
19793 as_lineno_1=$LINENO
19794 as_lineno_2=$LINENO
19795 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19796 test "x$as_lineno_1" != "x$as_lineno_2" &&
19797 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19798 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19799 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19800 CONFIG_SHELL=$as_dir/$as_base
19801 export CONFIG_SHELL
19802 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19810 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19811 # uniformly replaced by the line number. The first 'sed' inserts a
19812 # line-number line before each line; the second 'sed' does the real
19813 # work. The second script uses 'N' to pair each line-number line
19814 # with the numbered line, and appends trailing '-' during
19815 # substitution so that $LINENO is not a special case at line end.
19816 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19817 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19818 sed '=' <$as_myself |
19823 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19826 s,^['$as_cr_digits']*\n,,
19827 ' >$as_me.lineno &&
19828 chmod +x $as_me.lineno ||
19829 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19830 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19831 { (exit 1); exit 1; }; }
19833 # Don't try to exec as it changes $[0], causing all sort of problems
19834 # (the dirname of $[0] is not the place where we might find the
19835 # original and so on. Autoconf is especially sensible to this).
19837 # Exit status is that of the last command.
19842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19843 *c*,-n*) ECHO_N= ECHO_C='
19845 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19846 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19849 if expr a : '\(a\)' >/dev/null 2>&1; then
19855 rm -f conf$$ conf$$.exe conf$$.file
19857 if ln -s conf$$.file conf$$ 2>/dev/null; then
19858 # We could just check for DJGPP; but this test a) works b) is more generic
19859 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19860 if test -f conf$$.exe; then
19861 # Don't use ln at all; we don't have any links
19866 elif ln conf$$.file conf$$ 2>/dev/null; then
19871 rm -f conf$$ conf$$.exe conf$$.file
19873 if mkdir -p . 2>/dev/null; then
19876 test -d ./-p && rmdir ./-p
19880 as_executable_p="test -f"
19882 # Sed expression to map a string onto a valid CPP name.
19883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19885 # Sed expression to map a string onto a valid variable name.
19886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19890 # We need space, tab and new line, in precisely that order.
19900 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19901 # report actual input values of CONFIG_FILES etc. instead of their
19902 # values after options handling. Logging --version etc. is OK.
19906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19907 ## Running $as_me. ##
19912 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19913 generated by GNU Autoconf 2.59. Invocation command line was
19915 CONFIG_FILES = $CONFIG_FILES
19916 CONFIG_HEADERS = $CONFIG_HEADERS
19917 CONFIG_LINKS = $CONFIG_LINKS
19918 CONFIG_COMMANDS = $CONFIG_COMMANDS
19922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19926 # Files that config.status was made for.
19927 if test -n "$ac_config_files"; then
19928 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19931 if test -n "$ac_config_headers"; then
19932 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19935 if test -n "$ac_config_links"; then
19936 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19939 if test -n "$ac_config_commands"; then
19940 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19943 cat >>$CONFIG_STATUS <<\_ACEOF
19946 \`$as_me' instantiates files from templates according to the
19947 current configuration.
19949 Usage: $0 [OPTIONS] [FILE]...
19951 -h, --help print this help, then exit
19952 -V, --version print version number, then exit
19953 -q, --quiet do not print progress messages
19954 -d, --debug don't remove temporary files
19955 --recheck update $as_me by reconfiguring in the same conditions
19956 --file=FILE[:TEMPLATE]
19957 instantiate the configuration file FILE
19958 --header=FILE[:TEMPLATE]
19959 instantiate the configuration header FILE
19961 Configuration files:
19964 Configuration headers:
19967 Configuration commands:
19970 Report bugs to <bug-autoconf@gnu.org>."
19973 cat >>$CONFIG_STATUS <<_ACEOF
19975 GNU OpenMP Runtime Library config.status 1.0
19976 configured by $0, generated by GNU Autoconf 2.59,
19977 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19979 Copyright (C) 2003 Free Software Foundation, Inc.
19980 This config.status script is free software; the Free Software Foundation
19981 gives unlimited permission to copy, distribute and modify it."
19986 cat >>$CONFIG_STATUS <<\_ACEOF
19987 # If no file are specified by the user, then we need to provide default
19988 # value. By we need to know if files were specified by the user.
19994 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19995 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20003 *) # This is not an option, so the user has probably given explicit
20006 ac_need_defaults=false;;
20010 # Handling of the options.
20012 cat >>$CONFIG_STATUS <<\_ACEOF
20013 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20015 --version | --vers* | -V )
20016 echo "$ac_cs_version"; exit 0 ;;
20018 # Conflict between --help and --header
20019 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20020 Try \`$0 --help' for more information." >&5
20021 echo "$as_me: error: ambiguous option: $1
20022 Try \`$0 --help' for more information." >&2;}
20023 { (exit 1); exit 1; }; };;
20024 --help | --hel | -h )
20025 echo "$ac_cs_usage"; exit 0 ;;
20026 --debug | --d* | -d )
20028 --file | --fil | --fi | --f )
20030 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20031 ac_need_defaults=false;;
20032 --header | --heade | --head | --hea )
20034 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20035 ac_need_defaults=false;;
20036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20040 # This is an error.
20041 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20042 Try \`$0 --help' for more information." >&5
20043 echo "$as_me: error: unrecognized option: $1
20044 Try \`$0 --help' for more information." >&2;}
20045 { (exit 1); exit 1; }; } ;;
20047 *) ac_config_targets="$ac_config_targets $1" ;;
20053 ac_configure_extra_args=
20055 if $ac_cs_silent; then
20057 ac_configure_extra_args="$ac_configure_extra_args --silent"
20061 cat >>$CONFIG_STATUS <<_ACEOF
20062 if \$ac_cs_recheck; then
20063 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20064 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20069 cat >>$CONFIG_STATUS <<_ACEOF
20071 # INIT-COMMANDS section.
20078 with_multisubdir="$with_multisubdir"
20079 with_multisrctop="$with_multisrctop"
20080 with_target_subdir="$with_target_subdir"
20081 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20082 multi_basedir="$multi_basedir"
20083 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20085 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20088 # The HP-UX ksh and POSIX shell print the target directory to stdout
20089 # if CDPATH is set.
20090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20092 sed_quote_subst='$sed_quote_subst'
20093 double_quote_subst='$double_quote_subst'
20094 delay_variable_subst='$delay_variable_subst'
20095 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20096 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20097 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20098 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20099 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20100 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20101 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20102 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20103 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20104 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20105 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20106 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20107 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20108 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20109 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20110 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20111 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20112 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20113 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20114 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20115 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20116 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20117 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20118 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20119 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20120 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20121 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20122 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20123 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20124 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20125 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20126 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20127 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20128 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20129 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20130 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20131 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20132 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20133 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20134 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20135 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20136 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20137 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20138 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"`'
20139 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20140 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20141 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20142 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20143 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20144 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20145 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20146 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20147 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20148 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20149 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20150 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20151 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20152 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20153 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20154 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20155 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20156 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20157 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20158 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20159 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20160 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20161 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20162 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20163 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20164 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20165 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20166 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20167 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20168 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20169 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20170 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20171 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20172 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20173 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20174 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20175 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20176 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20177 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20178 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20179 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20180 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20181 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20182 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20183 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20184 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20185 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20186 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20187 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20188 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20189 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20190 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20191 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20192 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20193 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20194 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20195 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20196 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20197 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20198 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20199 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20200 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20201 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20202 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20203 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20204 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20205 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20206 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20207 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20208 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20209 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20210 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20211 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20212 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20213 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20214 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20215 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20216 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20217 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20218 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20219 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20220 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20221 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20222 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20223 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20224 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20225 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20226 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20227 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20228 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20229 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20230 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20231 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20232 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20233 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20234 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20235 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20236 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20237 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20238 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20239 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20240 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20241 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20242 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20243 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20244 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20245 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20246 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20247 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20248 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20249 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20250 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20251 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20252 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20253 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20254 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20255 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20256 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20259 LTCFLAGS='$LTCFLAGS'
20260 compiler='$compiler_DEFAULT'
20262 # Quote evaled strings.
20273 deplibs_check_method \
20282 lt_cv_sys_global_symbol_pipe \
20283 lt_cv_sys_global_symbol_to_cdecl \
20284 lt_cv_sys_global_symbol_to_c_name_address \
20287 lt_prog_compiler_no_builtin_flag \
20288 lt_prog_compiler_wl \
20289 lt_prog_compiler_pic \
20290 lt_prog_compiler_static \
20291 lt_cv_prog_compiler_c_o \
20294 export_dynamic_flag_spec \
20295 whole_archive_flag_spec \
20296 compiler_needs_object \
20298 allow_undefined_flag \
20299 no_undefined_flag \
20300 hardcode_libdir_flag_spec \
20301 hardcode_libdir_flag_spec_ld \
20302 hardcode_libdir_separator \
20307 variables_saved_for_relink \
20309 library_names_spec \
20318 compiler_lib_search_path \
20321 lt_prog_compiler_no_builtin_flag_FC \
20322 lt_prog_compiler_wl_FC \
20323 lt_prog_compiler_pic_FC \
20324 lt_prog_compiler_static_FC \
20325 lt_cv_prog_compiler_c_o_FC \
20326 export_dynamic_flag_spec_FC \
20327 whole_archive_flag_spec_FC \
20328 compiler_needs_object_FC \
20330 allow_undefined_flag_FC \
20331 no_undefined_flag_FC \
20332 hardcode_libdir_flag_spec_FC \
20333 hardcode_libdir_flag_spec_ld_FC \
20334 hardcode_libdir_separator_FC \
20335 fix_srcfile_path_FC \
20336 exclude_expsyms_FC \
20337 include_expsyms_FC \
20338 file_list_spec_FC \
20339 predep_objects_FC \
20340 postdep_objects_FC \
20343 compiler_lib_search_path_FC; do
20344 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20345 *[\\\\\\\`\\"\\\$]*)
20346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20354 # Double-quote double-evaled strings.
20355 for var in reload_cmds \
20356 old_postinstall_cmds \
20357 old_postuninstall_cmds \
20359 extract_expsyms_cmds \
20360 old_archive_from_new_cmds \
20361 old_archive_from_expsyms_cmds \
20363 archive_expsym_cmds \
20365 module_expsym_cmds \
20366 export_symbols_cmds \
20369 postuninstall_cmds \
20371 sys_lib_search_path_spec \
20372 sys_lib_dlsearch_path_spec \
20373 old_archive_cmds_FC \
20374 old_archive_from_new_cmds_FC \
20375 old_archive_from_expsyms_cmds_FC \
20377 archive_expsym_cmds_FC \
20379 module_expsym_cmds_FC \
20380 export_symbols_cmds_FC \
20381 prelink_cmds_FC; do
20382 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20383 *[\\\\\\\`\\"\\\$]*)
20384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20392 # Fix-up fallback echo if it was mangled by the above quoting rules.
20394 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20398 ac_aux_dir='$ac_aux_dir'
20399 xsi_shell='$xsi_shell'
20400 lt_shell_append='$lt_shell_append'
20402 # See if we are running on zsh, and set the options which allow our
20403 # commands through without removal of \ escapes INIT.
20404 if test -n "\${ZSH_VERSION+set}" ; then
20405 setopt NO_GLOB_SUBST
20411 TIMESTAMP='$TIMESTAMP'
20422 acx_cv_header_stdint="$acx_cv_header_stdint"
20423 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20424 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20425 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20426 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20427 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20428 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20429 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20430 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20431 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20432 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20433 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20434 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20435 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20442 cat >>$CONFIG_STATUS <<\_ACEOF
20443 for ac_config_target in $ac_config_targets
20445 case "$ac_config_target" in
20446 # Handling of arguments.
20447 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20448 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20449 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20450 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20451 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20452 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20453 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20454 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20455 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20456 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20457 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20458 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20459 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20460 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20461 { (exit 1); exit 1; }; };;
20465 # If the user did not use the arguments to specify the items to instantiate,
20466 # then the envvar interface is used. Set only those that are not.
20467 # We use the long form for the default assignment because of an extremely
20468 # bizarre bug on SunOS 4.1.3.
20469 if $ac_need_defaults; then
20470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20475 # Have a temporary directory for convenience. Make it in the build tree
20476 # simply because there is no reason to put it here, and in addition,
20477 # creating and moving files from /tmp can sometimes cause problems.
20478 # Create a temporary directory, and hook for its removal unless debugging.
20481 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20482 trap '{ (exit 1); exit 1; }' 1 2 13 15
20485 # Create a (secure) tmp directory for tmp files.
20488 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20489 test -n "$tmp" && test -d "$tmp"
20492 tmp=./confstat$$-$RANDOM
20493 (umask 077 && mkdir $tmp)
20496 echo "$me: cannot create a temporary directory in ." >&2
20497 { (exit 1); exit 1; }
20502 cat >>$CONFIG_STATUS <<_ACEOF
20505 # CONFIG_FILES section.
20508 # No need to generate the scripts if there are no CONFIG_FILES.
20509 # This happens for instance when ./config.status config.h
20510 if test -n "\$CONFIG_FILES"; then
20511 # Protect against being on the right side of a sed subst in config.status.
20512 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20513 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20514 s,@SHELL@,$SHELL,;t t
20515 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20516 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20517 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20518 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20519 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20520 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20521 s,@exec_prefix@,$exec_prefix,;t t
20522 s,@prefix@,$prefix,;t t
20523 s,@program_transform_name@,$program_transform_name,;t t
20524 s,@bindir@,$bindir,;t t
20525 s,@sbindir@,$sbindir,;t t
20526 s,@libexecdir@,$libexecdir,;t t
20527 s,@datadir@,$datadir,;t t
20528 s,@sysconfdir@,$sysconfdir,;t t
20529 s,@sharedstatedir@,$sharedstatedir,;t t
20530 s,@localstatedir@,$localstatedir,;t t
20531 s,@libdir@,$libdir,;t t
20532 s,@includedir@,$includedir,;t t
20533 s,@oldincludedir@,$oldincludedir,;t t
20534 s,@infodir@,$infodir,;t t
20535 s,@mandir@,$mandir,;t t
20536 s,@build_alias@,$build_alias,;t t
20537 s,@host_alias@,$host_alias,;t t
20538 s,@target_alias@,$target_alias,;t t
20539 s,@DEFS@,$DEFS,;t t
20540 s,@ECHO_C@,$ECHO_C,;t t
20541 s,@ECHO_N@,$ECHO_N,;t t
20542 s,@ECHO_T@,$ECHO_T,;t t
20543 s,@LIBS@,$LIBS,;t t
20544 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20545 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20546 s,@build@,$build,;t t
20547 s,@build_cpu@,$build_cpu,;t t
20548 s,@build_vendor@,$build_vendor,;t t
20549 s,@build_os@,$build_os,;t t
20550 s,@host@,$host,;t t
20551 s,@host_cpu@,$host_cpu,;t t
20552 s,@host_vendor@,$host_vendor,;t t
20553 s,@host_os@,$host_os,;t t
20554 s,@target@,$target,;t t
20555 s,@target_cpu@,$target_cpu,;t t
20556 s,@target_vendor@,$target_vendor,;t t
20557 s,@target_os@,$target_os,;t t
20558 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20559 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20560 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20561 s,@CYGPATH_W@,$CYGPATH_W,;t t
20562 s,@PACKAGE@,$PACKAGE,;t t
20563 s,@VERSION@,$VERSION,;t t
20564 s,@ACLOCAL@,$ACLOCAL,;t t
20565 s,@AUTOCONF@,$AUTOCONF,;t t
20566 s,@AUTOMAKE@,$AUTOMAKE,;t t
20567 s,@AUTOHEADER@,$AUTOHEADER,;t t
20568 s,@MAKEINFO@,$MAKEINFO,;t t
20569 s,@install_sh@,$install_sh,;t t
20570 s,@STRIP@,$STRIP,;t t
20571 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20572 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20573 s,@mkdir_p@,$mkdir_p,;t t
20575 s,@SET_MAKE@,$SET_MAKE,;t t
20576 s,@am__leading_dot@,$am__leading_dot,;t t
20577 s,@AMTAR@,$AMTAR,;t t
20578 s,@am__tar@,$am__tar,;t t
20579 s,@am__untar@,$am__untar,;t t
20580 s,@multi_basedir@,$multi_basedir,;t t
20581 s,@toolexecdir@,$toolexecdir,;t t
20582 s,@toolexeclibdir@,$toolexeclibdir,;t t
20584 s,@ac_ct_CC@,$ac_ct_CC,;t t
20585 s,@EXEEXT@,$EXEEXT,;t t
20586 s,@OBJEXT@,$OBJEXT,;t t
20587 s,@DEPDIR@,$DEPDIR,;t t
20588 s,@am__include@,$am__include,;t t
20589 s,@am__quote@,$am__quote,;t t
20590 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20591 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20592 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20593 s,@CCDEPMODE@,$CCDEPMODE,;t t
20594 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20595 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20596 s,@CFLAGS@,$CFLAGS,;t t
20598 s,@ac_ct_AR@,$ac_ct_AR,;t t
20599 s,@RANLIB@,$RANLIB,;t t
20600 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20601 s,@PERL@,$PERL,;t t
20602 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20603 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20604 s,@LIBTOOL@,$LIBTOOL,;t t
20606 s,@EGREP@,$EGREP,;t t
20607 s,@FGREP@,$FGREP,;t t
20608 s,@GREP@,$GREP,;t t
20610 s,@DUMPBIN@,$DUMPBIN,;t t
20611 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20613 s,@LN_S@,$LN_S,;t t
20614 s,@lt_ECHO@,$lt_ECHO,;t t
20616 s,@CPPFLAGS@,$CPPFLAGS,;t t
20617 s,@enable_shared@,$enable_shared,;t t
20618 s,@enable_static@,$enable_static,;t t
20619 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20620 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20621 s,@MAINT@,$MAINT,;t t
20623 s,@FCFLAGS@,$FCFLAGS,;t t
20624 s,@LDFLAGS@,$LDFLAGS,;t t
20625 s,@ac_ct_FC@,$ac_ct_FC,;t t
20626 s,@libtool_VERSION@,$libtool_VERSION,;t t
20627 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20628 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20629 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20630 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20631 s,@config_path@,$config_path,;t t
20632 s,@XCFLAGS@,$XCFLAGS,;t t
20633 s,@XLDFLAGS@,$XLDFLAGS,;t t
20634 s,@link_gomp@,$link_gomp,;t t
20635 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20636 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20637 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20638 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20639 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20640 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20641 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20642 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20643 s,@LIBOBJS@,$LIBOBJS,;t t
20644 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20649 cat >>$CONFIG_STATUS <<\_ACEOF
20650 # Split the substitutions into bite-sized pieces for seds with
20651 # small command number limits, like on Digital OSF/1 and HP-UX.
20652 ac_max_sed_lines=48
20653 ac_sed_frag=1 # Number of current file.
20654 ac_beg=1 # First line for current file.
20655 ac_end=$ac_max_sed_lines # Line after last line for current file.
20658 while $ac_more_lines; do
20659 if test $ac_beg -gt 1; then
20660 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20662 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20664 if test ! -s $tmp/subs.frag; then
20665 ac_more_lines=false
20667 # The purpose of the label and of the branching condition is to
20668 # speed up the sed processing (if there are no `@' at all, there
20669 # is no need to browse any of the substitutions).
20670 # These are the two extra sed commands mentioned above.
20672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20673 if test -z "$ac_sed_cmds"; then
20674 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20676 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20678 ac_sed_frag=`expr $ac_sed_frag + 1`
20680 ac_end=`expr $ac_end + $ac_max_sed_lines`
20683 if test -z "$ac_sed_cmds"; then
20686 fi # test -n "$CONFIG_FILES"
20689 cat >>$CONFIG_STATUS <<\_ACEOF
20690 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20693 - | *:- | *:-:* ) # input from stdin
20695 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20697 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20699 * ) ac_file_in=$ac_file.in ;;
20702 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20703 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20705 X"$ac_file" : 'X\(//\)[^/]' \| \
20706 X"$ac_file" : 'X\(//\)$' \| \
20707 X"$ac_file" : 'X\(/\)' \| \
20708 . : '\(.\)' 2>/dev/null ||
20710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20712 /^X\(\/\/\)$/{ s//\1/; q; }
20713 /^X\(\/\).*/{ s//\1/; q; }
20715 { if $as_mkdir_p; then
20720 while test ! -d "$as_dir"; do
20721 as_dirs="$as_dir $as_dirs"
20722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20724 X"$as_dir" : 'X\(//\)[^/]' \| \
20725 X"$as_dir" : 'X\(//\)$' \| \
20726 X"$as_dir" : 'X\(/\)' \| \
20727 . : '\(.\)' 2>/dev/null ||
20729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20731 /^X\(\/\/\)$/{ s//\1/; q; }
20732 /^X\(\/\).*/{ s//\1/; q; }
20735 test ! -n "$as_dirs" || mkdir $as_dirs
20736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20738 { (exit 1); exit 1; }; }; }
20742 if test "$ac_dir" != .; then
20743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20744 # A "../" for each directory in $ac_dir_suffix.
20745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20747 ac_dir_suffix= ac_top_builddir=
20751 .) # No --srcdir option. We are building in place.
20753 if test -z "$ac_top_builddir"; then
20756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20758 [\\/]* | ?:[\\/]* ) # Absolute path.
20759 ac_srcdir=$srcdir$ac_dir_suffix;
20760 ac_top_srcdir=$srcdir ;;
20761 *) # Relative path.
20762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20766 # Do not use `cd foo && pwd` to compute absolute paths, because
20767 # the directories may not exist.
20769 .) ac_abs_builddir="$ac_dir";;
20772 .) ac_abs_builddir=`pwd`;;
20773 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20774 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20777 case $ac_abs_builddir in
20778 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20780 case ${ac_top_builddir}. in
20781 .) ac_abs_top_builddir=$ac_abs_builddir;;
20782 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20783 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20786 case $ac_abs_builddir in
20787 .) ac_abs_srcdir=$ac_srcdir;;
20790 .) ac_abs_srcdir=$ac_abs_builddir;;
20791 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20792 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20795 case $ac_abs_builddir in
20796 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20798 case $ac_top_srcdir in
20799 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20800 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20801 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20808 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20811 if test x"$ac_file" != x-; then
20812 { echo "$as_me:$LINENO: creating $ac_file" >&5
20813 echo "$as_me: creating $ac_file" >&6;}
20816 # Let's still pretend it is `configure' which instantiates (i.e., don't
20817 # use $as_me), people would be surprised to read:
20818 # /* config.h. Generated by config.status. */
20819 if test x"$ac_file" = x-; then
20822 configure_input="$ac_file. "
20824 configure_input=$configure_input"Generated from `echo $ac_file_in |
20825 sed 's,.*/,,'` by configure."
20827 # First look for the input files in the build tree, otherwise in the
20829 ac_file_inputs=`IFS=:
20830 for f in $ac_file_in; do
20832 -) echo $tmp/stdin ;;
20834 # Absolute (can't be DOS-style, as IFS=:)
20835 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20836 echo "$as_me: error: cannot find input file: $f" >&2;}
20837 { (exit 1); exit 1; }; }
20840 if test -f "$f"; then
20843 elif test -f "$srcdir/$f"; then
20848 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20849 echo "$as_me: error: cannot find input file: $f" >&2;}
20850 { (exit 1); exit 1; }; }
20853 done` || { (exit 1); exit 1; }
20855 cat >>$CONFIG_STATUS <<_ACEOF
20859 cat >>$CONFIG_STATUS <<\_ACEOF
20861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20862 s,@configure_input@,$configure_input,;t t
20863 s,@srcdir@,$ac_srcdir,;t t
20864 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20865 s,@top_srcdir@,$ac_top_srcdir,;t t
20866 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20867 s,@builddir@,$ac_builddir,;t t
20868 s,@abs_builddir@,$ac_abs_builddir,;t t
20869 s,@top_builddir@,$ac_top_builddir,;t t
20870 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20871 s,@INSTALL@,$ac_INSTALL,;t t
20872 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20874 if test x"$ac_file" != x-; then
20875 mv $tmp/out $ac_file
20883 cat >>$CONFIG_STATUS <<\_ACEOF
20886 # CONFIG_HEADER section.
20889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20892 # ac_d sets the value in "#define NAME VALUE" lines.
20893 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20894 ac_dB='[ ].*$,\1#\2'
20897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20898 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20899 ac_uB='$,\1#\2define\3'
20903 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20906 - | *:- | *:-:* ) # input from stdin
20908 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20910 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20912 * ) ac_file_in=$ac_file.in ;;
20915 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20916 echo "$as_me: creating $ac_file" >&6;}
20918 # First look for the input files in the build tree, otherwise in the
20920 ac_file_inputs=`IFS=:
20921 for f in $ac_file_in; do
20923 -) echo $tmp/stdin ;;
20925 # Absolute (can't be DOS-style, as IFS=:)
20926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20927 echo "$as_me: error: cannot find input file: $f" >&2;}
20928 { (exit 1); exit 1; }; }
20929 # Do quote $f, to prevent DOS paths from being IFS'd.
20932 if test -f "$f"; then
20935 elif test -f "$srcdir/$f"; then
20940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20941 echo "$as_me: error: cannot find input file: $f" >&2;}
20942 { (exit 1); exit 1; }; }
20945 done` || { (exit 1); exit 1; }
20946 # Remove the trailing spaces.
20947 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20951 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20952 # `conftest.undefs', that substitutes the proper values into
20953 # config.h.in to produce config.h. The first handles `#define'
20954 # templates, and the second `#undef' templates.
20955 # And first: Protect against being on the right side of a sed subst in
20956 # config.status. Protect against being in an unquoted here document
20957 # in config.status.
20958 rm -f conftest.defines conftest.undefs
20959 # Using a here document instead of a string reduces the quoting nightmare.
20960 # Putting comments in sed scripts is not portable.
20962 # `end' is used to avoid that the second main sed command (meant for
20963 # 0-ary CPP macros) applies to n-ary macro definitions.
20964 # See the Autoconf documentation for `clear'.
20965 cat >confdef2sed.sed <<\_ACEOF
20970 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20972 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20975 # If some macros were called several times there might be several times
20976 # the same #defines, which is useless. Nevertheless, we may not want to
20977 # sort them, since we want the *last* AC-DEFINE to be honored.
20978 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20979 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20980 rm -f confdef2sed.sed
20982 # This sed command replaces #undef with comments. This is necessary, for
20983 # example, in the case of _POSIX_SOURCE, which is predefined and required
20984 # on some systems where configure will not decide to define it.
20985 cat >>conftest.undefs <<\_ACEOF
20986 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20989 # Break up conftest.defines because some shells have a limit on the size
20990 # of here documents, and old seds have small limits too (100 cmds).
20991 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20992 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20993 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20994 echo ' :' >>$CONFIG_STATUS
20995 rm -f conftest.tail
20996 while grep . conftest.defines >/dev/null
20998 # Write a limited-size here document to $tmp/defines.sed.
20999 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21000 # Speed up: don't consider the non `#define' lines.
21001 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21002 # Work around the forget-to-reset-the-flag bug.
21003 echo 't clr' >>$CONFIG_STATUS
21004 echo ': clr' >>$CONFIG_STATUS
21005 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21007 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21009 mv $tmp/out $tmp/in
21011 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21012 rm -f conftest.defines
21013 mv conftest.tail conftest.defines
21015 rm -f conftest.defines
21016 echo ' fi # grep' >>$CONFIG_STATUS
21017 echo >>$CONFIG_STATUS
21019 # Break up conftest.undefs because some shells have a limit on the size
21020 # of here documents, and old seds have small limits too (100 cmds).
21021 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21022 rm -f conftest.tail
21023 while grep . conftest.undefs >/dev/null
21025 # Write a limited-size here document to $tmp/undefs.sed.
21026 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21027 # Speed up: don't consider the non `#undef'
21028 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21029 # Work around the forget-to-reset-the-flag bug.
21030 echo 't clr' >>$CONFIG_STATUS
21031 echo ': clr' >>$CONFIG_STATUS
21032 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21034 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21036 mv $tmp/out $tmp/in
21038 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21039 rm -f conftest.undefs
21040 mv conftest.tail conftest.undefs
21042 rm -f conftest.undefs
21044 cat >>$CONFIG_STATUS <<\_ACEOF
21045 # Let's still pretend it is `configure' which instantiates (i.e., don't
21046 # use $as_me), people would be surprised to read:
21047 # /* config.h. Generated by config.status. */
21048 if test x"$ac_file" = x-; then
21049 echo "/* Generated by configure. */" >$tmp/config.h
21051 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21053 cat $tmp/in >>$tmp/config.h
21055 if test x"$ac_file" != x-; then
21056 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21057 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21058 echo "$as_me: $ac_file is unchanged" >&6;}
21060 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21062 X"$ac_file" : 'X\(//\)[^/]' \| \
21063 X"$ac_file" : 'X\(//\)$' \| \
21064 X"$ac_file" : 'X\(/\)' \| \
21065 . : '\(.\)' 2>/dev/null ||
21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21069 /^X\(\/\/\)$/{ s//\1/; q; }
21070 /^X\(\/\).*/{ s//\1/; q; }
21072 { if $as_mkdir_p; then
21077 while test ! -d "$as_dir"; do
21078 as_dirs="$as_dir $as_dirs"
21079 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21081 X"$as_dir" : 'X\(//\)[^/]' \| \
21082 X"$as_dir" : 'X\(//\)$' \| \
21083 X"$as_dir" : 'X\(/\)' \| \
21084 . : '\(.\)' 2>/dev/null ||
21086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21088 /^X\(\/\/\)$/{ s//\1/; q; }
21089 /^X\(\/\).*/{ s//\1/; q; }
21092 test ! -n "$as_dirs" || mkdir $as_dirs
21093 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21095 { (exit 1); exit 1; }; }; }
21098 mv $tmp/config.h $ac_file
21102 rm -f $tmp/config.h
21104 # Compute $ac_file's index in $config_headers.
21106 for _am_header in $config_headers :; do
21107 case $_am_header in
21108 $ac_file | $ac_file:* )
21111 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21114 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21115 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116 X$ac_file : 'X\(//\)[^/]' \| \
21117 X$ac_file : 'X\(//\)$' \| \
21118 X$ac_file : 'X\(/\)' \| \
21119 . : '\(.\)' 2>/dev/null ||
21121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21123 /^X\(\/\/\)$/{ s//\1/; q; }
21124 /^X\(\/\).*/{ s//\1/; q; }
21125 s/.*/./; q'`/stamp-h$_am_stamp_count
21128 cat >>$CONFIG_STATUS <<\_ACEOF
21131 # CONFIG_COMMANDS section.
21133 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21134 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21135 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21136 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21137 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138 X"$ac_dest" : 'X\(//\)[^/]' \| \
21139 X"$ac_dest" : 'X\(//\)$' \| \
21140 X"$ac_dest" : 'X\(/\)' \| \
21141 . : '\(.\)' 2>/dev/null ||
21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21145 /^X\(\/\/\)$/{ s//\1/; q; }
21146 /^X\(\/\).*/{ s//\1/; q; }
21148 { if $as_mkdir_p; then
21153 while test ! -d "$as_dir"; do
21154 as_dirs="$as_dir $as_dirs"
21155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21157 X"$as_dir" : 'X\(//\)[^/]' \| \
21158 X"$as_dir" : 'X\(//\)$' \| \
21159 X"$as_dir" : 'X\(/\)' \| \
21160 . : '\(.\)' 2>/dev/null ||
21162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21164 /^X\(\/\/\)$/{ s//\1/; q; }
21165 /^X\(\/\).*/{ s//\1/; q; }
21168 test ! -n "$as_dirs" || mkdir $as_dirs
21169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21171 { (exit 1); exit 1; }; }; }
21175 if test "$ac_dir" != .; then
21176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21177 # A "../" for each directory in $ac_dir_suffix.
21178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21180 ac_dir_suffix= ac_top_builddir=
21184 .) # No --srcdir option. We are building in place.
21186 if test -z "$ac_top_builddir"; then
21189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21191 [\\/]* | ?:[\\/]* ) # Absolute path.
21192 ac_srcdir=$srcdir$ac_dir_suffix;
21193 ac_top_srcdir=$srcdir ;;
21194 *) # Relative path.
21195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21199 # Do not use `cd foo && pwd` to compute absolute paths, because
21200 # the directories may not exist.
21202 .) ac_abs_builddir="$ac_dir";;
21205 .) ac_abs_builddir=`pwd`;;
21206 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21207 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21210 case $ac_abs_builddir in
21211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21213 case ${ac_top_builddir}. in
21214 .) ac_abs_top_builddir=$ac_abs_builddir;;
21215 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21216 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21219 case $ac_abs_builddir in
21220 .) ac_abs_srcdir=$ac_srcdir;;
21223 .) ac_abs_srcdir=$ac_abs_builddir;;
21224 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21225 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21228 case $ac_abs_builddir in
21229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21231 case $ac_top_srcdir in
21232 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21233 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21234 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21239 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21240 echo "$as_me: executing $ac_dest commands" >&6;}
21243 # Only add multilib support code if we just rebuilt the top-level
21245 case " $CONFIG_FILES " in
21247 ac_file=Makefile . ${multi_basedir}/config-ml.in
21250 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21251 # Strip MF so we end up with the name of the file.
21252 mf=`echo "$mf" | sed -e 's/:.*$//'`
21253 # Check whether this is an Automake generated Makefile or not.
21254 # We used to match only the files named `Makefile.in', but
21255 # some people rename them; so instead we look at the file content.
21256 # Grep'ing the first line is not enough: some people post-process
21257 # each Makefile.in and add a new line on top of each file to say so.
21258 # So let's grep whole file.
21259 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21260 dirpart=`(dirname "$mf") 2>/dev/null ||
21261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262 X"$mf" : 'X\(//\)[^/]' \| \
21263 X"$mf" : 'X\(//\)$' \| \
21264 X"$mf" : 'X\(/\)' \| \
21265 . : '\(.\)' 2>/dev/null ||
21267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21269 /^X\(\/\/\)$/{ s//\1/; q; }
21270 /^X\(\/\).*/{ s//\1/; q; }
21275 # Extract the definition of DEPDIR, am__include, and am__quote
21276 # from the Makefile without running `make'.
21277 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21278 test -z "$DEPDIR" && continue
21279 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21280 test -z "am__include" && continue
21281 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21282 # When using ansi2knr, U may be empty or an underscore; expand it
21283 U=`sed -n 's/^U = //p' < "$mf"`
21284 # Find all dependency output files, they are included files with
21285 # $(DEPDIR) in their names. We invoke sed twice because it is the
21286 # simplest approach to changing $(DEPDIR) to its actual value in the
21288 for file in `sed -n "
21289 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21290 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21291 # Make sure the directory exists.
21292 test -f "$dirpart/$file" && continue
21293 fdir=`(dirname "$file") 2>/dev/null ||
21294 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21295 X"$file" : 'X\(//\)[^/]' \| \
21296 X"$file" : 'X\(//\)$' \| \
21297 X"$file" : 'X\(/\)' \| \
21298 . : '\(.\)' 2>/dev/null ||
21300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21302 /^X\(\/\/\)$/{ s//\1/; q; }
21303 /^X\(\/\).*/{ s//\1/; q; }
21305 { if $as_mkdir_p; then
21306 mkdir -p $dirpart/$fdir
21308 as_dir=$dirpart/$fdir
21310 while test ! -d "$as_dir"; do
21311 as_dirs="$as_dir $as_dirs"
21312 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21314 X"$as_dir" : 'X\(//\)[^/]' \| \
21315 X"$as_dir" : 'X\(//\)$' \| \
21316 X"$as_dir" : 'X\(/\)' \| \
21317 . : '\(.\)' 2>/dev/null ||
21319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21321 /^X\(\/\/\)$/{ s//\1/; q; }
21322 /^X\(\/\).*/{ s//\1/; q; }
21325 test ! -n "$as_dirs" || mkdir $as_dirs
21326 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21327 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21328 { (exit 1); exit 1; }; }; }
21330 # echo "creating $dirpart/$file"
21331 echo '# dummy' > "$dirpart/$file"
21337 # See if we are running on zsh, and set the options which allow our
21338 # commands through without removal of \ escapes.
21339 if test -n "${ZSH_VERSION+set}" ; then
21340 setopt NO_GLOB_SUBST
21343 cfgfile="${ofile}T"
21344 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21347 cat <<_LT_EOF >> "$cfgfile"
21350 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21351 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21355 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21356 # 2006, 2007 Free Software Foundation, Inc.
21358 # This file is part of GNU Libtool:
21359 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21361 # This program is free software; you can redistribute it and/or modify
21362 # it under the terms of the GNU General Public License as published by
21363 # the Free Software Foundation; either version 2 of the License, or
21364 # (at your option) any later version.
21366 # This program is distributed in the hope that it will be useful, but
21367 # WITHOUT ANY WARRANTY; without even the implied warranty of
21368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21369 # General Public License for more details.
21371 # You should have received a copy of the GNU General Public License
21372 # along with this program; if not, a copy can be downloaded from
21373 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21374 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21375 # MA 02110-1301, USA.
21377 # As a special exception to the GNU General Public License, if you
21378 # distribute this file as part of a program that contains a
21379 # configuration script generated by Autoconf, you may include it under
21380 # the same distribution terms that you use for the rest of that program.
21383 # The names of the tagged configurations supported by this script.
21384 available_tags="FC "
21386 # ### BEGIN LIBTOOL CONFIG
21388 # Which release of libtool.m4 was used?
21389 macro_version=$macro_version
21390 macro_revision=$macro_revision
21392 # Whether or not to build shared libraries.
21393 build_libtool_libs=$enable_shared
21395 # Whether or not to build static libraries.
21396 build_old_libs=$enable_static
21398 # What type of objects to build.
21401 # Whether or not to optimize for fast installation.
21402 fast_install=$enable_fast_install
21405 host_alias=$host_alias
21409 # The build system.
21410 build_alias=$build_alias
21414 # A sed program that does not truncate output.
21417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21418 Xsed="\$SED -e 1s/^X//"
21420 # A grep program that handles long lines.
21426 # A literal string matcher.
21429 # A BSD- or MS-compatible name lister.
21432 # Whether we need soft or hard links.
21435 # What is the maximum length of a command?
21436 max_cmd_len=$max_cmd_len
21438 # Object file suffix (normally "o").
21441 # Executable file suffix (normally "").
21444 # whether the shell understands "unset".
21447 # turn spaces into newlines.
21450 # turn newlines into spaces.
21453 # How to create reloadable object files.
21454 reload_flag=$lt_reload_flag
21455 reload_cmds=$lt_reload_cmds
21457 # Method to check whether dependent libraries are shared objects.
21458 deplibs_check_method=$lt_deplibs_check_method
21460 # Command to use when deplibs_check_method == "file_magic".
21461 file_magic_cmd=$lt_file_magic_cmd
21465 AR_FLAGS=$lt_AR_FLAGS
21467 # A symbol stripping program.
21470 # Commands used to install an old-style archive.
21472 old_postinstall_cmds=$lt_old_postinstall_cmds
21473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21478 # LTCC compiler flags.
21479 LTCFLAGS=$lt_CFLAGS
21481 # Take the output of nm and produce a listing of raw symbols and C names.
21482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21484 # Transform the output of nm in a proper C declaration.
21485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21487 # Transform the output of nm in a C name address pair.
21488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21490 # The name of the directory that contains temporary libtool files.
21493 # Shell to use when invoking shell scripts.
21496 # An echo program that does not interpret backslashes.
21499 # Used to examine libraries when file_magic_cmd begins with "file".
21500 MAGIC_CMD=$MAGIC_CMD
21502 # Must we lock files when doing compilation?
21503 need_locks=$lt_need_locks
21505 # Old archive suffix (normally "a").
21508 # Shared library suffix (normally ".so").
21509 shrext_cmds=$lt_shrext_cmds
21511 # The commands to extract the exported symbol list from a shared archive.
21512 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21514 # Variables whose values should be saved in libtool wrapper scripts and
21515 # restored at link time.
21516 variables_saved_for_relink=$lt_variables_saved_for_relink
21518 # Do we need the "lib" prefix for modules?
21519 need_lib_prefix=$need_lib_prefix
21521 # Do we need a version for libraries?
21522 need_version=$need_version
21524 # Library versioning type.
21525 version_type=$version_type
21527 # Shared library runtime path variable.
21528 runpath_var=$runpath_var
21530 # Shared library path variable.
21531 shlibpath_var=$shlibpath_var
21533 # Is shlibpath searched before the hard-coded library search path?
21534 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21536 # Format of library name prefix.
21537 libname_spec=$lt_libname_spec
21539 # List of archive names. First name is the real one, the rest are links.
21540 # The last name is the one that the linker finds with -lNAME
21541 library_names_spec=$lt_library_names_spec
21543 # The coded name of the library, if different from the real name.
21544 soname_spec=$lt_soname_spec
21546 # Command to use after installation of a shared archive.
21547 postinstall_cmds=$lt_postinstall_cmds
21549 # Command to use after uninstallation of a shared archive.
21550 postuninstall_cmds=$lt_postuninstall_cmds
21552 # Commands used to finish a libtool library installation in a directory.
21553 finish_cmds=$lt_finish_cmds
21555 # As "finish_cmds", except a single script fragment to be evaled but
21557 finish_eval=$lt_finish_eval
21559 # Whether we should hardcode library paths into libraries.
21560 hardcode_into_libs=$hardcode_into_libs
21562 # Compile-time system search path for libraries.
21563 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21565 # Run-time system search path for libraries.
21566 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21568 # Whether dlopen is supported.
21569 dlopen_support=$enable_dlopen
21571 # Whether dlopen of programs is supported.
21572 dlopen_self=$enable_dlopen_self
21574 # Whether dlopen of statically linked programs is supported.
21575 dlopen_self_static=$enable_dlopen_self_static
21577 # Commands to strip libraries.
21578 old_striplib=$lt_old_striplib
21579 striplib=$lt_striplib
21582 # The linker used to build libraries.
21585 # Commands used to build an old-style archive.
21586 old_archive_cmds=$lt_old_archive_cmds
21588 # A language specific compiler.
21591 # Is the compiler the GNU compiler?
21594 # Compiler flag to turn off builtin functions.
21595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21597 # How to pass a linker flag through the compiler.
21598 wl=$lt_lt_prog_compiler_wl
21600 # Additional compiler flags for building library objects.
21601 pic_flag=$lt_lt_prog_compiler_pic
21603 # Compiler flag to prevent dynamic linking.
21604 link_static_flag=$lt_lt_prog_compiler_static
21606 # Does compiler simultaneously support -c and -o options?
21607 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21609 # Whether or not to add -lc for building shared libraries.
21610 build_libtool_need_lc=$archive_cmds_need_lc
21612 # Whether or not to disallow shared libs when runtime libs are static.
21613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21615 # Compiler flag to allow reflexive dlopens.
21616 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21618 # Compiler flag to generate shared objects directly from archives.
21619 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21621 # Whether the compiler copes with passing no objects directly.
21622 compiler_needs_object=$lt_compiler_needs_object
21624 # Create an old-style archive from a shared archive.
21625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21627 # Create a temporary old-style archive to link instead of a shared archive.
21628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21630 # Commands used to build a shared archive.
21631 archive_cmds=$lt_archive_cmds
21632 archive_expsym_cmds=$lt_archive_expsym_cmds
21634 # Commands used to build a loadable module if different from building
21635 # a shared archive.
21636 module_cmds=$lt_module_cmds
21637 module_expsym_cmds=$lt_module_expsym_cmds
21639 # Whether we are building with GNU ld or not.
21640 with_gnu_ld=$lt_with_gnu_ld
21642 # Flag that allows shared libraries with undefined symbols to be built.
21643 allow_undefined_flag=$lt_allow_undefined_flag
21645 # Flag that enforces no undefined symbols.
21646 no_undefined_flag=$lt_no_undefined_flag
21648 # Flag to hardcode \$libdir into a binary during linking.
21649 # This must work even if \$libdir does not exist
21650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21652 # If ld is used when linking, flag to hardcode \$libdir into a binary
21653 # during linking. This must work even if \$libdir does not exist.
21654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21656 # Whether we need a single "-rpath" flag with a separated argument.
21657 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21660 # DIR into the resulting binary.
21661 hardcode_direct=$hardcode_direct
21663 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21664 # DIR into the resulting binary and the resulting library dependency is
21665 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21666 # library is relocated.
21667 hardcode_direct_absolute=$hardcode_direct_absolute
21669 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21670 # into the resulting binary.
21671 hardcode_minus_L=$hardcode_minus_L
21673 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21674 # into the resulting binary.
21675 hardcode_shlibpath_var=$hardcode_shlibpath_var
21677 # Set to "yes" if building a shared library automatically hardcodes DIR
21678 # into the library and all subsequent libraries and executables linked
21680 hardcode_automatic=$hardcode_automatic
21682 # Set to yes if linker adds runtime paths of dependent libraries
21683 # to runtime path list.
21684 inherit_rpath=$inherit_rpath
21686 # Whether libtool must link a program against all its dependency libraries.
21687 link_all_deplibs=$link_all_deplibs
21689 # Fix the shell variable \$srcfile for the compiler.
21690 fix_srcfile_path=$lt_fix_srcfile_path
21692 # Set to "yes" if exported symbols are required.
21693 always_export_symbols=$always_export_symbols
21695 # The commands to list exported symbols.
21696 export_symbols_cmds=$lt_export_symbols_cmds
21698 # Symbols that should not be listed in the preloaded symbols.
21699 exclude_expsyms=$lt_exclude_expsyms
21701 # Symbols that must always be exported.
21702 include_expsyms=$lt_include_expsyms
21704 # Commands necessary for linking programs (against libraries) with templates.
21705 prelink_cmds=$lt_prelink_cmds
21707 # Specify filename containing input files.
21708 file_list_spec=$lt_file_list_spec
21710 # How to hardcode a shared library path into an executable.
21711 hardcode_action=$hardcode_action
21713 # Dependencies to place before and after the objects being linked to
21714 # create a shared library.
21715 predep_objects=$lt_predep_objects
21716 postdep_objects=$lt_postdep_objects
21717 predeps=$lt_predeps
21718 postdeps=$lt_postdeps
21720 # The library search path used internally by the compiler when linking
21721 # a shared library.
21722 compiler_lib_search_path=$lt_compiler_lib_search_path
21724 # ### END LIBTOOL CONFIG
21730 cat <<\_LT_EOF >> "$cfgfile"
21731 # AIX sometimes has problems with the GCC collect2 program. For some
21732 # reason, if we set the COLLECT_NAMES environment variable, the problems
21733 # vanish in a puff of smoke.
21734 if test "X${COLLECT_NAMES+set}" != Xset; then
21736 export COLLECT_NAMES
21743 ltmain="$ac_aux_dir/ltmain.sh"
21746 # We use sed instead of cat because bash on DJGPP gets confused if
21747 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21748 # text mode, it properly converts lines to CR/LF. This bash problem
21749 # is reportedly fixed, but why not run on old versions too?
21750 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21751 || (rm -f "$cfgfile"; exit 1)
21755 cat << \_LT_EOF >> "$cfgfile"
21756 # func_dirname file append nondir_replacement
21757 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21758 # otherwise set result to NONDIR_REPLACEMENT.
21762 */*) func_dirname_result="${1%/*}${2}" ;;
21763 * ) func_dirname_result="${3}" ;;
21767 # func_basename file
21770 func_basename_result="${1##*/}"
21773 # func_stripname prefix suffix name
21774 # strip PREFIX and SUFFIX off of NAME.
21775 # PREFIX and SUFFIX must not contain globbing or regex special
21776 # characters, hashes, percent signs, but SUFFIX may contain a leading
21777 # dot (in which case that matches only a dot).
21780 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21781 # positional parameters, so assign one to ordinary parameter first.
21782 func_stripname_result=${3}
21783 func_stripname_result=${func_stripname_result#"${1}"}
21784 func_stripname_result=${func_stripname_result%"${2}"}
21790 func_opt_split_opt=${1%%=*}
21791 func_opt_split_arg=${1#*=}
21798 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21799 *) func_lo2o_result=${1} ;;
21804 *) # Bourne compatible functions.
21805 cat << \_LT_EOF >> "$cfgfile"
21806 # func_dirname file append nondir_replacement
21807 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21808 # otherwise set result to NONDIR_REPLACEMENT.
21811 # Extract subdirectory from the argument.
21812 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21813 if test "X$func_dirname_result" = "X${1}"; then
21814 func_dirname_result="${3}"
21816 func_dirname_result="$func_dirname_result${2}"
21820 # func_basename file
21823 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21826 # func_stripname prefix suffix name
21827 # strip PREFIX and SUFFIX off of NAME.
21828 # PREFIX and SUFFIX must not contain globbing or regex special
21829 # characters, hashes, percent signs, but SUFFIX may contain a leading
21830 # dot (in which case that matches only a dot).
21831 # func_strip_suffix prefix name
21835 .*) func_stripname_result=`$ECHO "X${3}" \
21836 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21837 *) func_stripname_result=`$ECHO "X${3}" \
21838 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21843 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21844 my_sed_long_arg='1s/^-[^=]*=//'
21849 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21850 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21856 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21861 case $lt_shell_append in
21863 cat << \_LT_EOF >> "$cfgfile"
21865 # func_append var value
21866 # Append VALUE to the end of shell variable VAR.
21874 cat << \_LT_EOF >> "$cfgfile"
21876 # func_append var value
21877 # Append VALUE to the end of shell variable VAR.
21887 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21888 || (rm -f "$cfgfile"; exit 1)
21890 mv -f "$cfgfile" "$ofile" ||
21891 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21895 cat <<_LT_EOF >> "$ofile"
21897 # ### BEGIN LIBTOOL TAG CONFIG: FC
21899 # The linker used to build libraries.
21902 # Commands used to build an old-style archive.
21903 old_archive_cmds=$lt_old_archive_cmds_FC
21905 # A language specific compiler.
21908 # Is the compiler the GNU compiler?
21911 # Compiler flag to turn off builtin functions.
21912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21914 # How to pass a linker flag through the compiler.
21915 wl=$lt_lt_prog_compiler_wl_FC
21917 # Additional compiler flags for building library objects.
21918 pic_flag=$lt_lt_prog_compiler_pic_FC
21920 # Compiler flag to prevent dynamic linking.
21921 link_static_flag=$lt_lt_prog_compiler_static_FC
21923 # Does compiler simultaneously support -c and -o options?
21924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21926 # Whether or not to add -lc for building shared libraries.
21927 build_libtool_need_lc=$archive_cmds_need_lc_FC
21929 # Whether or not to disallow shared libs when runtime libs are static.
21930 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21932 # Compiler flag to allow reflexive dlopens.
21933 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21935 # Compiler flag to generate shared objects directly from archives.
21936 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21938 # Whether the compiler copes with passing no objects directly.
21939 compiler_needs_object=$lt_compiler_needs_object_FC
21941 # Create an old-style archive from a shared archive.
21942 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21944 # Create a temporary old-style archive to link instead of a shared archive.
21945 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21947 # Commands used to build a shared archive.
21948 archive_cmds=$lt_archive_cmds_FC
21949 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21951 # Commands used to build a loadable module if different from building
21952 # a shared archive.
21953 module_cmds=$lt_module_cmds_FC
21954 module_expsym_cmds=$lt_module_expsym_cmds_FC
21956 # Whether we are building with GNU ld or not.
21957 with_gnu_ld=$lt_with_gnu_ld_FC
21959 # Flag that allows shared libraries with undefined symbols to be built.
21960 allow_undefined_flag=$lt_allow_undefined_flag_FC
21962 # Flag that enforces no undefined symbols.
21963 no_undefined_flag=$lt_no_undefined_flag_FC
21965 # Flag to hardcode \$libdir into a binary during linking.
21966 # This must work even if \$libdir does not exist
21967 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21969 # If ld is used when linking, flag to hardcode \$libdir into a binary
21970 # during linking. This must work even if \$libdir does not exist.
21971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21973 # Whether we need a single "-rpath" flag with a separated argument.
21974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21976 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21977 # DIR into the resulting binary.
21978 hardcode_direct=$hardcode_direct_FC
21980 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21981 # DIR into the resulting binary and the resulting library dependency is
21982 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21983 # library is relocated.
21984 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21986 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21987 # into the resulting binary.
21988 hardcode_minus_L=$hardcode_minus_L_FC
21990 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21991 # into the resulting binary.
21992 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21994 # Set to "yes" if building a shared library automatically hardcodes DIR
21995 # into the library and all subsequent libraries and executables linked
21997 hardcode_automatic=$hardcode_automatic_FC
21999 # Set to yes if linker adds runtime paths of dependent libraries
22000 # to runtime path list.
22001 inherit_rpath=$inherit_rpath_FC
22003 # Whether libtool must link a program against all its dependency libraries.
22004 link_all_deplibs=$link_all_deplibs_FC
22006 # Fix the shell variable \$srcfile for the compiler.
22007 fix_srcfile_path=$lt_fix_srcfile_path_FC
22009 # Set to "yes" if exported symbols are required.
22010 always_export_symbols=$always_export_symbols_FC
22012 # The commands to list exported symbols.
22013 export_symbols_cmds=$lt_export_symbols_cmds_FC
22015 # Symbols that should not be listed in the preloaded symbols.
22016 exclude_expsyms=$lt_exclude_expsyms_FC
22018 # Symbols that must always be exported.
22019 include_expsyms=$lt_include_expsyms_FC
22021 # Commands necessary for linking programs (against libraries) with templates.
22022 prelink_cmds=$lt_prelink_cmds_FC
22024 # Specify filename containing input files.
22025 file_list_spec=$lt_file_list_spec_FC
22027 # How to hardcode a shared library path into an executable.
22028 hardcode_action=$hardcode_action_FC
22030 # Dependencies to place before and after the objects being linked to
22031 # create a shared library.
22032 predep_objects=$lt_predep_objects_FC
22033 postdep_objects=$lt_postdep_objects_FC
22034 predeps=$lt_predeps_FC
22035 postdeps=$lt_postdeps_FC
22037 # The library search path used internally by the compiler when linking
22038 # a shared library.
22039 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
22041 # ### END LIBTOOL TAG CONFIG: FC
22046 if test "$GCC" = yes; then
22047 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22049 echo "/* generated for $CC */" > tmp-stdint.h
22052 sed 's/^ *//' >> tmp-stdint.h <<EOF
22054 #ifndef GCC_GENERATED_STDINT_H
22055 #define GCC_GENERATED_STDINT_H 1
22057 #include <sys/types.h>
22060 if test "$acx_cv_header_stdint" != stdint.h; then
22061 echo "#include <stddef.h>" >> tmp-stdint.h
22063 if test "$acx_cv_header_stdint" != stddef.h; then
22064 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22067 sed 's/^ *//' >> tmp-stdint.h <<EOF
22068 /* glibc uses these symbols as guards to prevent redefinitions. */
22069 #ifdef __int8_t_defined
22074 #ifdef __uint32_t_defined
22080 # ----------------- done header, emit basic int types -------------
22081 if test "$acx_cv_header_stdint" = stddef.h; then
22082 sed 's/^ *//' >> tmp-stdint.h <<EOF
22086 #ifndef __uint8_t_defined
22087 #define __uint8_t_defined
22088 typedef unsigned $acx_cv_type_int8_t uint8_t;
22094 #ifndef __uint16_t_defined
22095 #define __uint16_t_defined
22096 typedef unsigned $acx_cv_type_int16_t uint16_t;
22102 #ifndef __uint32_t_defined
22103 #define __uint32_t_defined
22104 typedef unsigned $acx_cv_type_int32_t uint32_t;
22110 #ifndef __int8_t_defined
22111 #define __int8_t_defined
22112 typedef $acx_cv_type_int8_t int8_t;
22118 #ifndef __int16_t_defined
22119 #define __int16_t_defined
22120 typedef $acx_cv_type_int16_t int16_t;
22126 #ifndef __int32_t_defined
22127 #define __int32_t_defined
22128 typedef $acx_cv_type_int32_t int32_t;
22132 elif test "$ac_cv_type_u_int32_t" = yes; then
22133 sed 's/^ *//' >> tmp-stdint.h <<EOF
22135 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22148 #ifndef __uint8_t_defined
22149 #define __uint8_t_defined
22150 typedef u_int8_t uint8_t;
22156 #ifndef __uint16_t_defined
22157 #define __uint16_t_defined
22158 typedef u_int16_t uint16_t;
22164 #ifndef __uint32_t_defined
22165 #define __uint32_t_defined
22166 typedef u_int32_t uint32_t;
22171 sed 's/^ *//' >> tmp-stdint.h <<EOF
22173 /* Some systems have guard macros to prevent redefinitions, define them. */
22195 # ------------- done basic int types, emit int64_t types ------------
22196 if test "$ac_cv_type_uint64_t" = yes; then
22197 sed 's/^ *//' >> tmp-stdint.h <<EOF
22199 /* system headers have good uint64_t and int64_t */
22207 elif test "$ac_cv_type_u_int64_t" = yes; then
22208 sed 's/^ *//' >> tmp-stdint.h <<EOF
22210 /* system headers have an u_int64_t (and int64_t) */
22216 #ifndef __uint64_t_defined
22217 #define __uint64_t_defined
22218 typedef u_int64_t uint64_t;
22222 elif test -n "$acx_cv_type_int64_t"; then
22223 sed 's/^ *//' >> tmp-stdint.h <<EOF
22225 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22228 typedef $acx_cv_type_int64_t int64_t;
22232 #ifndef __uint64_t_defined
22233 #define __uint64_t_defined
22234 typedef unsigned $acx_cv_type_int64_t uint64_t;
22239 sed 's/^ *//' >> tmp-stdint.h <<EOF
22241 /* some common heuristics for int64_t, using compiler-specific tests */
22242 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22245 #ifndef __int64_t_defined
22246 typedef long long int64_t;
22251 typedef unsigned long long uint64_t;
22254 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22255 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22256 does not implement __extension__. But that compiler doesn't define
22258 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22259 # define __extension__
22264 __extension__ typedef long long int64_t;
22268 __extension__ typedef unsigned long long uint64_t;
22271 #elif !defined __STRICT_ANSI__
22272 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22276 typedef __int64 int64_t;
22280 typedef unsigned __int64 uint64_t;
22282 # endif /* compiler */
22284 #endif /* ANSI version */
22288 # ------------- done int64_t types, emit intptr types ------------
22289 if test "$ac_cv_type_uintptr_t" != yes; then
22290 sed 's/^ *//' >> tmp-stdint.h <<EOF
22292 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22293 #ifndef __uintptr_t_defined
22294 typedef u$acx_cv_type_intptr_t uintptr_t;
22296 #ifndef __intptr_t_defined
22297 typedef $acx_cv_type_intptr_t intptr_t;
22302 # ------------- done intptr types, emit int_least types ------------
22303 if test "$ac_cv_type_int_least32_t" != yes; then
22304 sed 's/^ *//' >> tmp-stdint.h <<EOF
22306 /* Define int_least types */
22307 typedef int8_t int_least8_t;
22308 typedef int16_t int_least16_t;
22309 typedef int32_t int_least32_t;
22311 typedef int64_t int_least64_t;
22314 typedef uint8_t uint_least8_t;
22315 typedef uint16_t uint_least16_t;
22316 typedef uint32_t uint_least32_t;
22318 typedef uint64_t uint_least64_t;
22323 # ------------- done intptr types, emit int_fast types ------------
22324 if test "$ac_cv_type_int_fast32_t" != yes; then
22325 sed 's/^ *//' >> tmp-stdint.h <<EOF
22327 /* Define int_fast types. short is often slow */
22328 typedef int8_t int_fast8_t;
22329 typedef int int_fast16_t;
22330 typedef int32_t int_fast32_t;
22332 typedef int64_t int_fast64_t;
22335 typedef uint8_t uint_fast8_t;
22336 typedef unsigned int uint_fast16_t;
22337 typedef uint32_t uint_fast32_t;
22339 typedef uint64_t uint_fast64_t;
22344 if test "$ac_cv_type_uintmax_t" != yes; then
22345 sed 's/^ *//' >> tmp-stdint.h <<EOF
22347 /* Define intmax based on what we found */
22349 typedef int64_t intmax_t;
22351 typedef long intmax_t;
22354 typedef uint64_t uintmax_t;
22356 typedef unsigned long uintmax_t;
22361 sed 's/^ *//' >> tmp-stdint.h <<EOF
22363 #endif /* GCC_GENERATED_STDINT_H */
22366 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22369 mv -f tmp-stdint.h gstdint.h
22377 cat >>$CONFIG_STATUS <<\_ACEOF
22379 { (exit 0); exit 0; }
22381 chmod +x $CONFIG_STATUS
22382 ac_clean_files=$ac_clean_files_save
22385 # configure is writing to config.log, and then calls config.status.
22386 # config.status does its own redirection, appending to config.log.
22387 # Unfortunately, on DOS this fails, as config.log is still kept open
22388 # by configure, so config.status won't be able to write to it; its
22389 # output is simply discarded. So we exec the FD to /dev/null,
22390 # effectively closing config.log, so it can be properly (re)opened and
22391 # appended to by config.status. When coming back to configure, we
22392 # need to make the FD available again.
22393 if test "$no_create" != yes; then
22395 ac_config_status_args=
22396 test "$silent" = yes &&
22397 ac_config_status_args="$ac_config_status_args --quiet"
22399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22402 # would make configure fail if this is the last instruction.
22403 $ac_cs_success || { (exit 1); exit 1; }