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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1435 echo "$as_me: former value: $ac_old_val" >&2;}
1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1437 echo "$as_me: current value: $ac_new_val" >&2;}
1438 ac_cache_corrupted=:
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454 if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494 ac_config_headers="$ac_config_headers config.h"
1501 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504 if test "${enable_version_specific_runtime_libs+set}" = set; then
1505 enableval="$enable_version_specific_runtime_libs"
1507 case "$enableval" in
1509 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511 { (exit 1); exit 1; }; } ;;
1515 enable_version_specific_runtime_libs=no
1518 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1521 # We would like our source tree to be readonly. However when releases or
1522 # pre-releases are generated, the flex/bison generated files as well as the
1523 # various formats of manuals need to be included along with the rest of the
1524 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1526 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1527 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1528 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1529 if test "${enable_generated_files_in_srcdir+set}" = set; then
1530 enableval="$enable_generated_files_in_srcdir"
1532 case "$enableval" in
1534 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1535 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1536 { (exit 1); exit 1; }; } ;;
1540 enable_generated_files_in_srcdir=no
1543 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1544 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1547 if test "$enable_generated_files_in_srcdir" = yes; then
1560 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1562 # You will slowly go insane if you do not grok the following fact: when
1563 # building this library, the top-level /target/ becomes the library's /host/.
1565 # configure then causes --target to default to --host, exactly like any
1566 # other package using autoconf. Therefore, 'target' and 'host' will
1567 # always be the same. This makes sense both for native and cross compilers
1568 # just think about it for a little while. :-)
1570 # Also, if this library is being configured as part of a cross compiler, the
1571 # top-level configure script will pass the "real" host as $with_cross_host.
1573 # Do not delete or change the following two lines. For why, see
1574 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577 if test -f $ac_dir/install-sh; then
1579 ac_install_sh="$ac_aux_dir/install-sh -c"
1581 elif test -f $ac_dir/install.sh; then
1583 ac_install_sh="$ac_aux_dir/install.sh -c"
1585 elif test -f $ac_dir/shtool; then
1587 ac_install_sh="$ac_aux_dir/shtool install -c"
1591 if test -z "$ac_aux_dir"; then
1592 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1593 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594 { (exit 1); exit 1; }; }
1596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1600 # Make sure we can run config.sub.
1601 $ac_config_sub sun4 >/dev/null 2>&1 ||
1602 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1603 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1604 { (exit 1); exit 1; }; }
1606 echo "$as_me:$LINENO: checking build system type" >&5
1607 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1608 if test "${ac_cv_build+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 ac_cv_build_alias=$build_alias
1612 test -z "$ac_cv_build_alias" &&
1613 ac_cv_build_alias=`$ac_config_guess`
1614 test -z "$ac_cv_build_alias" &&
1615 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1616 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617 { (exit 1); exit 1; }; }
1618 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1625 echo "${ECHO_T}$ac_cv_build" >&6
1627 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632 echo "$as_me:$LINENO: checking host system type" >&5
1633 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1634 if test "${ac_cv_host+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 ac_cv_host_alias=$host_alias
1638 test -z "$ac_cv_host_alias" &&
1639 ac_cv_host_alias=$ac_cv_build_alias
1640 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1646 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1647 echo "${ECHO_T}$ac_cv_host" >&6
1649 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654 echo "$as_me:$LINENO: checking target system type" >&5
1655 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1656 if test "${ac_cv_target+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 ac_cv_target_alias=$target_alias
1660 test "x$ac_cv_target_alias" = "x" &&
1661 ac_cv_target_alias=$ac_cv_host_alias
1662 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1665 { (exit 1); exit 1; }; }
1668 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1669 echo "${ECHO_T}$ac_cv_target" >&6
1670 target=$ac_cv_target
1671 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 test -n "$target_alias" &&
1679 test "$program_prefix$program_suffix$program_transform_name" = \
1681 program_prefix=${target_alias}-
1682 target_alias=${target_alias-$host_alias}
1684 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1685 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1686 # 1.9.0: minimum required version
1687 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1688 # of other PACKAGE_* variables will, however, and there's nothing
1689 # we can do about that; they come from AC_INIT).
1690 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1691 # file in the top srcdir, etc, etc), so stop complaining.
1692 # -Wall: turns on all automake warnings...
1693 # -Wno-portability: ...except this one, since GNU make is required.
1694 # -Wno-override: ... and this one, since we do want this in testsuite.
1695 am__api_version="1.9"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 # Account for people who put trailing slashes in PATH elements.
1722 ./ | .// | /cC/* | \
1723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1727 # OSF1 and SCO ODT 3.0 have their own names for install.
1728 # Don't use installbsd from OSF since it installs stuff as root
1730 for ac_prog in ginstall scoinst install; do
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733 if test $ac_prog = install &&
1734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # AIX install. It has an incompatible calling convention.
1737 elif test $ac_prog = install &&
1738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # program-specific install script used by HP pwplus--don't use.
1742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1754 if test "${ac_cv_path_install+set}" = set; then
1755 INSTALL=$ac_cv_path_install
1757 # As a last resort, use the slow shell script. We don't cache a
1758 # path for INSTALL within a source directory, because that will
1759 # break other packages using the cache if that directory is
1760 # removed, or if the path is relative.
1761 INSTALL=$ac_install_sh
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments. Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787 if test "$*" = "X"; then
1789 set X `ls -t $srcdir/configure conftest.file`
1792 if test "$*" != "X $srcdir/configure conftest.file" \
1793 && test "$*" != "X conftest.file $srcdir/configure"; then
1795 # If neither matched, then we have a broken ls. This can happen
1796 # if, for instance, CONFIG_SHELL is bash and it inherits a
1797 # broken ls alias from the environment. This has actually
1798 # happened. Such a system could not be considered "sane".
1799 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1802 alias in your environment" >&2;}
1803 { (exit 1); exit 1; }; }
1806 test "$2" = conftest.file
1812 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816 { (exit 1); exit 1; }; }
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $. echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839 am_missing_run="$MISSING --run "
1842 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847 # We used to keeping the `.' as first argument, in order to
1848 # allow $(mkdir_p) to be used without argument. As in
1849 # $(mkdir_p) $(somedir)
1850 # where $(somedir) is conditionally defined. However this is wrong
1852 # 1. if the package is installed by a user who cannot write `.'
1853 # make install will fail,
1854 # 2. the above comment should most certainly read
1855 # $(mkdir_p) $(DESTDIR)$(somedir)
1856 # so it does not work when $(somedir) is undefined and
1857 # $(DESTDIR) is not.
1858 # To support the latter case, we have to write
1859 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860 # so the `.' trick is pointless.
1861 mkdir_p='mkdir -p --'
1863 # On NextStep and OpenStep, the `mkdir' command does not
1864 # recognize any option. It will interpret all options as
1865 # directories to create, and then abort because `.' already
1867 for d in ./-p ./--version;
1869 test -d $d && rmdir $d
1871 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872 if test -f "$ac_aux_dir/mkinstalldirs"; then
1873 mkdir_p='$(mkinstalldirs)'
1875 mkdir_p='$(install_sh) -d'
1879 for ac_prog in gawk mawk nawk awk
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$AWK"; then
1889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_AWK="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$AWK"; then
1909 echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$AWK" && break
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.make <<\_ACEOF
1927 @echo 'ac_maketemp="$(MAKE)"'
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932 eval ac_cv_prog_make_${ac_make}_set=yes
1934 eval ac_cv_prog_make_${ac_make}_set=no
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 SET_MAKE="MAKE=${MAKE-make}"
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1955 rmdir .tst 2>/dev/null
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959 test -f $srcdir/config.status; then
1960 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967 if (cygpath --version) >/dev/null 2>/dev/null; then
1968 CYGPATH_W='cygpath -w'
1975 # Define the identity of the package.
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE "$PACKAGE"
1985 cat >>confdefs.h <<_ACEOF
1986 #define VERSION "$VERSION"
1989 # Some tools Automake needs.
1991 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1994 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1997 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2000 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2003 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2005 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2007 # Installed binaries are usually stripped using `strip' when the user
2008 # run `make install-strip'. However `strip' might not be the right
2009 # tool to use in cross-compilation environments, therefore Automake
2010 # will honor the `STRIP' environment variable to overrule this program.
2011 if test "$cross_compiling" != no; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}strip; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_STRIP+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$STRIP"; then
2021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 STRIP=$ac_cv_prog_STRIP
2040 if test -n "$STRIP"; then
2041 echo "$as_me:$LINENO: result: $STRIP" >&5
2042 echo "${ECHO_T}$STRIP" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$ac_cv_prog_STRIP"; then
2051 # Extract the first word of "strip", so it can be a program name with args.
2052 set dummy strip; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_STRIP"; then
2059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_STRIP="strip"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2079 if test -n "$ac_ct_STRIP"; then
2080 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2081 echo "${ECHO_T}$ac_ct_STRIP" >&6
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2089 STRIP="$ac_cv_prog_STRIP"
2093 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2095 # We need awk for the "check" target. The system "awk" is bad on
2097 # Always define AMTAR for backward compatibility.
2099 AMTAR=${AMTAR-"${am_missing_run}tar"}
2101 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2107 # Default to --enable-multilib
2108 # Check whether --enable-multilib or --disable-multilib was given.
2109 if test "${enable_multilib+set}" = set; then
2110 enableval="$enable_multilib"
2111 case "$enableval" in
2112 yes) multilib=yes ;;
2114 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2115 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2116 { (exit 1); exit 1; }; } ;;
2122 # We may get other options which we leave undocumented:
2123 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2124 # See config-ml.in if you want the gory details.
2126 if test "$srcdir" = "."; then
2127 if test "$with_target_subdir" != "."; then
2128 multi_basedir="$srcdir/$with_multisrctop../.."
2130 multi_basedir="$srcdir/$with_multisrctop.."
2133 multi_basedir="$srcdir/.."
2137 # Even if the default multilib is not a cross compilation,
2138 # it may be that some of the other multilibs are.
2139 if test $cross_compiling = no && test $multilib = yes \
2140 && test "x${with_multisubdir}" != x ; then
2141 cross_compiling=maybe
2144 ac_config_commands="$ac_config_commands default-1"
2147 # Calculate toolexeclibdir
2148 # Also toolexecdir, though it's only used in toolexeclibdir
2149 case ${enable_version_specific_runtime_libs} in
2151 # Need the gcc compiler version to know where to install libraries
2152 # and header files if --enable-version-specific-runtime-libs option
2154 toolexecdir='$(libdir)/gcc/$(target_alias)'
2155 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2158 if test -n "$with_cross_host" &&
2159 test x"$with_cross_host" != x"no"; then
2160 # Install a library built with a cross compiler in tooldir, not libdir.
2161 toolexecdir='$(exec_prefix)/$(target_alias)'
2162 toolexeclibdir='$(toolexecdir)/lib'
2164 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2165 toolexeclibdir='$(libdir)'
2167 multi_os_directory=`$CC -print-multi-os-directory`
2168 case $multi_os_directory in
2169 .) ;; # Avoid trailing /.
2170 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2177 # Check the compiler.
2178 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2179 # We must force CC to /not/ be precious variables; otherwise
2180 # the wrong, non-multilib-adjusted value will be used in multilibs.
2181 # As a side effect, we have to subst CFLAGS ourselves.
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 if test -n "$CC"; then
2219 echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6
2222 echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2227 if test -z "$ac_cv_prog_CC"; then
2229 # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test -n "$ac_ct_CC"; then
2237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 ac_cv_prog_ac_ct_CC="gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2256 if test -n "$ac_ct_CC"; then
2257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2258 echo "${ECHO_T}$ac_ct_CC" >&6
2260 echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}cc; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CC+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_CC="${ac_tool_prefix}cc"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 if test -n "$CC"; then
2299 echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2302 echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2307 if test -z "$ac_cv_prog_CC"; then
2309 # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC="cc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2350 if test -z "$CC"; then
2351 # Extract the first word of "cc", so it can be a program name with args.
2352 set dummy cc; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370 ac_prog_rejected=yes
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 if test $ac_prog_rejected = yes; then
2381 # We found a bogon in the path, so make sure we never use it.
2382 set dummy $ac_cv_prog_CC
2384 if test $# != 0; then
2385 # We chose a different compiler from the bogus one.
2386 # However, it has the same basename, so the bogon will be chosen
2387 # first if we set CC to just the basename; use the full file name.
2389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2395 if test -n "$CC"; then
2396 echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2399 echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 if test -n "$CC"; then
2436 echo "$as_me:$LINENO: result: $CC" >&5
2437 echo "${ECHO_T}$CC" >&6
2439 echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2443 test -n "$CC" && break
2446 if test -z "$CC"; then
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_CC="$ac_prog"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2485 test -n "$ac_ct_CC" && break
2494 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: no acceptable C compiler found in \$PATH
2497 See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2500 # Provide some information about the compiler.
2501 echo "$as_me:$LINENO:" \
2502 "checking for C compiler version" >&5
2503 ac_compiler=`set X $ac_compile; echo $2`
2504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2505 (eval $ac_compiler --version </dev/null >&5) 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }
2509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2510 (eval $ac_compiler -v </dev/null >&5) 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2515 (eval $ac_compiler -V </dev/null >&5) 2>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 ac_clean_files_save=$ac_clean_files
2536 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2537 # Try to create an executable without -o first, disregard a.out.
2538 # It will help us diagnose broken compilers, and finding out an intuition
2540 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2544 (eval $ac_link_default) 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
2548 # Find the output, starting from the most likely. This scheme is
2549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2552 # Be careful to initialize this variable, since it used to be cached.
2553 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555 # b.out is created by i960 compilers.
2556 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558 test -f "$ac_file" || continue
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2563 # This is the source file.
2566 # We found the default executable, but exeext='' is most
2570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2571 # FIXME: I believe we export ac_cv_exeext for Libtool,
2572 # but it would be cool to find out if it's true. Does anybody
2573 # maintain Libtool? --akim.
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&2;}
2588 { (exit 77); exit 77; }; }
2591 ac_exeext=$ac_cv_exeext
2592 echo "$as_me:$LINENO: result: $ac_file" >&5
2593 echo "${ECHO_T}$ac_file" >&6
2595 # Check the compiler produces executables we can run. If not, either
2596 # the compiler is broken, or we cross compile.
2597 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2598 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2600 # If not cross compiling, check that we can run a simple program.
2601 if test "$cross_compiling" != yes; then
2602 if { ac_try='./$ac_file'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 if test "$cross_compiling" = maybe; then
2613 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot run C compiled programs.
2617 If you meant to cross compile, use \`--host'.
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2623 echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627 ac_clean_files=$ac_clean_files_save
2628 # Check the compiler produces executables we can run. If not, either
2629 # the compiler is broken, or we cross compile.
2630 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2632 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633 echo "${ECHO_T}$cross_compiling" >&6
2635 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; then
2642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2644 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 for ac_file in conftest.exe conftest conftest.*; do
2647 test -f "$ac_file" || continue
2649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2664 rm -f conftest$ac_cv_exeext
2665 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666 echo "${ECHO_T}$ac_cv_exeext" >&6
2668 rm -f conftest.$ac_ext
2669 EXEEXT=$ac_cv_exeext
2671 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2673 if test "${ac_cv_objext+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 rm -f conftest.o conftest.obj
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; then
2697 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6
2719 OBJEXT=$ac_cv_objext
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2836 if test "$ac_test_CFLAGS" = set; then
2837 CFLAGS=$ac_save_CFLAGS
2838 elif test $ac_cv_prog_cc_g = yes; then
2839 if test "$GCC" = yes; then
2845 if test "$GCC" = yes; then
2851 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2852 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2853 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 ac_cv_prog_cc_stdc=no
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2866 #include <sys/types.h>
2867 #include <sys/stat.h>
2868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2869 struct buf { int x; };
2870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871 static char *e (p, i)
2877 static char *f (char * (*g) (char **, int), char **p, ...)
2882 s = g (p, va_arg (v,int));
2887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2888 function prototypes and stuff, but not '\xHH' hex character constants.
2889 These don't provoke an error unfortunately, instead are silently treated
2890 as 'x'. The following induces an error, until -std1 is added to get
2891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2892 array size at least. It's necessary to write '\x00'==0 to get something
2893 that's true only with -std1. */
2894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2896 int test (int i, double x);
2897 struct s1 {int (*f) (int a);};
2898 struct s2 {int (*f) (double a);};
2899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2905 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2910 # Don't try gcc -ansi; that turns off useful extensions and
2911 # breaks some systems' header files.
2912 # AIX -qlanglvl=ansi
2913 # Ultrix and OSF/1 -std1
2914 # HP-UX 10.20 and later -Ae
2915 # HP-UX older versions -Aa -D_HPUX_SOURCE
2916 # SVR4 -Xc -D__EXTENSIONS__
2917 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919 CC="$ac_save_CC $ac_arg"
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_prog_cc_stdc=$ac_arg
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2949 rm -f conftest.err conftest.$ac_objext
2951 rm -f conftest.$ac_ext conftest.$ac_objext
2956 case "x$ac_cv_prog_cc_stdc" in
2958 echo "$as_me:$LINENO: result: none needed" >&5
2959 echo "${ECHO_T}none needed" >&6 ;;
2961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2963 CC="$CC $ac_cv_prog_cc_stdc" ;;
2966 # Some people use a C++ compiler to compile C. Since we use `exit',
2967 # in C++ we need to declare it. In case someone uses the same compiler
2968 # for both compiling C and C++ we need to have the C++ compiler decide
2969 # the declaration of exit, since it's the most demanding environment.
2970 cat >conftest.$ac_ext <<_ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 for ac_declaration in \
2999 'extern "C" void std::exit (int) throw (); using std::exit;' \
3000 'extern "C" void std::exit (int); using std::exit;' \
3001 'extern "C" void exit (int) throw ();' \
3002 'extern "C" void exit (int);' \
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_c_werror_flag"
3031 || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 if test -n "$ac_declaration"; then
3098 echo '#ifdef __cplusplus' >>confdefs.h
3099 echo $ac_declaration >>confdefs.h
3100 echo '#endif' >>confdefs.h
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 DEPDIR="${am__leading_dot}deps"
3116 ac_config_commands="$ac_config_commands depfiles"
3119 am_make=${MAKE-make}
3120 cat > confinc << 'END'
3125 # If we don't find an include directive, just comment out the code.
3126 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3127 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3131 # First try GNU make style include.
3132 echo "include confinc" > confmf
3133 # We grep out `Entering directory' and `Leaving directory'
3134 # messages which can occur if `w' ends up in MAKEFLAGS.
3135 # In particular we don't look at `^make:' because GNU make might
3136 # be invoked under some other name (usually "gmake"), in which
3137 # case it prints its new name instead of `make'.
3138 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145 echo '.include "confinc"' > confmf
3146 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3147 am__include=.include
3154 echo "$as_me:$LINENO: result: $_am_result" >&5
3155 echo "${ECHO_T}$_am_result" >&6
3156 rm -f confinc confmf
3158 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3159 if test "${enable_dependency_tracking+set}" = set; then
3160 enableval="$enable_dependency_tracking"
3163 if test "x$enable_dependency_tracking" != xno; then
3164 am_depcomp="$ac_aux_dir/depcomp"
3169 if test "x$enable_dependency_tracking" != xno; then
3180 depcc="$CC" am_compiler_list=
3182 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188 # We make a subdir and do the tests there. Otherwise we can end up
3189 # making bogus files that we don't know about and never remove. For
3190 # instance it was reported that on HP-UX the gcc test will end up
3191 # making a dummy file named `D' -- because `-MD' means `put the output
3194 # Copy depcomp to subdir because otherwise we won't find it if we're
3195 # using a relative directory.
3196 cp "$am_depcomp" conftest.dir
3198 # We will build objects and dependencies in a subdirectory because
3199 # it helps to detect inapplicable dependency modes. For instance
3200 # both Tru64's cc and ICC support -MD to output dependencies as a
3201 # side effect of compilation, but ICC will put the dependencies in
3202 # the current directory while Tru64 will put them in the object
3206 am_cv_CC_dependencies_compiler_type=none
3207 if test "$am_compiler_list" = ""; then
3208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3210 for depmode in $am_compiler_list; do
3211 # Setup a source with many dependencies, because some compilers
3212 # like to wrap large dependency lists on column 80 (with \), and
3213 # we should not choose a depcomp mode which is confused by this.
3215 # We need to recreate these files for each test, as the compiler may
3216 # overwrite some of them when testing with obscure command lines.
3217 # This happens at least with the AIX C compiler.
3219 for i in 1 2 3 4 5 6; do
3220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3222 # Solaris 8's {/usr,}/bin/sh.
3223 touch sub/conftst$i.h
3225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3229 # after this tag, mechanisms are not by side-effect, so they'll
3230 # only be used when explicitly requested
3231 if test "x$enable_dependency_tracking" = xyes; then
3239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240 # mode. It turns out that the SunPro C++ compiler does not properly
3241 # handle `-M -o', and we need to detect this.
3242 if depmode=$depmode \
3243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3246 >/dev/null 2>conftest.err &&
3247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3248 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3250 # icc doesn't choke on unknown options, it will just issue warnings
3251 # or remarks (even with -Werror). So we grep stderr for any message
3252 # that says an option was ignored or not supported.
3253 # When given -MP, icc 7.0 and 7.1 complain thusly:
3254 # icc: Command line warning: ignoring option '-M'; no argument required
3255 # The diagnosis changed in icc 8.0:
3256 # icc: Command line remark: option '-MP' not supported
3257 if (grep 'ignoring option' conftest.err ||
3258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3259 am_cv_CC_dependencies_compiler_type=$depmode
3268 am_cv_CC_dependencies_compiler_type=none
3272 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3273 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3279 test "x$enable_dependency_tracking" != xno \
3280 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3282 am__fastdepCC_FALSE='#'
3284 am__fastdepCC_TRUE='#'
3285 am__fastdepCC_FALSE=
3293 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3294 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3295 # in both places for now and restore CFLAGS at the end of config.
3296 save_CFLAGS="$CFLAGS"
3298 # Add -Wall -Werror if we are using GCC.
3299 if test "x$GCC" = "xyes"; then
3300 XCFLAGS="$XCFLAGS -Wall -Werror"
3303 # Find other programs we need.
3304 if test -n "$ac_tool_prefix"; then
3305 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3306 set dummy ${ac_tool_prefix}ar; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_prog_AR+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 if test -n "$AR"; then
3313 ac_cv_prog_AR="$AR" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_AR="${ac_tool_prefix}ar"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 if test -n "$AR"; then
3333 echo "$as_me:$LINENO: result: $AR" >&5
3334 echo "${ECHO_T}$AR" >&6
3336 echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3341 if test -z "$ac_cv_prog_AR"; then
3343 # Extract the first word of "ar", so it can be a program name with args.
3344 set dummy ar; ac_word=$2
3345 echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 if test -n "$ac_ct_AR"; then
3351 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_AR="ar"
3361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3370 if test -n "$ac_ct_AR"; then
3371 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3372 echo "${ECHO_T}$ac_ct_AR" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3383 if test -n "$ac_tool_prefix"; then
3384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_prog_RANLIB+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 if test -n "$RANLIB"; then
3392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 RANLIB=$ac_cv_prog_RANLIB
3411 if test -n "$RANLIB"; then
3412 echo "$as_me:$LINENO: result: $RANLIB" >&5
3413 echo "${ECHO_T}$RANLIB" >&6
3415 echo "$as_me:$LINENO: result: no" >&5
3416 echo "${ECHO_T}no" >&6
3420 if test -z "$ac_cv_prog_RANLIB"; then
3421 ac_ct_RANLIB=$RANLIB
3422 # Extract the first word of "ranlib", so it can be a program name with args.
3423 set dummy ranlib; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -n "$ac_ct_RANLIB"; then
3430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_ac_ct_RANLIB="ranlib"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3450 if test -n "$ac_ct_RANLIB"; then
3451 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3452 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 RANLIB=$ac_ct_RANLIB
3460 RANLIB="$ac_cv_prog_RANLIB"
3463 # Extract the first word of "perl", so it can be a program name with args.
3464 set dummy perl; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_PERL+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3493 PERL=$ac_cv_path_PERL
3495 if test -n "$PERL"; then
3496 echo "$as_me:$LINENO: result: $PERL" >&5
3497 echo "${ECHO_T}$PERL" >&6
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3503 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3504 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3505 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3506 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 cat >conftest.make <<\_ACEOF
3511 @echo 'ac_maketemp="$(MAKE)"'
3513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3514 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3515 if test -n "$ac_maketemp"; then
3516 eval ac_cv_prog_make_${ac_make}_set=yes
3518 eval ac_cv_prog_make_${ac_make}_set=no
3522 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3523 echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 SET_MAKE="MAKE=${MAKE-make}"
3532 # Find a good install program. We prefer a C program (faster),
3533 # so one script is as good as another. But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3547 if test -z "$INSTALL"; then
3548 if test "${ac_cv_path_install+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 # Account for people who put trailing slashes in PATH elements.
3558 ./ | .// | /cC/* | \
3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3563 # OSF1 and SCO ODT 3.0 have their own names for install.
3564 # Don't use installbsd from OSF since it installs stuff as root
3566 for ac_prog in ginstall scoinst install; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3569 if test $ac_prog = install &&
3570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # AIX install. It has an incompatible calling convention.
3573 elif test $ac_prog = install &&
3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575 # program-specific install script used by HP pwplus--don't use.
3578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3590 if test "${ac_cv_path_install+set}" = set; then
3591 INSTALL=$ac_cv_path_install
3593 # As a last resort, use the slow shell script. We don't cache a
3594 # path for INSTALL within a source directory, because that will
3595 # break other packages using the cache if that directory is
3596 # removed, or if the path is relative.
3597 INSTALL=$ac_install_sh
3600 echo "$as_me:$LINENO: result: $INSTALL" >&5
3601 echo "${ECHO_T}$INSTALL" >&6
3603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604 # It thinks the first close brace ends the variable substitution.
3605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3612 # See if makeinfo has been installed and is modern enough
3613 # that we can use it.
3615 # Extract the first word of "makeinfo", so it can be a program name with args.
3616 set dummy makeinfo; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test -n "$MAKEINFO"; then
3623 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_MAKEINFO="makeinfo"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 MAKEINFO=$ac_cv_prog_MAKEINFO
3642 if test -n "$MAKEINFO"; then
3643 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3644 echo "${ECHO_T}$MAKEINFO" >&6
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3650 if test -n "$MAKEINFO"; then
3651 # Found it, now check the version.
3652 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3653 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3654 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3658 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3660 case $ac_prog_version in
3661 '') gcc_cv_prog_makeinfo_modern=no;;
3662 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3663 *) gcc_cv_prog_makeinfo_modern=no;;
3667 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3668 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3670 gcc_cv_prog_makeinfo_modern=no
3672 if test $gcc_cv_prog_makeinfo_modern = no; then
3673 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3678 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3680 BUILD_INFO_FALSE='#'
3691 macro_version='2.1a'
3692 macro_revision='1.2435'
3705 ltmain="$ac_aux_dir/ltmain.sh"
3715 # Check whether --enable-shared or --disable-shared was given.
3716 if test "${enable_shared+set}" = set; then
3717 enableval="$enable_shared"
3718 p=${PACKAGE-default}
3720 yes) enable_shared=yes ;;
3721 no) enable_shared=no ;;
3724 # Look at the argument we got. We use all the common list separators.
3725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3726 for pkg in $enableval; do
3728 if test "X$pkg" = "X$p"; then
3746 # Check whether --enable-static or --disable-static was given.
3747 if test "${enable_static+set}" = set; then
3748 enableval="$enable_static"
3749 p=${PACKAGE-default}
3751 yes) enable_static=yes ;;
3752 no) enable_static=no ;;
3755 # Look at the argument we got. We use all the common list separators.
3756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3757 for pkg in $enableval; do
3759 if test "X$pkg" = "X$p"; then
3778 # Check whether --with-pic or --without-pic was given.
3779 if test "${with_pic+set}" = set; then
3786 test -z "$pic_mode" && pic_mode=default
3794 # Check whether --enable-fast-install or --disable-fast-install was given.
3795 if test "${enable_fast_install+set}" = set; then
3796 enableval="$enable_fast_install"
3797 p=${PACKAGE-default}
3799 yes) enable_fast_install=yes ;;
3800 no) enable_fast_install=no ;;
3802 enable_fast_install=no
3803 # Look at the argument we got. We use all the common list separators.
3804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3805 for pkg in $enableval; do
3807 if test "X$pkg" = "X$p"; then
3808 enable_fast_install=yes
3815 enable_fast_install=yes
3825 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3826 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3827 if test "${lt_cv_path_SED+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 # Loop through the user's path and test for sed and gsed.
3831 # Then use that list of sed's as ones to test for truncation.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for lt_ac_prog in sed gsed; do
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3840 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3848 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3849 # along with /bin/sed that truncates output.
3850 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3851 test ! -f $lt_ac_sed && continue
3852 cat /dev/null > conftest.in
3854 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3855 # Check for GNU sed and select it if it is found.
3856 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3857 lt_cv_path_SED=$lt_ac_sed
3861 cat conftest.in conftest.in >conftest.tmp
3862 mv conftest.tmp conftest.in
3863 cp conftest.in conftest.nl
3865 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3866 cmp -s conftest.out conftest.nl || break
3867 # 10000 chars as input seems more than enough
3868 test $lt_ac_count -gt 10 && break
3869 lt_ac_count=`expr $lt_ac_count + 1`
3870 if test $lt_ac_count -gt $lt_ac_max; then
3871 lt_ac_max=$lt_ac_count
3872 lt_cv_path_SED=$lt_ac_sed
3881 echo "$as_me:$LINENO: result: $SED" >&5
3882 echo "${ECHO_T}$SED" >&6
3884 test -z "$SED" && SED=sed
3885 Xsed="$SED -e 1s/^X//"
3897 echo "$as_me:$LINENO: checking for egrep" >&5
3898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3899 if test "${ac_cv_prog_egrep+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3903 then ac_cv_prog_egrep='grep -E'
3904 else ac_cv_prog_egrep='egrep'
3907 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3908 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3909 EGREP=$ac_cv_prog_egrep
3912 echo "$as_me:$LINENO: checking for fgrep" >&5
3913 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3914 if test "${ac_cv_prog_fgrep+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3918 then ac_cv_prog_fgrep='grep -F'
3919 else ac_cv_prog_fgrep='fgrep'
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3923 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3924 FGREP=$ac_cv_prog_fgrep
3927 test -z "$GREP" && GREP=grep
3947 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3948 if test "${with_gnu_ld+set}" = set; then
3949 withval="$with_gnu_ld"
3950 test "$withval" = no || with_gnu_ld=yes
3955 if test "$GCC" = yes; then
3956 # Check if gcc -print-prog-name=ld gives a path.
3957 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3961 # gcc leaves a trailing carriage return which upsets mingw
3962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3967 # Accept absolute paths.
3969 re_direlt='/[^/][^/]*/\.\./'
3970 # Canonicalize the pathname of ld
3971 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3972 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3973 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3975 test -z "$LD" && LD="$ac_prog"
3978 # If it fails, then pretend we aren't using GCC.
3982 # If it is relative, then search for the first ld in PATH.
3986 elif test "$with_gnu_ld" = yes; then
3987 echo "$as_me:$LINENO: checking for GNU ld" >&5
3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3990 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3993 if test "${lt_cv_path_LD+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -z "$LD"; then
3997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3998 for ac_dir in $PATH; do
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4002 lt_cv_path_LD="$ac_dir/$ac_prog"
4003 # Check to see if the program is GNU ld. I'd rather use --version,
4004 # but apparently some variants of GNU ld only accept -v.
4005 # Break only if it was the GNU/non-GNU ld that we prefer.
4006 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4007 *GNU* | *'with BFD'*)
4008 test "$with_gnu_ld" != no && break
4011 test "$with_gnu_ld" != yes && break
4018 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4023 if test -n "$LD"; then
4024 echo "$as_me:$LINENO: result: $LD" >&5
4025 echo "${ECHO_T}$LD" >&6
4027 echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4032 { (exit 1); exit 1; }; }
4033 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4039 case `$LD -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 lt_cv_prog_gnu_ld=yes
4044 lt_cv_prog_gnu_ld=no
4048 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4050 with_gnu_ld=$lt_cv_prog_gnu_ld
4061 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4062 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4063 if test "${lt_cv_path_NM+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 if test -n "$NM"; then
4067 # Let the user override the test.
4070 lt_nm_to_check="${ac_tool_prefix}nm"
4071 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4072 lt_nm_to_check="$lt_nm_to_check nm"
4074 for lt_tmp_nm in $lt_nm_to_check; do
4075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4076 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4078 test -z "$ac_dir" && ac_dir=.
4079 tmp_nm="$ac_dir/$lt_tmp_nm"
4080 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4081 # Check to see if the nm accepts a BSD-compat flag.
4082 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4083 # nm: unknown option "B" ignored
4084 # Tru64's nm complains that /dev/null is an invalid object file
4085 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4086 */dev/null* | *'Invalid file or object type'*)
4087 lt_cv_path_NM="$tmp_nm -B"
4091 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4093 lt_cv_path_NM="$tmp_nm -p"
4097 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4098 continue # so that we can try to find one that supports BSD flags
4107 : ${lt_cv_path_NM=no}
4110 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4111 echo "${ECHO_T}$lt_cv_path_NM" >&6
4112 if test "$lt_cv_path_NM" != "no"; then
4115 # Didn't find any BSD compatible name lister, look for dumpbin.
4116 if test -n "$ac_tool_prefix"; then
4117 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$DUMPBIN"; then
4127 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 DUMPBIN=$ac_cv_prog_DUMPBIN
4146 if test -n "$DUMPBIN"; then
4147 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4148 echo "${ECHO_T}$DUMPBIN" >&6
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4154 test -n "$DUMPBIN" && break
4157 if test -z "$DUMPBIN"; then
4158 ac_ct_DUMPBIN=$DUMPBIN
4159 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 if test -n "$ac_ct_DUMPBIN"; then
4169 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4188 if test -n "$ac_ct_DUMPBIN"; then
4189 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4190 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4196 test -n "$ac_ct_DUMPBIN" && break
4198 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4200 DUMPBIN=$ac_ct_DUMPBIN
4204 if test "$DUMPBIN" != ":"; then
4208 test -z "$NM" && NM=nm
4215 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4216 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4217 if test "${lt_cv_nm_interface+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 lt_cv_nm_interface="BSD nm"
4221 echo "int some_variable = 0;" > conftest.$ac_ext
4222 (eval echo "\"\$as_me:4222: $ac_compile\"" >&5)
4223 (eval "$ac_compile" 2>conftest.err)
4224 cat conftest.err >&5
4225 (eval echo "\"\$as_me:4225: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4226 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4227 cat conftest.err >&5
4228 (eval echo "\"\$as_me:4228: output\"" >&5)
4229 cat conftest.out >&5
4230 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4231 lt_cv_nm_interface="MS dumpbin"
4235 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4236 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4238 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4239 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4241 if test "$LN_S" = "ln -s"; then
4242 echo "$as_me:$LINENO: result: yes" >&5
4243 echo "${ECHO_T}yes" >&6
4245 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4246 echo "${ECHO_T}no, using $LN_S" >&6
4249 # find the maximum length of command line arguments
4250 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4251 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4252 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 # On DJGPP, this test can blow up pretty badly due to problems in libc
4261 # (any single argument exceeding 2000 bytes causes a buffer overrun
4262 # during glob expansion). Even if it were fixed, the result of this
4263 # check would be larger than it should be.
4264 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4268 # Under GNU Hurd, this test is not required because there is
4269 # no limit to the length of command line arguments.
4270 # Libtool will interpret -1 as no limit whatsoever
4271 lt_cv_sys_max_cmd_len=-1;
4275 # On Win9x/ME, this test blows up -- it succeeds, but takes
4276 # about 5 minutes as the teststring grows exponentially.
4277 # Worse, since 9x/ME are not pre-emptively multitasking,
4278 # you end up with a "frozen" computer, even though with patience
4279 # the test eventually succeeds (with a max line length of 256k).
4280 # Instead, let's just punt: use the minimum linelength reported by
4281 # all of the supported platforms: 8192 (on NT/2K/XP).
4282 lt_cv_sys_max_cmd_len=8192;
4286 # On AmigaOS with pdksh, this test takes hours, literally.
4287 # So we just punt and use a minimum line length of 8192.
4288 lt_cv_sys_max_cmd_len=8192;
4291 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4292 # This has been around since 386BSD, at least. Likely further.
4293 if test -x /sbin/sysctl; then
4294 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4295 elif test -x /usr/sbin/sysctl; then
4296 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4298 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4300 # And add a safety zone
4301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4306 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4307 lt_cv_sys_max_cmd_len=196608
4311 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4312 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4313 # nice to cause kernel panics so lets avoid the loop below.
4314 # First set a reasonable default.
4315 lt_cv_sys_max_cmd_len=16384
4317 if test -x /sbin/sysconfig; then
4318 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4319 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4324 lt_cv_sys_max_cmd_len=102400
4326 sysv5* | sco5v6* | sysv4.2uw2*)
4327 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4328 if test -n "$kargmax"; then
4329 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4331 lt_cv_sys_max_cmd_len=32768
4335 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4336 if test -n $lt_cv_sys_max_cmd_len; then
4337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4340 # Make teststring a little bigger before we do anything with it.
4341 # a 1K string should be a reasonable start.
4342 for i in 1 2 3 4 5 6 7 8 ; do
4343 teststring=$teststring$teststring
4345 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4346 # If test is not a shell built-in, we'll probably end up computing a
4347 # maximum length that is only half of the actual maximum length, but
4349 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4350 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4351 test $i != 17 # 1/2 MB should be enough
4354 teststring=$teststring$teststring
4356 # Only check the string length outside the loop.
4357 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4359 # Add a significant safety factor because C++ compilers can tack on
4360 # massive amounts of additional arguments before passing them to the
4361 # linker. It appears as though 1/2 is a usable value.
4362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4369 if test -n $lt_cv_sys_max_cmd_len ; then
4370 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4371 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4373 echo "$as_me:$LINENO: result: none" >&5
4374 echo "${ECHO_T}none" >&6
4376 max_cmd_len=$lt_cv_sys_max_cmd_len
4388 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4389 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4390 # Try some XSI features
4393 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4394 = c,a/b,, ) >/dev/null 2>&1 \
4396 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4397 echo "${ECHO_T}$xsi_shell" >&6
4400 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4401 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4403 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4405 && lt_shell_append=yes
4406 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4407 echo "${ECHO_T}$lt_shell_append" >&6
4410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4420 # test EBCDIC or ASCII
4421 case `echo X|tr X '\101'` in
4422 A) # ASCII based system
4423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4424 lt_SP2NL='tr \040 \012'
4425 lt_NL2SP='tr \015\012 \040\040'
4427 *) # EBCDIC based system
4428 lt_SP2NL='tr \100 \n'
4429 lt_NL2SP='tr \r\n \100\100'
4441 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4442 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4443 if test "${lt_cv_ld_reload_flag+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 lt_cv_ld_reload_flag='-r'
4448 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4449 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4450 reload_flag=$lt_cv_ld_reload_flag
4451 case $reload_flag in
4453 *) reload_flag=" $reload_flag" ;;
4455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4458 if test "$GCC" = yes; then
4459 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4475 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4476 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4477 if test "${lt_cv_deplibs_check_method+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 lt_cv_file_magic_cmd='$MAGIC_CMD'
4481 lt_cv_file_magic_test_file=
4482 lt_cv_deplibs_check_method='unknown'
4483 # Need to set the preceding variable on all platforms that support
4484 # interlibrary dependencies.
4485 # 'none' -- dependencies not supported.
4486 # `unknown' -- same as none, but documents that we really don't know.
4487 # 'pass_all' -- all dependencies passed with no checks.
4488 # 'test_compile' -- check by making test program.
4489 # 'file_magic [[regex]]' -- check by looking for files in library path
4490 # which responds to the $file_magic_cmd with a given extended regex.
4491 # If you have `file' or equivalent on your system and you're not sure
4492 # whether `pass_all' will *always* work, you probably want this one.
4496 lt_cv_deplibs_check_method=pass_all
4500 lt_cv_deplibs_check_method=pass_all
4504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4505 lt_cv_file_magic_cmd='/usr/bin/file -L'
4506 lt_cv_file_magic_test_file=/shlib/libc.so
4510 # func_win32_libid is a shell function defined in ltmain.sh
4511 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4512 lt_cv_file_magic_cmd='func_win32_libid'
4516 # Base MSYS/MinGW do not provide the 'file' command needed by
4517 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4518 # unless we find 'file', for example because we are cross-compiling.
4519 if ( file / ) >/dev/null 2>&1; then
4520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4521 lt_cv_file_magic_cmd='func_win32_libid'
4523 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4524 lt_cv_file_magic_cmd='$OBJDUMP -f'
4528 darwin* | rhapsody*)
4529 lt_cv_deplibs_check_method=pass_all
4532 freebsd* | dragonfly*)
4533 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4536 # Not sure whether the presence of OpenBSD here was a mistake.
4537 # Let's accept both of them until this is cleared up.
4538 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4539 lt_cv_file_magic_cmd=/usr/bin/file
4540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4544 lt_cv_deplibs_check_method=pass_all
4549 lt_cv_deplibs_check_method=pass_all
4552 hpux10.20* | hpux11*)
4553 lt_cv_file_magic_cmd=/usr/bin/file
4556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4557 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4560 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]'
4561 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4565 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4571 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4575 irix5* | irix6* | nonstopux*)
4577 *-32|*"-32 ") libmagic=32-bit;;
4578 *-n32|*"-n32 ") libmagic=N32;;
4579 *-64|*"-64 ") libmagic=64-bit;;
4580 *) libmagic=never-match;;
4582 lt_cv_deplibs_check_method=pass_all
4585 # This must be Linux ELF.
4586 linux* | k*bsd*-gnu)
4587 lt_cv_deplibs_check_method=pass_all
4591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4600 lt_cv_file_magic_cmd=/usr/bin/file
4601 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4605 lt_cv_deplibs_check_method=pass_all
4609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4616 osf3* | osf4* | osf5*)
4617 lt_cv_deplibs_check_method=pass_all
4621 lt_cv_deplibs_check_method=pass_all
4625 lt_cv_deplibs_check_method=pass_all
4628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4629 lt_cv_deplibs_check_method=pass_all
4633 case $host_vendor in
4635 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]'
4636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4639 lt_cv_deplibs_check_method=pass_all
4642 lt_cv_file_magic_cmd='/bin/file'
4643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4646 lt_cv_file_magic_cmd='/bin/file'
4647 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4648 lt_cv_file_magic_test_file=/lib/libc.so
4651 lt_cv_deplibs_check_method=pass_all
4654 lt_cv_deplibs_check_method=pass_all
4660 lt_cv_deplibs_check_method=pass_all
4665 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4666 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4667 file_magic_cmd=$lt_cv_file_magic_cmd
4668 deplibs_check_method=$lt_cv_deplibs_check_method
4669 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}ar; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_prog_AR+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 if test -n "$AR"; then
4691 ac_cv_prog_AR="$AR" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_AR="${ac_tool_prefix}ar"
4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 if test -n "$AR"; then
4711 echo "$as_me:$LINENO: result: $AR" >&5
4712 echo "${ECHO_T}$AR" >&6
4714 echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4719 if test -z "$ac_cv_prog_AR"; then
4721 # Extract the first word of "ar", so it can be a program name with args.
4722 set dummy ar; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 if test -n "$ac_ct_AR"; then
4729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_AR="ar"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4749 if test -n "$ac_ct_AR"; then
4750 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4751 echo "${ECHO_T}$ac_ct_AR" >&6
4753 echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4762 test -z "$AR" && AR=ar
4763 test -z "$AR_FLAGS" && AR_FLAGS=cru
4775 if test -n "$ac_tool_prefix"; then
4776 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4777 set dummy ${ac_tool_prefix}strip; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_STRIP+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 if test -n "$STRIP"; then
4784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 STRIP=$ac_cv_prog_STRIP
4803 if test -n "$STRIP"; then
4804 echo "$as_me:$LINENO: result: $STRIP" >&5
4805 echo "${ECHO_T}$STRIP" >&6
4807 echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4812 if test -z "$ac_cv_prog_STRIP"; then
4814 # Extract the first word of "strip", so it can be a program name with args.
4815 set dummy strip; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$ac_ct_STRIP"; then
4822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_STRIP="strip"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4842 if test -n "$ac_ct_STRIP"; then
4843 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4844 echo "${ECHO_T}$ac_ct_STRIP" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4852 STRIP="$ac_cv_prog_STRIP"
4855 test -z "$STRIP" && STRIP=:
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4865 echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867 if test "${ac_cv_prog_RANLIB+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$RANLIB"; then
4871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 RANLIB=$ac_cv_prog_RANLIB
4890 if test -n "$RANLIB"; then
4891 echo "$as_me:$LINENO: result: $RANLIB" >&5
4892 echo "${ECHO_T}$RANLIB" >&6
4894 echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4899 if test -z "$ac_cv_prog_RANLIB"; then
4900 ac_ct_RANLIB=$RANLIB
4901 # Extract the first word of "ranlib", so it can be a program name with args.
4902 set dummy ranlib; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test -n "$ac_ct_RANLIB"; then
4909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_ac_ct_RANLIB="ranlib"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4929 if test -n "$ac_ct_RANLIB"; then
4930 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4931 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 RANLIB=$ac_ct_RANLIB
4939 RANLIB="$ac_cv_prog_RANLIB"
4942 test -z "$RANLIB" && RANLIB=:
4949 # Determine commands to create old-style static archives.
4950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4951 old_postinstall_cmds='chmod 644 $oldlib'
4952 old_postuninstall_cmds=
4954 if test -n "$RANLIB"; then
4957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4999 # If no C compiler was specified, use CC.
5002 # If no C compiler flags were specified, use CFLAGS.
5003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5005 # Allow CC to be a program name with arguments.
5009 # Check for command to grab the raw symbol name followed by C symbol from nm.
5010 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5011 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5012 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 # These are sane defaults that work on at least a few old systems.
5017 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5019 # Character class describing NM global symbol codes.
5020 symcode='[BCDEGRST]'
5022 # Regexp to match symbols that can be accessed directly from C.
5023 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5025 # Define system-specific variables.
5030 cygwin* | mingw* | pw32*)
5031 symcode='[ABCDGISTW]'
5034 if test "$host_cpu" = ia64; then
5035 symcode='[ABCDEGRST]'
5039 symcode='[BCDEGRST]'
5042 symcode='[BCDEGQRST]'
5053 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5061 # If we're using GNU nm, then use its standard symbol codes.
5062 case `$NM -V 2>&1` in
5063 *GNU* | *'with BFD'*)
5064 symcode='[ABCDGIRSTW]' ;;
5067 # Transform an extracted symbol line into a proper C declaration.
5068 # Some systems (esp. on ia64) link data and code symbols differently,
5069 # so use this general approach.
5070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5072 # Transform an extracted symbol line into symbol name and symbol address
5073 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5075 # Handle CRLF in mingw tool chain
5079 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5083 # Try without a prefix underscore, then with it.
5084 for ac_symprfx in "" "_"; do
5086 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5087 symxfrm="\\1 $ac_symprfx\\2 \\2"
5089 # Write the raw and C identifiers.
5090 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5091 # Fake it for dumpbin and say T for any non-static function
5092 # and D for any global variable.
5093 # Also find C++ and __fastcall symbols from MSVC++,
5094 # which start with @ or ?.
5095 lt_cv_sys_global_symbol_pipe="$AWK '"\
5096 " {last_section=section; section=\$ 3};"\
5097 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5098 " \$ 0!~/External *\|/{next};"\
5099 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5100 " {if(hide[section]) next};"\
5101 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5102 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5103 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5104 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5105 " ' prfx=^$ac_symprfx"
5107 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5110 # Check to see that the pipe works correctly.
5114 cat > conftest.$ac_ext <<_LT_EOF
5119 void nm_test_func(void);
5120 void nm_test_func(void){}
5124 int main(){nm_test_var='a';nm_test_func();return(0);}
5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128 (eval $ac_compile) 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; then
5132 # Now try to grab the symbols.
5134 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5135 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } && test -s "$nlist"; then
5139 # Try sorting and uniquifying the output.
5140 if sort "$nlist" | uniq > "$nlist"T; then
5141 mv -f "$nlist"T "$nlist"
5146 # Make sure that we snagged all the symbols we need.
5147 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5148 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5149 cat <<_LT_EOF > conftest.$ac_ext
5155 # Now generate the symbol file.
5156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5158 cat <<_LT_EOF >> conftest.$ac_ext
5160 /* The mapping between symbol names and symbols. */
5165 lt__PROGRAM__LTX_preloaded_symbols[] =
5167 { "@PROGRAM@", (void *) 0 },
5169 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5170 cat <<\_LT_EOF >> conftest.$ac_ext
5174 /* This works around a problem in FreeBSD linker */
5175 #ifdef FREEBSD_WORKAROUND
5176 static const void *lt_preloaded_setup() {
5177 return lt__PROGRAM__LTX_preloaded_symbols;
5185 # Now try linking the two files.
5186 mv conftest.$ac_objext conftstm.$ac_objext
5187 lt_save_LIBS="$LIBS"
5188 lt_save_CFLAGS="$CFLAGS"
5189 LIBS="conftstm.$ac_objext"
5190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5198 LIBS="$lt_save_LIBS"
5199 CFLAGS="$lt_save_CFLAGS"
5201 echo "cannot find nm_test_func in $nlist" >&5
5204 echo "cannot find nm_test_var in $nlist" >&5
5207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5210 echo "$progname: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 rm -f conftest* conftst*
5215 # Do not use the global_symbol_pipe unless it works.
5216 if test "$pipe_works" = yes; then
5219 lt_cv_sys_global_symbol_pipe=
5225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5226 lt_cv_sys_global_symbol_to_cdecl=
5228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5229 echo "$as_me:$LINENO: result: failed" >&5
5230 echo "${ECHO_T}failed" >&6
5232 echo "$as_me:$LINENO: result: ok" >&5
5233 echo "${ECHO_T}ok" >&6
5253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5254 if test "${enable_libtool_lock+set}" = set; then
5255 enableval="$enable_libtool_lock"
5258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5260 # Some flags need to be propagated to the compiler or linker for good
5264 # Find out which ABI we are using.
5265 echo 'int i;' > conftest.$ac_ext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; then
5271 case `/usr/bin/file conftest.$ac_objext` in
5283 # Find out which ABI we are using.
5284 echo '#line 5284 "configure"' > conftest.$ac_ext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; then
5290 if test "$lt_cv_prog_gnu_ld" = yes; then
5291 case `/usr/bin/file conftest.$ac_objext` in
5293 LD="${LD-ld} -melf32bsmip"
5296 LD="${LD-ld} -melf32bmipn32"
5299 LD="${LD-ld} -melf64bmip"
5303 case `/usr/bin/file conftest.$ac_objext` in
5319 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5320 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5321 # Find out which ABI we are using.
5322 echo 'int i;' > conftest.$ac_ext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; then
5328 case `/usr/bin/file conftest.o` in
5331 x86_64-*kfreebsd*-gnu)
5332 LD="${LD-ld} -m elf_i386_fbsd"
5335 LD="${LD-ld} -m elf_i386"
5337 ppc64-*linux*|powerpc64-*linux*)
5338 LD="${LD-ld} -m elf32ppclinux"
5341 LD="${LD-ld} -m elf_s390"
5344 LD="${LD-ld} -m elf32_sparc"
5350 x86_64-*kfreebsd*-gnu)
5351 LD="${LD-ld} -m elf_x86_64_fbsd"
5354 LD="${LD-ld} -m elf_x86_64"
5356 ppc*-*linux*|powerpc*-*linux*)
5357 LD="${LD-ld} -m elf64ppc"
5359 s390*-*linux*|s390*-*tpf*)
5360 LD="${LD-ld} -m elf64_s390"
5363 LD="${LD-ld} -m elf64_sparc"
5373 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5374 SAVE_CFLAGS="$CFLAGS"
5375 CFLAGS="$CFLAGS -belf"
5376 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5377 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5378 if test "${lt_cv_cc_needs_belf+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387 cat >conftest.$ac_ext <<_ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5402 rm -f conftest.$ac_objext conftest$ac_exeext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5404 (eval $ac_link) 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest$ac_exeext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 lt_cv_cc_needs_belf=yes
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 lt_cv_cc_needs_belf=no
5431 rm -f conftest.err conftest.$ac_objext \
5432 conftest$ac_exeext conftest.$ac_ext
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5441 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5442 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5444 CFLAGS="$SAVE_CFLAGS"
5448 # Find out which ABI we are using.
5449 echo 'int i;' > conftest.$ac_ext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; then
5455 case `/usr/bin/file conftest.o` in
5457 case $lt_cv_prog_gnu_ld in
5458 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5459 *) LD="${LD-ld} -64" ;;
5468 need_locks="$enable_libtool_lock"
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5476 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5477 # On Suns, sometimes $CPP names a directory.
5478 if test -n "$CPP" && test -d "$CPP"; then
5481 if test -z "$CPP"; then
5482 if test "${ac_cv_prog_CPP+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 # Double quotes because CPP needs to be expanded
5486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5489 for ac_c_preproc_warn_flag in '' yes
5491 # Use a header file that comes with gcc, so configuring glibc
5492 # with a fresh cross-compiler works.
5493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5494 # <limits.h> exists even on freestanding compilers.
5495 # On the NeXT, cc -E runs the code through the compiler's parser,
5496 # not just through cpp. "Syntax error" is here to catch this case.
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 # include <limits.h>
5506 # include <assert.h>
5510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } >/dev/null; then
5518 if test -s conftest.err; then
5519 ac_cpp_err=$ac_c_preproc_warn_flag
5520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527 if test -z "$ac_cpp_err"; then
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 # Broken: fails on valid input.
5536 rm -f conftest.err conftest.$ac_ext
5538 # OK, works on sane cases. Now check whether non-existent headers
5539 # can be detected and how.
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <ac_nonexistent.h>
5548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5565 if test -z "$ac_cpp_err"; then
5566 # Broken: success on invalid input.
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 # Passes both tests.
5576 rm -f conftest.err conftest.$ac_ext
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then
5593 echo "$as_me:$LINENO: result: $CPP" >&5
5594 echo "${ECHO_T}$CPP" >&6
5596 for ac_c_preproc_warn_flag in '' yes
5598 # Use a header file that comes with gcc, so configuring glibc
5599 # with a fresh cross-compiler works.
5600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5601 # <limits.h> exists even on freestanding compilers.
5602 # On the NeXT, cc -E runs the code through the compiler's parser,
5603 # not just through cpp. "Syntax error" is here to catch this case.
5604 cat >conftest.$ac_ext <<_ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5611 # include <limits.h>
5613 # include <assert.h>
5617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } >/dev/null; then
5625 if test -s conftest.err; then
5626 ac_cpp_err=$ac_c_preproc_warn_flag
5627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5634 if test -z "$ac_cpp_err"; then
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 # Broken: fails on valid input.
5643 rm -f conftest.err conftest.$ac_ext
5645 # OK, works on sane cases. Now check whether non-existent headers
5646 # can be detected and how.
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } >/dev/null; then
5663 if test -s conftest.err; then
5664 ac_cpp_err=$ac_c_preproc_warn_flag
5665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5672 if test -z "$ac_cpp_err"; then
5673 # Broken: success on invalid input.
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 # Passes both tests.
5683 rm -f conftest.err conftest.$ac_ext
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.err conftest.$ac_ext
5688 if $ac_preproc_ok; then
5691 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5692 See \`config.log' for more details." >&5
5693 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5694 See \`config.log' for more details." >&2;}
5695 { (exit 1); exit 1; }; }
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5706 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5707 if test "${ac_cv_header_stdc+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag"
5739 || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_header_stdc=yes
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_cv_header_stdc=no
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5760 if test $ac_cv_header_stdc = yes; then
5761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5762 cat >conftest.$ac_ext <<_ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5772 $EGREP "memchr" >/dev/null 2>&1; then
5775 ac_cv_header_stdc=no
5781 if test $ac_cv_header_stdc = yes; then
5782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793 $EGREP "free" >/dev/null 2>&1; then
5796 ac_cv_header_stdc=no
5802 if test $ac_cv_header_stdc = yes; then
5803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5804 if test "$cross_compiling" = yes; then
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5814 #if ((' ' & 0x0FF) == 0x020)
5815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5818 # define ISLOWER(c) \
5819 (('a' <= (c) && (c) <= 'i') \
5820 || ('j' <= (c) && (c) <= 'r') \
5821 || ('s' <= (c) && (c) <= 'z'))
5822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5830 for (i = 0; i < 256; i++)
5831 if (XOR (islower (i), ISLOWER (i))
5832 || toupper (i) != TOUPPER (i))
5837 rm -f conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5850 echo "$as_me: program exited with status $ac_status" >&5
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_cv_header_stdc=no
5857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5861 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5862 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5863 if test $ac_cv_header_stdc = yes; then
5865 cat >>confdefs.h <<\_ACEOF
5866 #define STDC_HEADERS 1
5871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5881 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5882 inttypes.h stdint.h unistd.h
5884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885 echo "$as_me:$LINENO: checking for $ac_header" >&5
5886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 $ac_includes_default
5898 #include <$ac_header>
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 eval "$as_ac_Header=yes"
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 eval "$as_ac_Header=no"
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934 cat >>confdefs.h <<_ACEOF
5935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5944 for ac_header in dlfcn.h
5946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 echo "$as_me:$LINENO: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 cat >conftest.$ac_ext <<_ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 $ac_includes_default
5960 #include <$ac_header>
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1 >conftest.err
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 eval "$as_ac_Header=yes"
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 eval "$as_ac_Header=no"
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5996 cat >>confdefs.h <<_ACEOF
5997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6006 # This can be used to rebuild libtool when needed
6007 LIBTOOL_DEPS="$ltmain"
6009 # Always use our own libtool.
6010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6036 test -z "$LN_S" && LN_S="ln -s"
6051 if test -n "${ZSH_VERSION+set}" ; then
6052 setopt NO_GLOB_SUBST
6055 echo "$as_me:$LINENO: checking for objdir" >&5
6056 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6057 if test "${lt_cv_objdir+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 rm -f .libs 2>/dev/null
6061 mkdir .libs 2>/dev/null
6062 if test -d .libs; then
6065 # MS-DOS does not allow filenames that begin with a dot.
6068 rmdir .libs 2>/dev/null
6070 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6071 echo "${ECHO_T}$lt_cv_objdir" >&6
6072 objdir=$lt_cv_objdir
6078 cat >>confdefs.h <<_ACEOF
6079 #define LT_OBJDIR "$lt_cv_objdir/"
6100 # AIX sometimes has problems with the GCC collect2 program. For some
6101 # reason, if we set the COLLECT_NAMES environment variable, the problems
6102 # vanish in a puff of smoke.
6103 if test "X${COLLECT_NAMES+set}" != Xset; then
6105 export COLLECT_NAMES
6110 # Sed substitution that helps us do robust quoting. It backslashifies
6111 # metacharacters that are still active within double-quoted strings.
6112 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6114 # Same as above, but do not quote variable references.
6115 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6117 # Sed substitution to delay expansion of an escaped shell variable in a
6118 # double_quote_subst'ed string.
6119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6121 # Sed substitution to delay expansion of an escaped single quote.
6122 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6124 # Sed substitution to avoid accidental globbing in evaled expressions
6125 no_glob_subst='s/\*/\\\*/g'
6129 can_build_shared=yes
6131 # All known linkers require a `.a' archive for static linking (except MSVC,
6132 # which needs '.lib').
6135 with_gnu_ld="$lt_cv_prog_gnu_ld"
6138 old_CFLAGS="$CFLAGS"
6140 # Set sane defaults for various variables
6141 test -z "$CC" && CC=cc
6142 test -z "$LTCC" && LTCC=$CC
6143 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6144 test -z "$LD" && LD=ld
6145 test -z "$ac_objext" && ac_objext=o
6147 for cc_temp in $compiler""; do
6149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6155 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6158 # Only perform the check for file, if the check method requires it
6159 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6160 case $deplibs_check_method in
6162 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6163 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6164 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6173 lt_save_MAGIC_CMD="$MAGIC_CMD"
6174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176 for ac_dir in $ac_dummy; do
6178 test -z "$ac_dir" && ac_dir=.
6179 if test -f $ac_dir/${ac_tool_prefix}file; then
6180 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6181 if test -n "$file_magic_test_file"; then
6182 case $deplibs_check_method in
6184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187 $EGREP "$file_magic_regex" > /dev/null; then
6192 *** Warning: the command libtool uses to detect shared libraries,
6193 *** $file_magic_cmd, produces output that libtool cannot recognize.
6194 *** The result is that libtool may fail to recognize shared libraries
6195 *** as such. This will affect the creation of libtool libraries that
6196 *** depend on shared libraries, but programs linked with such libtool
6197 *** libraries will work regardless of this problem. Nevertheless, you
6198 *** may want to report the problem to your system manager and/or to
6199 *** bug-libtool@gnu.org
6209 MAGIC_CMD="$lt_save_MAGIC_CMD"
6214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215 if test -n "$MAGIC_CMD"; then
6216 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217 echo "${ECHO_T}$MAGIC_CMD" >&6
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6227 if test -z "$lt_cv_path_MAGIC_CMD"; then
6228 if test -n "$ac_tool_prefix"; then
6229 echo "$as_me:$LINENO: checking for file" >&5
6230 echo $ECHO_N "checking for file... $ECHO_C" >&6
6231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6239 lt_save_MAGIC_CMD="$MAGIC_CMD"
6240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6242 for ac_dir in $ac_dummy; do
6244 test -z "$ac_dir" && ac_dir=.
6245 if test -f $ac_dir/file; then
6246 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6247 if test -n "$file_magic_test_file"; then
6248 case $deplibs_check_method in
6250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6253 $EGREP "$file_magic_regex" > /dev/null; then
6258 *** Warning: the command libtool uses to detect shared libraries,
6259 *** $file_magic_cmd, produces output that libtool cannot recognize.
6260 *** The result is that libtool may fail to recognize shared libraries
6261 *** as such. This will affect the creation of libtool libraries that
6262 *** depend on shared libraries, but programs linked with such libtool
6263 *** libraries will work regardless of this problem. Nevertheless, you
6264 *** may want to report the problem to your system manager and/or to
6265 *** bug-libtool@gnu.org
6275 MAGIC_CMD="$lt_save_MAGIC_CMD"
6280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6281 if test -n "$MAGIC_CMD"; then
6282 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6283 echo "${ECHO_T}$MAGIC_CMD" >&6
6285 echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6299 # Use C for the default configuration in the libtool script
6303 ac_cpp='$CPP $CPPFLAGS'
6304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6309 # Source file extension for C test sources.
6312 # Object file extension for compiled C test sources.
6316 # Code to be used in simple compile tests
6317 lt_simple_compile_test_code="int some_variable = 0;"
6319 # Code to be used in simple link tests
6320 lt_simple_link_test_code='int main(){return(0);}'
6328 # If no C compiler was specified, use CC.
6331 # If no C compiler flags were specified, use CFLAGS.
6332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6334 # Allow CC to be a program name with arguments.
6337 # Save the default compiler, since it gets overwritten when the other
6338 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6339 compiler_DEFAULT=$CC
6341 # save warnings/boilerplate of simple test code
6342 ac_outfile=conftest.$ac_objext
6343 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6344 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6345 _lt_compiler_boilerplate=`cat conftest.err`
6348 ac_outfile=conftest.$ac_objext
6349 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6350 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6351 _lt_linker_boilerplate=`cat conftest.err`
6356 ## There is no encapsulation within the following macros, do not change
6357 ## the running order or otherwise move them around unless you know exactly
6358 ## what you are doing...
6359 if test -n "$compiler"; then
6361 lt_prog_compiler_no_builtin_flag=
6363 if test "$GCC" = yes; then
6364 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6366 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6367 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6368 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 lt_cv_prog_compiler_rtti_exceptions=no
6372 ac_outfile=conftest.$ac_objext
6373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6374 lt_compiler_flag="-fno-rtti -fno-exceptions"
6375 # Insert the option either (1) after the last *FLAGS variable, or
6376 # (2) before a word containing "conftest.", or (3) at the end.
6377 # Note that $ac_compile itself does not contain backslashes and begins
6378 # with a dollar sign (not a hyphen), so the echo should work correctly.
6379 # The option is referenced via a variable to avoid confusing sed.
6380 lt_compile=`echo "$ac_compile" | $SED \
6381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6383 -e 's:$: $lt_compiler_flag:'`
6384 (eval echo "\"\$as_me:6384: $lt_compile\"" >&5)
6385 (eval "$lt_compile" 2>conftest.err)
6387 cat conftest.err >&5
6388 echo "$as_me:6388: \$? = $ac_status" >&5
6389 if (exit $ac_status) && test -s "$ac_outfile"; then
6390 # The compiler can only warn and ignore the option if not recognized
6391 # So say no if there are warnings other than the usual output.
6392 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6395 lt_cv_prog_compiler_rtti_exceptions=yes
6401 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6402 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6404 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6405 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6417 lt_prog_compiler_wl=
6418 lt_prog_compiler_pic=
6419 lt_prog_compiler_static=
6421 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6422 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6424 if test "$GCC" = yes; then
6425 lt_prog_compiler_wl='-Wl,'
6426 lt_prog_compiler_static='-static'
6430 # All AIX code is PIC.
6431 if test "$host_cpu" = ia64; then
6432 # AIX 5 now supports IA64 processor
6433 lt_prog_compiler_static='-Bstatic'
6438 if test "$host_cpu" = m68k; then
6439 # FIXME: we need at least 68020 code to build shared libraries, but
6440 # adding the `-m68020' flag to GCC prevents building anything better,
6442 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6447 # PIC is the default for these OSes.
6450 mingw* | cygwin* | pw32* | os2*)
6451 # This hack is so that the source file can tell whether it is being
6452 # built for inclusion in a dll (and should export symbols for example).
6453 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6454 # (--disable-auto-import) libraries
6455 lt_prog_compiler_pic='-DDLL_EXPORT'
6458 darwin* | rhapsody*)
6459 # PIC is the default on this platform
6460 # Common symbols not allowed in MH_DYLIB files
6461 lt_prog_compiler_pic='-fno-common'
6465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6472 lt_prog_compiler_pic='-fPIC'
6478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6479 # Instead, we relocate shared libraries at runtime.
6483 # Just because we use GCC doesn't mean we suddenly get shared libraries
6484 # on systems that don't support them.
6485 lt_prog_compiler_can_build_shared=no
6490 # QNX uses GNU C++, but need to define -shared option too, otherwise
6492 lt_prog_compiler_pic='-fPIC -shared'
6496 if test -d /usr/nec; then
6497 lt_prog_compiler_pic=-Kconform_pic
6502 lt_prog_compiler_pic='-fPIC'
6506 # PORTME Check for flag to pass linker flags through the system compiler.
6509 lt_prog_compiler_wl='-Wl,'
6510 if test "$host_cpu" = ia64; then
6511 # AIX 5 now supports IA64 processor
6512 lt_prog_compiler_static='-Bstatic'
6514 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6518 # PIC is the default on this platform
6519 # Common symbols not allowed in MH_DYLIB files
6520 case $cc_basename in
6522 lt_prog_compiler_pic='-qnocommon'
6523 lt_prog_compiler_wl='-Wl,'
6528 mingw* | cygwin* | pw32* | os2*)
6529 # This hack is so that the source file can tell whether it is being
6530 # built for inclusion in a dll (and should export symbols for example).
6531 lt_prog_compiler_pic='-DDLL_EXPORT'
6534 hpux9* | hpux10* | hpux11*)
6535 lt_prog_compiler_wl='-Wl,'
6536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6543 lt_prog_compiler_pic='+Z'
6546 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6547 lt_prog_compiler_static='${wl}-a ${wl}archive'
6550 irix5* | irix6* | nonstopux*)
6551 lt_prog_compiler_wl='-Wl,'
6552 # PIC (with -KPIC) is the default.
6553 lt_prog_compiler_static='-non_shared'
6556 linux* | k*bsd*-gnu)
6557 case $cc_basename in
6559 lt_prog_compiler_wl='-Wl,'
6560 lt_prog_compiler_pic='-KPIC'
6561 lt_prog_compiler_static='-static'
6563 pgcc* | pgf77* | pgf90* | pgf95*)
6564 # Portland Group compilers (*not* the Pentium gcc compiler,
6565 # which looks to be a dead project)
6566 lt_prog_compiler_wl='-Wl,'
6567 lt_prog_compiler_pic='-fpic'
6568 lt_prog_compiler_static='-Bstatic'
6571 lt_prog_compiler_wl='-Wl,'
6572 # All Alpha code is PIC.
6573 lt_prog_compiler_static='-non_shared'
6576 case `$CC -V 2>&1 | sed 5q` in
6579 lt_prog_compiler_pic='-KPIC'
6580 lt_prog_compiler_static='-Bstatic'
6581 lt_prog_compiler_wl='-Wl,'
6584 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6585 lt_prog_compiler_pic='-KPIC'
6586 lt_prog_compiler_static='-Bstatic'
6587 lt_prog_compiler_wl=''
6595 lt_prog_compiler_pic='-KPIC'
6596 lt_prog_compiler_static='-Bstatic'
6600 # QNX uses GNU C++, but need to define -shared option too, otherwise
6602 lt_prog_compiler_pic='-fPIC -shared'
6605 osf3* | osf4* | osf5*)
6606 lt_prog_compiler_wl='-Wl,'
6607 # All OSF/1 code is PIC.
6608 lt_prog_compiler_static='-non_shared'
6612 lt_prog_compiler_static='-non_shared'
6616 lt_prog_compiler_pic='-KPIC'
6617 lt_prog_compiler_static='-Bstatic'
6618 case $cc_basename in
6620 lt_prog_compiler_wl='-Qoption ld ';;
6622 lt_prog_compiler_wl='-Wl,';;
6627 lt_prog_compiler_wl='-Qoption ld '
6628 lt_prog_compiler_pic='-PIC'
6629 lt_prog_compiler_static='-Bstatic'
6632 sysv4 | sysv4.2uw2* | sysv4.3*)
6633 lt_prog_compiler_wl='-Wl,'
6634 lt_prog_compiler_pic='-KPIC'
6635 lt_prog_compiler_static='-Bstatic'
6639 if test -d /usr/nec ;then
6640 lt_prog_compiler_pic='-Kconform_pic'
6641 lt_prog_compiler_static='-Bstatic'
6645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6646 lt_prog_compiler_wl='-Wl,'
6647 lt_prog_compiler_pic='-KPIC'
6648 lt_prog_compiler_static='-Bstatic'
6652 lt_prog_compiler_wl='-Wl,'
6653 lt_prog_compiler_can_build_shared=no
6657 lt_prog_compiler_pic='-pic'
6658 lt_prog_compiler_static='-Bstatic'
6662 lt_prog_compiler_can_build_shared=no
6668 # For platforms which do not support PIC, -DPIC is meaningless:
6670 lt_prog_compiler_pic=
6673 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6677 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6685 # Check to make sure the PIC flag actually works.
6687 if test -n "$lt_prog_compiler_pic"; then
6688 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6690 if test "${lt_prog_compiler_pic_works+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 lt_prog_compiler_pic_works=no
6694 ac_outfile=conftest.$ac_objext
6695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6696 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6697 # Insert the option either (1) after the last *FLAGS variable, or
6698 # (2) before a word containing "conftest.", or (3) at the end.
6699 # Note that $ac_compile itself does not contain backslashes and begins
6700 # with a dollar sign (not a hyphen), so the echo should work correctly.
6701 # The option is referenced via a variable to avoid confusing sed.
6702 lt_compile=`echo "$ac_compile" | $SED \
6703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6705 -e 's:$: $lt_compiler_flag:'`
6706 (eval echo "\"\$as_me:6706: $lt_compile\"" >&5)
6707 (eval "$lt_compile" 2>conftest.err)
6709 cat conftest.err >&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 if (exit $ac_status) && test -s "$ac_outfile"; then
6712 # The compiler can only warn and ignore the option if not recognized
6713 # So say no if there are warnings other than the usual output.
6714 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6717 lt_prog_compiler_pic_works=yes
6723 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6724 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6726 if test x"$lt_prog_compiler_pic_works" = xyes; then
6727 case $lt_prog_compiler_pic in
6729 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6732 lt_prog_compiler_pic=
6733 lt_prog_compiler_can_build_shared=no
6744 # Check to make sure the static flag actually works.
6746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6747 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6749 if test "${lt_prog_compiler_static_works+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 lt_prog_compiler_static_works=no
6753 save_LDFLAGS="$LDFLAGS"
6754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6757 # The linker can only warn and ignore the option if not recognized
6758 # So say no if there are warnings
6759 if test -s conftest.err; then
6760 # Append any errors to the config.log.
6761 cat conftest.err 1>&5
6762 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6764 if diff conftest.exp conftest.er2 >/dev/null; then
6765 lt_prog_compiler_static_works=yes
6768 lt_prog_compiler_static_works=yes
6772 LDFLAGS="$save_LDFLAGS"
6775 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6776 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6778 if test x"$lt_prog_compiler_static_works" = xyes; then
6781 lt_prog_compiler_static=
6790 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 lt_cv_prog_compiler_c_o=no
6796 $RM -r conftest 2>/dev/null
6800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6802 lt_compiler_flag="-o out/conftest2.$ac_objext"
6803 # Insert the option either (1) after the last *FLAGS variable, or
6804 # (2) before a word containing "conftest.", or (3) at the end.
6805 # Note that $ac_compile itself does not contain backslashes and begins
6806 # with a dollar sign (not a hyphen), so the echo should work correctly.
6807 lt_compile=`echo "$ac_compile" | $SED \
6808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6810 -e 's:$: $lt_compiler_flag:'`
6811 (eval echo "\"\$as_me:6811: $lt_compile\"" >&5)
6812 (eval "$lt_compile" 2>out/conftest.err)
6814 cat out/conftest.err >&5
6815 echo "$as_me:6815: \$? = $ac_status" >&5
6816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6818 # The compiler can only warn and ignore the option if not recognized
6819 # So say no if there are warnings
6820 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6823 lt_cv_prog_compiler_c_o=yes
6828 # SGI C++ compiler will create directory out/ii_files/ for
6829 # template instantiation
6830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6831 $RM out/* && rmdir out
6837 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6845 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6846 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 lt_cv_prog_compiler_c_o=no
6851 $RM -r conftest 2>/dev/null
6855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6857 lt_compiler_flag="-o out/conftest2.$ac_objext"
6858 # Insert the option either (1) after the last *FLAGS variable, or
6859 # (2) before a word containing "conftest.", or (3) at the end.
6860 # Note that $ac_compile itself does not contain backslashes and begins
6861 # with a dollar sign (not a hyphen), so the echo should work correctly.
6862 lt_compile=`echo "$ac_compile" | $SED \
6863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6865 -e 's:$: $lt_compiler_flag:'`
6866 (eval echo "\"\$as_me:6866: $lt_compile\"" >&5)
6867 (eval "$lt_compile" 2>out/conftest.err)
6869 cat out/conftest.err >&5
6870 echo "$as_me:6870: \$? = $ac_status" >&5
6871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6873 # The compiler can only warn and ignore the option if not recognized
6874 # So say no if there are warnings
6875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6878 lt_cv_prog_compiler_c_o=yes
6883 # SGI C++ compiler will create directory out/ii_files/ for
6884 # template instantiation
6885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6886 $RM out/* && rmdir out
6892 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6893 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6898 hard_links="nottested"
6899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6900 # do not overwrite the value of need_locks provided by the user
6901 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6907 ln conftest.a conftest.b 2>&5 || hard_links=no
6908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6909 echo "$as_me:$LINENO: result: $hard_links" >&5
6910 echo "${ECHO_T}$hard_links" >&6
6911 if test "$hard_links" = no; then
6912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6925 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6929 allow_undefined_flag=
6930 always_export_symbols=no
6932 archive_expsym_cmds=
6933 compiler_needs_object=no
6934 enable_shared_with_static_runtimes=no
6935 export_dynamic_flag_spec=
6936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6937 hardcode_automatic=no
6939 hardcode_direct_absolute=no
6940 hardcode_libdir_flag_spec=
6941 hardcode_libdir_flag_spec_ld=
6942 hardcode_libdir_separator=
6944 hardcode_shlibpath_var=unsupported
6946 link_all_deplibs=unknown
6949 old_archive_from_new_cmds=
6950 old_archive_from_expsyms_cmds=
6951 thread_safe_flag_spec=
6952 whole_archive_flag_spec=
6953 # include_expsyms should be a list of space-separated symbols to be *always*
6954 # included in the symbol list
6956 # exclude_expsyms can be an extended regexp of symbols to exclude
6957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6959 # as well as any symbol that contains `d'.
6960 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6962 # platforms (ab)use it in PIC code, but their linkers get confused if
6963 # the symbol is explicitly referenced. Since portable code cannot
6964 # rely on this symbol name, it's probably fine to never include it in
6965 # preloaded symbol tables.
6966 extract_expsyms_cmds=
6969 cygwin* | mingw* | pw32*)
6970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6971 # When not using gcc, we currently assume that we are using
6972 # Microsoft Visual C++.
6973 if test "$GCC" != yes; then
6978 # we just hope/assume this is gcc and not c89 (= MSVC++)
6987 if test "$with_gnu_ld" = yes; then
6988 # If archive_cmds runs LD, not CC, wlarc should be empty
6991 # Set some defaults for GNU ld with shared library support. These
6992 # are reset later if shared libraries are not supported. Putting them
6993 # here allows them to be overridden if necessary.
6994 runpath_var=LD_RUN_PATH
6995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6996 export_dynamic_flag_spec='${wl}--export-dynamic'
6997 # ancient GNU ld didn't support --whole-archive et. al.
6998 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6999 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7001 whole_archive_flag_spec=
7003 supports_anon_versioning=no
7004 case `$LD -v 2>&1` in
7005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7008 *\ 2.11.*) ;; # other 2.11 versions
7009 *) supports_anon_versioning=yes ;;
7012 # See if GNU ld supports shared libraries.
7015 # On AIX/PPC, the GNU linker is very broken
7016 if test "$host_cpu" != ia64; then
7020 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7021 *** to be unable to reliably create shared libraries on AIX.
7022 *** Therefore, libtool is disabling shared libraries support. If you
7023 *** really care for shared libraries, you may want to modify your PATH
7024 *** so that a non-GNU linker is found, and then restart.
7031 if test "$host_cpu" = m68k; then
7032 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)'
7033 hardcode_libdir_flag_spec='-L$libdir'
7034 hardcode_minus_L=yes
7037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7038 # that the semantics of dynamic libraries on AmigaOS, at least up
7039 # to version 4, is to share data among multiple programs linked
7040 # with the same dynamic library. Since this doesn't match the
7041 # behavior of shared libraries on other platforms, we can't use
7047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7048 allow_undefined_flag=unsupported
7049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7050 # support --undefined. This deserves some investigation. FIXME
7051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7057 cygwin* | mingw* | pw32*)
7058 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7059 # as there is no search path for DLLs.
7060 hardcode_libdir_flag_spec='-L$libdir'
7061 allow_undefined_flag=unsupported
7062 always_export_symbols=no
7063 enable_shared_with_static_runtimes=yes
7064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7068 # If the export-symbols file already is a .def file (1st line
7069 # is EXPORTS), use it as is; otherwise, prepend...
7070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7071 cp $export_symbols $output_objdir/$soname.def;
7073 echo EXPORTS > $output_objdir/$soname.def;
7074 cat $export_symbols >> $output_objdir/$soname.def;
7076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7084 hardcode_shlibpath_var=no
7085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7086 export_dynamic_flag_spec='${wl}-E'
7087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7088 # Instead, shared libraries are loaded at an image base (0x10000000 by
7089 # default) and relocated if they conflict, which is a slow very memory
7090 # consuming and fragmenting process. To avoid this, we pick a random,
7091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7094 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'
7097 gnu* | linux* | tpf* | k*bsd*-gnu)
7099 if test "$host_os" = linux-dietlibc; then
7100 case $cc_basename in
7101 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7104 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7105 && test "$tmp_diet" = no
7108 case $cc_basename,$host_cpu in
7109 pgcc*) # Portland Group C compiler
7110 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'
7111 tmp_addflag=' $pic_flag'
7113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7114 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'
7115 tmp_addflag=' $pic_flag -Mnomain' ;;
7116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7117 tmp_addflag=' -i_dynamic' ;;
7118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7119 tmp_addflag=' -i_dynamic -nofor_main' ;;
7120 ifc* | ifort*) # Intel Fortran compiler
7121 tmp_addflag=' -nofor_main' ;;
7123 case `$CC -V 2>&1 | sed 5q` in
7124 *Sun\ C*) # Sun C 5.9
7125 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'
7126 compiler_needs_object=yes
7127 tmp_sharedflag='-G' ;;
7128 *Sun\ F*) # Sun Fortran 8.3
7129 tmp_sharedflag='-G' ;;
7131 tmp_sharedflag='-shared' ;;
7133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7135 if test "x$supports_anon_versioning" = xyes; then
7136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7138 echo "local: *; };" >> $output_objdir/$libname.ver~
7139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7148 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7157 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7161 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7162 *** create shared libraries on Solaris systems. Therefore, libtool
7163 *** is disabling shared libraries support. We urge you to upgrade GNU
7164 *** binutils to release 2.9.1 or newer. Another option is to modify
7165 *** your PATH or compiler configuration so that the native linker is
7166 *** used, and then restart.
7169 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7178 case `$LD -v 2>&1` in
7179 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7183 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7184 *** reliably create shared libraries on SCO systems. Therefore, libtool
7185 *** is disabling shared libraries support. We urge you to upgrade GNU
7186 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7187 *** your PATH or compiler configuration so that the native linker is
7188 *** used, and then restart.
7193 # For security reasons, it is highly recommended that you always
7194 # use absolute paths for naming shared libraries, and exclude the
7195 # DT_RUNPATH tag from executables and libraries. But doing so
7196 # requires that you compile everything twice, which is a pain.
7197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7209 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7212 hardcode_shlibpath_var=no
7216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7225 if test "$ld_shlibs" = no; then
7227 hardcode_libdir_flag_spec=
7228 export_dynamic_flag_spec=
7229 whole_archive_flag_spec=
7232 # PORTME fill in a description of your system's linker (not GNU ld)
7235 allow_undefined_flag=unsupported
7236 always_export_symbols=yes
7237 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'
7238 # Note: this linker hardcodes the directories in LIBPATH if there
7239 # are no directories specified by -L.
7240 hardcode_minus_L=yes
7241 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7242 # Neither direct hardcoding nor static linking is supported with a
7244 hardcode_direct=unsupported
7249 if test "$host_cpu" = ia64; then
7250 # On IA64, the linker does run time linking by default, so we don't
7251 # have to do anything special.
7252 aix_use_runtimelinking=no
7253 exp_sym_flag='-Bexport'
7256 # If we're using GNU nm, then we don't want the "-C" option.
7257 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7258 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7259 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'
7261 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'
7263 aix_use_runtimelinking=no
7265 # Test if we are trying to use run time linking or normal
7266 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7267 # need to do runtime linking.
7268 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7269 for ld_flag in $LDFLAGS; do
7270 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7271 aix_use_runtimelinking=yes
7278 exp_sym_flag='-bexport'
7279 no_entry_flag='-bnoentry'
7282 # When large executables or shared objects are built, AIX ld can
7283 # have problems creating the table of contents. If linking a library
7284 # or program results in "error TOC overflow" add -mminimal-toc to
7285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7290 hardcode_direct_absolute=yes
7291 hardcode_libdir_separator=':'
7292 link_all_deplibs=yes
7293 file_list_spec='${wl}-f,'
7295 if test "$GCC" = yes; then
7296 case $host_os in aix4.[012]|aix4.[012].*)
7297 # We only want to do this on AIX 4.2 and lower, the check
7298 # below for broken collect2 doesn't work under 4.3+
7299 collect2name=`${CC} -print-prog-name=collect2`
7300 if test -f "$collect2name" &&
7301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7303 # We have reworked collect2
7306 # We have old collect2
7307 hardcode_direct=unsupported
7308 # It fails to find uninstalled libraries when the uninstalled
7309 # path is not listed in the libpath. Setting hardcode_minus_L
7310 # to unsupported forces relinking
7311 hardcode_minus_L=yes
7312 hardcode_libdir_flag_spec='-L$libdir'
7313 hardcode_libdir_separator=
7317 shared_flag='-shared'
7318 if test "$aix_use_runtimelinking" = yes; then
7319 shared_flag="$shared_flag "'${wl}-G'
7323 if test "$host_cpu" = ia64; then
7324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7325 # chokes on -Wl,-G. The following line is correct:
7328 if test "$aix_use_runtimelinking" = yes; then
7329 shared_flag='${wl}-G'
7331 shared_flag='${wl}-bM:SRE'
7336 # It seems that -bexpall does not export symbols beginning with
7337 # underscore (_), so it is better to generate a list of symbols to export.
7338 always_export_symbols=yes
7339 if test "$aix_use_runtimelinking" = yes; then
7340 # Warning - without using the other runtime loading flags (-brtl),
7341 # -berok will link without error, but may produce a broken library.
7342 allow_undefined_flag='-berok'
7343 # Determine the default libpath from the value encoded in an
7345 cat >conftest.$ac_ext <<_ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>conftest.er1
7364 grep -v '^ *+' conftest.er1 >conftest.err
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try='test -z "$ac_c_werror_flag"
7370 || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try='test -s conftest$ac_exeext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7383 lt_aix_libpath_sed='
7384 /Import File Strings/,/^$/ {
7390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7391 # Check for a 64-bit object if we didn't find anything.
7392 if test -z "$aix_libpath"; then
7393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7405 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"
7407 if test "$host_cpu" = ia64; then
7408 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7409 allow_undefined_flag="-z nodefs"
7410 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"
7412 # Determine the default libpath from the value encoded in an
7414 cat >conftest.$ac_ext <<_ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>conftest.er1
7433 grep -v '^ *+' conftest.er1 >conftest.err
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7452 lt_aix_libpath_sed='
7453 /Import File Strings/,/^$/ {
7459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7460 # Check for a 64-bit object if we didn't find anything.
7461 if test -z "$aix_libpath"; then
7462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7469 rm -f conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7474 # Warning - without using the other run time loading flags,
7475 # -berok will link without error, but may produce a broken library.
7476 no_undefined_flag=' ${wl}-bernotok'
7477 allow_undefined_flag=' ${wl}-berok'
7478 # Exported symbols can be pulled into shared objects from archives
7479 whole_archive_flag_spec='$convenience'
7480 archive_cmds_need_lc=yes
7481 # This is similar to how AIX traditionally builds its shared libraries.
7482 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'
7488 if test "$host_cpu" = m68k; then
7489 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)'
7490 hardcode_libdir_flag_spec='-L$libdir'
7491 hardcode_minus_L=yes
7493 # see comment about different semantics on the GNU ld section
7498 export_dynamic_flag_spec=-rdynamic
7501 cygwin* | mingw* | pw32*)
7502 # When not using gcc, we currently assume that we are using
7503 # Microsoft Visual C++.
7504 # hardcode_libdir_flag_spec is actually meaningless, as there is
7505 # no search path for DLLs.
7506 hardcode_libdir_flag_spec=' '
7507 allow_undefined_flag=unsupported
7508 # Tell ltmain to make .lib files, not .a files.
7510 # Tell ltmain to make .dll files, not .so files.
7512 # FIXME: Setting linknames here is a bad hack.
7513 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7514 # The linker will automatically build a .lib file if we build a DLL.
7515 old_archive_from_new_cmds='true'
7516 # FIXME: Should let the user specify the lib program.
7517 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7518 fix_srcfile_path='`cygpath -w "$srcfile"`'
7519 enable_shared_with_static_runtimes=yes
7522 darwin* | rhapsody*)
7524 rhapsody* | darwin1.[012])
7525 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7528 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7530 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7533 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7538 archive_cmds_need_lc=no
7540 hardcode_automatic=yes
7541 hardcode_shlibpath_var=unsupported
7542 whole_archive_flag_spec=''
7543 link_all_deplibs=yes
7544 if test "$GCC" = yes ; then
7545 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 lt_cv_apple_cc_single_mod=no
7549 if test -z "${LT_MULTI_MODULE}"; then
7550 # By default we will add the -single_module flag. You can override
7551 # by either setting the environment variable LT_MULTI_MODULE
7552 # non-empty at configure time, or by adding -multi-module to the
7554 echo "int foo(void){return 1;}" > conftest.c
7555 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7556 -dynamiclib ${wl}-single_module conftest.c
7557 if test -f libconftest.dylib; then
7558 lt_cv_apple_cc_single_mod=yes
7559 rm libconftest.dylib
7565 output_verbose_link_cmd=echo
7566 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7567 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7568 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}'
7570 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7571 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}'
7573 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7574 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}'
7576 case $cc_basename in
7578 output_verbose_link_cmd=echo
7579 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7580 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7582 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}'
7583 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}'
7593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594 hardcode_libdir_flag_spec='-L$libdir'
7595 hardcode_shlibpath_var=no
7602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7603 # support. Future versions do this automatically, but an explicit c++rt0.o
7604 # does not break anything, and helps significantly (at the cost of a little
7607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7608 hardcode_libdir_flag_spec='-R$libdir'
7610 hardcode_shlibpath_var=no
7613 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7617 hardcode_minus_L=yes
7618 hardcode_shlibpath_var=no
7621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7622 freebsd* | dragonfly*)
7623 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7624 hardcode_libdir_flag_spec='-R$libdir'
7626 hardcode_shlibpath_var=no
7630 if test "$GCC" = yes; then
7631 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'
7633 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'
7635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7636 hardcode_libdir_separator=:
7639 # hardcode_minus_L: Not really in the search PATH,
7640 # but as the default location of the library.
7641 hardcode_minus_L=yes
7642 export_dynamic_flag_spec='${wl}-E'
7646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7647 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7649 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7651 if test "$with_gnu_ld" = no; then
7652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7653 hardcode_libdir_flag_spec_ld='+b $libdir'
7654 hardcode_libdir_separator=:
7656 hardcode_direct_absolute=yes
7657 export_dynamic_flag_spec='${wl}-E'
7658 # hardcode_minus_L: Not really in the search PATH,
7659 # but as the default location of the library.
7660 hardcode_minus_L=yes
7665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7668 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7671 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7674 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7680 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7683 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7690 if test "$with_gnu_ld" = no; then
7691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7692 hardcode_libdir_separator=:
7697 hardcode_shlibpath_var=no
7701 hardcode_direct_absolute=yes
7702 export_dynamic_flag_spec='${wl}-E'
7704 # hardcode_minus_L: Not really in the search PATH,
7705 # but as the default location of the library.
7706 hardcode_minus_L=yes
7712 irix5* | irix6* | nonstopux*)
7713 if test "$GCC" = yes; then
7714 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'
7715 # Try to use the -exported_symbol ld option, if it does not
7716 # work, assume that -exports_file does not work either and
7717 # implicitly export all symbols.
7718 save_LDFLAGS="$LDFLAGS"
7719 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7720 cat >conftest.$ac_ext <<_ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725 (eval $ac_link) 2>conftest.er1
7727 grep -v '^ *+' conftest.er1 >conftest.err
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest$ac_exeext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 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'
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7752 rm -f conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 LDFLAGS="$save_LDFLAGS"
7756 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'
7757 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'
7759 archive_cmds_need_lc='no'
7760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7761 hardcode_libdir_separator=:
7763 link_all_deplibs=yes
7767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7770 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7772 hardcode_libdir_flag_spec='-R$libdir'
7774 hardcode_shlibpath_var=no
7778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7781 hardcode_libdir_separator=:
7782 hardcode_shlibpath_var=no
7790 hardcode_shlibpath_var=no
7791 hardcode_direct_absolute=yes
7792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7794 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7796 export_dynamic_flag_spec='${wl}-E'
7799 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7801 hardcode_libdir_flag_spec='-R$libdir'
7804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7812 hardcode_libdir_flag_spec='-L$libdir'
7813 hardcode_minus_L=yes
7814 allow_undefined_flag=unsupported
7815 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'
7816 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7820 if test "$GCC" = yes; then
7821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7822 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'
7824 allow_undefined_flag=' -expect_unresolved \*'
7825 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'
7827 archive_cmds_need_lc='no'
7828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7829 hardcode_libdir_separator=:
7832 osf4* | osf5*) # as osf3* with the addition of -msym flag
7833 if test "$GCC" = yes; then
7834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7835 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'
7836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7838 allow_undefined_flag=' -expect_unresolved \*'
7839 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'
7840 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~
7841 $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'
7843 # Both c and cxx compiler support -rpath directly
7844 hardcode_libdir_flag_spec='-rpath $libdir'
7846 archive_cmds_need_lc='no'
7847 hardcode_libdir_separator=:
7851 no_undefined_flag=' -z defs'
7852 if test "$GCC" = yes; then
7854 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7856 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7858 case `$CC -V 2>&1` in
7861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7867 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7869 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7873 hardcode_libdir_flag_spec='-R$libdir'
7874 hardcode_shlibpath_var=no
7876 solaris2.[0-5] | solaris2.[0-5].*) ;;
7878 # The compiler driver will combine and reorder linker options,
7879 # but understands `-z linker_flag'. GCC discards it without `$wl',
7880 # but is careful enough not to reorder.
7881 # Supported since Solaris 2.6 (maybe 2.5.1?)
7882 if test "$GCC" = yes; then
7883 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7885 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7889 link_all_deplibs=yes
7893 if test "x$host_vendor" = xsequent; then
7894 # Use $CC to link under sequent, because it throws in some extra .o
7895 # files that make .init and .fini sections work.
7896 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7898 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7900 hardcode_libdir_flag_spec='-L$libdir'
7902 hardcode_minus_L=yes
7903 hardcode_shlibpath_var=no
7907 case $host_vendor in
7909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7910 hardcode_direct=yes # is this really true???
7913 ## LD is ld it makes a PLAMLIB
7914 ## CC just makes a GrossModule.
7915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7916 reload_cmds='$CC -r -o $output$reload_objs'
7920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7924 runpath_var='LD_RUN_PATH'
7925 hardcode_shlibpath_var=no
7929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7930 hardcode_shlibpath_var=no
7931 export_dynamic_flag_spec='-Bexport'
7935 if test -d /usr/nec; then
7936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937 hardcode_shlibpath_var=no
7938 runpath_var=LD_RUN_PATH
7939 hardcode_runpath_var=yes
7944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7945 no_undefined_flag='${wl}-z,text'
7946 archive_cmds_need_lc=no
7947 hardcode_shlibpath_var=no
7948 runpath_var='LD_RUN_PATH'
7950 if test "$GCC" = yes; then
7951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7959 sysv5* | sco3.2v5* | sco5v6*)
7960 # Note: We can NOT use -z defs as we might desire, because we do not
7961 # link with -lc, and that would cause any symbols used from libc to
7962 # always be unresolved, which means just about no library would
7963 # ever link correctly. If we're not using GNU ld we use -z text
7964 # though, which does catch some bad symbols but isn't as heavy-handed
7966 no_undefined_flag='${wl}-z,text'
7967 allow_undefined_flag='${wl}-z,nodefs'
7968 archive_cmds_need_lc=no
7969 hardcode_shlibpath_var=no
7970 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7971 hardcode_libdir_separator=':'
7972 link_all_deplibs=yes
7973 export_dynamic_flag_spec='${wl}-Bexport'
7974 runpath_var='LD_RUN_PATH'
7976 if test "$GCC" = yes; then
7977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7987 hardcode_libdir_flag_spec='-L$libdir'
7988 hardcode_shlibpath_var=no
7996 if test x$host_vendor = xsni; then
7998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7999 export_dynamic_flag_spec='${wl}-Blargedynsym'
8005 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8006 echo "${ECHO_T}$ld_shlibs" >&6
8007 test "$ld_shlibs" = no && can_build_shared=no
8009 with_gnu_ld=$with_gnu_ld
8026 # Do we need to explicitly link libc?
8028 case "x$archive_cmds_need_lc" in
8030 # Assume -lc should be added
8031 archive_cmds_need_lc=yes
8033 if test "$enable_shared" = yes && test "$GCC" = yes; then
8034 case $archive_cmds in
8036 # FIXME: we may have to deal with multi-command sequences.
8039 # Test whether the compiler implicitly links with -lc since on some
8040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8041 # to ld, don't add -lc before -lgcc.
8042 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } 2>conftest.err; then
8054 libobjs=conftest.$ac_objext
8056 wl=$lt_prog_compiler_wl
8057 pic_flag=$lt_prog_compiler_pic
8063 lt_save_allow_undefined_flag=$allow_undefined_flag
8064 allow_undefined_flag=
8065 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8066 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }
8071 archive_cmds_need_lc=no
8073 archive_cmds_need_lc=yes
8075 allow_undefined_flag=$lt_save_allow_undefined_flag
8077 cat conftest.err 1>&5
8080 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8081 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8244 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8247 if test "$withGCC" = yes; then
8249 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8250 *) lt_awk_arg="/^libraries:/" ;;
8252 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8253 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8254 # if the path contains ";" then we assume it to be the separator
8255 # otherwise default to the standard path separator (i.e. ":") - it is
8256 # assumed that no part of a normal pathname contains ";" but that should
8257 # okay in the real world where ";" in dirpaths is itself problematic.
8258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8260 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8262 # Ok, now we have the path, separated by spaces, we can step through it
8263 # and add multilib dir if necessary.
8264 lt_tmp_lt_search_path_spec=
8265 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8266 for lt_sys_path in $lt_search_path_spec; do
8267 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8270 test -d "$lt_sys_path" && \
8271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8274 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8275 BEGIN {RS=" "; FS="/|\n";} {
8278 for (lt_i = NF; lt_i > 0; lt_i--) {
8279 if ($lt_i != "" && $lt_i != ".") {
8280 if ($lt_i == "..") {
8283 if (lt_count == 0) {
8284 lt_foo="/" $lt_i lt_foo;
8291 if (lt_foo != "") { lt_freq[lt_foo]++; }
8292 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8294 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8299 libname_spec='lib$name'
8307 shlibpath_overrides_runpath=unknown
8309 dynamic_linker="$host_os ld.so"
8310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8311 need_lib_prefix=unknown
8312 hardcode_into_libs=no
8314 # when you set need_version to no, make sure it does not cause -set_version
8315 # flags to be left without arguments
8316 need_version=unknown
8321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8322 shlibpath_var=LIBPATH
8324 # AIX 3 has no versioning support, so we append a major version to the name.
8325 soname_spec='${libname}${release}${shared_ext}$major'
8332 hardcode_into_libs=yes
8333 if test "$host_cpu" = ia64; then
8334 # AIX 5 supports IA64
8335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8336 shlibpath_var=LD_LIBRARY_PATH
8338 # With GCC up to 2.95.x, collect2 would create an import file
8339 # for dependence libraries. The import file would start with
8340 # the line `#! .'. This would cause the generated library to
8341 # depend on `.', always an invalid library. This was fixed in
8342 # development snapshots of GCC prior to 3.0.
8344 aix4 | aix4.[01] | aix4.[01].*)
8345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8355 # soname into executable. Probably we can add versioning support to
8356 # collect2, so additional links can be useful in future.
8357 if test "$aix_use_runtimelinking" = yes; then
8358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8359 # instead of lib<name>.a to let people know that these are not
8360 # typical AIX shared libraries.
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363 # We preserve .a as extension for shared libraries through AIX4.2
8364 # and later when we are not doing run time linking.
8365 library_names_spec='${libname}${release}.a $libname.a'
8366 soname_spec='${libname}${release}${shared_ext}$major'
8368 shlibpath_var=LIBPATH
8373 if test "$host_cpu" = m68k; then
8374 library_names_spec='$libname.ixlibrary $libname.a'
8375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8376 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'
8383 library_names_spec='${libname}${shared_ext}'
8384 dynamic_linker="$host_os ld.so"
8385 shlibpath_var=LIBRARY_PATH
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 soname_spec='${libname}${release}${shared_ext}$major'
8393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8394 shlibpath_var=LD_LIBRARY_PATH
8395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8397 # the default ld.so.conf also contains /usr/contrib/lib and
8398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8399 # libtool to hard-code these into programs
8402 cygwin* | mingw* | pw32*)
8403 version_type=windows
8408 case $withGCC,$host_os in
8409 yes,cygwin* | yes,mingw* | yes,pw32*)
8410 library_names_spec='$libname.dll.a'
8411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8412 postinstall_cmds='base_file=`basename \${file}`~
8413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8414 dldir=$destdir/`dirname \$dlpath`~
8415 test -d \$dldir || mkdir -p \$dldir~
8416 $install_prog $dir/$dlname \$dldir/$dlname~
8417 chmod a+x \$dldir/$dlname~
8418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8422 dlpath=$dir/\$dldll~
8424 shlibpath_overrides_runpath=yes
8428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8430 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8433 # MinGW DLLs use traditional 'lib' prefix
8434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8435 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8436 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8437 # It is most probably a Windows format PATH printed by
8438 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8439 # path with ; separators, and with drive letters. We can handle the
8440 # drive letters (cygwin fileutils understands them), so leave them,
8441 # especially as we might pass files found there to a mingw objdump,
8442 # which wouldn't understand a cygwinified path. Ahh.
8443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8449 # pw32 DLLs use 'pw' prefix rather than 'lib'
8450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8459 dynamic_linker='Win32 ld.exe'
8460 # FIXME: first we should search . and the directory the executable is in
8464 darwin* | rhapsody*)
8465 dynamic_linker="$host_os dyld"
8469 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8470 soname_spec='${libname}${release}${major}$shared_ext'
8471 shlibpath_overrides_runpath=yes
8472 shlibpath_var=DYLD_LIBRARY_PATH
8473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8475 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8484 soname_spec='${libname}${release}${shared_ext}$major'
8485 shlibpath_var=LD_LIBRARY_PATH
8492 freebsd* | dragonfly*)
8493 # DragonFly does not have aout. When/if they implement a new
8494 # versioning mechanism, adjust this.
8495 if test -x /usr/bin/objformat; then
8496 objformat=`/usr/bin/objformat`
8499 freebsd[123]*) objformat=aout ;;
8503 version_type=freebsd-$objformat
8504 case $version_type in
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8515 shlibpath_var=LD_LIBRARY_PATH
8518 shlibpath_overrides_runpath=yes
8520 freebsd3.[01]* | freebsdelf3.[01]*)
8521 shlibpath_overrides_runpath=yes
8522 hardcode_into_libs=yes
8524 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8525 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8526 shlibpath_overrides_runpath=no
8527 hardcode_into_libs=yes
8529 *) # from 4.6 on, and DragonFly
8530 shlibpath_overrides_runpath=yes
8531 hardcode_into_libs=yes
8540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8541 soname_spec='${libname}${release}${shared_ext}$major'
8542 shlibpath_var=LD_LIBRARY_PATH
8543 hardcode_into_libs=yes
8546 hpux9* | hpux10* | hpux11*)
8547 # Give a soname corresponding to the major version so that dld.sl refuses to
8548 # link against other versions.
8555 hardcode_into_libs=yes
8556 dynamic_linker="$host_os dld.so"
8557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 soname_spec='${libname}${release}${shared_ext}$major'
8561 if test "X$HPUX_IA64_MODE" = X32; then
8562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8570 hardcode_into_libs=yes
8571 dynamic_linker="$host_os dld.sl"
8572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8575 soname_spec='${libname}${release}${shared_ext}$major'
8576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8581 dynamic_linker="$host_os dld.sl"
8582 shlibpath_var=SHLIB_PATH
8583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585 soname_spec='${libname}${release}${shared_ext}$major'
8588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8589 postinstall_cmds='chmod 555 $lib'
8596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8597 soname_spec='${libname}${release}${shared_ext}$major'
8598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 shlibpath_overrides_runpath=no
8601 hardcode_into_libs=yes
8604 irix5* | irix6* | nonstopux*)
8606 nonstopux*) version_type=nonstopux ;;
8608 if test "$lt_cv_prog_gnu_ld" = yes; then
8616 soname_spec='${libname}${release}${shared_ext}$major'
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8619 irix5* | nonstopux*)
8623 case $LD in # libtool.m4 will add one of these switches to LD
8624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8625 libsuff= shlibsuff= libmagic=32-bit;;
8626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8627 libsuff=32 shlibsuff=N32 libmagic=N32;;
8628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8630 *) libsuff= shlibsuff= libmagic=never-match;;
8634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8635 shlibpath_overrides_runpath=no
8636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8638 hardcode_into_libs=yes
8641 # No shared lib support for Linux oldld, aout, or coff.
8642 linux*oldld* | linux*aout* | linux*coff*)
8646 # This must be Linux ELF.
8647 linux* | k*bsd*-gnu)
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8654 shlibpath_var=LD_LIBRARY_PATH
8655 shlibpath_overrides_runpath=no
8656 # Some binutils ld are patched to set DT_RUNPATH
8657 save_LDFLAGS=$LDFLAGS
8659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag"
8686 || test ! -s conftest.err'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8699 shlibpath_overrides_runpath=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8707 rm -f conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8709 LDFLAGS=$save_LDFLAGS
8712 # This implies no fast_install, which is unacceptable.
8713 # Some rework will be needed to allow for fast_install
8714 # before this can be enabled.
8715 hardcode_into_libs=yes
8717 # Append ld.so.conf contents to the search path
8718 if test -f /etc/ld.so.conf; then
8719 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' ' '`
8720 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8723 # We used to test for /lib/ld.so.1 and disable shared libraries on
8724 # powerpc, because MkLinux only supported shared libraries with the
8725 # GNU dynamic linker. Since this was broken with cross compilers,
8726 # most powerpc-linux boxes support dynamic linking these days and
8727 # people can always --disable-shared, the test was removed, and we
8728 # assume the GNU/Linux dynamic linker is in use.
8729 dynamic_linker='GNU/Linux ld.so'
8736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8739 dynamic_linker='NetBSD (a.out) ld.so'
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 dynamic_linker='NetBSD ld.elf_so'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 shlibpath_overrides_runpath=yes
8747 hardcode_into_libs=yes
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753 shlibpath_var=LD_LIBRARY_PATH
8754 shlibpath_overrides_runpath=yes
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8762 soname_spec='${libname}${release}${shared_ext}$major'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=no
8765 hardcode_into_libs=yes
8766 dynamic_linker='ldqnx.so'
8771 sys_lib_dlsearch_path_spec="/usr/lib"
8773 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8775 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8776 *) need_version=no ;;
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8780 shlibpath_var=LD_LIBRARY_PATH
8781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8783 openbsd2.[89] | openbsd2.[89].*)
8784 shlibpath_overrides_runpath=no
8787 shlibpath_overrides_runpath=yes
8791 shlibpath_overrides_runpath=yes
8796 libname_spec='$name'
8799 library_names_spec='$libname${shared_ext} $libname.a'
8800 dynamic_linker='OS/2 ld.exe'
8801 shlibpath_var=LIBPATH
8804 osf3* | osf4* | osf5*)
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=yes
8827 hardcode_into_libs=yes
8828 # ldd complains unless libraries are executable
8829 postinstall_cmds='chmod +x $lib'
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8836 shlibpath_var=LD_LIBRARY_PATH
8837 shlibpath_overrides_runpath=yes
8838 if test "$with_gnu_ld" = yes; then
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 case $host_vendor in
8851 shlibpath_overrides_runpath=no
8853 runpath_var=LD_RUN_PATH
8861 shlibpath_overrides_runpath=no
8862 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8868 if test -d /usr/nec ;then
8870 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8871 soname_spec='$libname${shared_ext}.$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8877 version_type=freebsd-elf
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=yes
8884 hardcode_into_libs=yes
8885 if test "$with_gnu_ld" = yes; then
8886 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8888 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8891 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8895 sys_lib_dlsearch_path_spec='/usr/lib'
8899 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8903 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=no
8906 hardcode_into_libs=yes
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 shlibpath_var=LD_LIBRARY_PATH
8920 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8921 echo "${ECHO_T}$dynamic_linker" >&6
8922 test "$dynamic_linker" = no && can_build_shared=no
8924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8925 if test "$GCC" = yes; then
8926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9015 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9016 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9018 if test -n "$hardcode_libdir_flag_spec" ||
9019 test -n "$runpath_var" ||
9020 test "X$hardcode_automatic" = "Xyes" ; then
9022 # We can hardcode non-existent directories.
9023 if test "$hardcode_direct" != no &&
9024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9025 # have to relink, otherwise we might link with an installed library
9026 # when we should be linking with a yet-to-be-installed one
9027 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9028 test "$hardcode_minus_L" != no; then
9029 # Linking always hardcodes the temporary library directory.
9030 hardcode_action=relink
9032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9033 hardcode_action=immediate
9036 # We cannot hardcode anything, or else we can only hardcode existing
9038 hardcode_action=unsupported
9040 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9041 echo "${ECHO_T}$hardcode_action" >&6
9043 if test "$hardcode_action" = relink ||
9044 test "$inherit_rpath" = yes; then
9045 # Fast installation is not supported
9046 enable_fast_install=no
9047 elif test "$shlibpath_overrides_runpath" = yes ||
9048 test "$enable_shared" = no; then
9049 # Fast installation is not necessary
9050 enable_fast_install=needless
9058 if test "x$enable_dlopen" != xyes; then
9059 enable_dlopen=unknown
9060 enable_dlopen_self=unknown
9061 enable_dlopen_self_static=unknown
9068 lt_cv_dlopen="load_add_on"
9070 lt_cv_dlopen_self=yes
9074 lt_cv_dlopen="LoadLibrary"
9079 lt_cv_dlopen="dlopen"
9084 # if libdl is installed we need to link against it
9085 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 ac_check_lib_save_LIBS=$LIBS
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9099 /* Override any gcc2 internal prototype to avoid an error. */
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>conftest.er1
9118 grep -v '^ *+' conftest.er1 >conftest.err
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag"
9124 || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_lib_dl_dlopen=yes
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_cv_lib_dl_dlopen=no
9143 rm -f conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 LIBS=$ac_check_lib_save_LIBS
9147 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9149 if test $ac_cv_lib_dl_dlopen = yes; then
9150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9155 lt_cv_dlopen_self=yes
9162 echo "$as_me:$LINENO: checking for shl_load" >&5
9163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9164 if test "${ac_cv_func_shl_load+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 cat >conftest.$ac_ext <<_ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9175 #define shl_load innocuous_shl_load
9177 /* System header to define __stub macros and hopefully few prototypes,
9178 which can conflict with char shl_load (); below.
9179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9180 <limits.h> exists even on freestanding compilers. */
9183 # include <limits.h>
9185 # include <assert.h>
9190 /* Override any gcc2 internal prototype to avoid an error. */
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9198 /* The GNU C library defines this for functions which it implements
9199 to always fail with ENOSYS. Some functions are actually named
9200 something starting with __ and the normal name is an alias. */
9201 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9204 char (*f) () = shl_load;
9213 return f != shl_load;
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220 (eval $ac_link) 2>conftest.er1
9222 grep -v '^ *+' conftest.er1 >conftest.err
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_func_shl_load=yes
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_cv_func_shl_load=no
9247 rm -f conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9251 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9252 if test $ac_cv_func_shl_load = yes; then
9253 lt_cv_dlopen="shl_load"
9255 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9256 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 ac_check_lib_save_LIBS=$LIBS
9262 cat >conftest.$ac_ext <<_ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9269 /* Override any gcc2 internal prototype to avoid an error. */
9273 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9288 grep -v '^ *+' conftest.er1 >conftest.err
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_lib_dld_shl_load=yes
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_cv_lib_dld_shl_load=no
9313 rm -f conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9317 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9318 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9319 if test $ac_cv_lib_dld_shl_load = yes; then
9320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9322 echo "$as_me:$LINENO: checking for dlopen" >&5
9323 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9324 if test "${ac_cv_func_dlopen+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9335 #define dlopen innocuous_dlopen
9337 /* System header to define __stub macros and hopefully few prototypes,
9338 which can conflict with char dlopen (); below.
9339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9340 <limits.h> exists even on freestanding compilers. */
9343 # include <limits.h>
9345 # include <assert.h>
9350 /* Override any gcc2 internal prototype to avoid an error. */
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9358 /* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9364 char (*f) () = dlopen;
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_cv_func_dlopen=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_func_dlopen=no
9407 rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9410 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9412 if test $ac_cv_func_dlopen = yes; then
9413 lt_cv_dlopen="dlopen"
9415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 ac_check_lib_save_LIBS=$LIBS
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 /* Override any gcc2 internal prototype to avoid an error. */
9433 /* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9448 grep -v '^ *+' conftest.er1 >conftest.err
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_lib_dl_dlopen=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_cv_lib_dl_dlopen=no
9473 rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_lib_save_LIBS
9477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9479 if test $ac_cv_lib_dl_dlopen = yes; then
9480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9482 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9483 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9484 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 ac_check_lib_save_LIBS=$LIBS
9489 cat >conftest.$ac_ext <<_ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9496 /* Override any gcc2 internal prototype to avoid an error. */
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_lib_svld_dlopen=yes
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_cv_lib_svld_dlopen=no
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9545 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9546 if test $ac_cv_lib_svld_dlopen = yes; then
9547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9549 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9550 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9551 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 ac_check_lib_save_LIBS=$LIBS
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9563 /* Override any gcc2 internal prototype to avoid an error. */
9567 /* We use char because int might match the return type of a gcc2
9568 builtin and then its argument prototype would still apply. */
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag"
9588 || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_dld_dld_link=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_lib_dld_dld_link=no
9607 rm -f conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9612 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9613 if test $ac_cv_lib_dld_dld_link = yes; then
9614 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9635 if test "x$lt_cv_dlopen" != xno; then
9641 case $lt_cv_dlopen in
9643 save_CPPFLAGS="$CPPFLAGS"
9644 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9646 save_LDFLAGS="$LDFLAGS"
9647 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9650 LIBS="$lt_cv_dlopen_libs $LIBS"
9652 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9653 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9654 if test "${lt_cv_dlopen_self+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 if test "$cross_compiling" = yes; then :
9658 lt_cv_dlopen_self=cross
9660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9661 lt_status=$lt_dlunknown
9662 cat > conftest.$ac_ext <<_LT_EOF
9663 #line 9663 "configure"
9664 #include "confdefs.h"
9673 # define LT_DLGLOBAL RTLD_GLOBAL
9676 # define LT_DLGLOBAL DL_GLOBAL
9678 # define LT_DLGLOBAL 0
9682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9683 find out it does not work in some platform. */
9684 #ifndef LT_DLLAZY_OR_NOW
9686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9689 # define LT_DLLAZY_OR_NOW DL_LAZY
9692 # define LT_DLLAZY_OR_NOW RTLD_NOW
9695 # define LT_DLLAZY_OR_NOW DL_NOW
9697 # define LT_DLLAZY_OR_NOW 0
9705 extern "C" void exit (int);
9708 void fnord() { int i=42;}
9711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9712 int status = $lt_dlunknown;
9716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9718 /* dlclose (self); */
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9731 (./conftest; exit; ) >&5 2>/dev/null
9734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9736 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9739 # compilation failed
9740 lt_cv_dlopen_self=no
9747 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9748 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9750 if test "x$lt_cv_dlopen_self" = xyes; then
9751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9752 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9753 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9754 if test "${lt_cv_dlopen_self_static+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 if test "$cross_compiling" = yes; then :
9758 lt_cv_dlopen_self_static=cross
9760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9761 lt_status=$lt_dlunknown
9762 cat > conftest.$ac_ext <<_LT_EOF
9763 #line 9763 "configure"
9764 #include "confdefs.h"
9773 # define LT_DLGLOBAL RTLD_GLOBAL
9776 # define LT_DLGLOBAL DL_GLOBAL
9778 # define LT_DLGLOBAL 0
9782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9783 find out it does not work in some platform. */
9784 #ifndef LT_DLLAZY_OR_NOW
9786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9789 # define LT_DLLAZY_OR_NOW DL_LAZY
9792 # define LT_DLLAZY_OR_NOW RTLD_NOW
9795 # define LT_DLLAZY_OR_NOW DL_NOW
9797 # define LT_DLLAZY_OR_NOW 0
9805 extern "C" void exit (int);
9808 void fnord() { int i=42;}
9811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9812 int status = $lt_dlunknown;
9816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9818 /* dlclose (self); */
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9831 (./conftest; exit; ) >&5 2>/dev/null
9834 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9835 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9836 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9839 # compilation failed
9840 lt_cv_dlopen_self_static=no
9847 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9848 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9851 CPPFLAGS="$save_CPPFLAGS"
9852 LDFLAGS="$save_LDFLAGS"
9857 case $lt_cv_dlopen_self in
9858 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9859 *) enable_dlopen_self=unknown ;;
9862 case $lt_cv_dlopen_self_static in
9863 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9864 *) enable_dlopen_self_static=unknown ;;
9886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9888 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9891 echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6
9894 # FIXME - insert some real tests, host_os isn't really good enough
9897 if test -n "$STRIP" ; then
9898 striplib="$STRIP -x"
9899 old_striplib="$STRIP -S"
9900 echo "$as_me:$LINENO: result: yes" >&5
9901 echo "${ECHO_T}yes" >&6
9903 echo "$as_me:$LINENO: result: no" >&5
9904 echo "${ECHO_T}no" >&6
9908 echo "$as_me:$LINENO: result: no" >&5
9909 echo "${ECHO_T}no" >&6
9925 # Report which library types will actually be built
9926 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9927 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9928 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9929 echo "${ECHO_T}$can_build_shared" >&6
9931 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9932 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9933 test "$can_build_shared" = "no" && enable_shared=no
9935 # On AIX, shared libraries and static libraries use the same namespace, and
9936 # are all built from PIC.
9939 test "$enable_shared" = yes && enable_static=no
9940 if test -n "$RANLIB"; then
9941 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9942 postinstall_cmds='$RANLIB $lib'
9947 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9948 test "$enable_shared" = yes && enable_static=no
9952 echo "$as_me:$LINENO: result: $enable_shared" >&5
9953 echo "${ECHO_T}$enable_shared" >&6
9955 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9956 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9957 # Make sure either enable_shared or enable_static is yes.
9958 test "$enable_shared" = yes || enable_static=yes
9959 echo "$as_me:$LINENO: result: $enable_static" >&5
9960 echo "${ECHO_T}$enable_static" >&6
9967 ac_cpp='$CPP $CPPFLAGS'
9968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9986 ac_config_commands="$ac_config_commands libtool"
9997 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9998 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9999 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10000 if test "${enable_maintainer_mode+set}" = set; then
10001 enableval="$enable_maintainer_mode"
10002 USE_MAINTAINER_MODE=$enableval
10004 USE_MAINTAINER_MODE=no
10006 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10007 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10010 if test $USE_MAINTAINER_MODE = yes; then
10011 MAINTAINER_MODE_TRUE=
10012 MAINTAINER_MODE_FALSE='#'
10014 MAINTAINER_MODE_TRUE='#'
10015 MAINTAINER_MODE_FALSE=
10018 MAINT=$MAINTAINER_MODE_TRUE
10022 # We need gfortran to compile parts of the library
10023 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10024 #AC_PROG_FC(gfortran)
10026 ac_ext=${FC_SRCEXT-f}
10027 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10028 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10029 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10030 if test -n "$ac_tool_prefix"; then
10031 for ac_prog in gfortran
10033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10035 echo "$as_me:$LINENO: checking for $ac_word" >&5
10036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10037 if test "${ac_cv_prog_FC+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 if test -n "$FC"; then
10041 ac_cv_prog_FC="$FC" # Let the user override the test.
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 if test -n "$FC"; then
10061 echo "$as_me:$LINENO: result: $FC" >&5
10062 echo "${ECHO_T}$FC" >&6
10064 echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6
10068 test -n "$FC" && break
10071 if test -z "$FC"; then
10073 for ac_prog in gfortran
10075 # Extract the first word of "$ac_prog", so it can be a program name with args.
10076 set dummy $ac_prog; ac_word=$2
10077 echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10079 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 if test -n "$ac_ct_FC"; then
10083 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_prog_ac_ct_FC="$ac_prog"
10093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10102 if test -n "$ac_ct_FC"; then
10103 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10104 echo "${ECHO_T}$ac_ct_FC" >&6
10106 echo "$as_me:$LINENO: result: no" >&5
10107 echo "${ECHO_T}no" >&6
10110 test -n "$ac_ct_FC" && break
10117 # Provide some information about the compiler.
10118 echo "$as_me:10118:" \
10119 "checking for Fortran compiler version" >&5
10120 ac_compiler=`set X $ac_compile; echo $2`
10121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10122 (eval $ac_compiler --version </dev/null >&5) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }
10126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10127 (eval $ac_compiler -v </dev/null >&5) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }
10131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10132 (eval $ac_compiler -V </dev/null >&5) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }
10138 # If we don't use `.F' as extension, the preprocessor is not run on the
10139 # input file. (Note that this only needs to work for GNU compilers.)
10140 ac_save_ext=$ac_ext
10142 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10143 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10144 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10155 rm -f conftest.$ac_objext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10157 (eval $ac_compile) 2>conftest.er1
10159 grep -v '^ *+' conftest.er1 >conftest.err
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_fc_werror_flag"
10165 || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest.$ac_objext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_compiler_gnu=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10185 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10188 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10189 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10190 ac_ext=$ac_save_ext
10191 ac_test_FFLAGS=${FCFLAGS+set}
10192 ac_save_FFLAGS=$FCFLAGS
10194 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10195 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10196 if test "${ac_cv_prog_fc_g+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10205 rm -f conftest.$ac_objext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10207 (eval $ac_compile) 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_fc_werror_flag"
10215 || test ! -s conftest.err'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; } &&
10221 { ac_try='test -s conftest.$ac_objext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_prog_fc_g=yes
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10237 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10238 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10239 if test "$ac_test_FFLAGS" = set; then
10240 FCFLAGS=$ac_save_FFLAGS
10241 elif test $ac_cv_prog_fc_g = yes; then
10242 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10248 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10256 ac_cpp='$CPP $CPPFLAGS'
10257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10262 ac_ext=${FC_SRCEXT-f}
10263 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10264 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10265 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10266 if test -n "$ac_tool_prefix"; then
10267 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10271 echo "$as_me:$LINENO: checking for $ac_word" >&5
10272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10273 if test "${ac_cv_prog_FC+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 if test -n "$FC"; then
10277 ac_cv_prog_FC="$FC" # Let the user override the test.
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 if test -n "$FC"; then
10297 echo "$as_me:$LINENO: result: $FC" >&5
10298 echo "${ECHO_T}$FC" >&6
10300 echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6
10304 test -n "$FC" && break
10307 if test -z "$FC"; then
10309 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10311 # Extract the first word of "$ac_prog", so it can be a program name with args.
10312 set dummy $ac_prog; ac_word=$2
10313 echo "$as_me:$LINENO: checking for $ac_word" >&5
10314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10315 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 if test -n "$ac_ct_FC"; then
10319 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_ac_ct_FC="$ac_prog"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10338 if test -n "$ac_ct_FC"; then
10339 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10340 echo "${ECHO_T}$ac_ct_FC" >&6
10342 echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6
10346 test -n "$ac_ct_FC" && break
10353 # Provide some information about the compiler.
10354 echo "$as_me:10354:" \
10355 "checking for Fortran compiler version" >&5
10356 ac_compiler=`set X $ac_compile; echo $2`
10357 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10358 (eval $ac_compiler --version </dev/null >&5) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }
10362 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10363 (eval $ac_compiler -v </dev/null >&5) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }
10367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10368 (eval $ac_compiler -V </dev/null >&5) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }
10374 # If we don't use `.F' as extension, the preprocessor is not run on the
10375 # input file. (Note that this only needs to work for GNU compilers.)
10376 ac_save_ext=$ac_ext
10378 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10379 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10380 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 cat >conftest.$ac_ext <<_ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_fc_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_compiler_gnu=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10424 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10425 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10426 ac_ext=$ac_save_ext
10427 ac_test_FFLAGS=${FCFLAGS+set}
10428 ac_save_FFLAGS=$FCFLAGS
10430 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10431 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10432 if test "${ac_cv_prog_fc_g+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 cat >conftest.$ac_ext <<_ACEOF
10441 rm -f conftest.$ac_objext
10442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10443 (eval $ac_compile) 2>conftest.er1
10445 grep -v '^ *+' conftest.er1 >conftest.err
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -z "$ac_fc_werror_flag"
10451 || test ! -s conftest.err'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest.$ac_objext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_prog_fc_g=yes
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10474 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10475 if test "$ac_test_FFLAGS" = set; then
10476 FCFLAGS=$ac_save_FFLAGS
10477 elif test $ac_cv_prog_fc_g = yes; then
10478 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10484 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497 if test -z "$FC" || test "X$FC" = "Xno"; then
10503 ac_ext=${FC_SRCEXT-f}
10504 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10505 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10506 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10509 archive_cmds_need_lc_FC=no
10510 allow_undefined_flag_FC=
10511 always_export_symbols_FC=no
10512 archive_expsym_cmds_FC=
10513 export_dynamic_flag_spec_FC=
10514 hardcode_direct_FC=no
10515 hardcode_direct_absolute_FC=no
10516 hardcode_libdir_flag_spec_FC=
10517 hardcode_libdir_flag_spec_ld_FC=
10518 hardcode_libdir_separator_FC=
10519 hardcode_minus_L_FC=no
10520 hardcode_automatic_FC=no
10521 inherit_rpath_FC=no
10523 module_expsym_cmds_FC=
10524 link_all_deplibs_FC=unknown
10525 old_archive_cmds_FC=$old_archive_cmds
10526 no_undefined_flag_FC=
10527 whole_archive_flag_spec_FC=
10528 enable_shared_with_static_runtimes_FC=no
10530 # Source file extension for fc test sources.
10531 ac_ext=${ac_fc_srcext-f}
10533 # Object file extension for compiled fc test sources.
10537 # No sense in running all these tests if we already determined that
10538 # the FC compiler isn't working. Some variables (like enable_shared)
10539 # are currently assumed to apply to all compilers on this platform,
10540 # and will be corrupted by setting them based on a non-working compiler.
10541 if test "$_lt_disable_FC" != yes; then
10542 # Code to be used in simple compile tests
10543 lt_simple_compile_test_code="\
10549 # Code to be used in simple link tests
10550 lt_simple_link_test_code="\
10555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10562 # If no C compiler was specified, use CC.
10565 # If no C compiler flags were specified, use CFLAGS.
10566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10568 # Allow CC to be a program name with arguments.
10572 # save warnings/boilerplate of simple test code
10573 ac_outfile=conftest.$ac_objext
10574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10576 _lt_compiler_boilerplate=`cat conftest.err`
10579 ac_outfile=conftest.$ac_objext
10580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10582 _lt_linker_boilerplate=`cat conftest.err`
10586 # Allow CC to be a program name with arguments.
10591 for cc_temp in $compiler""; do
10593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10599 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10602 if test -n "$compiler"; then
10603 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10604 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10605 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10606 echo "${ECHO_T}$can_build_shared" >&6
10608 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10609 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10610 test "$can_build_shared" = "no" && enable_shared=no
10612 # On AIX, shared libraries and static libraries use the same namespace, and
10613 # are all built from PIC.
10616 test "$enable_shared" = yes && enable_static=no
10617 if test -n "$RANLIB"; then
10618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10619 postinstall_cmds='$RANLIB $lib'
10623 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10624 test "$enable_shared" = yes && enable_static=no
10628 echo "$as_me:$LINENO: result: $enable_shared" >&5
10629 echo "${ECHO_T}$enable_shared" >&6
10631 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10632 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10633 # Make sure either enable_shared or enable_static is yes.
10634 test "$enable_shared" = yes || enable_static=yes
10635 echo "$as_me:$LINENO: result: $enable_static" >&5
10636 echo "${ECHO_T}$enable_static" >&6
10638 GCC_FC="$ac_cv_fc_compiler_gnu"
10642 ## There is no encapsulation within the following macros, do not change
10643 ## the running order or otherwise move them around unless you know exactly
10644 ## what you are doing...
10645 # Dependencies to place before and after the object being linked:
10647 postdep_objects_FC=
10650 compiler_lib_search_path_FC=
10652 cat > conftest.$ac_ext <<_LT_EOF
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; then
10666 # Parse the compiler output and extract the necessary
10667 # objects, libraries and library flags.
10669 # Sentinel used to keep track of whether or not we are before
10670 # the conftest object file.
10671 pre_test_object_deps_done=no
10673 # The `*' in the case matches for architectures that use `case' in
10674 # $output_verbose_cmd can trigger glob expansion during the loop
10675 # eval without this substitution.
10676 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10678 for p in `eval $output_verbose_link_cmd`; do
10682 # Some compilers place space between "-{L,R}" and the path.
10683 # Remove the space.
10684 if test $p = "-L" ||
10685 test $p = "-R"; then
10692 if test "$pre_test_object_deps_done" = no; then
10695 # Internal compiler library paths should come after those
10696 # provided the user. The postdeps already come after the
10697 # user supplied libs so there is no need to process them.
10698 if test -z "$compiler_lib_search_path_FC"; then
10699 compiler_lib_search_path_FC="${prev}${p}"
10701 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10704 # The "-l" case would never come before the object being
10705 # linked, so don't bother handling this case.
10708 if test -z "$postdeps_FC"; then
10709 postdeps_FC="${prev}${p}"
10711 postdeps_FC="${postdeps_FC} ${prev}${p}"
10717 # This assumes that the test object file only shows up
10718 # once in the compiler output.
10719 if test "$p" = "conftest.$objext"; then
10720 pre_test_object_deps_done=yes
10724 if test "$pre_test_object_deps_done" = no; then
10725 if test -z "$predep_objects_FC"; then
10726 predep_objects_FC="$p"
10728 predep_objects_FC="$predep_objects_FC $p"
10731 if test -z "$postdep_objects_FC"; then
10732 postdep_objects_FC="$p"
10734 postdep_objects_FC="$postdep_objects_FC $p"
10739 *) ;; # Ignore the rest.
10747 echo "libtool.m4: error: problem compiling FC test program"
10750 $RM -f confest.$objext
10752 # PORTME: override above test on systems where it is broken
10755 case " $postdeps_FC " in
10756 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10784 lt_prog_compiler_wl_FC=
10785 lt_prog_compiler_pic_FC=
10786 lt_prog_compiler_static_FC=
10788 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10789 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10791 if test "$GCC" = yes; then
10792 lt_prog_compiler_wl_FC='-Wl,'
10793 lt_prog_compiler_static_FC='-static'
10797 # All AIX code is PIC.
10798 if test "$host_cpu" = ia64; then
10799 # AIX 5 now supports IA64 processor
10800 lt_prog_compiler_static_FC='-Bstatic'
10805 if test "$host_cpu" = m68k; then
10806 # FIXME: we need at least 68020 code to build shared libraries, but
10807 # adding the `-m68020' flag to GCC prevents building anything better,
10809 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10814 # PIC is the default for these OSes.
10817 mingw* | cygwin* | pw32* | os2*)
10818 # This hack is so that the source file can tell whether it is being
10819 # built for inclusion in a dll (and should export symbols for example).
10820 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10821 # (--disable-auto-import) libraries
10822 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10825 darwin* | rhapsody*)
10826 # PIC is the default on this platform
10827 # Common symbols not allowed in MH_DYLIB files
10828 lt_prog_compiler_pic_FC='-fno-common'
10832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10833 # not for PA HP-UX.
10839 lt_prog_compiler_pic_FC='-fPIC'
10845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10846 # Instead, we relocate shared libraries at runtime.
10850 # Just because we use GCC doesn't mean we suddenly get shared libraries
10851 # on systems that don't support them.
10852 lt_prog_compiler_can_build_shared_FC=no
10857 # QNX uses GNU C++, but need to define -shared option too, otherwise
10858 # it will coredump.
10859 lt_prog_compiler_pic_FC='-fPIC -shared'
10863 if test -d /usr/nec; then
10864 lt_prog_compiler_pic_FC=-Kconform_pic
10869 lt_prog_compiler_pic_FC='-fPIC'
10873 # PORTME Check for flag to pass linker flags through the system compiler.
10876 lt_prog_compiler_wl_FC='-Wl,'
10877 if test "$host_cpu" = ia64; then
10878 # AIX 5 now supports IA64 processor
10879 lt_prog_compiler_static_FC='-Bstatic'
10881 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10885 # PIC is the default on this platform
10886 # Common symbols not allowed in MH_DYLIB files
10887 case $cc_basename in
10889 lt_prog_compiler_pic_FC='-qnocommon'
10890 lt_prog_compiler_wl_FC='-Wl,'
10895 mingw* | cygwin* | pw32* | os2*)
10896 # This hack is so that the source file can tell whether it is being
10897 # built for inclusion in a dll (and should export symbols for example).
10898 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10901 hpux9* | hpux10* | hpux11*)
10902 lt_prog_compiler_wl_FC='-Wl,'
10903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10904 # not for PA HP-UX.
10910 lt_prog_compiler_pic_FC='+Z'
10913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10914 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10917 irix5* | irix6* | nonstopux*)
10918 lt_prog_compiler_wl_FC='-Wl,'
10919 # PIC (with -KPIC) is the default.
10920 lt_prog_compiler_static_FC='-non_shared'
10923 linux* | k*bsd*-gnu)
10924 case $cc_basename in
10926 lt_prog_compiler_wl_FC='-Wl,'
10927 lt_prog_compiler_pic_FC='-KPIC'
10928 lt_prog_compiler_static_FC='-static'
10930 pgcc* | pgf77* | pgf90* | pgf95*)
10931 # Portland Group compilers (*not* the Pentium gcc compiler,
10932 # which looks to be a dead project)
10933 lt_prog_compiler_wl_FC='-Wl,'
10934 lt_prog_compiler_pic_FC='-fpic'
10935 lt_prog_compiler_static_FC='-Bstatic'
10938 lt_prog_compiler_wl_FC='-Wl,'
10939 # All Alpha code is PIC.
10940 lt_prog_compiler_static_FC='-non_shared'
10943 case `$CC -V 2>&1 | sed 5q` in
10946 lt_prog_compiler_pic_FC='-KPIC'
10947 lt_prog_compiler_static_FC='-Bstatic'
10948 lt_prog_compiler_wl_FC='-Wl,'
10951 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10952 lt_prog_compiler_pic_FC='-KPIC'
10953 lt_prog_compiler_static_FC='-Bstatic'
10954 lt_prog_compiler_wl_FC=''
10962 lt_prog_compiler_pic_FC='-KPIC'
10963 lt_prog_compiler_static_FC='-Bstatic'
10967 # QNX uses GNU C++, but need to define -shared option too, otherwise
10968 # it will coredump.
10969 lt_prog_compiler_pic_FC='-fPIC -shared'
10972 osf3* | osf4* | osf5*)
10973 lt_prog_compiler_wl_FC='-Wl,'
10974 # All OSF/1 code is PIC.
10975 lt_prog_compiler_static_FC='-non_shared'
10979 lt_prog_compiler_static_FC='-non_shared'
10983 lt_prog_compiler_pic_FC='-KPIC'
10984 lt_prog_compiler_static_FC='-Bstatic'
10985 case $cc_basename in
10986 f77* | f90* | f95*)
10987 lt_prog_compiler_wl_FC='-Qoption ld ';;
10989 lt_prog_compiler_wl_FC='-Wl,';;
10994 lt_prog_compiler_wl_FC='-Qoption ld '
10995 lt_prog_compiler_pic_FC='-PIC'
10996 lt_prog_compiler_static_FC='-Bstatic'
10999 sysv4 | sysv4.2uw2* | sysv4.3*)
11000 lt_prog_compiler_wl_FC='-Wl,'
11001 lt_prog_compiler_pic_FC='-KPIC'
11002 lt_prog_compiler_static_FC='-Bstatic'
11006 if test -d /usr/nec ;then
11007 lt_prog_compiler_pic_FC='-Kconform_pic'
11008 lt_prog_compiler_static_FC='-Bstatic'
11012 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11013 lt_prog_compiler_wl_FC='-Wl,'
11014 lt_prog_compiler_pic_FC='-KPIC'
11015 lt_prog_compiler_static_FC='-Bstatic'
11019 lt_prog_compiler_wl_FC='-Wl,'
11020 lt_prog_compiler_can_build_shared_FC=no
11024 lt_prog_compiler_pic_FC='-pic'
11025 lt_prog_compiler_static_FC='-Bstatic'
11029 lt_prog_compiler_can_build_shared_FC=no
11035 # For platforms which do not support PIC, -DPIC is meaningless:
11037 lt_prog_compiler_pic_FC=
11040 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11044 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11049 # Check to make sure the PIC flag actually works.
11051 if test -n "$lt_prog_compiler_pic_FC"; then
11052 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11054 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 lt_prog_compiler_pic_works_FC=no
11058 ac_outfile=conftest.$ac_objext
11059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11060 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11061 # Insert the option either (1) after the last *FLAGS variable, or
11062 # (2) before a word containing "conftest.", or (3) at the end.
11063 # Note that $ac_compile itself does not contain backslashes and begins
11064 # with a dollar sign (not a hyphen), so the echo should work correctly.
11065 # The option is referenced via a variable to avoid confusing sed.
11066 lt_compile=`echo "$ac_compile" | $SED \
11067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11069 -e 's:$: $lt_compiler_flag:'`
11070 (eval echo "\"\$as_me:11070: $lt_compile\"" >&5)
11071 (eval "$lt_compile" 2>conftest.err)
11073 cat conftest.err >&5
11074 echo "$as_me:11074: \$? = $ac_status" >&5
11075 if (exit $ac_status) && test -s "$ac_outfile"; then
11076 # The compiler can only warn and ignore the option if not recognized
11077 # So say no if there are warnings other than the usual output.
11078 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11081 lt_prog_compiler_pic_works_FC=yes
11087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11088 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11090 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11091 case $lt_prog_compiler_pic_FC in
11093 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11096 lt_prog_compiler_pic_FC=
11097 lt_prog_compiler_can_build_shared_FC=no
11105 # Check to make sure the static flag actually works.
11107 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11108 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11109 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11110 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 lt_prog_compiler_static_works_FC=no
11114 save_LDFLAGS="$LDFLAGS"
11115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11118 # The linker can only warn and ignore the option if not recognized
11119 # So say no if there are warnings
11120 if test -s conftest.err; then
11121 # Append any errors to the config.log.
11122 cat conftest.err 1>&5
11123 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11125 if diff conftest.exp conftest.er2 >/dev/null; then
11126 lt_prog_compiler_static_works_FC=yes
11129 lt_prog_compiler_static_works_FC=yes
11133 LDFLAGS="$save_LDFLAGS"
11136 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11137 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11139 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11142 lt_prog_compiler_static_FC=
11148 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11150 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 lt_cv_prog_compiler_c_o_FC=no
11154 $RM -r conftest 2>/dev/null
11158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11160 lt_compiler_flag="-o out/conftest2.$ac_objext"
11161 # Insert the option either (1) after the last *FLAGS variable, or
11162 # (2) before a word containing "conftest.", or (3) at the end.
11163 # Note that $ac_compile itself does not contain backslashes and begins
11164 # with a dollar sign (not a hyphen), so the echo should work correctly.
11165 lt_compile=`echo "$ac_compile" | $SED \
11166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11168 -e 's:$: $lt_compiler_flag:'`
11169 (eval echo "\"\$as_me:11169: $lt_compile\"" >&5)
11170 (eval "$lt_compile" 2>out/conftest.err)
11172 cat out/conftest.err >&5
11173 echo "$as_me:11173: \$? = $ac_status" >&5
11174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11176 # The compiler can only warn and ignore the option if not recognized
11177 # So say no if there are warnings
11178 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11181 lt_cv_prog_compiler_c_o_FC=yes
11186 # SGI C++ compiler will create directory out/ii_files/ for
11187 # template instantiation
11188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11189 $RM out/* && rmdir out
11195 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11200 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11202 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 lt_cv_prog_compiler_c_o_FC=no
11206 $RM -r conftest 2>/dev/null
11210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11212 lt_compiler_flag="-o out/conftest2.$ac_objext"
11213 # Insert the option either (1) after the last *FLAGS variable, or
11214 # (2) before a word containing "conftest.", or (3) at the end.
11215 # Note that $ac_compile itself does not contain backslashes and begins
11216 # with a dollar sign (not a hyphen), so the echo should work correctly.
11217 lt_compile=`echo "$ac_compile" | $SED \
11218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11220 -e 's:$: $lt_compiler_flag:'`
11221 (eval echo "\"\$as_me:11221: $lt_compile\"" >&5)
11222 (eval "$lt_compile" 2>out/conftest.err)
11224 cat out/conftest.err >&5
11225 echo "$as_me:11225: \$? = $ac_status" >&5
11226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11228 # The compiler can only warn and ignore the option if not recognized
11229 # So say no if there are warnings
11230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11233 lt_cv_prog_compiler_c_o_FC=yes
11238 # SGI C++ compiler will create directory out/ii_files/ for
11239 # template instantiation
11240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11241 $RM out/* && rmdir out
11247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11253 hard_links="nottested"
11254 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11255 # do not overwrite the value of need_locks provided by the user
11256 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11262 ln conftest.a conftest.b 2>&5 || hard_links=no
11263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11264 echo "$as_me:$LINENO: result: $hard_links" >&5
11265 echo "${ECHO_T}$hard_links" >&6
11266 if test "$hard_links" = no; then
11267 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11277 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11281 allow_undefined_flag_FC=
11282 always_export_symbols_FC=no
11284 archive_expsym_cmds_FC=
11285 compiler_needs_object_FC=no
11286 enable_shared_with_static_runtimes_FC=no
11287 export_dynamic_flag_spec_FC=
11288 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11289 hardcode_automatic_FC=no
11290 hardcode_direct_FC=no
11291 hardcode_direct_absolute_FC=no
11292 hardcode_libdir_flag_spec_FC=
11293 hardcode_libdir_flag_spec_ld_FC=
11294 hardcode_libdir_separator_FC=
11295 hardcode_minus_L_FC=no
11296 hardcode_shlibpath_var_FC=unsupported
11297 inherit_rpath_FC=no
11298 link_all_deplibs_FC=unknown
11300 module_expsym_cmds_FC=
11301 old_archive_from_new_cmds_FC=
11302 old_archive_from_expsyms_cmds_FC=
11303 thread_safe_flag_spec_FC=
11304 whole_archive_flag_spec_FC=
11305 # include_expsyms should be a list of space-separated symbols to be *always*
11306 # included in the symbol list
11307 include_expsyms_FC=
11308 # exclude_expsyms can be an extended regexp of symbols to exclude
11309 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11310 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11311 # as well as any symbol that contains `d'.
11312 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11313 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11314 # platforms (ab)use it in PIC code, but their linkers get confused if
11315 # the symbol is explicitly referenced. Since portable code cannot
11316 # rely on this symbol name, it's probably fine to never include it in
11317 # preloaded symbol tables.
11318 extract_expsyms_cmds=
11321 cygwin* | mingw* | pw32*)
11322 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11323 # When not using gcc, we currently assume that we are using
11324 # Microsoft Visual C++.
11325 if test "$GCC" != yes; then
11330 # we just hope/assume this is gcc and not c89 (= MSVC++)
11339 if test "$with_gnu_ld" = yes; then
11340 # If archive_cmds runs LD, not CC, wlarc should be empty
11343 # Set some defaults for GNU ld with shared library support. These
11344 # are reset later if shared libraries are not supported. Putting them
11345 # here allows them to be overridden if necessary.
11346 runpath_var=LD_RUN_PATH
11347 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11348 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11349 # ancient GNU ld didn't support --whole-archive et. al.
11350 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11351 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11353 whole_archive_flag_spec_FC=
11355 supports_anon_versioning=no
11356 case `$LD -v 2>&1` in
11357 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11358 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11359 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11360 *\ 2.11.*) ;; # other 2.11 versions
11361 *) supports_anon_versioning=yes ;;
11364 # See if GNU ld supports shared libraries.
11367 # On AIX/PPC, the GNU linker is very broken
11368 if test "$host_cpu" != ia64; then
11372 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11373 *** to be unable to reliably create shared libraries on AIX.
11374 *** Therefore, libtool is disabling shared libraries support. If you
11375 *** really care for shared libraries, you may want to modify your PATH
11376 *** so that a non-GNU linker is found, and then restart.
11383 if test "$host_cpu" = m68k; then
11384 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)'
11385 hardcode_libdir_flag_spec_FC='-L$libdir'
11386 hardcode_minus_L_FC=yes
11389 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11390 # that the semantics of dynamic libraries on AmigaOS, at least up
11391 # to version 4, is to share data among multiple programs linked
11392 # with the same dynamic library. Since this doesn't match the
11393 # behavior of shared libraries on other platforms, we can't use
11399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11400 allow_undefined_flag_FC=unsupported
11401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11402 # support --undefined. This deserves some investigation. FIXME
11403 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11409 cygwin* | mingw* | pw32*)
11410 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11411 # as there is no search path for DLLs.
11412 hardcode_libdir_flag_spec_FC='-L$libdir'
11413 allow_undefined_flag_FC=unsupported
11414 always_export_symbols_FC=no
11415 enable_shared_with_static_runtimes_FC=yes
11416 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11418 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11419 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11420 # If the export-symbols file already is a .def file (1st line
11421 # is EXPORTS), use it as is; otherwise, prepend...
11422 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11423 cp $export_symbols $output_objdir/$soname.def;
11425 echo EXPORTS > $output_objdir/$soname.def;
11426 cat $export_symbols >> $output_objdir/$soname.def;
11428 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11435 hardcode_direct_FC=no
11436 hardcode_shlibpath_var_FC=no
11437 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11438 export_dynamic_flag_spec_FC='${wl}-E'
11439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440 # Instead, shared libraries are loaded at an image base (0x10000000 by
11441 # default) and relocated if they conflict, which is a slow very memory
11442 # consuming and fragmenting process. To avoid this, we pick a random,
11443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11445 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'
11446 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'
11449 gnu* | linux* | tpf* | k*bsd*-gnu)
11451 if test "$host_os" = linux-dietlibc; then
11452 case $cc_basename in
11453 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11456 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11457 && test "$tmp_diet" = no
11460 case $cc_basename,$host_cpu in
11461 pgcc*) # Portland Group C compiler
11462 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'
11463 tmp_addflag=' $pic_flag'
11465 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11466 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'
11467 tmp_addflag=' $pic_flag -Mnomain' ;;
11468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11469 tmp_addflag=' -i_dynamic' ;;
11470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11471 tmp_addflag=' -i_dynamic -nofor_main' ;;
11472 ifc* | ifort*) # Intel Fortran compiler
11473 tmp_addflag=' -nofor_main' ;;
11475 case `$CC -V 2>&1 | sed 5q` in
11476 *Sun\ C*) # Sun C 5.9
11477 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'
11478 compiler_needs_object_FC=yes
11479 tmp_sharedflag='-G' ;;
11480 *Sun\ F*) # Sun Fortran 8.3
11481 tmp_sharedflag='-G' ;;
11483 tmp_sharedflag='-shared' ;;
11485 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11487 if test "x$supports_anon_versioning" = xyes; then
11488 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11490 echo "local: *; };" >> $output_objdir/$libname.ver~
11491 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11500 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11503 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11509 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11514 *** create shared libraries on Solaris systems. Therefore, libtool
11515 *** is disabling shared libraries support. We urge you to upgrade GNU
11516 *** binutils to release 2.9.1 or newer. Another option is to modify
11517 *** your PATH or compiler configuration so that the native linker is
11518 *** used, and then restart.
11521 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11522 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11523 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11530 case `$LD -v 2>&1` in
11531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11536 *** reliably create shared libraries on SCO systems. Therefore, libtool
11537 *** is disabling shared libraries support. We urge you to upgrade GNU
11538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11539 *** your PATH or compiler configuration so that the native linker is
11540 *** used, and then restart.
11545 # For security reasons, it is highly recommended that you always
11546 # use absolute paths for naming shared libraries, and exclude the
11547 # DT_RUNPATH tag from executables and libraries. But doing so
11548 # requires that you compile everything twice, which is a pain.
11549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11550 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11551 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11552 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11561 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11563 hardcode_direct_FC=yes
11564 hardcode_shlibpath_var_FC=no
11568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11569 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11577 if test "$ld_shlibs_FC" = no; then
11579 hardcode_libdir_flag_spec_FC=
11580 export_dynamic_flag_spec_FC=
11581 whole_archive_flag_spec_FC=
11584 # PORTME fill in a description of your system's linker (not GNU ld)
11587 allow_undefined_flag_FC=unsupported
11588 always_export_symbols_FC=yes
11589 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'
11590 # Note: this linker hardcodes the directories in LIBPATH if there
11591 # are no directories specified by -L.
11592 hardcode_minus_L_FC=yes
11593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11594 # Neither direct hardcoding nor static linking is supported with a
11596 hardcode_direct_FC=unsupported
11601 if test "$host_cpu" = ia64; then
11602 # On IA64, the linker does run time linking by default, so we don't
11603 # have to do anything special.
11604 aix_use_runtimelinking=no
11605 exp_sym_flag='-Bexport'
11608 # If we're using GNU nm, then we don't want the "-C" option.
11609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11610 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11611 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'
11613 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'
11615 aix_use_runtimelinking=no
11617 # Test if we are trying to use run time linking or normal
11618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11619 # need to do runtime linking.
11620 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11621 for ld_flag in $LDFLAGS; do
11622 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11623 aix_use_runtimelinking=yes
11630 exp_sym_flag='-bexport'
11631 no_entry_flag='-bnoentry'
11634 # When large executables or shared objects are built, AIX ld can
11635 # have problems creating the table of contents. If linking a library
11636 # or program results in "error TOC overflow" add -mminimal-toc to
11637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11641 hardcode_direct_FC=yes
11642 hardcode_direct_absolute_FC=yes
11643 hardcode_libdir_separator_FC=':'
11644 link_all_deplibs_FC=yes
11645 file_list_spec_FC='${wl}-f,'
11647 if test "$GCC" = yes; then
11648 case $host_os in aix4.[012]|aix4.[012].*)
11649 # We only want to do this on AIX 4.2 and lower, the check
11650 # below for broken collect2 doesn't work under 4.3+
11651 collect2name=`${CC} -print-prog-name=collect2`
11652 if test -f "$collect2name" &&
11653 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11655 # We have reworked collect2
11658 # We have old collect2
11659 hardcode_direct_FC=unsupported
11660 # It fails to find uninstalled libraries when the uninstalled
11661 # path is not listed in the libpath. Setting hardcode_minus_L
11662 # to unsupported forces relinking
11663 hardcode_minus_L_FC=yes
11664 hardcode_libdir_flag_spec_FC='-L$libdir'
11665 hardcode_libdir_separator_FC=
11669 shared_flag='-shared'
11670 if test "$aix_use_runtimelinking" = yes; then
11671 shared_flag="$shared_flag "'${wl}-G'
11675 if test "$host_cpu" = ia64; then
11676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11677 # chokes on -Wl,-G. The following line is correct:
11680 if test "$aix_use_runtimelinking" = yes; then
11681 shared_flag='${wl}-G'
11683 shared_flag='${wl}-bM:SRE'
11688 # It seems that -bexpall does not export symbols beginning with
11689 # underscore (_), so it is better to generate a list of symbols to export.
11690 always_export_symbols_FC=yes
11691 if test "$aix_use_runtimelinking" = yes; then
11692 # Warning - without using the other runtime loading flags (-brtl),
11693 # -berok will link without error, but may produce a broken library.
11694 allow_undefined_flag_FC='-berok'
11695 # Determine the default libpath from the value encoded in an
11696 # empty executable.
11697 cat >conftest.$ac_ext <<_ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_fc_werror_flag"
11712 || test ! -s conftest.err'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11725 lt_aix_libpath_sed='
11726 /Import File Strings/,/^$/ {
11732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11733 # Check for a 64-bit object if we didn't find anything.
11734 if test -z "$aix_libpath"; then
11735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11742 rm -f conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11746 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11747 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"
11749 if test "$host_cpu" = ia64; then
11750 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11751 allow_undefined_flag_FC="-z nodefs"
11752 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"
11754 # Determine the default libpath from the value encoded in an
11755 # empty executable.
11756 cat >conftest.$ac_ext <<_ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763 (eval $ac_link) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_fc_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11784 lt_aix_libpath_sed='
11785 /Import File Strings/,/^$/ {
11791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11792 # Check for a 64-bit object if we didn't find anything.
11793 if test -z "$aix_libpath"; then
11794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11801 rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11805 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11806 # Warning - without using the other run time loading flags,
11807 # -berok will link without error, but may produce a broken library.
11808 no_undefined_flag_FC=' ${wl}-bernotok'
11809 allow_undefined_flag_FC=' ${wl}-berok'
11810 # Exported symbols can be pulled into shared objects from archives
11811 whole_archive_flag_spec_FC='$convenience'
11812 archive_cmds_need_lc_FC=yes
11813 # This is similar to how AIX traditionally builds its shared libraries.
11814 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'
11820 if test "$host_cpu" = m68k; then
11821 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)'
11822 hardcode_libdir_flag_spec_FC='-L$libdir'
11823 hardcode_minus_L_FC=yes
11825 # see comment about different semantics on the GNU ld section
11830 export_dynamic_flag_spec_FC=-rdynamic
11833 cygwin* | mingw* | pw32*)
11834 # When not using gcc, we currently assume that we are using
11835 # Microsoft Visual C++.
11836 # hardcode_libdir_flag_spec is actually meaningless, as there is
11837 # no search path for DLLs.
11838 hardcode_libdir_flag_spec_FC=' '
11839 allow_undefined_flag_FC=unsupported
11840 # Tell ltmain to make .lib files, not .a files.
11842 # Tell ltmain to make .dll files, not .so files.
11844 # FIXME: Setting linknames here is a bad hack.
11845 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11846 # The linker will automatically build a .lib file if we build a DLL.
11847 old_archive_from_new_cmds_FC='true'
11848 # FIXME: Should let the user specify the lib program.
11849 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11850 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11851 enable_shared_with_static_runtimes_FC=yes
11854 darwin* | rhapsody*)
11856 rhapsody* | darwin1.[012])
11857 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11860 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11862 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11865 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11870 archive_cmds_need_lc_FC=no
11871 hardcode_direct_FC=no
11872 hardcode_automatic_FC=yes
11873 hardcode_shlibpath_var_FC=unsupported
11874 whole_archive_flag_spec_FC=''
11875 link_all_deplibs_FC=yes
11876 if test "$GCC" = yes ; then
11877 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 lt_cv_apple_cc_single_mod=no
11881 if test -z "${LT_MULTI_MODULE}"; then
11882 # By default we will add the -single_module flag. You can override
11883 # by either setting the environment variable LT_MULTI_MODULE
11884 # non-empty at configure time, or by adding -multi-module to the
11886 echo "int foo(void){return 1;}" > conftest.c
11887 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11888 -dynamiclib ${wl}-single_module conftest.c
11889 if test -f libconftest.dylib; then
11890 lt_cv_apple_cc_single_mod=yes
11891 rm libconftest.dylib
11893 rm conftest.$ac_ext
11897 output_verbose_link_cmd=echo
11898 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11899 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11900 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}'
11902 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11903 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}'
11905 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11906 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}'
11908 case $cc_basename in
11910 output_verbose_link_cmd=echo
11911 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11912 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11914 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}'
11915 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}'
11925 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11926 hardcode_libdir_flag_spec_FC='-L$libdir'
11927 hardcode_shlibpath_var_FC=no
11934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11935 # support. Future versions do this automatically, but an explicit c++rt0.o
11936 # does not break anything, and helps significantly (at the cost of a little
11939 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11940 hardcode_libdir_flag_spec_FC='-R$libdir'
11941 hardcode_direct_FC=yes
11942 hardcode_shlibpath_var_FC=no
11945 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11947 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11948 hardcode_direct_FC=yes
11949 hardcode_minus_L_FC=yes
11950 hardcode_shlibpath_var_FC=no
11953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11954 freebsd* | dragonfly*)
11955 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11956 hardcode_libdir_flag_spec_FC='-R$libdir'
11957 hardcode_direct_FC=yes
11958 hardcode_shlibpath_var_FC=no
11962 if test "$GCC" = yes; then
11963 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'
11965 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'
11967 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11968 hardcode_libdir_separator_FC=:
11969 hardcode_direct_FC=yes
11971 # hardcode_minus_L: Not really in the search PATH,
11972 # but as the default location of the library.
11973 hardcode_minus_L_FC=yes
11974 export_dynamic_flag_spec_FC='${wl}-E'
11978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11979 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11981 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11983 if test "$with_gnu_ld" = no; then
11984 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11985 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
11986 hardcode_libdir_separator_FC=:
11987 hardcode_direct_FC=yes
11988 hardcode_direct_absolute_FC=yes
11989 export_dynamic_flag_spec_FC='${wl}-E'
11990 # hardcode_minus_L: Not really in the search PATH,
11991 # but as the default location of the library.
11992 hardcode_minus_L_FC=yes
11997 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12000 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12003 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12006 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12012 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12015 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12018 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12022 if test "$with_gnu_ld" = no; then
12023 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12024 hardcode_libdir_separator_FC=:
12028 hardcode_direct_FC=no
12029 hardcode_shlibpath_var_FC=no
12032 hardcode_direct_FC=yes
12033 hardcode_direct_absolute_FC=yes
12034 export_dynamic_flag_spec_FC='${wl}-E'
12036 # hardcode_minus_L: Not really in the search PATH,
12037 # but as the default location of the library.
12038 hardcode_minus_L_FC=yes
12044 irix5* | irix6* | nonstopux*)
12045 if test "$GCC" = yes; then
12046 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'
12047 # Try to use the -exported_symbol ld option, if it does not
12048 # work, assume that -exports_file does not work either and
12049 # implicitly export all symbols.
12050 save_LDFLAGS="$LDFLAGS"
12051 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12052 cat >conftest.$ac_ext <<_ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057 (eval $ac_link) 2>conftest.er1
12059 grep -v '^ *+' conftest.er1 >conftest.err
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -z "$ac_fc_werror_flag"
12065 || test ! -s conftest.err'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try='test -s conftest$ac_exeext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 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'
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12084 rm -f conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LDFLAGS="$save_LDFLAGS"
12088 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'
12089 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'
12091 archive_cmds_need_lc_FC='no'
12092 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12093 hardcode_libdir_separator_FC=:
12094 inherit_rpath_FC=yes
12095 link_all_deplibs_FC=yes
12099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12100 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12102 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12104 hardcode_libdir_flag_spec_FC='-R$libdir'
12105 hardcode_direct_FC=yes
12106 hardcode_shlibpath_var_FC=no
12110 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111 hardcode_direct_FC=yes
12112 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12113 hardcode_libdir_separator_FC=:
12114 hardcode_shlibpath_var_FC=no
12121 hardcode_direct_FC=yes
12122 hardcode_shlibpath_var_FC=no
12123 hardcode_direct_absolute_FC=yes
12124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12125 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12126 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12127 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12128 export_dynamic_flag_spec_FC='${wl}-E'
12131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12132 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12133 hardcode_libdir_flag_spec_FC='-R$libdir'
12136 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12137 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12144 hardcode_libdir_flag_spec_FC='-L$libdir'
12145 hardcode_minus_L_FC=yes
12146 allow_undefined_flag_FC=unsupported
12147 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'
12148 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12152 if test "$GCC" = yes; then
12153 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12154 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'
12156 allow_undefined_flag_FC=' -expect_unresolved \*'
12157 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'
12159 archive_cmds_need_lc_FC='no'
12160 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12161 hardcode_libdir_separator_FC=:
12164 osf4* | osf5*) # as osf3* with the addition of -msym flag
12165 if test "$GCC" = yes; then
12166 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12167 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'
12168 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12170 allow_undefined_flag_FC=' -expect_unresolved \*'
12171 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'
12172 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~
12173 $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'
12175 # Both c and cxx compiler support -rpath directly
12176 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12178 archive_cmds_need_lc_FC='no'
12179 hardcode_libdir_separator_FC=:
12183 no_undefined_flag_FC=' -z defs'
12184 if test "$GCC" = yes; then
12186 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12188 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12190 case `$CC -V 2>&1` in
12193 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12194 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12195 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12199 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12200 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12201 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12205 hardcode_libdir_flag_spec_FC='-R$libdir'
12206 hardcode_shlibpath_var_FC=no
12208 solaris2.[0-5] | solaris2.[0-5].*) ;;
12210 # The compiler driver will combine and reorder linker options,
12211 # but understands `-z linker_flag'. GCC discards it without `$wl',
12212 # but is careful enough not to reorder.
12213 # Supported since Solaris 2.6 (maybe 2.5.1?)
12214 if test "$GCC" = yes; then
12215 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12217 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12221 link_all_deplibs_FC=yes
12225 if test "x$host_vendor" = xsequent; then
12226 # Use $CC to link under sequent, because it throws in some extra .o
12227 # files that make .init and .fini sections work.
12228 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12230 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12232 hardcode_libdir_flag_spec_FC='-L$libdir'
12233 hardcode_direct_FC=yes
12234 hardcode_minus_L_FC=yes
12235 hardcode_shlibpath_var_FC=no
12239 case $host_vendor in
12241 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12242 hardcode_direct_FC=yes # is this really true???
12245 ## LD is ld it makes a PLAMLIB
12246 ## CC just makes a GrossModule.
12247 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12248 reload_cmds_FC='$CC -r -o $output$reload_objs'
12249 hardcode_direct_FC=no
12252 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12253 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12256 runpath_var='LD_RUN_PATH'
12257 hardcode_shlibpath_var_FC=no
12261 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12262 hardcode_shlibpath_var_FC=no
12263 export_dynamic_flag_spec_FC='-Bexport'
12267 if test -d /usr/nec; then
12268 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12269 hardcode_shlibpath_var_FC=no
12270 runpath_var=LD_RUN_PATH
12271 hardcode_runpath_var=yes
12276 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12277 no_undefined_flag_FC='${wl}-z,text'
12278 archive_cmds_need_lc_FC=no
12279 hardcode_shlibpath_var_FC=no
12280 runpath_var='LD_RUN_PATH'
12282 if test "$GCC" = yes; then
12283 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12286 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12291 sysv5* | sco3.2v5* | sco5v6*)
12292 # Note: We can NOT use -z defs as we might desire, because we do not
12293 # link with -lc, and that would cause any symbols used from libc to
12294 # always be unresolved, which means just about no library would
12295 # ever link correctly. If we're not using GNU ld we use -z text
12296 # though, which does catch some bad symbols but isn't as heavy-handed
12298 no_undefined_flag_FC='${wl}-z,text'
12299 allow_undefined_flag_FC='${wl}-z,nodefs'
12300 archive_cmds_need_lc_FC=no
12301 hardcode_shlibpath_var_FC=no
12302 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12303 hardcode_libdir_separator_FC=':'
12304 link_all_deplibs_FC=yes
12305 export_dynamic_flag_spec_FC='${wl}-Bexport'
12306 runpath_var='LD_RUN_PATH'
12308 if test "$GCC" = yes; then
12309 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12318 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12319 hardcode_libdir_flag_spec_FC='-L$libdir'
12320 hardcode_shlibpath_var_FC=no
12328 if test x$host_vendor = xsni; then
12330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12331 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12337 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12338 echo "${ECHO_T}$ld_shlibs_FC" >&6
12339 test "$ld_shlibs_FC" = no && can_build_shared=no
12341 with_gnu_ld_FC=$with_gnu_ld
12349 # Do we need to explicitly link libc?
12351 case "x$archive_cmds_need_lc_FC" in
12353 # Assume -lc should be added
12354 archive_cmds_need_lc_FC=yes
12356 if test "$enable_shared" = yes && test "$GCC" = yes; then
12357 case $archive_cmds_FC in
12359 # FIXME: we may have to deal with multi-command sequences.
12362 # Test whether the compiler implicitly links with -lc since on some
12363 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12364 # to ld, don't add -lc before -lgcc.
12365 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12366 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } 2>conftest.err; then
12377 libobjs=conftest.$ac_objext
12379 wl=$lt_prog_compiler_wl_FC
12380 pic_flag=$lt_prog_compiler_pic_FC
12386 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12387 allow_undefined_flag_FC=
12388 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12389 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }
12394 archive_cmds_need_lc_FC=no
12396 archive_cmds_need_lc_FC=yes
12398 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12400 cat conftest.err 1>&5
12403 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12404 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12474 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12476 withGCC=$ac_cv_fc_compiler_gnu
12477 library_names_spec=
12478 libname_spec='lib$name'
12482 postuninstall_cmds=
12486 shlibpath_overrides_runpath=unknown
12488 dynamic_linker="$host_os ld.so"
12489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12490 need_lib_prefix=unknown
12491 hardcode_into_libs=no
12493 # when you set need_version to no, make sure it does not cause -set_version
12494 # flags to be left without arguments
12495 need_version=unknown
12500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12501 shlibpath_var=LIBPATH
12503 # AIX 3 has no versioning support, so we append a major version to the name.
12504 soname_spec='${libname}${release}${shared_ext}$major'
12511 hardcode_into_libs=yes
12512 if test "$host_cpu" = ia64; then
12513 # AIX 5 supports IA64
12514 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12515 shlibpath_var=LD_LIBRARY_PATH
12517 # With GCC up to 2.95.x, collect2 would create an import file
12518 # for dependence libraries. The import file would start with
12519 # the line `#! .'. This would cause the generated library to
12520 # depend on `.', always an invalid library. This was fixed in
12521 # development snapshots of GCC prior to 3.0.
12523 aix4 | aix4.[01] | aix4.[01].*)
12524 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12526 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12529 can_build_shared=no
12533 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12534 # soname into executable. Probably we can add versioning support to
12535 # collect2, so additional links can be useful in future.
12536 if test "$aix_use_runtimelinking" = yes; then
12537 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12538 # instead of lib<name>.a to let people know that these are not
12539 # typical AIX shared libraries.
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542 # We preserve .a as extension for shared libraries through AIX4.2
12543 # and later when we are not doing run time linking.
12544 library_names_spec='${libname}${release}.a $libname.a'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12547 shlibpath_var=LIBPATH
12552 if test "$host_cpu" = m68k; then
12553 library_names_spec='$libname.ixlibrary $libname.a'
12554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12555 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'
12562 library_names_spec='${libname}${shared_ext}'
12563 dynamic_linker="$host_os ld.so"
12564 shlibpath_var=LIBRARY_PATH
12570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571 soname_spec='${libname}${release}${shared_ext}$major'
12572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12573 shlibpath_var=LD_LIBRARY_PATH
12574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12576 # the default ld.so.conf also contains /usr/contrib/lib and
12577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12578 # libtool to hard-code these into programs
12581 cygwin* | mingw* | pw32*)
12582 version_type=windows
12587 case $withGCC,$host_os in
12588 yes,cygwin* | yes,mingw* | yes,pw32*)
12589 library_names_spec='$libname.dll.a'
12590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12591 postinstall_cmds='base_file=`basename \${file}`~
12592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12593 dldir=$destdir/`dirname \$dlpath`~
12594 test -d \$dldir || mkdir -p \$dldir~
12595 $install_prog $dir/$dlname \$dldir/$dlname~
12596 chmod a+x \$dldir/$dlname~
12597 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12598 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12601 dlpath=$dir/\$dldll~
12603 shlibpath_overrides_runpath=yes
12607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12609 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12612 # MinGW DLLs use traditional 'lib' prefix
12613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12614 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12615 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12616 # It is most probably a Windows format PATH printed by
12617 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12618 # path with ; separators, and with drive letters. We can handle the
12619 # drive letters (cygwin fileutils understands them), so leave them,
12620 # especially as we might pass files found there to a mingw objdump,
12621 # which wouldn't understand a cygwinified path. Ahh.
12622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12628 # pw32 DLLs use 'pw' prefix rather than 'lib'
12629 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12638 dynamic_linker='Win32 ld.exe'
12639 # FIXME: first we should search . and the directory the executable is in
12643 darwin* | rhapsody*)
12644 dynamic_linker="$host_os dyld"
12645 version_type=darwin
12648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12649 soname_spec='${libname}${release}${major}$shared_ext'
12650 shlibpath_overrides_runpath=yes
12651 shlibpath_var=DYLD_LIBRARY_PATH
12652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12654 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12670 freebsd* | dragonfly*)
12671 # DragonFly does not have aout. When/if they implement a new
12672 # versioning mechanism, adjust this.
12673 if test -x /usr/bin/objformat; then
12674 objformat=`/usr/bin/objformat`
12677 freebsd[123]*) objformat=aout ;;
12678 *) objformat=elf ;;
12681 version_type=freebsd-$objformat
12682 case $version_type in
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12693 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=yes
12698 freebsd3.[01]* | freebsdelf3.[01]*)
12699 shlibpath_overrides_runpath=yes
12700 hardcode_into_libs=yes
12702 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12703 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12704 shlibpath_overrides_runpath=no
12705 hardcode_into_libs=yes
12707 *) # from 4.6 on, and DragonFly
12708 shlibpath_overrides_runpath=yes
12709 hardcode_into_libs=yes
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12719 soname_spec='${libname}${release}${shared_ext}$major'
12720 shlibpath_var=LD_LIBRARY_PATH
12721 hardcode_into_libs=yes
12724 hpux9* | hpux10* | hpux11*)
12725 # Give a soname corresponding to the major version so that dld.sl refuses to
12726 # link against other versions.
12733 hardcode_into_libs=yes
12734 dynamic_linker="$host_os dld.so"
12735 shlibpath_var=LD_LIBRARY_PATH
12736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738 soname_spec='${libname}${release}${shared_ext}$major'
12739 if test "X$HPUX_IA64_MODE" = X32; then
12740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12748 hardcode_into_libs=yes
12749 dynamic_linker="$host_os dld.sl"
12750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12759 dynamic_linker="$host_os dld.sl"
12760 shlibpath_var=SHLIB_PATH
12761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763 soname_spec='${libname}${release}${shared_ext}$major'
12766 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12767 postinstall_cmds='chmod 555 $lib'
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath=no
12779 hardcode_into_libs=yes
12782 irix5* | irix6* | nonstopux*)
12784 nonstopux*) version_type=nonstopux ;;
12786 if test "$lt_cv_prog_gnu_ld" = yes; then
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12797 irix5* | nonstopux*)
12798 libsuff= shlibsuff=
12801 case $LD in # libtool.m4 will add one of these switches to LD
12802 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12803 libsuff= shlibsuff= libmagic=32-bit;;
12804 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12805 libsuff=32 shlibsuff=N32 libmagic=N32;;
12806 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12807 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12808 *) libsuff= shlibsuff= libmagic=never-match;;
12812 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12813 shlibpath_overrides_runpath=no
12814 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12815 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12816 hardcode_into_libs=yes
12819 # No shared lib support for Linux oldld, aout, or coff.
12820 linux*oldld* | linux*aout* | linux*coff*)
12824 # This must be Linux ELF.
12825 linux* | k*bsd*-gnu)
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=no
12834 # Some binutils ld are patched to set DT_RUNPATH
12835 save_LDFLAGS=$LDFLAGS
12836 save_libdir=$libdir
12837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12839 cat >conftest.$ac_ext <<_ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846 (eval $ac_link) 2>conftest.er1
12848 grep -v '^ *+' conftest.er1 >conftest.err
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -z "$ac_fc_werror_flag"
12854 || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12867 shlibpath_overrides_runpath=yes
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12875 rm -f conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LDFLAGS=$save_LDFLAGS
12878 libdir=$save_libdir
12880 # This implies no fast_install, which is unacceptable.
12881 # Some rework will be needed to allow for fast_install
12882 # before this can be enabled.
12883 hardcode_into_libs=yes
12885 # Append ld.so.conf contents to the search path
12886 if test -f /etc/ld.so.conf; then
12887 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' ' '`
12888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12891 # We used to test for /lib/ld.so.1 and disable shared libraries on
12892 # powerpc, because MkLinux only supported shared libraries with the
12893 # GNU dynamic linker. Since this was broken with cross compilers,
12894 # most powerpc-linux boxes support dynamic linking these days and
12895 # people can always --disable-shared, the test was removed, and we
12896 # assume the GNU/Linux dynamic linker is in use.
12897 dynamic_linker='GNU/Linux ld.so'
12904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12907 dynamic_linker='NetBSD (a.out) ld.so'
12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12910 soname_spec='${libname}${release}${shared_ext}$major'
12911 dynamic_linker='NetBSD ld.elf_so'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=yes
12915 hardcode_into_libs=yes
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=yes
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12930 soname_spec='${libname}${release}${shared_ext}$major'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=no
12933 hardcode_into_libs=yes
12934 dynamic_linker='ldqnx.so'
12939 sys_lib_dlsearch_path_spec="/usr/lib"
12941 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12943 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12944 *) need_version=no ;;
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12951 openbsd2.[89] | openbsd2.[89].*)
12952 shlibpath_overrides_runpath=no
12955 shlibpath_overrides_runpath=yes
12959 shlibpath_overrides_runpath=yes
12964 libname_spec='$name'
12967 library_names_spec='$libname${shared_ext} $libname.a'
12968 dynamic_linker='OS/2 ld.exe'
12969 shlibpath_var=LIBPATH
12972 osf3* | osf4* | osf5*)
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12980 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 shlibpath_overrides_runpath=yes
12995 hardcode_into_libs=yes
12996 # ldd complains unless libraries are executable
12997 postinstall_cmds='chmod +x $lib'
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 shlibpath_overrides_runpath=yes
13006 if test "$with_gnu_ld" = yes; then
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015 soname_spec='${libname}${release}${shared_ext}$major'
13016 shlibpath_var=LD_LIBRARY_PATH
13017 case $host_vendor in
13019 shlibpath_overrides_runpath=no
13021 runpath_var=LD_RUN_PATH
13029 shlibpath_overrides_runpath=no
13030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13036 if test -d /usr/nec ;then
13038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13039 soname_spec='$libname${shared_ext}.$major'
13040 shlibpath_var=LD_LIBRARY_PATH
13044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13045 version_type=freebsd-elf
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13052 hardcode_into_libs=yes
13053 if test "$with_gnu_ld" = yes; then
13054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13059 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13063 sys_lib_dlsearch_path_spec='/usr/lib'
13067 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13071 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13072 shlibpath_var=LD_LIBRARY_PATH
13073 shlibpath_overrides_runpath=no
13074 hardcode_into_libs=yes
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080 soname_spec='${libname}${release}${shared_ext}$major'
13081 shlibpath_var=LD_LIBRARY_PATH
13088 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13089 echo "${ECHO_T}$dynamic_linker" >&6
13090 test "$dynamic_linker" = no && can_build_shared=no
13092 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13093 if test "$GCC" = yes; then
13094 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13132 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13134 hardcode_action_FC=
13135 if test -n "$hardcode_libdir_flag_spec_FC" ||
13136 test -n "$runpath_var_FC" ||
13137 test "X$hardcode_automatic_FC" = "Xyes" ; then
13139 # We can hardcode non-existent directories.
13140 if test "$hardcode_direct_FC" != no &&
13141 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13142 # have to relink, otherwise we might link with an installed library
13143 # when we should be linking with a yet-to-be-installed one
13144 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13145 test "$hardcode_minus_L_FC" != no; then
13146 # Linking always hardcodes the temporary library directory.
13147 hardcode_action_FC=relink
13149 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13150 hardcode_action_FC=immediate
13153 # We cannot hardcode anything, or else we can only hardcode existing
13155 hardcode_action_FC=unsupported
13157 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13158 echo "${ECHO_T}$hardcode_action_FC" >&6
13160 if test "$hardcode_action_FC" = relink ||
13161 test "$inherit_rpath_FC" = yes; then
13162 # Fast installation is not supported
13163 enable_fast_install=no
13164 elif test "$shlibpath_overrides_runpath" = yes ||
13165 test "$enable_shared" = no; then
13166 # Fast installation is not necessary
13167 enable_fast_install=needless
13176 fi # test -n "$compiler"
13179 fi # test "$_lt_disable_FC" != yes
13182 ac_cpp='$CPP $CPPFLAGS'
13183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13188 FCFLAGS="$FCFLAGS -Wall"
13190 # For libtool versioning info, format is CURRENT:REVISION:AGE
13191 libtool_VERSION=1:0:0
13194 # Check header files.
13195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13197 if test "${ac_cv_header_stdc+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <stdlib.h>
13207 #include <stdarg.h>
13208 #include <string.h>
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13221 (eval $ac_compile) 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_c_werror_flag"
13229 || test ! -s conftest.err'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest.$ac_objext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_header_stdc=yes
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_cv_header_stdc=no
13248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250 if test $ac_cv_header_stdc = yes; then
13251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 #include <string.h>
13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13262 $EGREP "memchr" >/dev/null 2>&1; then
13265 ac_cv_header_stdc=no
13271 if test $ac_cv_header_stdc = yes; then
13272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 #include <stdlib.h>
13282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13283 $EGREP "free" >/dev/null 2>&1; then
13286 ac_cv_header_stdc=no
13292 if test $ac_cv_header_stdc = yes; then
13293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13294 if test "$cross_compiling" = yes; then
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13304 #if ((' ' & 0x0FF) == 0x020)
13305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13308 # define ISLOWER(c) \
13309 (('a' <= (c) && (c) <= 'i') \
13310 || ('j' <= (c) && (c) <= 'r') \
13311 || ('s' <= (c) && (c) <= 'z'))
13312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13320 for (i = 0; i < 256; i++)
13321 if (XOR (islower (i), ISLOWER (i))
13322 || toupper (i) != TOUPPER (i))
13327 rm -f conftest$ac_exeext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329 (eval $ac_link) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13340 echo "$as_me: program exited with status $ac_status" >&5
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 ( exit $ac_status )
13345 ac_cv_header_stdc=no
13347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13353 if test $ac_cv_header_stdc = yes; then
13355 cat >>confdefs.h <<\_ACEOF
13356 #define STDC_HEADERS 1
13361 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13362 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13363 if test "${ac_cv_header_time+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 #include <sys/types.h>
13373 #include <sys/time.h>
13379 if ((struct tm *) 0)
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_header_time=yes
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_header_time=no
13414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13417 echo "${ECHO_T}$ac_cv_header_time" >&6
13418 if test $ac_cv_header_time = yes; then
13420 cat >>confdefs.h <<\_ACEOF
13421 #define TIME_WITH_SYS_TIME 1
13426 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13427 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13428 if test "${gcc_cv_header_string+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13437 #include <string.h>
13438 #include <strings.h>
13447 rm -f conftest.$ac_objext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13449 (eval $ac_compile) 2>conftest.er1
13451 grep -v '^ *+' conftest.er1 >conftest.err
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_c_werror_flag"
13457 || test ! -s conftest.err'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest.$ac_objext'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469 gcc_cv_header_string=yes
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 gcc_cv_header_string=no
13476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13478 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13479 echo "${ECHO_T}$gcc_cv_header_string" >&6
13480 if test $gcc_cv_header_string = yes; then
13482 cat >>confdefs.h <<\_ACEOF
13483 #define STRING_WITH_STRINGS 1
13492 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13496 echo "$as_me:$LINENO: checking for $ac_header" >&5
13497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13504 # Is the header compilable?
13505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13507 cat >conftest.$ac_ext <<_ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13514 #include <$ac_header>
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518 (eval $ac_compile) 2>conftest.er1
13520 grep -v '^ *+' conftest.er1 >conftest.err
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -z "$ac_c_werror_flag"
13526 || test ! -s conftest.err'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; } &&
13532 { ac_try='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_header_compiler=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_compiler=no
13545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13547 echo "${ECHO_T}$ac_header_compiler" >&6
13549 # Is the header present?
13550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <$ac_header>
13560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } >/dev/null; then
13568 if test -s conftest.err; then
13569 ac_cpp_err=$ac_c_preproc_warn_flag
13570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13577 if test -z "$ac_cpp_err"; then
13578 ac_header_preproc=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_preproc=no
13585 rm -f conftest.err conftest.$ac_ext
13586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13587 echo "${ECHO_T}$ac_header_preproc" >&6
13589 # So? What about this header?
13590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13596 ac_header_preproc=yes
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13613 ## ----------------------------------------------------- ##
13614 ## Report this to the GNU OpenMP Runtime Library lists. ##
13615 ## ----------------------------------------------------- ##
13618 sed "s/^/$as_me: WARNING: /" >&2
13621 echo "$as_me:$LINENO: checking for $ac_header" >&5
13622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 eval "$as_ac_Header=\$ac_header_preproc"
13628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13633 cat >>confdefs.h <<_ACEOF
13634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13644 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13646 acx_cv_header_stdint=stddef.h
13647 acx_cv_header_stdint_kind="(already complete)"
13648 for i in stdint.h $inttype_headers; do
13649 unset ac_cv_type_uintptr_t
13650 unset ac_cv_type_uintmax_t
13651 unset ac_cv_type_int_least32_t
13652 unset ac_cv_type_int_fast32_t
13653 unset ac_cv_type_uint64_t
13654 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13655 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13656 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13657 if test "${ac_cv_type_uintmax_t+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 #include <sys/types.h>
13672 if ((uintmax_t *) 0)
13674 if (sizeof (uintmax_t))
13680 rm -f conftest.$ac_objext
13681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13682 (eval $ac_compile) 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } &&
13689 { ac_try='test -z "$ac_c_werror_flag"
13690 || test ! -s conftest.err'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; } &&
13696 { ac_try='test -s conftest.$ac_objext'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }; then
13702 ac_cv_type_uintmax_t=yes
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 ac_cv_type_uintmax_t=no
13709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13712 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13713 if test $ac_cv_type_uintmax_t = yes; then
13714 acx_cv_header_stdint=$i
13719 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13720 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13721 if test "${ac_cv_type_uintptr_t+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <sys/types.h>
13736 if ((uintptr_t *) 0)
13738 if (sizeof (uintptr_t))
13744 rm -f conftest.$ac_objext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746 (eval $ac_compile) 2>conftest.er1
13748 grep -v '^ *+' conftest.er1 >conftest.err
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag"
13754 || test ! -s conftest.err'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_type_uintptr_t=yes
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ac_cv_type_uintptr_t=no
13773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13775 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13776 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13777 if test $ac_cv_type_uintptr_t = yes; then
13780 acx_cv_header_stdint_kind="(mostly complete)"
13783 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13784 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13785 if test "${ac_cv_type_int_least32_t+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 cat >conftest.$ac_ext <<_ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 #include <sys/types.h>
13800 if ((int_least32_t *) 0)
13802 if (sizeof (int_least32_t))
13808 rm -f conftest.$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810 (eval $ac_compile) 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -z "$ac_c_werror_flag"
13818 || test ! -s conftest.err'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest.$ac_objext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_type_int_least32_t=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_cv_type_int_least32_t=no
13837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13840 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13841 if test $ac_cv_type_int_least32_t = yes; then
13844 acx_cv_header_stdint_kind="(mostly complete)"
13847 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13848 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13849 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 cat >conftest.$ac_ext <<_ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 #include <sys/types.h>
13864 if ((int_fast32_t *) 0)
13866 if (sizeof (int_fast32_t))
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874 (eval $ac_compile) 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_cv_type_int_fast32_t=yes
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_cv_type_int_fast32_t=no
13901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13903 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13904 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13905 if test $ac_cv_type_int_fast32_t = yes; then
13908 acx_cv_header_stdint_kind="(mostly complete)"
13911 echo "$as_me:$LINENO: checking for uint64_t" >&5
13912 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13913 if test "${ac_cv_type_uint64_t+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 cat >conftest.$ac_ext <<_ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 #include <sys/types.h>
13928 if ((uint64_t *) 0)
13930 if (sizeof (uint64_t))
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938 (eval $ac_compile) 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -z "$ac_c_werror_flag"
13946 || test ! -s conftest.err'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest.$ac_objext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_type_uint64_t=yes
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13963 ac_cv_type_uint64_t=no
13965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13967 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13968 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13969 if test $ac_cv_type_uint64_t = yes; then
13972 acx_cv_header_stdint_kind="(lacks uint64_t)"
13977 if test "$acx_cv_header_stdint" = stddef.h; then
13978 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13979 for i in stdint.h $inttype_headers; do
13980 unset ac_cv_type_uintptr_t
13981 unset ac_cv_type_uint32_t
13982 unset ac_cv_type_uint64_t
13983 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13984 echo "$as_me:$LINENO: checking for uint32_t" >&5
13985 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13986 if test "${ac_cv_type_uint32_t+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <sys/types.h>
14001 if ((uint32_t *) 0)
14003 if (sizeof (uint32_t))
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1 >conftest.err
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_cv_type_uint32_t=yes
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_cv_type_uint32_t=no
14038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14040 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14041 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14042 if test $ac_cv_type_uint32_t = yes; then
14043 acx_cv_header_stdint=$i
14048 echo "$as_me:$LINENO: checking for uint64_t" >&5
14049 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14050 if test "${ac_cv_type_uint64_t+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 cat >conftest.$ac_ext <<_ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 #include <sys/types.h>
14065 if ((uint64_t *) 0)
14067 if (sizeof (uint64_t))
14073 rm -f conftest.$ac_objext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>conftest.er1
14077 grep -v '^ *+' conftest.er1 >conftest.err
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_cv_type_uint64_t=yes
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ac_cv_type_uint64_t=no
14102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14105 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14107 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14108 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14109 if test "${ac_cv_type_uintptr_t+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 cat >conftest.$ac_ext <<_ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h. */
14118 #include <sys/types.h>
14124 if ((uintptr_t *) 0)
14126 if (sizeof (uintptr_t))
14132 rm -f conftest.$ac_objext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134 (eval $ac_compile) 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag"
14142 || test ! -s conftest.err'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest.$ac_objext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 ac_cv_type_uintptr_t=yes
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 ac_cv_type_uintptr_t=no
14161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14163 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14164 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14169 if test "$acx_cv_header_stdint" = stddef.h; then
14170 acx_cv_header_stdint_kind="(u_intXX_t style)"
14171 for i in sys/types.h $inttype_headers; do
14172 unset ac_cv_type_u_int32_t
14173 unset ac_cv_type_u_int64_t
14174 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14175 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14176 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14177 if test "${ac_cv_type_u_int32_t+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 cat >conftest.$ac_ext <<_ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14186 #include <sys/types.h>
14192 if ((u_int32_t *) 0)
14194 if (sizeof (u_int32_t))
14200 rm -f conftest.$ac_objext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14202 (eval $ac_compile) 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -z "$ac_c_werror_flag"
14210 || test ! -s conftest.err'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest.$ac_objext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_type_u_int32_t=yes
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 ac_cv_type_u_int32_t=no
14229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14232 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14233 if test $ac_cv_type_u_int32_t = yes; then
14234 acx_cv_header_stdint=$i
14239 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14240 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14241 if test "${ac_cv_type_u_int64_t+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 cat >conftest.$ac_ext <<_ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 #include <sys/types.h>
14256 if ((u_int64_t *) 0)
14258 if (sizeof (u_int64_t))
14264 rm -f conftest.$ac_objext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266 (eval $ac_compile) 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag"
14274 || test ! -s conftest.err'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_type_u_int64_t=yes
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_cv_type_u_int64_t=no
14293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14295 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14296 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14301 if test "$acx_cv_header_stdint" = stddef.h; then
14302 acx_cv_header_stdint_kind="(using manual detection)"
14305 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14306 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14307 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14308 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14309 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14311 # ----------------- Summarize what we found so far
14313 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14314 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14316 case `$as_basename gstdint.h ||
14317 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14318 Xgstdint.h : 'X\(//\)$' \| \
14319 Xgstdint.h : 'X\(/\)$' \| \
14320 . : '\(.\)' 2>/dev/null ||
14322 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14323 /^X\/\(\/\/\)$/{ s//\1/; q; }
14324 /^X\/\(\/\).*/{ s//\1/; q; }
14326 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14327 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14328 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14329 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14333 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14334 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14336 # ----------------- done included file, check C basic types --------
14338 # Lacking an uintptr_t? Test size of void *
14339 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14340 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14341 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14342 if test "${ac_cv_type_void_p+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 cat >conftest.$ac_ext <<_ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 $ac_includes_default
14357 if (sizeof (void *))
14363 rm -f conftest.$ac_objext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14365 (eval $ac_compile) 2>conftest.er1
14367 grep -v '^ *+' conftest.er1 >conftest.err
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -z "$ac_c_werror_flag"
14373 || test ! -s conftest.err'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_cv_type_void_p=yes
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 ac_cv_type_void_p=no
14392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14394 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14395 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14397 echo "$as_me:$LINENO: checking size of void *" >&5
14398 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14399 if test "${ac_cv_sizeof_void_p+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 if test "$ac_cv_type_void_p" = yes; then
14403 # The cast to unsigned long works around a bug in the HP C Compiler
14404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14406 # This bug is HP SR number 8606223364.
14407 if test "$cross_compiling" = yes; then
14408 # Depending upon the size, compute the lo and hi bounds.
14409 cat >conftest.$ac_ext <<_ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 $ac_includes_default
14419 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14460 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag"
14477 || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_hi=$ac_mid; break
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_lo=`expr $ac_mid + 1`
14495 if test $ac_lo -le $ac_mid; then
14499 ac_mid=`expr 2 '*' $ac_mid + 1`
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 $ac_includes_default
14517 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14524 rm -f conftest.$ac_objext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526 (eval $ac_compile) 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14548 cat >conftest.$ac_ext <<_ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 $ac_includes_default
14558 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>conftest.er1
14569 grep -v '^ *+' conftest.er1 >conftest.err
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag"
14575 || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_lo=$ac_mid; break
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 ac_hi=`expr '(' $ac_mid ')' - 1`
14593 if test $ac_mid -le $ac_hi; then
14597 ac_mid=`expr 2 '*' $ac_mid`
14599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610 # Binary search between lo and hi bounds.
14611 while test "x$ac_lo" != "x$ac_hi"; do
14612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 $ac_includes_default
14623 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14630 rm -f conftest.$ac_objext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632 (eval $ac_compile) 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag"
14640 || test ! -s conftest.err'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; } &&
14646 { ac_try='test -s conftest.$ac_objext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 ac_lo=`expr '(' $ac_mid ')' + 1`
14659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14663 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14664 See \`config.log' for more details." >&5
14665 echo "$as_me: error: cannot compute sizeof (void *), 77
14666 See \`config.log' for more details." >&2;}
14667 { (exit 1); exit 1; }; } ;;
14670 if test "$cross_compiling" = yes; then
14671 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14672 See \`config.log' for more details." >&5
14673 echo "$as_me: error: cannot run test program while cross compiling
14674 See \`config.log' for more details." >&2;}
14675 { (exit 1); exit 1; }; }
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 $ac_includes_default
14684 long longval () { return (long) (sizeof (void *)); }
14685 unsigned long ulongval () { return (long) (sizeof (void *)); }
14687 #include <stdlib.h>
14692 FILE *f = fopen ("conftest.val", "w");
14695 if (((long) (sizeof (void *))) < 0)
14697 long i = longval ();
14698 if (i != ((long) (sizeof (void *))))
14700 fprintf (f, "%ld\n", i);
14704 unsigned long i = ulongval ();
14705 if (i != ((long) (sizeof (void *))))
14707 fprintf (f, "%lu\n", i);
14709 exit (ferror (f) || fclose (f) != 0);
14715 rm -f conftest$ac_exeext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717 (eval $ac_link) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_cv_sizeof_void_p=`cat conftest.val`
14728 echo "$as_me: program exited with status $ac_status" >&5
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ( exit $ac_status )
14733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14734 See \`config.log' for more details." >&5
14735 echo "$as_me: error: cannot compute sizeof (void *), 77
14736 See \`config.log' for more details." >&2;}
14737 { (exit 1); exit 1; }; }
14739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14744 ac_cv_sizeof_void_p=0
14747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14748 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14749 cat >>confdefs.h <<_ACEOF
14750 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14756 # Lacking an uint64_t? Test size of long
14757 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14758 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14759 echo $ECHO_N "checking for long... $ECHO_C" >&6
14760 if test "${ac_cv_type_long+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 cat >conftest.$ac_ext <<_ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 $ac_includes_default
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783 (eval $ac_compile) 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
14790 { ac_try='test -z "$ac_c_werror_flag"
14791 || test ! -s conftest.err'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; } &&
14797 { ac_try='test -s conftest.$ac_objext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_type_long=yes
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14813 echo "${ECHO_T}$ac_cv_type_long" >&6
14815 echo "$as_me:$LINENO: checking size of long" >&5
14816 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14817 if test "${ac_cv_sizeof_long+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 if test "$ac_cv_type_long" = yes; then
14821 # The cast to unsigned long works around a bug in the HP C Compiler
14822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14824 # This bug is HP SR number 8606223364.
14825 if test "$cross_compiling" = yes; then
14826 # Depending upon the size, compute the lo and hi bounds.
14827 cat >conftest.$ac_ext <<_ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833 $ac_includes_default
14837 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14844 rm -f conftest.$ac_objext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14846 (eval $ac_compile) 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -z "$ac_c_werror_flag"
14854 || test ! -s conftest.err'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest.$ac_objext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14868 cat >conftest.$ac_ext <<_ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 $ac_includes_default
14878 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14885 rm -f conftest.$ac_objext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887 (eval $ac_compile) 2>conftest.er1
14889 grep -v '^ *+' conftest.er1 >conftest.err
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_hi=$ac_mid; break
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_lo=`expr $ac_mid + 1`
14913 if test $ac_lo -le $ac_mid; then
14917 ac_mid=`expr 2 '*' $ac_mid + 1`
14919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 $ac_includes_default
14935 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag"
14952 || test ! -s conftest.err'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest.$ac_objext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 $ac_includes_default
14976 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14983 rm -f conftest.$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985 (eval $ac_compile) 2>conftest.er1
14987 grep -v '^ *+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -z "$ac_c_werror_flag"
14993 || test ! -s conftest.err'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_lo=$ac_mid; break
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_hi=`expr '(' $ac_mid ')' - 1`
15011 if test $ac_mid -le $ac_hi; then
15015 ac_mid=`expr 2 '*' $ac_mid`
15017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15028 # Binary search between lo and hi bounds.
15029 while test "x$ac_lo" != "x$ac_hi"; do
15030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15031 cat >conftest.$ac_ext <<_ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15041 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15048 rm -f conftest.$ac_objext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 ac_lo=`expr '(' $ac_mid ')' + 1`
15077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15080 ?*) ac_cv_sizeof_long=$ac_lo;;
15081 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15082 See \`config.log' for more details." >&5
15083 echo "$as_me: error: cannot compute sizeof (long), 77
15084 See \`config.log' for more details." >&2;}
15085 { (exit 1); exit 1; }; } ;;
15088 if test "$cross_compiling" = yes; then
15089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15090 See \`config.log' for more details." >&5
15091 echo "$as_me: error: cannot run test program while cross compiling
15092 See \`config.log' for more details." >&2;}
15093 { (exit 1); exit 1; }; }
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 $ac_includes_default
15102 long longval () { return (long) (sizeof (long)); }
15103 unsigned long ulongval () { return (long) (sizeof (long)); }
15105 #include <stdlib.h>
15110 FILE *f = fopen ("conftest.val", "w");
15113 if (((long) (sizeof (long))) < 0)
15115 long i = longval ();
15116 if (i != ((long) (sizeof (long))))
15118 fprintf (f, "%ld\n", i);
15122 unsigned long i = ulongval ();
15123 if (i != ((long) (sizeof (long))))
15125 fprintf (f, "%lu\n", i);
15127 exit (ferror (f) || fclose (f) != 0);
15133 rm -f conftest$ac_exeext
15134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15135 (eval $ac_link) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 ac_cv_sizeof_long=`cat conftest.val`
15146 echo "$as_me: program exited with status $ac_status" >&5
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ( exit $ac_status )
15151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15152 See \`config.log' for more details." >&5
15153 echo "$as_me: error: cannot compute sizeof (long), 77
15154 See \`config.log' for more details." >&2;}
15155 { (exit 1); exit 1; }; }
15157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15162 ac_cv_sizeof_long=0
15165 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15166 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15167 cat >>confdefs.h <<_ACEOF
15168 #define SIZEOF_LONG $ac_cv_sizeof_long
15174 if test $acx_cv_header_stdint = stddef.h; then
15175 # Lacking a good header? Test size of everything and deduce all types.
15176 echo "$as_me:$LINENO: checking for int" >&5
15177 echo $ECHO_N "checking for int... $ECHO_C" >&6
15178 if test "${ac_cv_type_int+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 cat >conftest.$ac_ext <<_ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 $ac_includes_default
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -z "$ac_c_werror_flag"
15209 || test ! -s conftest.err'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; } &&
15215 { ac_try='test -s conftest.$ac_objext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15230 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15231 echo "${ECHO_T}$ac_cv_type_int" >&6
15233 echo "$as_me:$LINENO: checking size of int" >&5
15234 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15235 if test "${ac_cv_sizeof_int+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 if test "$ac_cv_type_int" = yes; then
15239 # The cast to unsigned long works around a bug in the HP C Compiler
15240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15242 # This bug is HP SR number 8606223364.
15243 if test "$cross_compiling" = yes; then
15244 # Depending upon the size, compute the lo and hi bounds.
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15255 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 $ac_includes_default
15296 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15303 rm -f conftest.$ac_objext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15305 (eval $ac_compile) 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -z "$ac_c_werror_flag"
15313 || test ! -s conftest.err'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; } &&
15319 { ac_try='test -s conftest.$ac_objext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 ac_hi=$ac_mid; break
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ac_lo=`expr $ac_mid + 1`
15331 if test $ac_lo -le $ac_mid; then
15335 ac_mid=`expr 2 '*' $ac_mid + 1`
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 cat >conftest.$ac_ext <<_ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 $ac_includes_default
15353 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15384 cat >conftest.$ac_ext <<_ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15390 $ac_includes_default
15394 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15401 rm -f conftest.$ac_objext
15402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15403 (eval $ac_compile) 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try='test -z "$ac_c_werror_flag"
15411 || test ! -s conftest.err'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; } &&
15417 { ac_try='test -s conftest.$ac_objext'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 ac_lo=$ac_mid; break
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_hi=`expr '(' $ac_mid ')' - 1`
15429 if test $ac_mid -le $ac_hi; then
15433 ac_mid=`expr 2 '*' $ac_mid`
15435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15446 # Binary search between lo and hi bounds.
15447 while test "x$ac_lo" != "x$ac_hi"; do
15448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15449 cat >conftest.$ac_ext <<_ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 $ac_includes_default
15459 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15466 rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>conftest.er1
15470 grep -v '^ *+' conftest.er1 >conftest.err
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
15475 { ac_try='test -z "$ac_c_werror_flag"
15476 || test ! -s conftest.err'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; } &&
15482 { ac_try='test -s conftest.$ac_objext'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_lo=`expr '(' $ac_mid ')' + 1`
15495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15498 ?*) ac_cv_sizeof_int=$ac_lo;;
15499 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15500 See \`config.log' for more details." >&5
15501 echo "$as_me: error: cannot compute sizeof (int), 77
15502 See \`config.log' for more details." >&2;}
15503 { (exit 1); exit 1; }; } ;;
15506 if test "$cross_compiling" = yes; then
15507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15508 See \`config.log' for more details." >&5
15509 echo "$as_me: error: cannot run test program while cross compiling
15510 See \`config.log' for more details." >&2;}
15511 { (exit 1); exit 1; }; }
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 $ac_includes_default
15520 long longval () { return (long) (sizeof (int)); }
15521 unsigned long ulongval () { return (long) (sizeof (int)); }
15523 #include <stdlib.h>
15528 FILE *f = fopen ("conftest.val", "w");
15531 if (((long) (sizeof (int))) < 0)
15533 long i = longval ();
15534 if (i != ((long) (sizeof (int))))
15536 fprintf (f, "%ld\n", i);
15540 unsigned long i = ulongval ();
15541 if (i != ((long) (sizeof (int))))
15543 fprintf (f, "%lu\n", i);
15545 exit (ferror (f) || fclose (f) != 0);
15551 rm -f conftest$ac_exeext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15553 (eval $ac_link) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15562 ac_cv_sizeof_int=`cat conftest.val`
15564 echo "$as_me: program exited with status $ac_status" >&5
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15568 ( exit $ac_status )
15569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15570 See \`config.log' for more details." >&5
15571 echo "$as_me: error: cannot compute sizeof (int), 77
15572 See \`config.log' for more details." >&2;}
15573 { (exit 1); exit 1; }; }
15575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15584 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15585 cat >>confdefs.h <<_ACEOF
15586 #define SIZEOF_INT $ac_cv_sizeof_int
15590 echo "$as_me:$LINENO: checking for short" >&5
15591 echo $ECHO_N "checking for short... $ECHO_C" >&6
15592 if test "${ac_cv_type_short+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 cat >conftest.$ac_ext <<_ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 $ac_includes_default
15607 if (sizeof (short))
15613 rm -f conftest.$ac_objext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15615 (eval $ac_compile) 2>conftest.er1
15617 grep -v '^ *+' conftest.er1 >conftest.err
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -z "$ac_c_werror_flag"
15623 || test ! -s conftest.err'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try='test -s conftest.$ac_objext'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_cv_type_short=yes
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 ac_cv_type_short=no
15642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15644 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15645 echo "${ECHO_T}$ac_cv_type_short" >&6
15647 echo "$as_me:$LINENO: checking size of short" >&5
15648 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15649 if test "${ac_cv_sizeof_short+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 if test "$ac_cv_type_short" = yes; then
15653 # The cast to unsigned long works around a bug in the HP C Compiler
15654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15656 # This bug is HP SR number 8606223364.
15657 if test "$cross_compiling" = yes; then
15658 # Depending upon the size, compute the lo and hi bounds.
15659 cat >conftest.$ac_ext <<_ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 $ac_includes_default
15669 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678 (eval $ac_compile) 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15700 cat >conftest.$ac_ext <<_ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 $ac_includes_default
15710 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15717 rm -f conftest.$ac_objext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15719 (eval $ac_compile) 2>conftest.er1
15721 grep -v '^ *+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_hi=$ac_mid; break
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_lo=`expr $ac_mid + 1`
15745 if test $ac_lo -le $ac_mid; then
15749 ac_mid=`expr 2 '*' $ac_mid + 1`
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15767 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15774 rm -f conftest.$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776 (eval $ac_compile) 2>conftest.er1
15778 grep -v '^ *+' conftest.er1 >conftest.err
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 $ac_includes_default
15808 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15815 rm -f conftest.$ac_objext
15816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15817 (eval $ac_compile) 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -z "$ac_c_werror_flag"
15825 || test ! -s conftest.err'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_lo=$ac_mid; break
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 ac_hi=`expr '(' $ac_mid ')' - 1`
15843 if test $ac_mid -le $ac_hi; then
15847 ac_mid=`expr 2 '*' $ac_mid`
15849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15860 # Binary search between lo and hi bounds.
15861 while test "x$ac_lo" != "x$ac_hi"; do
15862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15863 cat >conftest.$ac_ext <<_ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 $ac_includes_default
15873 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15880 rm -f conftest.$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15907 ac_lo=`expr '(' $ac_mid ')' + 1`
15909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15912 ?*) ac_cv_sizeof_short=$ac_lo;;
15913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15914 See \`config.log' for more details." >&5
15915 echo "$as_me: error: cannot compute sizeof (short), 77
15916 See \`config.log' for more details." >&2;}
15917 { (exit 1); exit 1; }; } ;;
15920 if test "$cross_compiling" = yes; then
15921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15922 See \`config.log' for more details." >&5
15923 echo "$as_me: error: cannot run test program while cross compiling
15924 See \`config.log' for more details." >&2;}
15925 { (exit 1); exit 1; }; }
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 $ac_includes_default
15934 long longval () { return (long) (sizeof (short)); }
15935 unsigned long ulongval () { return (long) (sizeof (short)); }
15937 #include <stdlib.h>
15942 FILE *f = fopen ("conftest.val", "w");
15945 if (((long) (sizeof (short))) < 0)
15947 long i = longval ();
15948 if (i != ((long) (sizeof (short))))
15950 fprintf (f, "%ld\n", i);
15954 unsigned long i = ulongval ();
15955 if (i != ((long) (sizeof (short))))
15957 fprintf (f, "%lu\n", i);
15959 exit (ferror (f) || fclose (f) != 0);
15965 rm -f conftest$ac_exeext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15967 (eval $ac_link) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976 ac_cv_sizeof_short=`cat conftest.val`
15978 echo "$as_me: program exited with status $ac_status" >&5
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ( exit $ac_status )
15983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15984 See \`config.log' for more details." >&5
15985 echo "$as_me: error: cannot compute sizeof (short), 77
15986 See \`config.log' for more details." >&2;}
15987 { (exit 1); exit 1; }; }
15989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15994 ac_cv_sizeof_short=0
15997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15998 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15999 cat >>confdefs.h <<_ACEOF
16000 #define SIZEOF_SHORT $ac_cv_sizeof_short
16004 echo "$as_me:$LINENO: checking for char" >&5
16005 echo $ECHO_N "checking for char... $ECHO_C" >&6
16006 if test "${ac_cv_type_char+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16027 rm -f conftest.$ac_objext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029 (eval $ac_compile) 2>conftest.er1
16031 grep -v '^ *+' conftest.er1 >conftest.err
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try='test -z "$ac_c_werror_flag"
16037 || test ! -s conftest.err'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; } &&
16043 { ac_try='test -s conftest.$ac_objext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_cv_type_char=yes
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16058 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16059 echo "${ECHO_T}$ac_cv_type_char" >&6
16061 echo "$as_me:$LINENO: checking size of char" >&5
16062 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16063 if test "${ac_cv_sizeof_char+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 if test "$ac_cv_type_char" = yes; then
16067 # The cast to unsigned long works around a bug in the HP C Compiler
16068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16070 # This bug is HP SR number 8606223364.
16071 if test "$cross_compiling" = yes; then
16072 # Depending upon the size, compute the lo and hi bounds.
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 $ac_includes_default
16083 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16090 rm -f conftest.$ac_objext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16092 (eval $ac_compile) 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 $ac_includes_default
16124 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16131 rm -f conftest.$ac_objext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16133 (eval $ac_compile) 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
16140 { ac_try='test -z "$ac_c_werror_flag"
16141 || test ! -s conftest.err'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_hi=$ac_mid; break
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 ac_lo=`expr $ac_mid + 1`
16159 if test $ac_lo -le $ac_mid; then
16163 ac_mid=`expr 2 '*' $ac_mid + 1`
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16181 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16188 rm -f conftest.$ac_objext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16190 (eval $ac_compile) 2>conftest.er1
16192 grep -v '^ *+' conftest.er1 >conftest.err
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16222 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16229 rm -f conftest.$ac_objext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>conftest.er1
16233 grep -v '^ *+' conftest.er1 >conftest.err
16235 cat conftest.err >&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
16238 { ac_try='test -z "$ac_c_werror_flag"
16239 || test ! -s conftest.err'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest.$ac_objext'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ac_lo=$ac_mid; break
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16256 ac_hi=`expr '(' $ac_mid ')' - 1`
16257 if test $ac_mid -le $ac_hi; then
16261 ac_mid=`expr 2 '*' $ac_mid`
16263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16274 # Binary search between lo and hi bounds.
16275 while test "x$ac_lo" != "x$ac_hi"; do
16276 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 $ac_includes_default
16287 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16294 rm -f conftest.$ac_objext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>conftest.er1
16298 grep -v '^ *+' conftest.er1 >conftest.err
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -z "$ac_c_werror_flag"
16304 || test ! -s conftest.err'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest.$ac_objext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 ac_lo=`expr '(' $ac_mid ')' + 1`
16323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16326 ?*) ac_cv_sizeof_char=$ac_lo;;
16327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16328 See \`config.log' for more details." >&5
16329 echo "$as_me: error: cannot compute sizeof (char), 77
16330 See \`config.log' for more details." >&2;}
16331 { (exit 1); exit 1; }; } ;;
16334 if test "$cross_compiling" = yes; then
16335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16336 See \`config.log' for more details." >&5
16337 echo "$as_me: error: cannot run test program while cross compiling
16338 See \`config.log' for more details." >&2;}
16339 { (exit 1); exit 1; }; }
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 $ac_includes_default
16348 long longval () { return (long) (sizeof (char)); }
16349 unsigned long ulongval () { return (long) (sizeof (char)); }
16351 #include <stdlib.h>
16356 FILE *f = fopen ("conftest.val", "w");
16359 if (((long) (sizeof (char))) < 0)
16361 long i = longval ();
16362 if (i != ((long) (sizeof (char))))
16364 fprintf (f, "%ld\n", i);
16368 unsigned long i = ulongval ();
16369 if (i != ((long) (sizeof (char))))
16371 fprintf (f, "%lu\n", i);
16373 exit (ferror (f) || fclose (f) != 0);
16379 rm -f conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381 (eval $ac_link) 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_cv_sizeof_char=`cat conftest.val`
16392 echo "$as_me: program exited with status $ac_status" >&5
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 ( exit $ac_status )
16397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16398 See \`config.log' for more details." >&5
16399 echo "$as_me: error: cannot compute sizeof (char), 77
16400 See \`config.log' for more details." >&2;}
16401 { (exit 1); exit 1; }; }
16403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16408 ac_cv_sizeof_char=0
16411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16412 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16413 cat >>confdefs.h <<_ACEOF
16414 #define SIZEOF_CHAR $ac_cv_sizeof_char
16419 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16420 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16421 case "$ac_cv_sizeof_char" in
16422 1) acx_cv_type_int8_t=char ;;
16423 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16424 echo "$as_me: error: no 8-bit type" >&2;}
16425 { (exit please report a bug); exit please report a bug; }; }
16427 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16428 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16430 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16431 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16432 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16433 2:*) acx_cv_type_int16_t=int ;;
16434 *:2) acx_cv_type_int16_t=short ;;
16435 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16436 echo "$as_me: error: no 16-bit type" >&2;}
16437 { (exit please report a bug); exit please report a bug; }; }
16439 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16440 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16442 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16443 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16444 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16445 4:*) acx_cv_type_int32_t=int ;;
16446 *:4) acx_cv_type_int32_t=long ;;
16447 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16448 echo "$as_me: error: no 32-bit type" >&2;}
16449 { (exit please report a bug); exit please report a bug; }; }
16451 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16452 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16455 # These tests are here to make the output prettier
16457 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16458 case "$ac_cv_sizeof_long" in
16459 8) acx_cv_type_int64_t=long ;;
16461 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16462 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16463 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16464 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16467 # Now we can use the above types
16469 if test "$ac_cv_type_uintptr_t" != yes; then
16470 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16471 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16472 case $ac_cv_sizeof_void_p in
16473 2) acx_cv_type_intptr_t=int16_t ;;
16474 4) acx_cv_type_intptr_t=int32_t ;;
16475 8) acx_cv_type_intptr_t=int64_t ;;
16476 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16477 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16478 { (exit please report a bug); exit please report a bug; }; }
16480 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16481 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16484 # ----------------- done all checks, emit header -------------
16485 ac_config_commands="$ac_config_commands gstdint.h"
16490 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16491 # In case the pthread.h system header is not found, this test will fail.
16493 CFLAGS="$CFLAGS -pthread"
16494 cat >conftest.$ac_ext <<_ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16500 #include <pthread.h>
16501 void *g(void *d) { return NULL; }
16505 pthread_t t; pthread_create(&t,NULL,g,NULL);
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 XPCFLAGS=" -Wc,-pthread"
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544 #include <pthread.h>
16545 void *g(void *d) { return NULL; }
16549 pthread_t t; pthread_create(&t,NULL,g,NULL);
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>conftest.er1
16558 grep -v '^ *+' conftest.er1 >conftest.err
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -z "$ac_c_werror_flag"
16564 || test ! -s conftest.err'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest$ac_exeext'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16582 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16583 { (exit 1); exit 1; }; }
16585 rm -f conftest.err conftest.$ac_objext \
16586 conftest$ac_exeext conftest.$ac_ext
16588 rm -f conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext conftest.$ac_ext
16591 # Check for functions needed.
16594 for ac_func in getloadavg clock_gettime
16596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16597 echo "$as_me:$LINENO: checking for $ac_func" >&5
16598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16599 if eval "test \"\${$as_ac_var+set}\" = set"; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 cat >conftest.$ac_ext <<_ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16610 #define $ac_func innocuous_$ac_func
16612 /* System header to define __stub macros and hopefully few prototypes,
16613 which can conflict with char $ac_func (); below.
16614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16615 <limits.h> exists even on freestanding compilers. */
16618 # include <limits.h>
16620 # include <assert.h>
16625 /* Override any gcc2 internal prototype to avoid an error. */
16630 /* We use char because int might match the return type of a gcc2
16631 builtin and then its argument prototype would still apply. */
16633 /* The GNU C library defines this for functions which it implements
16634 to always fail with ENOSYS. Some functions are actually named
16635 something starting with __ and the normal name is an alias. */
16636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16639 char (*f) () = $ac_func;
16648 return f != $ac_func;
16653 rm -f conftest.$ac_objext conftest$ac_exeext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16655 (eval $ac_link) 2>conftest.er1
16657 grep -v '^ *+' conftest.er1 >conftest.err
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } &&
16662 { ac_try='test -z "$ac_c_werror_flag"
16663 || test ! -s conftest.err'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest$ac_exeext'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 eval "$as_ac_var=yes"
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 eval "$as_ac_var=no"
16682 rm -f conftest.err conftest.$ac_objext \
16683 conftest$ac_exeext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16696 # Check for broken semaphore implementation on darwin.
16697 # sem_init returns: sem_init error: Function not implemented.
16701 cat >>confdefs.h <<\_ACEOF
16702 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16708 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16709 if test "${enable_linux_futex+set}" = set; then
16710 enableval="$enable_linux_futex"
16712 case "$enableval" in
16714 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16715 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16716 { (exit 1); exit 1; }; } ;;
16720 enable_linux_futex=default
16725 case "$enable_linux_futex" in
16727 # If headers don't have gettid/futex syscalls definition, then
16728 # default to no, otherwise there will be compile time failures.
16729 # Otherwise, default to yes. If we don't detect we are
16730 # compiled/linked against NPTL and not cross-compiling, check
16731 # if programs are run by default against NPTL and if not, issue
16733 enable_linux_futex=no
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 #include <sys/syscall.h>
16745 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16752 (eval $ac_link) 2>conftest.er1
16754 grep -v '^ *+' conftest.er1 >conftest.err
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag"
16760 || test ! -s conftest.err'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest$ac_exeext'
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16773 LIBS="-lpthread $LIBS"
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 #ifndef _GNU_SOURCE
16781 #define _GNU_SOURCE 1
16783 #include <pthread.h>
16784 pthread_t th; void *status;
16788 pthread_tryjoin_np (th, &status);
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795 (eval $ac_link) 2>conftest.er1
16797 grep -v '^ *+' conftest.er1 >conftest.err
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -z "$ac_c_werror_flag"
16803 || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 enable_linux_futex=yes
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 if test x$cross_compiling = xno; then
16821 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16822 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16823 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16824 If so, please configure with --disable-linux-futex" >&5
16825 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16826 If so, please configure with --disable-linux-futex" >&2;}
16829 enable_linux_futex=yes
16831 rm -f conftest.err conftest.$ac_objext \
16832 conftest$ac_exeext conftest.$ac_ext
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16839 rm -f conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <sys/syscall.h>
16854 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag"
16869 || test ! -s conftest.err'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16883 echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16886 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16887 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16888 { (exit 1); exit 1; }; }
16890 rm -f conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext conftest.$ac_ext
16896 enable_linux_futex=no
16899 if test x$enable_linux_futex = xyes; then
16904 # Check for pthread_{,attr_}[sg]etaffinity_np.
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 #define _GNU_SOURCE
16912 #include <pthread.h>
16917 pthread_attr_t attr;
16918 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16919 if (CPU_ISSET (0, &cpuset))
16920 CPU_SET (1, &cpuset);
16922 CPU_ZERO (&cpuset);
16923 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16924 pthread_attr_init (&attr);
16925 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16926 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16954 cat >>confdefs.h <<\_ACEOF
16955 #define HAVE_PTHREAD_AFFINITY_NP 1
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16963 rm -f conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16966 # At least for glibc, clock_gettime is in librt. But don't pull that
16967 # in if it still doesn't give us the function we want.
16968 if test $ac_cv_func_clock_gettime = no; then
16969 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16970 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16971 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 ac_check_lib_save_LIBS=$LIBS
16976 cat >conftest.$ac_ext <<_ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16983 /* Override any gcc2 internal prototype to avoid an error. */
16987 /* We use char because int might match the return type of a gcc2
16988 builtin and then its argument prototype would still apply. */
16989 char clock_gettime ();
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000 (eval $ac_link) 2>conftest.er1
17002 grep -v '^ *+' conftest.er1 >conftest.err
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -z "$ac_c_werror_flag"
17008 || test ! -s conftest.err'
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest$ac_exeext'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17020 ac_cv_lib_rt_clock_gettime=yes
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ac_cv_lib_rt_clock_gettime=no
17027 rm -f conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17031 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17032 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17033 if test $ac_cv_lib_rt_clock_gettime = yes; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_CLOCK_GETTIME 1
17044 # See if we support thread-local storage.
17046 # Check whether --enable-tls or --disable-tls was given.
17047 if test "${enable_tls+set}" = set; then
17048 enableval="$enable_tls"
17050 case "$enableval" in
17052 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17053 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17054 { (exit 1); exit 1; }; } ;;
17061 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17062 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17063 if test "${gcc_cv_have_tls+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 if test "$cross_compiling" = yes; then
17068 cat >conftest.$ac_ext <<_ACEOF
17069 __thread int a; int b; int main() { return a = b; }
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073 (eval $ac_link) 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag"
17081 || test ! -s conftest.err'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 gcc_cv_have_tls=yes
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17100 rm -f conftest.err conftest.$ac_objext \
17101 conftest$ac_exeext conftest.$ac_ext
17105 cat >conftest.$ac_ext <<_ACEOF
17106 __thread int a; int b; int main() { return a = b; }
17108 rm -f conftest$ac_exeext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17110 (eval $ac_link) 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 chktls_save_LDFLAGS="$LDFLAGS"
17120 LDFLAGS="-static $LDFLAGS"
17121 cat >conftest.$ac_ext <<_ACEOF
17122 int main() { return 0; }
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>conftest.er1
17128 grep -v '^ *+' conftest.er1 >conftest.err
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_c_werror_flag"
17134 || test ! -s conftest.err'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try='test -s conftest$ac_exeext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 if test "$cross_compiling" = yes; then
17147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17148 See \`config.log' for more details." >&5
17149 echo "$as_me: error: cannot run test program while cross compiling
17150 See \`config.log' for more details." >&2;}
17151 { (exit 1); exit 1; }; }
17153 cat >conftest.$ac_ext <<_ACEOF
17154 __thread int a; int b; int main() { return a = b; }
17156 rm -f conftest$ac_exeext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 gcc_cv_have_tls=yes
17169 echo "$as_me: program exited with status $ac_status" >&5
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ( exit $ac_status )
17176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 gcc_cv_have_tls=yes
17184 rm -f conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LDFLAGS="$chktls_save_LDFLAGS"
17187 if test $gcc_cv_have_tls = yes; then
17188 chktls_save_CFLAGS="$CFLAGS"
17189 thread_CFLAGS=failed
17190 for flag in '' '-pthread' '-lpthread'; do
17191 CFLAGS="$flag $chktls_save_CFLAGS"
17192 cat >conftest.$ac_ext <<_ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h. */
17198 #include <pthread.h>
17199 void *g(void *d) { return NULL; }
17203 pthread_t t; pthread_create(&t,NULL,g,NULL);
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17210 (eval $ac_link) 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag"
17218 || test ! -s conftest.err'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 thread_CFLAGS="$flag"
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17236 rm -f conftest.err conftest.$ac_objext \
17237 conftest$ac_exeext conftest.$ac_ext
17238 if test "X$thread_CFLAGS" != Xfailed; then
17242 CFLAGS="$chktls_save_CFLAGS"
17243 if test "X$thread_CFLAGS" != Xfailed; then
17244 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17245 if test "$cross_compiling" = yes; then
17246 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17247 See \`config.log' for more details." >&5
17248 echo "$as_me: error: cannot run test program while cross compiling
17249 See \`config.log' for more details." >&2;}
17250 { (exit 1); exit 1; }; }
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 #include <pthread.h>
17260 static int *a_in_other_thread;
17262 thread_func (void *arg)
17264 a_in_other_thread = &a;
17271 void *thread_retval;
17272 int *a_in_main_thread;
17273 if (pthread_create (&thread, (pthread_attr_t *)0,
17274 thread_func, (void *)0))
17276 a_in_main_thread = &a;
17277 if (pthread_join (thread, &thread_retval))
17279 return (a_in_other_thread == a_in_main_thread);
17284 rm -f conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286 (eval $ac_link) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 gcc_cv_have_tls=yes
17297 echo "$as_me: program exited with status $ac_status" >&5
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ( exit $ac_status )
17304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17306 CFLAGS="$chktls_save_CFLAGS"
17310 echo "$as_me: program exited with status $ac_status" >&5
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17314 ( exit $ac_status )
17317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17320 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17321 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17322 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17324 cat >>confdefs.h <<\_ACEOF
17330 # See what sort of export controls are availible.
17332 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17333 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17334 if test "${have_attribute_visibility+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 save_CFLAGS="$CFLAGS"
17339 CFLAGS="$CFLAGS -Werror"
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 void __attribute__((visibility("hidden"))) foo(void) { }
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag"
17365 || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 have_attribute_visibility=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 have_attribute_visibility=no
17384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17385 CFLAGS="$save_CFLAGS"
17387 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17388 echo "${ECHO_T}$have_attribute_visibility" >&6
17389 if test $have_attribute_visibility = yes; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_ATTRIBUTE_VISIBILITY 1
17397 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17398 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17399 if test "${have_attribute_dllexport+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 save_CFLAGS="$CFLAGS"
17404 CFLAGS="$CFLAGS -Werror"
17405 cat >conftest.$ac_ext <<_ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17411 void __attribute__((dllexport)) foo(void) { }
17420 rm -f conftest.$ac_objext
17421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17422 (eval $ac_compile) 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -z "$ac_c_werror_flag"
17430 || test ! -s conftest.err'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; } &&
17436 { ac_try='test -s conftest.$ac_objext'
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 have_attribute_dllexport=yes
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 have_attribute_dllexport=no
17449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17450 CFLAGS="$save_CFLAGS"
17452 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17453 echo "${ECHO_T}$have_attribute_dllexport" >&6
17454 if test $have_attribute_dllexport = yes; then
17456 cat >>confdefs.h <<\_ACEOF
17457 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17462 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17463 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17464 if test "${have_attribute_alias+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17476 extern void bar(void) __attribute__((alias("foo")));
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487 (eval $ac_link) 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag"
17495 || test ! -s conftest.err'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest$ac_exeext'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17507 have_attribute_alias=yes
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17512 have_attribute_alias=no
17514 rm -f conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17517 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17518 echo "${ECHO_T}$have_attribute_alias" >&6
17519 if test $have_attribute_alias = yes; then
17521 cat >>confdefs.h <<\_ACEOF
17522 #define HAVE_ATTRIBUTE_ALIAS 1
17528 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17529 if test "${with_gnu_ld+set}" = set; then
17530 withval="$with_gnu_ld"
17531 test "$withval" = no || with_gnu_ld=yes
17536 if test "$GCC" = yes; then
17537 # Check if gcc -print-prog-name=ld gives a path.
17538 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17539 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17542 # gcc leaves a trailing carriage return which upsets mingw
17543 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17545 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17548 # Accept absolute paths.
17550 re_direlt='/[^/][^/]*/\.\./'
17551 # Canonicalize the pathname of ld
17552 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17553 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17554 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17556 test -z "$LD" && LD="$ac_prog"
17559 # If it fails, then pretend we aren't using GCC.
17563 # If it is relative, then search for the first ld in PATH.
17564 with_gnu_ld=unknown
17567 elif test "$with_gnu_ld" = yes; then
17568 echo "$as_me:$LINENO: checking for GNU ld" >&5
17569 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17571 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17572 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17574 if test "${lt_cv_path_LD+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 if test -z "$LD"; then
17578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17579 for ac_dir in $PATH; do
17581 test -z "$ac_dir" && ac_dir=.
17582 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17583 lt_cv_path_LD="$ac_dir/$ac_prog"
17584 # Check to see if the program is GNU ld. I'd rather use --version,
17585 # but apparently some variants of GNU ld only accept -v.
17586 # Break only if it was the GNU/non-GNU ld that we prefer.
17587 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17588 *GNU* | *'with BFD'*)
17589 test "$with_gnu_ld" != no && break
17592 test "$with_gnu_ld" != yes && break
17599 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17603 LD="$lt_cv_path_LD"
17604 if test -n "$LD"; then
17605 echo "$as_me:$LINENO: result: $LD" >&5
17606 echo "${ECHO_T}$LD" >&6
17608 echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6
17611 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17612 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17613 { (exit 1); exit 1; }; }
17614 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17615 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17616 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17620 case `$LD -v 2>&1 </dev/null` in
17621 *GNU* | *'with BFD'*)
17622 lt_cv_prog_gnu_ld=yes
17625 lt_cv_prog_gnu_ld=no
17629 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17630 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17631 with_gnu_ld=$lt_cv_prog_gnu_ld
17639 # If we're not using GNU ld, then there's no point in even trying these
17640 # tests. Check for that first. We should have already tested for gld
17641 # by now (in libtool), but require it now just to be safe...
17642 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17643 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17647 # The name set by libtool depends on the version of libtool. Shame on us
17648 # for depending on an impl detail, but c'est la vie. Older versions used
17649 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17650 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17651 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17652 # set (hence we're using an older libtool), then set it.
17653 if test x${with_gnu_ld+set} != xset; then
17654 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17655 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17658 with_gnu_ld=$ac_cv_prog_gnu_ld
17662 # Start by getting the version number. I think the libtool test already
17663 # does some of this, but throws away the result.
17665 ldver=`$LD --version 2>/dev/null | head -1 | \
17666 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17668 libgomp_gnu_ld_version=`echo $ldver | \
17669 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17671 # Set --gc-sections.
17672 if test "$with_gnu_ld" = "notbroken"; then
17673 # GNU ld it is! Joy and bunny rabbits!
17675 # All these tests are for C++; save the language and the compiler flags.
17676 # Need to do this so that g++ won't try to link in libstdc++
17677 ac_test_CFLAGS="${CFLAGS+set}"
17678 ac_save_CFLAGS="$CFLAGS"
17679 CFLAGS='-x c++ -Wl,--gc-sections'
17681 # Check for -Wl,--gc-sections
17682 # XXX This test is broken at the moment, as symbols required for linking
17683 # are now in libsupc++ (not built yet). In addition, this test has
17684 # cored on solaris in the past. In addition, --gc-sections doesn't
17685 # really work at the moment (keeps on discarding used sections, first
17686 # .eh_frame and now some of the glibc sections for iconv).
17687 # Bzzzzt. Thanks for playing, maybe next time.
17688 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17689 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17690 if test "$cross_compiling" = yes; then
17691 ac_sectionLDflags=yes
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17708 rm -f conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_sectionLDflags=yes
17721 echo "$as_me: program exited with status $ac_status" >&5
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 ( exit $ac_status )
17726 ac_sectionLDflags=no
17728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17730 if test "$ac_test_CFLAGS" = set; then
17731 CFLAGS="$ac_save_CFLAGS"
17733 # this is the suspicious part
17736 if test "$ac_sectionLDflags" = "yes"; then
17737 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17739 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17740 echo "${ECHO_T}$ac_sectionLDflags" >&6
17743 # Set linker optimization flags.
17744 if test x"$with_gnu_ld" = x"yes"; then
17745 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17753 # Check whether --enable-symvers or --disable-symvers was given.
17754 if test "${enable_symvers+set}" = set; then
17755 enableval="$enable_symvers"
17757 case "$enableval" in
17759 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17760 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17761 { (exit 1); exit 1; }; } ;;
17769 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17770 # don't know enough about $LD to do tricks...
17772 # FIXME The following test is too strict, in theory.
17773 if test $enable_shared = no ||
17775 test x$libgomp_gnu_ld_version = x; then
17779 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17780 if test $enable_symvers != no; then
17781 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17782 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17783 ac_save_CFLAGS="$CFLAGS"
17785 cat >conftest.$ac_ext <<_ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17802 (eval $ac_link) 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
17809 { ac_try='test -z "$ac_c_werror_flag"
17810 || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest$ac_exeext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 libgomp_shared_libgcc=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 libgomp_shared_libgcc=no
17829 rm -f conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17831 CFLAGS="$ac_save_CFLAGS"
17832 if test $libgomp_shared_libgcc = no; then
17833 cat > conftest.c <<EOF
17834 int main (void) { return 0; }
17836 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17837 -shared -shared-libgcc -o conftest.so \
17838 conftest.c -v 2>&1 >/dev/null \
17839 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17840 rm -f conftest.c conftest.so
17841 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17842 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17860 (eval $ac_link) 2>conftest.er1
17862 grep -v '^ *+' conftest.er1 >conftest.err
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } &&
17867 { ac_try='test -z "$ac_c_werror_flag"
17868 || test ! -s conftest.err'
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; } &&
17874 { ac_try='test -s conftest$ac_exeext'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 libgomp_shared_libgcc=yes
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17886 rm -f conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17888 CFLAGS="$ac_save_CFLAGS"
17891 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17892 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17895 # For GNU ld, we need at least this version. The format is described in
17896 # LIBGOMP_CHECK_LINKER_FEATURES above.
17897 libgomp_min_gnu_ld_version=21400
17898 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17900 # Check to see if unspecified "yes" value can win, given results above.
17901 # Change "yes" into either "no" or a style name.
17902 if test $enable_symvers = yes; then
17903 if test $with_gnu_ld = yes &&
17904 test $libgomp_shared_libgcc = yes;
17906 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17909 # The right tools, the right setup, but too old. Fallbacks?
17910 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17911 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17913 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17914 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17915 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17917 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17918 if test $libgomp_gnu_ld_version -ge 21200 ; then
17919 # Globbing fix is present, proper block support is not.
17920 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17921 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17925 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17926 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17931 # just fail for now
17932 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17933 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17935 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17937 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17938 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17939 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17946 if test $enable_symvers != no; then
17947 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17948 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17950 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17951 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17954 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17955 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17958 # Get target configury.
17959 . ${srcdir}/configure.tgt
17960 CFLAGS="$save_CFLAGS $XCFLAGS"
17962 # Check for __sync_val_compare_and_swap, but only after the target has
17963 # had a chance to set XCFLAGS.
17965 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17966 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17967 if test "${have_sync_builtins+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17981 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17988 (eval $ac_link) 2>conftest.er1
17990 grep -v '^ *+' conftest.er1 >conftest.err
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag"
17996 || test ! -s conftest.err'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest$ac_exeext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 have_sync_builtins=yes
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 have_sync_builtins=no
18015 rm -f conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
18019 echo "${ECHO_T}$have_sync_builtins" >&6
18020 if test $have_sync_builtins = yes; then
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE_SYNC_BUILTINS 1
18028 XCFLAGS="$XCFLAGS$XPCFLAGS"
18034 # Cleanup and exit.
18035 CFLAGS="$save_CFLAGS"
18036 cat >confcache <<\_ACEOF
18037 # This file is a shell script that caches the results of configure
18038 # tests run on this system so they can be shared between configure
18039 # scripts and configure runs, see configure's option --config-cache.
18040 # It is not useful on other systems. If it contains results you don't
18041 # want to keep, you may remove or edit it.
18043 # config.status only pays attention to the cache file if you give it
18044 # the --recheck option to rerun configure.
18046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18048 # following values.
18052 # The following way of writing the cache mishandles newlines in values,
18053 # but we know of no workaround that is simple, portable, and efficient.
18054 # So, don't put newlines in cache variables' values.
18055 # Ultrix sh set writes to stderr and can't be redirected directly,
18056 # and sets the high bit in the cache file unless we assign to the vars.
18059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18061 # `set' does not quote correctly, so add quotes (double-quote
18062 # substitution turns \\\\ into \\, and sed turns \\ into \).
18065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18068 # `set' quotes correctly as required by POSIX, so do not add quotes.
18070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18082 if test -w $cache_file; then
18083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18084 cat confcache >$cache_file
18086 echo "not updating unwritable cache $cache_file"
18091 if test ${multilib} = yes; then
18092 multilib_arg="--enable-multilib"
18097 # Set up the set of libraries that we need to link against for libgomp.
18098 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18099 # which will force linkage against -lpthread (or equivalent for the system).
18100 # That's not 100% ideal, but about the best we can do easily.
18101 if test $enable_shared = yes; then
18102 link_gomp="-lgomp %{static: $LIBS}"
18104 link_gomp="-lgomp $LIBS"
18110 if test "$ac_cv_fc_compiler_gnu" = yes; then
18112 USE_FORTRAN_FALSE='#'
18114 USE_FORTRAN_TRUE='#'
18119 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18120 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18121 # the underscore here and update the PREREQ. If it doesn't, then we'll
18122 # need to copy this macro to our acinclude.m4.
18123 save_CFLAGS="$CFLAGS"
18124 for i in $config_path; do
18125 if test -f $srcdir/config/$i/omp-lock.h; then
18126 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18131 if test "$cross_compiling" = yes; then
18132 # Depending upon the size, compute the lo and hi bounds.
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18143 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18150 rm -f conftest.$ac_objext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152 (eval $ac_compile) 2>conftest.er1
18154 grep -v '^ *+' conftest.er1 >conftest.err
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag"
18160 || test ! -s conftest.err'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } &&
18166 { ac_try='test -s conftest.$ac_objext'
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; }; then
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18184 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18191 rm -f conftest.$ac_objext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18193 (eval $ac_compile) 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_c_werror_flag"
18201 || test ! -s conftest.err'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; } &&
18207 { ac_try='test -s conftest.$ac_objext'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 ac_hi=$ac_mid; break
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18218 ac_lo=`expr $ac_mid + 1`
18219 if test $ac_lo -le $ac_mid; then
18223 ac_mid=`expr 2 '*' $ac_mid + 1`
18225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 cat >conftest.$ac_ext <<_ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18241 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18248 rm -f conftest.$ac_objext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18250 (eval $ac_compile) 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -z "$ac_c_werror_flag"
18258 || test ! -s conftest.err'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; } &&
18264 { ac_try='test -s conftest.$ac_objext'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18272 cat >conftest.$ac_ext <<_ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18282 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18289 rm -f conftest.$ac_objext
18290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18291 (eval $ac_compile) 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag"
18299 || test ! -s conftest.err'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest.$ac_objext'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
18311 ac_lo=$ac_mid; break
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18316 ac_hi=`expr '(' $ac_mid ')' - 1`
18317 if test $ac_mid -le $ac_hi; then
18321 ac_mid=`expr 2 '*' $ac_mid`
18323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18326 echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18334 # Binary search between lo and hi bounds.
18335 while test "x$ac_lo" != "x$ac_hi"; do
18336 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18347 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18354 rm -f conftest.$ac_objext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18356 (eval $ac_compile) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest.$ac_objext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_lo=`expr '(' $ac_mid ')' + 1`
18383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18386 ?*) OMP_LOCK_SIZE=$ac_lo;;
18387 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18388 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18389 { (exit 1); exit 1; }; } ;;
18392 if test "$cross_compiling" = yes; then
18393 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18394 See \`config.log' for more details." >&5
18395 echo "$as_me: error: cannot run test program while cross compiling
18396 See \`config.log' for more details." >&2;}
18397 { (exit 1); exit 1; }; }
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18406 long longval () { return sizeof (omp_lock_t); }
18407 unsigned long ulongval () { return sizeof (omp_lock_t); }
18409 #include <stdlib.h>
18414 FILE *f = fopen ("conftest.val", "w");
18417 if ((sizeof (omp_lock_t)) < 0)
18419 long i = longval ();
18420 if (i != (sizeof (omp_lock_t)))
18422 fprintf (f, "%ld\n", i);
18426 unsigned long i = ulongval ();
18427 if (i != (sizeof (omp_lock_t)))
18429 fprintf (f, "%lu\n", i);
18431 exit (ferror (f) || fclose (f) != 0);
18437 rm -f conftest$ac_exeext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439 (eval $ac_link) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 OMP_LOCK_SIZE=`cat conftest.val`
18450 echo "$as_me: program exited with status $ac_status" >&5
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ( exit $ac_status )
18455 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18456 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18457 { (exit 1); exit 1; }; }
18459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18463 if test "$cross_compiling" = yes; then
18464 # Depending upon the size, compute the lo and hi bounds.
18465 cat >conftest.$ac_ext <<_ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18475 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18482 rm -f conftest.$ac_objext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18484 (eval $ac_compile) 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag"
18492 || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try='test -s conftest.$ac_objext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18516 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18523 rm -f conftest.$ac_objext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18525 (eval $ac_compile) 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag"
18533 || test ! -s conftest.err'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest.$ac_objext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_hi=$ac_mid; break
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_lo=`expr $ac_mid + 1`
18551 if test $ac_lo -le $ac_mid; then
18555 ac_mid=`expr 2 '*' $ac_mid + 1`
18557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18573 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18580 rm -f conftest.$ac_objext
18581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18582 (eval $ac_compile) 2>conftest.er1
18584 grep -v '^ *+' conftest.er1 >conftest.err
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_c_werror_flag"
18590 || test ! -s conftest.err'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try='test -s conftest.$ac_objext'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18614 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18621 rm -f conftest.$ac_objext
18622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18623 (eval $ac_compile) 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag"
18631 || test ! -s conftest.err'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest.$ac_objext'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_lo=$ac_mid; break
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_hi=`expr '(' $ac_mid ')' - 1`
18649 if test $ac_mid -le $ac_hi; then
18653 ac_mid=`expr 2 '*' $ac_mid`
18655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18666 # Binary search between lo and hi bounds.
18667 while test "x$ac_lo" != "x$ac_hi"; do
18668 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18669 cat >conftest.$ac_ext <<_ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18679 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18686 rm -f conftest.$ac_objext
18687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18688 (eval $ac_compile) 2>conftest.er1
18690 grep -v '^ *+' conftest.er1 >conftest.err
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } &&
18695 { ac_try='test -z "$ac_c_werror_flag"
18696 || test ! -s conftest.err'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; } &&
18702 { ac_try='test -s conftest.$ac_objext'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_lo=`expr '(' $ac_mid ')' + 1`
18715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18718 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18722 if test "$cross_compiling" = yes; then
18723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18724 See \`config.log' for more details." >&5
18725 echo "$as_me: error: cannot run test program while cross compiling
18726 See \`config.log' for more details." >&2;}
18727 { (exit 1); exit 1; }; }
18729 cat >conftest.$ac_ext <<_ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18736 long longval () { return __alignof (omp_lock_t); }
18737 unsigned long ulongval () { return __alignof (omp_lock_t); }
18739 #include <stdlib.h>
18744 FILE *f = fopen ("conftest.val", "w");
18747 if ((__alignof (omp_lock_t)) < 0)
18749 long i = longval ();
18750 if (i != (__alignof (omp_lock_t)))
18752 fprintf (f, "%ld\n", i);
18756 unsigned long i = ulongval ();
18757 if (i != (__alignof (omp_lock_t)))
18759 fprintf (f, "%lu\n", i);
18761 exit (ferror (f) || fclose (f) != 0);
18767 rm -f conftest$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769 (eval $ac_link) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; }; then
18778 OMP_LOCK_ALIGN=`cat conftest.val`
18780 echo "$as_me: program exited with status $ac_status" >&5
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18789 if test "$cross_compiling" = yes; then
18790 # Depending upon the size, compute the lo and hi bounds.
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18801 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18808 rm -f conftest.$ac_objext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810 (eval $ac_compile) 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18842 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18849 rm -f conftest.$ac_objext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851 (eval $ac_compile) 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag"
18859 || test ! -s conftest.err'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest.$ac_objext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_hi=$ac_mid; break
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18876 ac_lo=`expr $ac_mid + 1`
18877 if test $ac_lo -le $ac_mid; then
18881 ac_mid=`expr 2 '*' $ac_mid + 1`
18883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18886 echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18889 cat >conftest.$ac_ext <<_ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18899 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18906 rm -f conftest.$ac_objext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>conftest.er1
18910 grep -v '^ *+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest.$ac_objext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18940 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18947 rm -f conftest.$ac_objext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949 (eval $ac_compile) 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag"
18957 || test ! -s conftest.err'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest.$ac_objext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_lo=$ac_mid; break
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_hi=`expr '(' $ac_mid ')' - 1`
18975 if test $ac_mid -le $ac_hi; then
18979 ac_mid=`expr 2 '*' $ac_mid`
18981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992 # Binary search between lo and hi bounds.
18993 while test "x$ac_lo" != "x$ac_hi"; do
18994 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19005 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19012 rm -f conftest.$ac_objext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19014 (eval $ac_compile) 2>conftest.er1
19016 grep -v '^ *+' conftest.er1 >conftest.err
19018 cat conftest.err >&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
19021 { ac_try='test -z "$ac_c_werror_flag"
19022 || test ! -s conftest.err'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest.$ac_objext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ac_lo=`expr '(' $ac_mid ')' + 1`
19041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19044 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19048 if test "$cross_compiling" = yes; then
19049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19050 See \`config.log' for more details." >&5
19051 echo "$as_me: error: cannot run test program while cross compiling
19052 See \`config.log' for more details." >&2;}
19053 { (exit 1); exit 1; }; }
19055 cat >conftest.$ac_ext <<_ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19062 long longval () { return sizeof (omp_nest_lock_t); }
19063 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19065 #include <stdlib.h>
19070 FILE *f = fopen ("conftest.val", "w");
19073 if ((sizeof (omp_nest_lock_t)) < 0)
19075 long i = longval ();
19076 if (i != (sizeof (omp_nest_lock_t)))
19078 fprintf (f, "%ld\n", i);
19082 unsigned long i = ulongval ();
19083 if (i != (sizeof (omp_nest_lock_t)))
19085 fprintf (f, "%lu\n", i);
19087 exit (ferror (f) || fclose (f) != 0);
19093 rm -f conftest$ac_exeext
19094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19095 (eval $ac_link) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19106 echo "$as_me: program exited with status $ac_status" >&5
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19115 if test "$cross_compiling" = yes; then
19116 # Depending upon the size, compute the lo and hi bounds.
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19127 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19134 rm -f conftest.$ac_objext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136 (eval $ac_compile) 2>conftest.er1
19138 grep -v '^ *+' conftest.er1 >conftest.err
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try='test -z "$ac_c_werror_flag"
19144 || test ! -s conftest.err'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19168 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19175 rm -f conftest.$ac_objext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177 (eval $ac_compile) 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag"
19185 || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_hi=$ac_mid; break
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_lo=`expr $ac_mid + 1`
19203 if test $ac_lo -le $ac_mid; then
19207 ac_mid=`expr 2 '*' $ac_mid + 1`
19209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19225 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19232 rm -f conftest.$ac_objext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19234 (eval $ac_compile) 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag"
19242 || test ! -s conftest.err'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest.$ac_objext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19266 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_lo=$ac_mid; break
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 ac_hi=`expr '(' $ac_mid ')' - 1`
19301 if test $ac_mid -le $ac_hi; then
19305 ac_mid=`expr 2 '*' $ac_mid`
19307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19318 # Binary search between lo and hi bounds.
19319 while test "x$ac_lo" != "x$ac_hi"; do
19320 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19321 cat >conftest.$ac_ext <<_ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19331 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19338 rm -f conftest.$ac_objext
19339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19340 (eval $ac_compile) 2>conftest.er1
19342 grep -v '^ *+' conftest.er1 >conftest.err
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -z "$ac_c_werror_flag"
19348 || test ! -s conftest.err'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; } &&
19354 { ac_try='test -s conftest.$ac_objext'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 ac_lo=`expr '(' $ac_mid ')' + 1`
19367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19370 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19374 if test "$cross_compiling" = yes; then
19375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19376 See \`config.log' for more details." >&5
19377 echo "$as_me: error: cannot run test program while cross compiling
19378 See \`config.log' for more details." >&2;}
19379 { (exit 1); exit 1; }; }
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 long longval () { return __alignof (omp_nest_lock_t); }
19389 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19391 #include <stdlib.h>
19396 FILE *f = fopen ("conftest.val", "w");
19399 if ((__alignof (omp_nest_lock_t)) < 0)
19401 long i = longval ();
19402 if (i != (__alignof (omp_nest_lock_t)))
19404 fprintf (f, "%ld\n", i);
19408 unsigned long i = ulongval ();
19409 if (i != (__alignof (omp_nest_lock_t)))
19411 fprintf (f, "%lu\n", i);
19413 exit (ferror (f) || fclose (f) != 0);
19419 rm -f conftest$ac_exeext
19420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19421 (eval $ac_link) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19432 echo "$as_me: program exited with status $ac_status" >&5
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19442 # If the lock fits in an integer, then arrange for Fortran to use that
19443 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19444 # Except that we don't have a way at present to multi-lib the installed
19445 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19447 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19448 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19449 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19452 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19453 OMP_NEST_LOCK_KIND=8
19462 CFLAGS="$save_CFLAGS"
19464 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19466 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19468 cat >confcache <<\_ACEOF
19469 # This file is a shell script that caches the results of configure
19470 # tests run on this system so they can be shared between configure
19471 # scripts and configure runs, see configure's option --config-cache.
19472 # It is not useful on other systems. If it contains results you don't
19473 # want to keep, you may remove or edit it.
19475 # config.status only pays attention to the cache file if you give it
19476 # the --recheck option to rerun configure.
19478 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19479 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19480 # following values.
19484 # The following way of writing the cache mishandles newlines in values,
19485 # but we know of no workaround that is simple, portable, and efficient.
19486 # So, don't put newlines in cache variables' values.
19487 # Ultrix sh set writes to stderr and can't be redirected directly,
19488 # and sets the high bit in the cache file unless we assign to the vars.
19491 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19493 # `set' does not quote correctly, so add quotes (double-quote
19494 # substitution turns \\\\ into \\, and sed turns \\ into \).
19497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19500 # `set' quotes correctly as required by POSIX, so do not add quotes.
19502 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19511 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19513 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19514 if test -w $cache_file; then
19515 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19516 cat confcache >$cache_file
19518 echo "not updating unwritable cache $cache_file"
19523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19524 # Let make expand exec_prefix.
19525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19527 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19528 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19529 # trailing colons and then remove the whole line if VPATH becomes empty
19530 # (actually we leave an empty line to preserve line numbers).
19531 if test "x$srcdir" = x.; then
19532 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19533 s/:*\$(srcdir):*/:/;
19534 s/:*\${srcdir}:*/:/;
19536 s/^\([^=]*=[ ]*\):*/\1/;
19542 DEFS=-DHAVE_CONFIG_H
19546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19547 # 1. Remove the extension, and $U if already installed.
19548 ac_i=`echo "$ac_i" |
19549 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19551 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19552 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19554 LIBOBJS=$ac_libobjs
19556 LTLIBOBJS=$ac_ltlibobjs
19559 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19560 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19561 Usually this means the macro was only invoked conditionally." >&5
19562 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19563 Usually this means the macro was only invoked conditionally." >&2;}
19564 { (exit 1); exit 1; }; }
19566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19567 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19568 Usually this means the macro was only invoked conditionally." >&5
19569 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19570 Usually this means the macro was only invoked conditionally." >&2;}
19571 { (exit 1); exit 1; }; }
19573 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19574 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19575 Usually this means the macro was only invoked conditionally." >&5
19576 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19577 Usually this means the macro was only invoked conditionally." >&2;}
19578 { (exit 1); exit 1; }; }
19580 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19581 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19582 Usually this means the macro was only invoked conditionally." >&5
19583 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19584 Usually this means the macro was only invoked conditionally." >&2;}
19585 { (exit 1); exit 1; }; }
19587 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19588 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19589 Usually this means the macro was only invoked conditionally." >&5
19590 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19591 Usually this means the macro was only invoked conditionally." >&2;}
19592 { (exit 1); exit 1; }; }
19594 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19595 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19596 Usually this means the macro was only invoked conditionally." >&5
19597 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19598 Usually this means the macro was only invoked conditionally." >&2;}
19599 { (exit 1); exit 1; }; }
19601 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19602 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19603 Usually this means the macro was only invoked conditionally." >&5
19604 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19605 Usually this means the macro was only invoked conditionally." >&2;}
19606 { (exit 1); exit 1; }; }
19609 : ${CONFIG_STATUS=./config.status}
19610 ac_clean_files_save=$ac_clean_files
19611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19612 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19613 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19614 cat >$CONFIG_STATUS <<_ACEOF
19616 # Generated by $as_me.
19617 # Run this file to recreate the current configuration.
19618 # Compiler output produced by configure, useful for debugging
19619 # configure, is in config.log if it exists.
19622 ac_cs_recheck=false
19624 SHELL=\${CONFIG_SHELL-$SHELL}
19627 cat >>$CONFIG_STATUS <<\_ACEOF
19628 ## --------------------- ##
19629 ## M4sh Initialization. ##
19630 ## --------------------- ##
19632 # Be Bourne compatible
19633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19636 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19637 # is contrary to our usage. Disable this feature.
19638 alias -g '${1+"$@"}'='"$@"'
19639 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19642 DUALCASE=1; export DUALCASE # for MKS sh
19644 # Support unset when possible.
19645 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19652 # Work around bugs in pre-3.0 UWIN ksh.
19653 $as_unset ENV MAIL MAILPATH
19660 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19661 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19662 LC_TELEPHONE LC_TIME
19664 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19665 eval $as_var=C; export $as_var
19671 # Required to use basename.
19672 if expr a : '\(a\)' >/dev/null 2>&1; then
19678 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19679 as_basename=basename
19685 # Name of the executable.
19686 as_me=`$as_basename "$0" ||
19687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19688 X"$0" : 'X\(//\)$' \| \
19689 X"$0" : 'X\(/\)$' \| \
19690 . : '\(.\)' 2>/dev/null ||
19692 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19693 /^X\/\(\/\/\)$/{ s//\1/; q; }
19694 /^X\/\(\/\).*/{ s//\1/; q; }
19698 # PATH needs CR, and LINENO needs CR and PATH.
19699 # Avoid depending upon Character Ranges.
19700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19703 as_cr_digits='0123456789'
19704 as_cr_alnum=$as_cr_Letters$as_cr_digits
19706 # The user is always right.
19707 if test "${PATH_SEPARATOR+set}" != set; then
19708 echo "#! /bin/sh" >conf$$.sh
19709 echo "exit 0" >>conf$$.sh
19711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19720 as_lineno_1=$LINENO
19721 as_lineno_2=$LINENO
19722 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19723 test "x$as_lineno_1" != "x$as_lineno_2" &&
19724 test "x$as_lineno_3" = "x$as_lineno_2" || {
19725 # Find who we are. Look in the path if we contain no path at all
19728 *[\\/]* ) as_myself=$0 ;;
19729 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19730 for as_dir in $PATH
19733 test -z "$as_dir" && as_dir=.
19734 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19739 # We did not find ourselves, most probably we were run as `sh COMMAND'
19740 # in which case we are not to be found in the path.
19741 if test "x$as_myself" = x; then
19744 if test ! -f "$as_myself"; then
19745 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19746 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19747 { (exit 1); exit 1; }; }
19749 case $CONFIG_SHELL in
19751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19755 test -z "$as_dir" && as_dir=.
19756 for as_base in sh bash ksh sh5; do
19759 if ("$as_dir/$as_base" -c '
19760 as_lineno_1=$LINENO
19761 as_lineno_2=$LINENO
19762 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19763 test "x$as_lineno_1" != "x$as_lineno_2" &&
19764 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19765 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19766 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19767 CONFIG_SHELL=$as_dir/$as_base
19768 export CONFIG_SHELL
19769 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19777 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19778 # uniformly replaced by the line number. The first 'sed' inserts a
19779 # line-number line before each line; the second 'sed' does the real
19780 # work. The second script uses 'N' to pair each line-number line
19781 # with the numbered line, and appends trailing '-' during
19782 # substitution so that $LINENO is not a special case at line end.
19783 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19784 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19785 sed '=' <$as_myself |
19790 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19793 s,^['$as_cr_digits']*\n,,
19794 ' >$as_me.lineno &&
19795 chmod +x $as_me.lineno ||
19796 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19797 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19798 { (exit 1); exit 1; }; }
19800 # Don't try to exec as it changes $[0], causing all sort of problems
19801 # (the dirname of $[0] is not the place where we might find the
19802 # original and so on. Autoconf is especially sensible to this).
19804 # Exit status is that of the last command.
19809 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19810 *c*,-n*) ECHO_N= ECHO_C='
19812 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19813 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19816 if expr a : '\(a\)' >/dev/null 2>&1; then
19822 rm -f conf$$ conf$$.exe conf$$.file
19824 if ln -s conf$$.file conf$$ 2>/dev/null; then
19825 # We could just check for DJGPP; but this test a) works b) is more generic
19826 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19827 if test -f conf$$.exe; then
19828 # Don't use ln at all; we don't have any links
19833 elif ln conf$$.file conf$$ 2>/dev/null; then
19838 rm -f conf$$ conf$$.exe conf$$.file
19840 if mkdir -p . 2>/dev/null; then
19843 test -d ./-p && rmdir ./-p
19847 as_executable_p="test -f"
19849 # Sed expression to map a string onto a valid CPP name.
19850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19852 # Sed expression to map a string onto a valid variable name.
19853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19857 # We need space, tab and new line, in precisely that order.
19867 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19868 # report actual input values of CONFIG_FILES etc. instead of their
19869 # values after options handling. Logging --version etc. is OK.
19873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19874 ## Running $as_me. ##
19879 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19880 generated by GNU Autoconf 2.59. Invocation command line was
19882 CONFIG_FILES = $CONFIG_FILES
19883 CONFIG_HEADERS = $CONFIG_HEADERS
19884 CONFIG_LINKS = $CONFIG_LINKS
19885 CONFIG_COMMANDS = $CONFIG_COMMANDS
19889 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19893 # Files that config.status was made for.
19894 if test -n "$ac_config_files"; then
19895 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19898 if test -n "$ac_config_headers"; then
19899 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19902 if test -n "$ac_config_links"; then
19903 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19906 if test -n "$ac_config_commands"; then
19907 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19910 cat >>$CONFIG_STATUS <<\_ACEOF
19913 \`$as_me' instantiates files from templates according to the
19914 current configuration.
19916 Usage: $0 [OPTIONS] [FILE]...
19918 -h, --help print this help, then exit
19919 -V, --version print version number, then exit
19920 -q, --quiet do not print progress messages
19921 -d, --debug don't remove temporary files
19922 --recheck update $as_me by reconfiguring in the same conditions
19923 --file=FILE[:TEMPLATE]
19924 instantiate the configuration file FILE
19925 --header=FILE[:TEMPLATE]
19926 instantiate the configuration header FILE
19928 Configuration files:
19931 Configuration headers:
19934 Configuration commands:
19937 Report bugs to <bug-autoconf@gnu.org>."
19940 cat >>$CONFIG_STATUS <<_ACEOF
19942 GNU OpenMP Runtime Library config.status 1.0
19943 configured by $0, generated by GNU Autoconf 2.59,
19944 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19946 Copyright (C) 2003 Free Software Foundation, Inc.
19947 This config.status script is free software; the Free Software Foundation
19948 gives unlimited permission to copy, distribute and modify it."
19953 cat >>$CONFIG_STATUS <<\_ACEOF
19954 # If no file are specified by the user, then we need to provide default
19955 # value. By we need to know if files were specified by the user.
19961 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19962 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19970 *) # This is not an option, so the user has probably given explicit
19973 ac_need_defaults=false;;
19977 # Handling of the options.
19979 cat >>$CONFIG_STATUS <<\_ACEOF
19980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19982 --version | --vers* | -V )
19983 echo "$ac_cs_version"; exit 0 ;;
19985 # Conflict between --help and --header
19986 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19987 Try \`$0 --help' for more information." >&5
19988 echo "$as_me: error: ambiguous option: $1
19989 Try \`$0 --help' for more information." >&2;}
19990 { (exit 1); exit 1; }; };;
19991 --help | --hel | -h )
19992 echo "$ac_cs_usage"; exit 0 ;;
19993 --debug | --d* | -d )
19995 --file | --fil | --fi | --f )
19997 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19998 ac_need_defaults=false;;
19999 --header | --heade | --head | --hea )
20001 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20002 ac_need_defaults=false;;
20003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20004 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20007 # This is an error.
20008 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20009 Try \`$0 --help' for more information." >&5
20010 echo "$as_me: error: unrecognized option: $1
20011 Try \`$0 --help' for more information." >&2;}
20012 { (exit 1); exit 1; }; } ;;
20014 *) ac_config_targets="$ac_config_targets $1" ;;
20020 ac_configure_extra_args=
20022 if $ac_cs_silent; then
20024 ac_configure_extra_args="$ac_configure_extra_args --silent"
20028 cat >>$CONFIG_STATUS <<_ACEOF
20029 if \$ac_cs_recheck; then
20030 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20031 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20036 cat >>$CONFIG_STATUS <<_ACEOF
20038 # INIT-COMMANDS section.
20045 with_multisubdir="$with_multisubdir"
20046 with_multisrctop="$with_multisrctop"
20047 with_target_subdir="$with_target_subdir"
20048 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20049 multi_basedir="$multi_basedir"
20050 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20052 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20055 # The HP-UX ksh and POSIX shell print the target directory to stdout
20056 # if CDPATH is set.
20057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20059 sed_quote_subst='$sed_quote_subst'
20060 double_quote_subst='$double_quote_subst'
20061 delay_variable_subst='$delay_variable_subst'
20062 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20063 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20064 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20065 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20066 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20067 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20068 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20069 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20070 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20071 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20072 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20073 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20074 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20075 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20076 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20077 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20078 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20079 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20080 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20081 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20082 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20083 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20084 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20085 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20086 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20087 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20088 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20089 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20090 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20091 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20092 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20093 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20094 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20095 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20096 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20097 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20098 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20099 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20100 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20101 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20102 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20103 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20104 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20105 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"`'
20106 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20107 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20108 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20109 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20110 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20111 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20112 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20113 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20114 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20115 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20116 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20117 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20118 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20119 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20120 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20121 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20122 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20123 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20124 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20125 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20126 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20127 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20128 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20129 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20130 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20131 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20132 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20133 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20134 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20135 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20136 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20137 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20138 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20139 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20140 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20141 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20142 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20143 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20144 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20145 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20146 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20147 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20148 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20149 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20150 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20151 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20152 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20153 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20154 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20155 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20156 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20157 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20158 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20159 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20160 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20161 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20162 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20163 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20164 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20165 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20166 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20167 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20168 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20169 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20170 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20171 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20172 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20173 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20174 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20175 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20176 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20177 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20178 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20179 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20180 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20181 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20182 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20183 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20184 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20185 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20186 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20187 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20188 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20189 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20190 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20191 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20192 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20193 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20194 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20195 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20196 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20197 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20198 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20199 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20200 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20201 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20202 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20203 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20204 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20205 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20206 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20207 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20208 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20209 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20210 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20211 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20212 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20213 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20214 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20215 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20216 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20217 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20218 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20219 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20220 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20221 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20222 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20223 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20226 LTCFLAGS='$LTCFLAGS'
20227 compiler='$compiler_DEFAULT'
20229 # Quote evaled strings.
20240 deplibs_check_method \
20249 lt_cv_sys_global_symbol_pipe \
20250 lt_cv_sys_global_symbol_to_cdecl \
20251 lt_cv_sys_global_symbol_to_c_name_address \
20254 lt_prog_compiler_no_builtin_flag \
20255 lt_prog_compiler_wl \
20256 lt_prog_compiler_pic \
20257 lt_prog_compiler_static \
20258 lt_cv_prog_compiler_c_o \
20261 export_dynamic_flag_spec \
20262 whole_archive_flag_spec \
20263 compiler_needs_object \
20265 allow_undefined_flag \
20266 no_undefined_flag \
20267 hardcode_libdir_flag_spec \
20268 hardcode_libdir_flag_spec_ld \
20269 hardcode_libdir_separator \
20274 variables_saved_for_relink \
20276 library_names_spec \
20285 compiler_lib_search_path \
20288 lt_prog_compiler_no_builtin_flag_FC \
20289 lt_prog_compiler_wl_FC \
20290 lt_prog_compiler_pic_FC \
20291 lt_prog_compiler_static_FC \
20292 lt_cv_prog_compiler_c_o_FC \
20293 export_dynamic_flag_spec_FC \
20294 whole_archive_flag_spec_FC \
20295 compiler_needs_object_FC \
20297 allow_undefined_flag_FC \
20298 no_undefined_flag_FC \
20299 hardcode_libdir_flag_spec_FC \
20300 hardcode_libdir_flag_spec_ld_FC \
20301 hardcode_libdir_separator_FC \
20302 fix_srcfile_path_FC \
20303 exclude_expsyms_FC \
20304 include_expsyms_FC \
20305 file_list_spec_FC \
20306 predep_objects_FC \
20307 postdep_objects_FC \
20310 compiler_lib_search_path_FC; do
20311 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20312 *[\\\\\\\`\\"\\\$]*)
20313 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20316 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20321 # Double-quote double-evaled strings.
20322 for var in reload_cmds \
20323 old_postinstall_cmds \
20324 old_postuninstall_cmds \
20326 extract_expsyms_cmds \
20327 old_archive_from_new_cmds \
20328 old_archive_from_expsyms_cmds \
20330 archive_expsym_cmds \
20332 module_expsym_cmds \
20333 export_symbols_cmds \
20336 postuninstall_cmds \
20338 sys_lib_search_path_spec \
20339 sys_lib_dlsearch_path_spec \
20340 old_archive_cmds_FC \
20341 old_archive_from_new_cmds_FC \
20342 old_archive_from_expsyms_cmds_FC \
20344 archive_expsym_cmds_FC \
20346 module_expsym_cmds_FC \
20347 export_symbols_cmds_FC \
20348 prelink_cmds_FC; do
20349 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20350 *[\\\\\\\`\\"\\\$]*)
20351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20359 # Fix-up fallback echo if it was mangled by the above quoting rules.
20361 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20365 ac_aux_dir='$ac_aux_dir'
20366 xsi_shell='$xsi_shell'
20367 lt_shell_append='$lt_shell_append'
20369 # See if we are running on zsh, and set the options which allow our
20370 # commands through without removal of \ escapes INIT.
20371 if test -n "\${ZSH_VERSION+set}" ; then
20372 setopt NO_GLOB_SUBST
20378 TIMESTAMP='$TIMESTAMP'
20389 acx_cv_header_stdint="$acx_cv_header_stdint"
20390 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20391 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20392 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20393 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20394 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20395 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20396 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20397 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20398 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20399 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20400 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20401 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20402 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20409 cat >>$CONFIG_STATUS <<\_ACEOF
20410 for ac_config_target in $ac_config_targets
20412 case "$ac_config_target" in
20413 # Handling of arguments.
20414 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20415 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20416 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20417 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20418 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20419 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20420 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20421 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20422 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20423 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20424 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20425 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20426 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20427 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20428 { (exit 1); exit 1; }; };;
20432 # If the user did not use the arguments to specify the items to instantiate,
20433 # then the envvar interface is used. Set only those that are not.
20434 # We use the long form for the default assignment because of an extremely
20435 # bizarre bug on SunOS 4.1.3.
20436 if $ac_need_defaults; then
20437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20438 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20442 # Have a temporary directory for convenience. Make it in the build tree
20443 # simply because there is no reason to put it here, and in addition,
20444 # creating and moving files from /tmp can sometimes cause problems.
20445 # Create a temporary directory, and hook for its removal unless debugging.
20448 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20449 trap '{ (exit 1); exit 1; }' 1 2 13 15
20452 # Create a (secure) tmp directory for tmp files.
20455 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20456 test -n "$tmp" && test -d "$tmp"
20459 tmp=./confstat$$-$RANDOM
20460 (umask 077 && mkdir $tmp)
20463 echo "$me: cannot create a temporary directory in ." >&2
20464 { (exit 1); exit 1; }
20469 cat >>$CONFIG_STATUS <<_ACEOF
20472 # CONFIG_FILES section.
20475 # No need to generate the scripts if there are no CONFIG_FILES.
20476 # This happens for instance when ./config.status config.h
20477 if test -n "\$CONFIG_FILES"; then
20478 # Protect against being on the right side of a sed subst in config.status.
20479 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20480 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20481 s,@SHELL@,$SHELL,;t t
20482 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20483 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20484 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20485 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20486 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20487 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20488 s,@exec_prefix@,$exec_prefix,;t t
20489 s,@prefix@,$prefix,;t t
20490 s,@program_transform_name@,$program_transform_name,;t t
20491 s,@bindir@,$bindir,;t t
20492 s,@sbindir@,$sbindir,;t t
20493 s,@libexecdir@,$libexecdir,;t t
20494 s,@datadir@,$datadir,;t t
20495 s,@sysconfdir@,$sysconfdir,;t t
20496 s,@sharedstatedir@,$sharedstatedir,;t t
20497 s,@localstatedir@,$localstatedir,;t t
20498 s,@libdir@,$libdir,;t t
20499 s,@includedir@,$includedir,;t t
20500 s,@oldincludedir@,$oldincludedir,;t t
20501 s,@infodir@,$infodir,;t t
20502 s,@mandir@,$mandir,;t t
20503 s,@build_alias@,$build_alias,;t t
20504 s,@host_alias@,$host_alias,;t t
20505 s,@target_alias@,$target_alias,;t t
20506 s,@DEFS@,$DEFS,;t t
20507 s,@ECHO_C@,$ECHO_C,;t t
20508 s,@ECHO_N@,$ECHO_N,;t t
20509 s,@ECHO_T@,$ECHO_T,;t t
20510 s,@LIBS@,$LIBS,;t t
20511 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20512 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20513 s,@build@,$build,;t t
20514 s,@build_cpu@,$build_cpu,;t t
20515 s,@build_vendor@,$build_vendor,;t t
20516 s,@build_os@,$build_os,;t t
20517 s,@host@,$host,;t t
20518 s,@host_cpu@,$host_cpu,;t t
20519 s,@host_vendor@,$host_vendor,;t t
20520 s,@host_os@,$host_os,;t t
20521 s,@target@,$target,;t t
20522 s,@target_cpu@,$target_cpu,;t t
20523 s,@target_vendor@,$target_vendor,;t t
20524 s,@target_os@,$target_os,;t t
20525 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20526 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20527 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20528 s,@CYGPATH_W@,$CYGPATH_W,;t t
20529 s,@PACKAGE@,$PACKAGE,;t t
20530 s,@VERSION@,$VERSION,;t t
20531 s,@ACLOCAL@,$ACLOCAL,;t t
20532 s,@AUTOCONF@,$AUTOCONF,;t t
20533 s,@AUTOMAKE@,$AUTOMAKE,;t t
20534 s,@AUTOHEADER@,$AUTOHEADER,;t t
20535 s,@MAKEINFO@,$MAKEINFO,;t t
20536 s,@install_sh@,$install_sh,;t t
20537 s,@STRIP@,$STRIP,;t t
20538 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20539 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20540 s,@mkdir_p@,$mkdir_p,;t t
20542 s,@SET_MAKE@,$SET_MAKE,;t t
20543 s,@am__leading_dot@,$am__leading_dot,;t t
20544 s,@AMTAR@,$AMTAR,;t t
20545 s,@am__tar@,$am__tar,;t t
20546 s,@am__untar@,$am__untar,;t t
20547 s,@multi_basedir@,$multi_basedir,;t t
20548 s,@toolexecdir@,$toolexecdir,;t t
20549 s,@toolexeclibdir@,$toolexeclibdir,;t t
20551 s,@ac_ct_CC@,$ac_ct_CC,;t t
20552 s,@EXEEXT@,$EXEEXT,;t t
20553 s,@OBJEXT@,$OBJEXT,;t t
20554 s,@DEPDIR@,$DEPDIR,;t t
20555 s,@am__include@,$am__include,;t t
20556 s,@am__quote@,$am__quote,;t t
20557 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20558 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20559 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20560 s,@CCDEPMODE@,$CCDEPMODE,;t t
20561 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20562 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20563 s,@CFLAGS@,$CFLAGS,;t t
20565 s,@ac_ct_AR@,$ac_ct_AR,;t t
20566 s,@RANLIB@,$RANLIB,;t t
20567 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20568 s,@PERL@,$PERL,;t t
20569 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20570 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20571 s,@LIBTOOL@,$LIBTOOL,;t t
20573 s,@EGREP@,$EGREP,;t t
20574 s,@FGREP@,$FGREP,;t t
20575 s,@GREP@,$GREP,;t t
20577 s,@DUMPBIN@,$DUMPBIN,;t t
20578 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20580 s,@LN_S@,$LN_S,;t t
20581 s,@lt_ECHO@,$lt_ECHO,;t t
20583 s,@CPPFLAGS@,$CPPFLAGS,;t t
20584 s,@enable_shared@,$enable_shared,;t t
20585 s,@enable_static@,$enable_static,;t t
20586 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20587 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20588 s,@MAINT@,$MAINT,;t t
20590 s,@FCFLAGS@,$FCFLAGS,;t t
20591 s,@LDFLAGS@,$LDFLAGS,;t t
20592 s,@ac_ct_FC@,$ac_ct_FC,;t t
20593 s,@libtool_VERSION@,$libtool_VERSION,;t t
20594 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20595 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20596 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20597 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20598 s,@config_path@,$config_path,;t t
20599 s,@XCFLAGS@,$XCFLAGS,;t t
20600 s,@XLDFLAGS@,$XLDFLAGS,;t t
20601 s,@link_gomp@,$link_gomp,;t t
20602 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20603 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20604 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20605 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20606 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20607 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20608 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20609 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20610 s,@LIBOBJS@,$LIBOBJS,;t t
20611 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20616 cat >>$CONFIG_STATUS <<\_ACEOF
20617 # Split the substitutions into bite-sized pieces for seds with
20618 # small command number limits, like on Digital OSF/1 and HP-UX.
20619 ac_max_sed_lines=48
20620 ac_sed_frag=1 # Number of current file.
20621 ac_beg=1 # First line for current file.
20622 ac_end=$ac_max_sed_lines # Line after last line for current file.
20625 while $ac_more_lines; do
20626 if test $ac_beg -gt 1; then
20627 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20629 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20631 if test ! -s $tmp/subs.frag; then
20632 ac_more_lines=false
20634 # The purpose of the label and of the branching condition is to
20635 # speed up the sed processing (if there are no `@' at all, there
20636 # is no need to browse any of the substitutions).
20637 # These are the two extra sed commands mentioned above.
20639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20640 if test -z "$ac_sed_cmds"; then
20641 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20643 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20645 ac_sed_frag=`expr $ac_sed_frag + 1`
20647 ac_end=`expr $ac_end + $ac_max_sed_lines`
20650 if test -z "$ac_sed_cmds"; then
20653 fi # test -n "$CONFIG_FILES"
20656 cat >>$CONFIG_STATUS <<\_ACEOF
20657 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20660 - | *:- | *:-:* ) # input from stdin
20662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20666 * ) ac_file_in=$ac_file.in ;;
20669 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20670 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20672 X"$ac_file" : 'X\(//\)[^/]' \| \
20673 X"$ac_file" : 'X\(//\)$' \| \
20674 X"$ac_file" : 'X\(/\)' \| \
20675 . : '\(.\)' 2>/dev/null ||
20677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20679 /^X\(\/\/\)$/{ s//\1/; q; }
20680 /^X\(\/\).*/{ s//\1/; q; }
20682 { if $as_mkdir_p; then
20687 while test ! -d "$as_dir"; do
20688 as_dirs="$as_dir $as_dirs"
20689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20691 X"$as_dir" : 'X\(//\)[^/]' \| \
20692 X"$as_dir" : 'X\(//\)$' \| \
20693 X"$as_dir" : 'X\(/\)' \| \
20694 . : '\(.\)' 2>/dev/null ||
20696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20698 /^X\(\/\/\)$/{ s//\1/; q; }
20699 /^X\(\/\).*/{ s//\1/; q; }
20702 test ! -n "$as_dirs" || mkdir $as_dirs
20703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20705 { (exit 1); exit 1; }; }; }
20709 if test "$ac_dir" != .; then
20710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20711 # A "../" for each directory in $ac_dir_suffix.
20712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20714 ac_dir_suffix= ac_top_builddir=
20718 .) # No --srcdir option. We are building in place.
20720 if test -z "$ac_top_builddir"; then
20723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20725 [\\/]* | ?:[\\/]* ) # Absolute path.
20726 ac_srcdir=$srcdir$ac_dir_suffix;
20727 ac_top_srcdir=$srcdir ;;
20728 *) # Relative path.
20729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20733 # Do not use `cd foo && pwd` to compute absolute paths, because
20734 # the directories may not exist.
20736 .) ac_abs_builddir="$ac_dir";;
20739 .) ac_abs_builddir=`pwd`;;
20740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20744 case $ac_abs_builddir in
20745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20747 case ${ac_top_builddir}. in
20748 .) ac_abs_top_builddir=$ac_abs_builddir;;
20749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20753 case $ac_abs_builddir in
20754 .) ac_abs_srcdir=$ac_srcdir;;
20757 .) ac_abs_srcdir=$ac_abs_builddir;;
20758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20762 case $ac_abs_builddir in
20763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20765 case $ac_top_srcdir in
20766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20775 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20778 if test x"$ac_file" != x-; then
20779 { echo "$as_me:$LINENO: creating $ac_file" >&5
20780 echo "$as_me: creating $ac_file" >&6;}
20783 # Let's still pretend it is `configure' which instantiates (i.e., don't
20784 # use $as_me), people would be surprised to read:
20785 # /* config.h. Generated by config.status. */
20786 if test x"$ac_file" = x-; then
20789 configure_input="$ac_file. "
20791 configure_input=$configure_input"Generated from `echo $ac_file_in |
20792 sed 's,.*/,,'` by configure."
20794 # First look for the input files in the build tree, otherwise in the
20796 ac_file_inputs=`IFS=:
20797 for f in $ac_file_in; do
20799 -) echo $tmp/stdin ;;
20801 # Absolute (can't be DOS-style, as IFS=:)
20802 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20803 echo "$as_me: error: cannot find input file: $f" >&2;}
20804 { (exit 1); exit 1; }; }
20807 if test -f "$f"; then
20810 elif test -f "$srcdir/$f"; then
20815 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20816 echo "$as_me: error: cannot find input file: $f" >&2;}
20817 { (exit 1); exit 1; }; }
20820 done` || { (exit 1); exit 1; }
20822 cat >>$CONFIG_STATUS <<_ACEOF
20826 cat >>$CONFIG_STATUS <<\_ACEOF
20828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20829 s,@configure_input@,$configure_input,;t t
20830 s,@srcdir@,$ac_srcdir,;t t
20831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20832 s,@top_srcdir@,$ac_top_srcdir,;t t
20833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20834 s,@builddir@,$ac_builddir,;t t
20835 s,@abs_builddir@,$ac_abs_builddir,;t t
20836 s,@top_builddir@,$ac_top_builddir,;t t
20837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20838 s,@INSTALL@,$ac_INSTALL,;t t
20839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20841 if test x"$ac_file" != x-; then
20842 mv $tmp/out $ac_file
20850 cat >>$CONFIG_STATUS <<\_ACEOF
20853 # CONFIG_HEADER section.
20856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20859 # ac_d sets the value in "#define NAME VALUE" lines.
20860 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20861 ac_dB='[ ].*$,\1#\2'
20864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20865 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20866 ac_uB='$,\1#\2define\3'
20870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20873 - | *:- | *:-:* ) # input from stdin
20875 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20877 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20879 * ) ac_file_in=$ac_file.in ;;
20882 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20883 echo "$as_me: creating $ac_file" >&6;}
20885 # First look for the input files in the build tree, otherwise in the
20887 ac_file_inputs=`IFS=:
20888 for f in $ac_file_in; do
20890 -) echo $tmp/stdin ;;
20892 # Absolute (can't be DOS-style, as IFS=:)
20893 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20894 echo "$as_me: error: cannot find input file: $f" >&2;}
20895 { (exit 1); exit 1; }; }
20896 # Do quote $f, to prevent DOS paths from being IFS'd.
20899 if test -f "$f"; then
20902 elif test -f "$srcdir/$f"; then
20907 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20908 echo "$as_me: error: cannot find input file: $f" >&2;}
20909 { (exit 1); exit 1; }; }
20912 done` || { (exit 1); exit 1; }
20913 # Remove the trailing spaces.
20914 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20918 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20919 # `conftest.undefs', that substitutes the proper values into
20920 # config.h.in to produce config.h. The first handles `#define'
20921 # templates, and the second `#undef' templates.
20922 # And first: Protect against being on the right side of a sed subst in
20923 # config.status. Protect against being in an unquoted here document
20924 # in config.status.
20925 rm -f conftest.defines conftest.undefs
20926 # Using a here document instead of a string reduces the quoting nightmare.
20927 # Putting comments in sed scripts is not portable.
20929 # `end' is used to avoid that the second main sed command (meant for
20930 # 0-ary CPP macros) applies to n-ary macro definitions.
20931 # See the Autoconf documentation for `clear'.
20932 cat >confdef2sed.sed <<\_ACEOF
20937 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20939 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20942 # If some macros were called several times there might be several times
20943 # the same #defines, which is useless. Nevertheless, we may not want to
20944 # sort them, since we want the *last* AC-DEFINE to be honored.
20945 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20946 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20947 rm -f confdef2sed.sed
20949 # This sed command replaces #undef with comments. This is necessary, for
20950 # example, in the case of _POSIX_SOURCE, which is predefined and required
20951 # on some systems where configure will not decide to define it.
20952 cat >>conftest.undefs <<\_ACEOF
20953 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20956 # Break up conftest.defines because some shells have a limit on the size
20957 # of here documents, and old seds have small limits too (100 cmds).
20958 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20959 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20960 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20961 echo ' :' >>$CONFIG_STATUS
20962 rm -f conftest.tail
20963 while grep . conftest.defines >/dev/null
20965 # Write a limited-size here document to $tmp/defines.sed.
20966 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20967 # Speed up: don't consider the non `#define' lines.
20968 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20969 # Work around the forget-to-reset-the-flag bug.
20970 echo 't clr' >>$CONFIG_STATUS
20971 echo ': clr' >>$CONFIG_STATUS
20972 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20974 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20976 mv $tmp/out $tmp/in
20978 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20979 rm -f conftest.defines
20980 mv conftest.tail conftest.defines
20982 rm -f conftest.defines
20983 echo ' fi # grep' >>$CONFIG_STATUS
20984 echo >>$CONFIG_STATUS
20986 # Break up conftest.undefs because some shells have a limit on the size
20987 # of here documents, and old seds have small limits too (100 cmds).
20988 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20989 rm -f conftest.tail
20990 while grep . conftest.undefs >/dev/null
20992 # Write a limited-size here document to $tmp/undefs.sed.
20993 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20994 # Speed up: don't consider the non `#undef'
20995 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20996 # Work around the forget-to-reset-the-flag bug.
20997 echo 't clr' >>$CONFIG_STATUS
20998 echo ': clr' >>$CONFIG_STATUS
20999 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21001 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21003 mv $tmp/out $tmp/in
21005 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21006 rm -f conftest.undefs
21007 mv conftest.tail conftest.undefs
21009 rm -f conftest.undefs
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012 # Let's still pretend it is `configure' which instantiates (i.e., don't
21013 # use $as_me), people would be surprised to read:
21014 # /* config.h. Generated by config.status. */
21015 if test x"$ac_file" = x-; then
21016 echo "/* Generated by configure. */" >$tmp/config.h
21018 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21020 cat $tmp/in >>$tmp/config.h
21022 if test x"$ac_file" != x-; then
21023 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21024 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21025 echo "$as_me: $ac_file is unchanged" >&6;}
21027 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21029 X"$ac_file" : 'X\(//\)[^/]' \| \
21030 X"$ac_file" : 'X\(//\)$' \| \
21031 X"$ac_file" : 'X\(/\)' \| \
21032 . : '\(.\)' 2>/dev/null ||
21034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21036 /^X\(\/\/\)$/{ s//\1/; q; }
21037 /^X\(\/\).*/{ s//\1/; q; }
21039 { if $as_mkdir_p; then
21044 while test ! -d "$as_dir"; do
21045 as_dirs="$as_dir $as_dirs"
21046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048 X"$as_dir" : 'X\(//\)[^/]' \| \
21049 X"$as_dir" : 'X\(//\)$' \| \
21050 X"$as_dir" : 'X\(/\)' \| \
21051 . : '\(.\)' 2>/dev/null ||
21053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21055 /^X\(\/\/\)$/{ s//\1/; q; }
21056 /^X\(\/\).*/{ s//\1/; q; }
21059 test ! -n "$as_dirs" || mkdir $as_dirs
21060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21062 { (exit 1); exit 1; }; }; }
21065 mv $tmp/config.h $ac_file
21069 rm -f $tmp/config.h
21071 # Compute $ac_file's index in $config_headers.
21073 for _am_header in $config_headers :; do
21074 case $_am_header in
21075 $ac_file | $ac_file:* )
21078 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21081 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21082 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21083 X$ac_file : 'X\(//\)[^/]' \| \
21084 X$ac_file : 'X\(//\)$' \| \
21085 X$ac_file : 'X\(/\)' \| \
21086 . : '\(.\)' 2>/dev/null ||
21088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21090 /^X\(\/\/\)$/{ s//\1/; q; }
21091 /^X\(\/\).*/{ s//\1/; q; }
21092 s/.*/./; q'`/stamp-h$_am_stamp_count
21095 cat >>$CONFIG_STATUS <<\_ACEOF
21098 # CONFIG_COMMANDS section.
21100 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21101 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21102 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21103 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21104 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21105 X"$ac_dest" : 'X\(//\)[^/]' \| \
21106 X"$ac_dest" : 'X\(//\)$' \| \
21107 X"$ac_dest" : 'X\(/\)' \| \
21108 . : '\(.\)' 2>/dev/null ||
21110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21112 /^X\(\/\/\)$/{ s//\1/; q; }
21113 /^X\(\/\).*/{ s//\1/; q; }
21115 { if $as_mkdir_p; then
21120 while test ! -d "$as_dir"; do
21121 as_dirs="$as_dir $as_dirs"
21122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21124 X"$as_dir" : 'X\(//\)[^/]' \| \
21125 X"$as_dir" : 'X\(//\)$' \| \
21126 X"$as_dir" : 'X\(/\)' \| \
21127 . : '\(.\)' 2>/dev/null ||
21129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21131 /^X\(\/\/\)$/{ s//\1/; q; }
21132 /^X\(\/\).*/{ s//\1/; q; }
21135 test ! -n "$as_dirs" || mkdir $as_dirs
21136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21138 { (exit 1); exit 1; }; }; }
21142 if test "$ac_dir" != .; then
21143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21144 # A "../" for each directory in $ac_dir_suffix.
21145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21147 ac_dir_suffix= ac_top_builddir=
21151 .) # No --srcdir option. We are building in place.
21153 if test -z "$ac_top_builddir"; then
21156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21158 [\\/]* | ?:[\\/]* ) # Absolute path.
21159 ac_srcdir=$srcdir$ac_dir_suffix;
21160 ac_top_srcdir=$srcdir ;;
21161 *) # Relative path.
21162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21166 # Do not use `cd foo && pwd` to compute absolute paths, because
21167 # the directories may not exist.
21169 .) ac_abs_builddir="$ac_dir";;
21172 .) ac_abs_builddir=`pwd`;;
21173 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21174 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21177 case $ac_abs_builddir in
21178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21180 case ${ac_top_builddir}. in
21181 .) ac_abs_top_builddir=$ac_abs_builddir;;
21182 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21183 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21186 case $ac_abs_builddir in
21187 .) ac_abs_srcdir=$ac_srcdir;;
21190 .) ac_abs_srcdir=$ac_abs_builddir;;
21191 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21192 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21195 case $ac_abs_builddir in
21196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21198 case $ac_top_srcdir in
21199 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21200 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21201 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21206 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21207 echo "$as_me: executing $ac_dest commands" >&6;}
21210 # Only add multilib support code if we just rebuilt the top-level
21212 case " $CONFIG_FILES " in
21214 ac_file=Makefile . ${multi_basedir}/config-ml.in
21217 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21218 # Strip MF so we end up with the name of the file.
21219 mf=`echo "$mf" | sed -e 's/:.*$//'`
21220 # Check whether this is an Automake generated Makefile or not.
21221 # We used to match only the files named `Makefile.in', but
21222 # some people rename them; so instead we look at the file content.
21223 # Grep'ing the first line is not enough: some people post-process
21224 # each Makefile.in and add a new line on top of each file to say so.
21225 # So let's grep whole file.
21226 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21227 dirpart=`(dirname "$mf") 2>/dev/null ||
21228 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21229 X"$mf" : 'X\(//\)[^/]' \| \
21230 X"$mf" : 'X\(//\)$' \| \
21231 X"$mf" : 'X\(/\)' \| \
21232 . : '\(.\)' 2>/dev/null ||
21234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21236 /^X\(\/\/\)$/{ s//\1/; q; }
21237 /^X\(\/\).*/{ s//\1/; q; }
21242 # Extract the definition of DEPDIR, am__include, and am__quote
21243 # from the Makefile without running `make'.
21244 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21245 test -z "$DEPDIR" && continue
21246 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21247 test -z "am__include" && continue
21248 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21249 # When using ansi2knr, U may be empty or an underscore; expand it
21250 U=`sed -n 's/^U = //p' < "$mf"`
21251 # Find all dependency output files, they are included files with
21252 # $(DEPDIR) in their names. We invoke sed twice because it is the
21253 # simplest approach to changing $(DEPDIR) to its actual value in the
21255 for file in `sed -n "
21256 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21258 # Make sure the directory exists.
21259 test -f "$dirpart/$file" && continue
21260 fdir=`(dirname "$file") 2>/dev/null ||
21261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262 X"$file" : 'X\(//\)[^/]' \| \
21263 X"$file" : 'X\(//\)$' \| \
21264 X"$file" : '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; }
21272 { if $as_mkdir_p; then
21273 mkdir -p $dirpart/$fdir
21275 as_dir=$dirpart/$fdir
21277 while test ! -d "$as_dir"; do
21278 as_dirs="$as_dir $as_dirs"
21279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21281 X"$as_dir" : 'X\(//\)[^/]' \| \
21282 X"$as_dir" : 'X\(//\)$' \| \
21283 X"$as_dir" : 'X\(/\)' \| \
21284 . : '\(.\)' 2>/dev/null ||
21286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21288 /^X\(\/\/\)$/{ s//\1/; q; }
21289 /^X\(\/\).*/{ s//\1/; q; }
21292 test ! -n "$as_dirs" || mkdir $as_dirs
21293 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21294 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21295 { (exit 1); exit 1; }; }; }
21297 # echo "creating $dirpart/$file"
21298 echo '# dummy' > "$dirpart/$file"
21304 # See if we are running on zsh, and set the options which allow our
21305 # commands through without removal of \ escapes.
21306 if test -n "${ZSH_VERSION+set}" ; then
21307 setopt NO_GLOB_SUBST
21310 cfgfile="${ofile}T"
21311 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21314 cat <<_LT_EOF >> "$cfgfile"
21317 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21318 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21319 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21320 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21322 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21323 # 2006, 2007 Free Software Foundation, Inc.
21325 # This file is part of GNU Libtool:
21326 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21328 # This program is free software; you can redistribute it and/or modify
21329 # it under the terms of the GNU General Public License as published by
21330 # the Free Software Foundation; either version 2 of the License, or
21331 # (at your option) any later version.
21333 # This program is distributed in the hope that it will be useful, but
21334 # WITHOUT ANY WARRANTY; without even the implied warranty of
21335 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21336 # General Public License for more details.
21338 # You should have received a copy of the GNU General Public License
21339 # along with this program; if not, a copy can be downloaded from
21340 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21341 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21342 # MA 02110-1301, USA.
21344 # As a special exception to the GNU General Public License, if you
21345 # distribute this file as part of a program that contains a
21346 # configuration script generated by Autoconf, you may include it under
21347 # the same distribution terms that you use for the rest of that program.
21350 # The names of the tagged configurations supported by this script.
21351 available_tags="FC "
21353 # ### BEGIN LIBTOOL CONFIG
21355 # Which release of libtool.m4 was used?
21356 macro_version=$macro_version
21357 macro_revision=$macro_revision
21359 # Whether or not to build shared libraries.
21360 build_libtool_libs=$enable_shared
21362 # Whether or not to build static libraries.
21363 build_old_libs=$enable_static
21365 # What type of objects to build.
21368 # Whether or not to optimize for fast installation.
21369 fast_install=$enable_fast_install
21372 host_alias=$host_alias
21376 # The build system.
21377 build_alias=$build_alias
21381 # A sed program that does not truncate output.
21384 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21385 Xsed="\$SED -e 1s/^X//"
21387 # A grep program that handles long lines.
21393 # A literal string matcher.
21396 # A BSD- or MS-compatible name lister.
21399 # Whether we need soft or hard links.
21402 # What is the maximum length of a command?
21403 max_cmd_len=$max_cmd_len
21405 # Object file suffix (normally "o").
21408 # Executable file suffix (normally "").
21411 # whether the shell understands "unset".
21414 # turn spaces into newlines.
21417 # turn newlines into spaces.
21420 # How to create reloadable object files.
21421 reload_flag=$lt_reload_flag
21422 reload_cmds=$lt_reload_cmds
21424 # Method to check whether dependent libraries are shared objects.
21425 deplibs_check_method=$lt_deplibs_check_method
21427 # Command to use when deplibs_check_method == "file_magic".
21428 file_magic_cmd=$lt_file_magic_cmd
21432 AR_FLAGS=$lt_AR_FLAGS
21434 # A symbol stripping program.
21437 # Commands used to install an old-style archive.
21439 old_postinstall_cmds=$lt_old_postinstall_cmds
21440 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21445 # LTCC compiler flags.
21446 LTCFLAGS=$lt_CFLAGS
21448 # Take the output of nm and produce a listing of raw symbols and C names.
21449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21451 # Transform the output of nm in a proper C declaration.
21452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21454 # Transform the output of nm in a C name address pair.
21455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21457 # The name of the directory that contains temporary libtool files.
21460 # Shell to use when invoking shell scripts.
21463 # An echo program that does not interpret backslashes.
21466 # Used to examine libraries when file_magic_cmd begins with "file".
21467 MAGIC_CMD=$MAGIC_CMD
21469 # Must we lock files when doing compilation?
21470 need_locks=$lt_need_locks
21472 # Old archive suffix (normally "a").
21475 # Shared library suffix (normally ".so").
21476 shrext_cmds=$lt_shrext_cmds
21478 # The commands to extract the exported symbol list from a shared archive.
21479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21481 # Variables whose values should be saved in libtool wrapper scripts and
21482 # restored at link time.
21483 variables_saved_for_relink=$lt_variables_saved_for_relink
21485 # Do we need the "lib" prefix for modules?
21486 need_lib_prefix=$need_lib_prefix
21488 # Do we need a version for libraries?
21489 need_version=$need_version
21491 # Library versioning type.
21492 version_type=$version_type
21494 # Shared library runtime path variable.
21495 runpath_var=$runpath_var
21497 # Shared library path variable.
21498 shlibpath_var=$shlibpath_var
21500 # Is shlibpath searched before the hard-coded library search path?
21501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21503 # Format of library name prefix.
21504 libname_spec=$lt_libname_spec
21506 # List of archive names. First name is the real one, the rest are links.
21507 # The last name is the one that the linker finds with -lNAME
21508 library_names_spec=$lt_library_names_spec
21510 # The coded name of the library, if different from the real name.
21511 soname_spec=$lt_soname_spec
21513 # Command to use after installation of a shared archive.
21514 postinstall_cmds=$lt_postinstall_cmds
21516 # Command to use after uninstallation of a shared archive.
21517 postuninstall_cmds=$lt_postuninstall_cmds
21519 # Commands used to finish a libtool library installation in a directory.
21520 finish_cmds=$lt_finish_cmds
21522 # As "finish_cmds", except a single script fragment to be evaled but
21524 finish_eval=$lt_finish_eval
21526 # Whether we should hardcode library paths into libraries.
21527 hardcode_into_libs=$hardcode_into_libs
21529 # Compile-time system search path for libraries.
21530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21532 # Run-time system search path for libraries.
21533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21535 # Whether dlopen is supported.
21536 dlopen_support=$enable_dlopen
21538 # Whether dlopen of programs is supported.
21539 dlopen_self=$enable_dlopen_self
21541 # Whether dlopen of statically linked programs is supported.
21542 dlopen_self_static=$enable_dlopen_self_static
21544 # Commands to strip libraries.
21545 old_striplib=$lt_old_striplib
21546 striplib=$lt_striplib
21549 # The linker used to build libraries.
21552 # Commands used to build an old-style archive.
21553 old_archive_cmds=$lt_old_archive_cmds
21555 # A language specific compiler.
21558 # Is the compiler the GNU compiler?
21561 # Compiler flag to turn off builtin functions.
21562 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21564 # How to pass a linker flag through the compiler.
21565 wl=$lt_lt_prog_compiler_wl
21567 # Additional compiler flags for building library objects.
21568 pic_flag=$lt_lt_prog_compiler_pic
21570 # Compiler flag to prevent dynamic linking.
21571 link_static_flag=$lt_lt_prog_compiler_static
21573 # Does compiler simultaneously support -c and -o options?
21574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21576 # Whether or not to add -lc for building shared libraries.
21577 build_libtool_need_lc=$archive_cmds_need_lc
21579 # Whether or not to disallow shared libs when runtime libs are static.
21580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21582 # Compiler flag to allow reflexive dlopens.
21583 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21585 # Compiler flag to generate shared objects directly from archives.
21586 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21588 # Whether the compiler copes with passing no objects directly.
21589 compiler_needs_object=$lt_compiler_needs_object
21591 # Create an old-style archive from a shared archive.
21592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21594 # Create a temporary old-style archive to link instead of a shared archive.
21595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21597 # Commands used to build a shared archive.
21598 archive_cmds=$lt_archive_cmds
21599 archive_expsym_cmds=$lt_archive_expsym_cmds
21601 # Commands used to build a loadable module if different from building
21602 # a shared archive.
21603 module_cmds=$lt_module_cmds
21604 module_expsym_cmds=$lt_module_expsym_cmds
21606 # Whether we are building with GNU ld or not.
21607 with_gnu_ld=$lt_with_gnu_ld
21609 # Flag that allows shared libraries with undefined symbols to be built.
21610 allow_undefined_flag=$lt_allow_undefined_flag
21612 # Flag that enforces no undefined symbols.
21613 no_undefined_flag=$lt_no_undefined_flag
21615 # Flag to hardcode \$libdir into a binary during linking.
21616 # This must work even if \$libdir does not exist
21617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21619 # If ld is used when linking, flag to hardcode \$libdir into a binary
21620 # during linking. This must work even if \$libdir does not exist.
21621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21623 # Whether we need a single "-rpath" flag with a separated argument.
21624 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21627 # DIR into the resulting binary.
21628 hardcode_direct=$hardcode_direct
21630 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21631 # DIR into the resulting binary and the resulting library dependency is
21632 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21633 # library is relocated.
21634 hardcode_direct_absolute=$hardcode_direct_absolute
21636 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21637 # into the resulting binary.
21638 hardcode_minus_L=$hardcode_minus_L
21640 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21641 # into the resulting binary.
21642 hardcode_shlibpath_var=$hardcode_shlibpath_var
21644 # Set to "yes" if building a shared library automatically hardcodes DIR
21645 # into the library and all subsequent libraries and executables linked
21647 hardcode_automatic=$hardcode_automatic
21649 # Set to yes if linker adds runtime paths of dependent libraries
21650 # to runtime path list.
21651 inherit_rpath=$inherit_rpath
21653 # Whether libtool must link a program against all its dependency libraries.
21654 link_all_deplibs=$link_all_deplibs
21656 # Fix the shell variable \$srcfile for the compiler.
21657 fix_srcfile_path=$lt_fix_srcfile_path
21659 # Set to "yes" if exported symbols are required.
21660 always_export_symbols=$always_export_symbols
21662 # The commands to list exported symbols.
21663 export_symbols_cmds=$lt_export_symbols_cmds
21665 # Symbols that should not be listed in the preloaded symbols.
21666 exclude_expsyms=$lt_exclude_expsyms
21668 # Symbols that must always be exported.
21669 include_expsyms=$lt_include_expsyms
21671 # Commands necessary for linking programs (against libraries) with templates.
21672 prelink_cmds=$lt_prelink_cmds
21674 # Specify filename containing input files.
21675 file_list_spec=$lt_file_list_spec
21677 # How to hardcode a shared library path into an executable.
21678 hardcode_action=$hardcode_action
21680 # Dependencies to place before and after the objects being linked to
21681 # create a shared library.
21682 predep_objects=$lt_predep_objects
21683 postdep_objects=$lt_postdep_objects
21684 predeps=$lt_predeps
21685 postdeps=$lt_postdeps
21687 # The library search path used internally by the compiler when linking
21688 # a shared library.
21689 compiler_lib_search_path=$lt_compiler_lib_search_path
21691 # ### END LIBTOOL CONFIG
21697 cat <<\_LT_EOF >> "$cfgfile"
21698 # AIX sometimes has problems with the GCC collect2 program. For some
21699 # reason, if we set the COLLECT_NAMES environment variable, the problems
21700 # vanish in a puff of smoke.
21701 if test "X${COLLECT_NAMES+set}" != Xset; then
21703 export COLLECT_NAMES
21710 ltmain="$ac_aux_dir/ltmain.sh"
21713 # We use sed instead of cat because bash on DJGPP gets confused if
21714 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21715 # text mode, it properly converts lines to CR/LF. This bash problem
21716 # is reportedly fixed, but why not run on old versions too?
21717 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21718 || (rm -f "$cfgfile"; exit 1)
21722 cat << \_LT_EOF >> "$cfgfile"
21723 # func_dirname file append nondir_replacement
21724 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21725 # otherwise set result to NONDIR_REPLACEMENT.
21729 */*) func_dirname_result="${1%/*}${2}" ;;
21730 * ) func_dirname_result="${3}" ;;
21734 # func_basename file
21737 func_basename_result="${1##*/}"
21740 # func_stripname prefix suffix name
21741 # strip PREFIX and SUFFIX off of NAME.
21742 # PREFIX and SUFFIX must not contain globbing or regex special
21743 # characters, hashes, percent signs, but SUFFIX may contain a leading
21744 # dot (in which case that matches only a dot).
21747 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21748 # positional parameters, so assign one to ordinary parameter first.
21749 func_stripname_result=${3}
21750 func_stripname_result=${func_stripname_result#"${1}"}
21751 func_stripname_result=${func_stripname_result%"${2}"}
21757 func_opt_split_opt=${1%%=*}
21758 func_opt_split_arg=${1#*=}
21765 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21766 *) func_lo2o_result=${1} ;;
21771 *) # Bourne compatible functions.
21772 cat << \_LT_EOF >> "$cfgfile"
21773 # func_dirname file append nondir_replacement
21774 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21775 # otherwise set result to NONDIR_REPLACEMENT.
21778 # Extract subdirectory from the argument.
21779 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21780 if test "X$func_dirname_result" = "X${1}"; then
21781 func_dirname_result="${3}"
21783 func_dirname_result="$func_dirname_result${2}"
21787 # func_basename file
21790 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21793 # func_stripname prefix suffix name
21794 # strip PREFIX and SUFFIX off of NAME.
21795 # PREFIX and SUFFIX must not contain globbing or regex special
21796 # characters, hashes, percent signs, but SUFFIX may contain a leading
21797 # dot (in which case that matches only a dot).
21798 # func_strip_suffix prefix name
21802 .*) func_stripname_result=`$ECHO "X${3}" \
21803 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21804 *) func_stripname_result=`$ECHO "X${3}" \
21805 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21810 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21811 my_sed_long_arg='1s/^-[^=]*=//'
21816 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21817 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21823 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21828 case $lt_shell_append in
21830 cat << \_LT_EOF >> "$cfgfile"
21832 # func_append var value
21833 # Append VALUE to the end of shell variable VAR.
21841 cat << \_LT_EOF >> "$cfgfile"
21843 # func_append var value
21844 # Append VALUE to the end of shell variable VAR.
21854 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21855 || (rm -f "$cfgfile"; exit 1)
21857 mv -f "$cfgfile" "$ofile" ||
21858 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21862 cat <<_LT_EOF >> "$ofile"
21864 # ### BEGIN LIBTOOL TAG CONFIG: FC
21866 # The linker used to build libraries.
21869 # Commands used to build an old-style archive.
21870 old_archive_cmds=$lt_old_archive_cmds_FC
21872 # A language specific compiler.
21875 # Is the compiler the GNU compiler?
21878 # Compiler flag to turn off builtin functions.
21879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21881 # How to pass a linker flag through the compiler.
21882 wl=$lt_lt_prog_compiler_wl_FC
21884 # Additional compiler flags for building library objects.
21885 pic_flag=$lt_lt_prog_compiler_pic_FC
21887 # Compiler flag to prevent dynamic linking.
21888 link_static_flag=$lt_lt_prog_compiler_static_FC
21890 # Does compiler simultaneously support -c and -o options?
21891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21893 # Whether or not to add -lc for building shared libraries.
21894 build_libtool_need_lc=$archive_cmds_need_lc_FC
21896 # Whether or not to disallow shared libs when runtime libs are static.
21897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21899 # Compiler flag to allow reflexive dlopens.
21900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21902 # Compiler flag to generate shared objects directly from archives.
21903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21905 # Whether the compiler copes with passing no objects directly.
21906 compiler_needs_object=$lt_compiler_needs_object_FC
21908 # Create an old-style archive from a shared archive.
21909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21911 # Create a temporary old-style archive to link instead of a shared archive.
21912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21914 # Commands used to build a shared archive.
21915 archive_cmds=$lt_archive_cmds_FC
21916 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21918 # Commands used to build a loadable module if different from building
21919 # a shared archive.
21920 module_cmds=$lt_module_cmds_FC
21921 module_expsym_cmds=$lt_module_expsym_cmds_FC
21923 # Whether we are building with GNU ld or not.
21924 with_gnu_ld=$lt_with_gnu_ld_FC
21926 # Flag that allows shared libraries with undefined symbols to be built.
21927 allow_undefined_flag=$lt_allow_undefined_flag_FC
21929 # Flag that enforces no undefined symbols.
21930 no_undefined_flag=$lt_no_undefined_flag_FC
21932 # Flag to hardcode \$libdir into a binary during linking.
21933 # This must work even if \$libdir does not exist
21934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21936 # If ld is used when linking, flag to hardcode \$libdir into a binary
21937 # during linking. This must work even if \$libdir does not exist.
21938 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21940 # Whether we need a single "-rpath" flag with a separated argument.
21941 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21944 # DIR into the resulting binary.
21945 hardcode_direct=$hardcode_direct_FC
21947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21948 # DIR into the resulting binary and the resulting library dependency is
21949 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21950 # library is relocated.
21951 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21953 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21954 # into the resulting binary.
21955 hardcode_minus_L=$hardcode_minus_L_FC
21957 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21958 # into the resulting binary.
21959 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21961 # Set to "yes" if building a shared library automatically hardcodes DIR
21962 # into the library and all subsequent libraries and executables linked
21964 hardcode_automatic=$hardcode_automatic_FC
21966 # Set to yes if linker adds runtime paths of dependent libraries
21967 # to runtime path list.
21968 inherit_rpath=$inherit_rpath_FC
21970 # Whether libtool must link a program against all its dependency libraries.
21971 link_all_deplibs=$link_all_deplibs_FC
21973 # Fix the shell variable \$srcfile for the compiler.
21974 fix_srcfile_path=$lt_fix_srcfile_path_FC
21976 # Set to "yes" if exported symbols are required.
21977 always_export_symbols=$always_export_symbols_FC
21979 # The commands to list exported symbols.
21980 export_symbols_cmds=$lt_export_symbols_cmds_FC
21982 # Symbols that should not be listed in the preloaded symbols.
21983 exclude_expsyms=$lt_exclude_expsyms_FC
21985 # Symbols that must always be exported.
21986 include_expsyms=$lt_include_expsyms_FC
21988 # Commands necessary for linking programs (against libraries) with templates.
21989 prelink_cmds=$lt_prelink_cmds_FC
21991 # Specify filename containing input files.
21992 file_list_spec=$lt_file_list_spec_FC
21994 # How to hardcode a shared library path into an executable.
21995 hardcode_action=$hardcode_action_FC
21997 # Dependencies to place before and after the objects being linked to
21998 # create a shared library.
21999 predep_objects=$lt_predep_objects_FC
22000 postdep_objects=$lt_postdep_objects_FC
22001 predeps=$lt_predeps_FC
22002 postdeps=$lt_postdeps_FC
22004 # The library search path used internally by the compiler when linking
22005 # a shared library.
22006 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
22008 # ### END LIBTOOL TAG CONFIG: FC
22013 if test "$GCC" = yes; then
22014 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22016 echo "/* generated for $CC */" > tmp-stdint.h
22019 sed 's/^ *//' >> tmp-stdint.h <<EOF
22021 #ifndef GCC_GENERATED_STDINT_H
22022 #define GCC_GENERATED_STDINT_H 1
22024 #include <sys/types.h>
22027 if test "$acx_cv_header_stdint" != stdint.h; then
22028 echo "#include <stddef.h>" >> tmp-stdint.h
22030 if test "$acx_cv_header_stdint" != stddef.h; then
22031 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22034 sed 's/^ *//' >> tmp-stdint.h <<EOF
22035 /* glibc uses these symbols as guards to prevent redefinitions. */
22036 #ifdef __int8_t_defined
22041 #ifdef __uint32_t_defined
22047 # ----------------- done header, emit basic int types -------------
22048 if test "$acx_cv_header_stdint" = stddef.h; then
22049 sed 's/^ *//' >> tmp-stdint.h <<EOF
22053 #ifndef __uint8_t_defined
22054 #define __uint8_t_defined
22055 typedef unsigned $acx_cv_type_int8_t uint8_t;
22061 #ifndef __uint16_t_defined
22062 #define __uint16_t_defined
22063 typedef unsigned $acx_cv_type_int16_t uint16_t;
22069 #ifndef __uint32_t_defined
22070 #define __uint32_t_defined
22071 typedef unsigned $acx_cv_type_int32_t uint32_t;
22077 #ifndef __int8_t_defined
22078 #define __int8_t_defined
22079 typedef $acx_cv_type_int8_t int8_t;
22085 #ifndef __int16_t_defined
22086 #define __int16_t_defined
22087 typedef $acx_cv_type_int16_t int16_t;
22093 #ifndef __int32_t_defined
22094 #define __int32_t_defined
22095 typedef $acx_cv_type_int32_t int32_t;
22099 elif test "$ac_cv_type_u_int32_t" = yes; then
22100 sed 's/^ *//' >> tmp-stdint.h <<EOF
22102 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22115 #ifndef __uint8_t_defined
22116 #define __uint8_t_defined
22117 typedef u_int8_t uint8_t;
22123 #ifndef __uint16_t_defined
22124 #define __uint16_t_defined
22125 typedef u_int16_t uint16_t;
22131 #ifndef __uint32_t_defined
22132 #define __uint32_t_defined
22133 typedef u_int32_t uint32_t;
22138 sed 's/^ *//' >> tmp-stdint.h <<EOF
22140 /* Some systems have guard macros to prevent redefinitions, define them. */
22162 # ------------- done basic int types, emit int64_t types ------------
22163 if test "$ac_cv_type_uint64_t" = yes; then
22164 sed 's/^ *//' >> tmp-stdint.h <<EOF
22166 /* system headers have good uint64_t and int64_t */
22174 elif test "$ac_cv_type_u_int64_t" = yes; then
22175 sed 's/^ *//' >> tmp-stdint.h <<EOF
22177 /* system headers have an u_int64_t (and int64_t) */
22183 #ifndef __uint64_t_defined
22184 #define __uint64_t_defined
22185 typedef u_int64_t uint64_t;
22189 elif test -n "$acx_cv_type_int64_t"; then
22190 sed 's/^ *//' >> tmp-stdint.h <<EOF
22192 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22195 typedef $acx_cv_type_int64_t int64_t;
22199 #ifndef __uint64_t_defined
22200 #define __uint64_t_defined
22201 typedef unsigned $acx_cv_type_int64_t uint64_t;
22206 sed 's/^ *//' >> tmp-stdint.h <<EOF
22208 /* some common heuristics for int64_t, using compiler-specific tests */
22209 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22212 #ifndef __int64_t_defined
22213 typedef long long int64_t;
22218 typedef unsigned long long uint64_t;
22221 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22222 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22223 does not implement __extension__. But that compiler doesn't define
22225 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22226 # define __extension__
22231 __extension__ typedef long long int64_t;
22235 __extension__ typedef unsigned long long uint64_t;
22238 #elif !defined __STRICT_ANSI__
22239 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22243 typedef __int64 int64_t;
22247 typedef unsigned __int64 uint64_t;
22249 # endif /* compiler */
22251 #endif /* ANSI version */
22255 # ------------- done int64_t types, emit intptr types ------------
22256 if test "$ac_cv_type_uintptr_t" != yes; then
22257 sed 's/^ *//' >> tmp-stdint.h <<EOF
22259 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22260 #ifndef __uintptr_t_defined
22261 typedef u$acx_cv_type_intptr_t uintptr_t;
22263 #ifndef __intptr_t_defined
22264 typedef $acx_cv_type_intptr_t intptr_t;
22269 # ------------- done intptr types, emit int_least types ------------
22270 if test "$ac_cv_type_int_least32_t" != yes; then
22271 sed 's/^ *//' >> tmp-stdint.h <<EOF
22273 /* Define int_least types */
22274 typedef int8_t int_least8_t;
22275 typedef int16_t int_least16_t;
22276 typedef int32_t int_least32_t;
22278 typedef int64_t int_least64_t;
22281 typedef uint8_t uint_least8_t;
22282 typedef uint16_t uint_least16_t;
22283 typedef uint32_t uint_least32_t;
22285 typedef uint64_t uint_least64_t;
22290 # ------------- done intptr types, emit int_fast types ------------
22291 if test "$ac_cv_type_int_fast32_t" != yes; then
22292 sed 's/^ *//' >> tmp-stdint.h <<EOF
22294 /* Define int_fast types. short is often slow */
22295 typedef int8_t int_fast8_t;
22296 typedef int int_fast16_t;
22297 typedef int32_t int_fast32_t;
22299 typedef int64_t int_fast64_t;
22302 typedef uint8_t uint_fast8_t;
22303 typedef unsigned int uint_fast16_t;
22304 typedef uint32_t uint_fast32_t;
22306 typedef uint64_t uint_fast64_t;
22311 if test "$ac_cv_type_uintmax_t" != yes; then
22312 sed 's/^ *//' >> tmp-stdint.h <<EOF
22314 /* Define intmax based on what we found */
22316 typedef int64_t intmax_t;
22318 typedef long intmax_t;
22321 typedef uint64_t uintmax_t;
22323 typedef unsigned long uintmax_t;
22328 sed 's/^ *//' >> tmp-stdint.h <<EOF
22330 #endif /* GCC_GENERATED_STDINT_H */
22333 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22336 mv -f tmp-stdint.h gstdint.h
22344 cat >>$CONFIG_STATUS <<\_ACEOF
22346 { (exit 0); exit 0; }
22348 chmod +x $CONFIG_STATUS
22349 ac_clean_files=$ac_clean_files_save
22352 # configure is writing to config.log, and then calls config.status.
22353 # config.status does its own redirection, appending to config.log.
22354 # Unfortunately, on DOS this fails, as config.log is still kept open
22355 # by configure, so config.status won't be able to write to it; its
22356 # output is simply discarded. So we exec the FD to /dev/null,
22357 # effectively closing config.log, so it can be properly (re)opened and
22358 # appended to by config.status. When coming back to configure, we
22359 # need to make the FD available again.
22360 if test "$no_create" != yes; then
22362 ac_config_status_args=
22363 test "$silent" = yes &&
22364 ac_config_status_args="$ac_config_status_args --quiet"
22366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22369 # would make configure fail if this is the last instruction.
22370 $ac_cs_success || { (exit 1); exit 1; }