2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for [Stacker] [1.0].
5 # Report bugs to <rspencer@x10sys.com>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='[Stacker]'
425 PACKAGE_TARNAME='--stacker--'
426 PACKAGE_VERSION='[1.0]'
427 PACKAGE_STRING='[Stacker] [1.0]'
428 PACKAGE_BUGREPORT='rspencer@x10sys.com'
430 ac_unique_file="lib/compiler/StackerParser.y"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SHLIBEXT LLVM_SRC LLVM_OBJ LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
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
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures [Stacker] [1.0] to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [Stacker] [1.0]:";;
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
1031 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1036 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1037 --with-pic try to use only PIC/non-PIC objects [default=use
1040 include additional configurations [automatic]
1041 --with-llvmsrc Location of LLVM Source Code
1042 --with-llvmobj Location of LLVM Object Code
1044 Some influential environment variables:
1045 CC C compiler command
1046 CFLAGS C compiler flags
1047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1048 nonstandard directory <lib dir>
1049 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1050 headers in a nonstandard directory <include dir>
1052 CXX C++ compiler command
1053 CXXFLAGS C++ compiler flags
1054 CXXCPP C++ preprocessor
1055 F77 Fortran 77 compiler command
1056 FFLAGS Fortran 77 compiler flags
1058 Use these variables to override the choices made by `configure' or to help
1059 it to find libraries and programs with nonstandard names/locations.
1061 Report bugs to <rspencer@x10sys.com>.
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077 ac_dir_suffix= ac_top_builddir=
1081 .) # No --srcdir option. We are building in place.
1083 if test -z "$ac_top_builddir"; then
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1099 .) ac_abs_builddir="$ac_dir";;
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1146 $ac_configure --help
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1157 [Stacker] configure [1.0]
1158 generated by GNU Autoconf 2.59
1160 Copyright (C) 2003 Free Software Foundation, Inc.
1161 This configure script is free software; the Free Software Foundation
1162 gives unlimited permission to copy, distribute and modify it.
1168 This file contains any messages produced by compilers while
1169 running configure, to aid debugging if configure makes a mistake.
1171 It was created by [Stacker] $as_me [1.0], which was
1172 generated by GNU Autoconf 2.59. Invocation command line was
1183 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1192 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1193 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1194 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1196 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1197 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1198 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206 test -z "$as_dir" && as_dir=.
1207 echo "PATH: $as_dir"
1222 # Keep a trace of the command line.
1223 # Strip out --no-create and --no-recursion so they do not pile up.
1224 # Strip out --silent because we don't want to record it for future runs.
1225 # Also quote any args containing shell meta-characters.
1226 # Make two passes to allow for proper duplicate-argument suppression.
1231 ac_must_keep_next=false
1237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1241 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248 if test $ac_must_keep_next = true; then
1249 ac_must_keep_next=false # Got value, back to normal.
1252 *=* | --config-cache | -C | -disable-* | --disable-* \
1253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255 | -with-* | --with-* | -without-* | --without-* | --x)
1256 case "$ac_configure_args0 " in
1257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260 -* ) ac_must_keep_next=true ;;
1263 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264 # Get rid of the leading space.
1270 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273 # When interrupted or exit'd, cleanup temporary files, and complete
1274 # config.log. We remove comments because anyway the quotes in there
1275 # would cause problems or look ugly.
1276 # WARNING: Be sure not to use single quotes in there, as some shells,
1277 # such as our DU 5.0 friend, will then `close' the trap.
1278 trap 'exit_status=$?
1279 # Save into config.log some information that might help in debugging.
1284 ## ---------------- ##
1285 ## Cache variables. ##
1286 ## ---------------- ##
1289 # The following way of writing the cache mishandles newlines in values,
1292 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307 ## ----------------- ##
1308 ## Output variables. ##
1309 ## ----------------- ##
1312 for ac_var in $ac_subst_vars
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1319 if test -n "$ac_subst_files"; then
1326 for ac_var in $ac_subst_files
1328 eval ac_val=$`echo $ac_var`
1329 echo "$ac_var='"'"'$ac_val'"'"'"
1334 if test -s confdefs.h; then
1341 sed "/^$/d" confdefs.h | sort
1344 test "$ac_signal" != 0 &&
1345 echo "$as_me: caught signal $ac_signal"
1346 echo "$as_me: exit $exit_status"
1348 rm -f core *.core &&
1349 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352 for ac_signal in 1 2 13 15; do
1353 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1358 rm -rf conftest* confdefs.h
1359 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 # Predefined preprocessor variables.
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_NAME "$PACKAGE_NAME"
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_STRING "$PACKAGE_STRING"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389 # Let the site file select an alternate cache file if it wants to.
1390 # Prefer explicitly selected file to automatically selected ones.
1391 if test -z "$CONFIG_SITE"; then
1392 if test "x$prefix" != xNONE; then
1393 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398 for ac_site_file in $CONFIG_SITE; do
1399 if test -r "$ac_site_file"; then
1400 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401 echo "$as_me: loading site script $ac_site_file" >&6;}
1402 sed 's/^/| /' "$ac_site_file" >&5
1407 if test -r "$cache_file"; then
1408 # Some versions of bash will fail to source /dev/null (special
1409 # files actually), so we avoid doing that.
1410 if test -f "$cache_file"; then
1411 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412 echo "$as_me: loading cache $cache_file" >&6;}
1414 [\\/]* | ?:[\\/]* ) . $cache_file;;
1415 *) . ./$cache_file;;
1419 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420 echo "$as_me: creating cache $cache_file" >&6;}
1424 # Check that the precious variables saved in the cache have kept the same
1426 ac_cache_corrupted=false
1427 for ac_var in `(set) 2>&1 |
1428 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430 eval ac_new_set=\$ac_env_${ac_var}_set
1431 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432 eval ac_new_val="\$ac_env_${ac_var}_value"
1433 case $ac_old_set,$ac_new_set in
1435 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437 ac_cache_corrupted=: ;;
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1444 if test "x$ac_old_val" != "x$ac_new_val"; then
1445 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1448 echo "$as_me: former value: $ac_old_val" >&2;}
1449 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1450 echo "$as_me: current value: $ac_new_val" >&2;}
1451 ac_cache_corrupted=:
1454 # Pass precious variables to config.status.
1455 if test "$ac_new_set" = set; then
1457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459 *) ac_arg=$ac_var=$ac_new_val ;;
1461 case " $ac_configure_args " in
1462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1463 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467 if $ac_cache_corrupted; then
1468 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472 { (exit 1); exit 1; }; }
1476 ac_cpp='$CPP $CPPFLAGS'
1477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509 for ac_dir in autoconf $srcdir/autoconf; do
1510 if test -f $ac_dir/install-sh; then
1512 ac_install_sh="$ac_aux_dir/install-sh -c"
1514 elif test -f $ac_dir/install.sh; then
1516 ac_install_sh="$ac_aux_dir/install.sh -c"
1518 elif test -f $ac_dir/shtool; then
1520 ac_install_sh="$ac_aux_dir/shtool install -c"
1524 if test -z "$ac_aux_dir"; then
1525 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1526 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1527 { (exit 1); exit 1; }; }
1529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1536 ac_config_files="$ac_config_files Makefile.common"
1540 ac_config_commands="$ac_config_commands Makefile"
1543 ac_config_commands="$ac_config_commands lib/Makefile"
1546 ac_config_commands="$ac_config_commands lib/compiler/Makefile"
1549 ac_config_commands="$ac_config_commands lib/runtime/Makefile"
1552 ac_config_commands="$ac_config_commands test/Makefile"
1555 ac_config_commands="$ac_config_commands tools/Makefile"
1558 ac_config_commands="$ac_config_commands tools/stkrc/Makefile"
1563 # Check whether --enable-shared or --disable-shared was given.
1564 if test "${enable_shared+set}" = set; then
1565 enableval="$enable_shared"
1566 p=${PACKAGE-default}
1568 yes) enable_shared=yes ;;
1569 no) enable_shared=no ;;
1572 # Look at the argument we got. We use all the common list separators.
1573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1574 for pkg in $enableval; do
1576 if test "X$pkg" = "X$p"; then
1587 # Check whether --enable-static or --disable-static was given.
1588 if test "${enable_static+set}" = set; then
1589 enableval="$enable_static"
1590 p=${PACKAGE-default}
1592 yes) enable_static=yes ;;
1593 no) enable_static=no ;;
1596 # Look at the argument we got. We use all the common list separators.
1597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1598 for pkg in $enableval; do
1600 if test "X$pkg" = "X$p"; then
1611 # Check whether --enable-fast-install or --disable-fast-install was given.
1612 if test "${enable_fast_install+set}" = set; then
1613 enableval="$enable_fast_install"
1614 p=${PACKAGE-default}
1616 yes) enable_fast_install=yes ;;
1617 no) enable_fast_install=no ;;
1619 enable_fast_install=no
1620 # Look at the argument we got. We use all the common list separators.
1621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1622 for pkg in $enableval; do
1624 if test "X$pkg" = "X$p"; then
1625 enable_fast_install=yes
1632 enable_fast_install=yes
1635 # Make sure we can run config.sub.
1636 $ac_config_sub sun4 >/dev/null 2>&1 ||
1637 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1638 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1639 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: checking build system type" >&5
1642 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1643 if test "${ac_cv_build+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_build_alias=$build_alias
1647 test -z "$ac_cv_build_alias" &&
1648 ac_cv_build_alias=`$ac_config_guess`
1649 test -z "$ac_cv_build_alias" &&
1650 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1651 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1652 { (exit 1); exit 1; }; }
1653 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1660 echo "${ECHO_T}$ac_cv_build" >&6
1662 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667 echo "$as_me:$LINENO: checking host system type" >&5
1668 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1669 if test "${ac_cv_host+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 ac_cv_host_alias=$host_alias
1673 test -z "$ac_cv_host_alias" &&
1674 ac_cv_host_alias=$ac_cv_build_alias
1675 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1676 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1677 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1678 { (exit 1); exit 1; }; }
1681 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1682 echo "${ECHO_T}$ac_cv_host" >&6
1684 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690 ac_cpp='$CPP $CPPFLAGS'
1691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_CC"; then
1733 # Extract the first word of "gcc", so it can be a program name with args.
1734 set dummy gcc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="gcc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1773 if test -z "$CC"; then
1774 if test -n "$ac_tool_prefix"; then
1775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1776 set dummy ${ac_tool_prefix}cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_CC="${ac_tool_prefix}cc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 if test -n "$CC"; then
1803 echo "$as_me:$LINENO: result: $CC" >&5
1804 echo "${ECHO_T}$CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1811 if test -z "$ac_cv_prog_CC"; then
1813 # Extract the first word of "cc", so it can be a program name with args.
1814 set dummy cc; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 if test -n "$ac_ct_CC"; then
1821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_ac_ct_CC="cc"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1840 if test -n "$ac_ct_CC"; then
1841 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1842 echo "${ECHO_T}$ac_ct_CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1854 if test -z "$CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1874 ac_prog_rejected=yes
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test $ac_prog_rejected = yes; then
1885 # We found a bogon in the path, so make sure we never use it.
1886 set dummy $ac_cv_prog_CC
1888 if test $# != 0; then
1889 # We chose a different compiler from the bogus one.
1890 # However, it has the same basename, so the bogon will be chosen
1891 # first if we set CC to just the basename; use the full file name.
1893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$CC"; then
1909 if test -n "$ac_tool_prefix"; then
1912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 if test -n "$CC"; then
1940 echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1947 test -n "$CC" && break
1950 if test -z "$CC"; then
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$ac_ct_CC" && break
1998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1999 See \`config.log' for more details." >&5
2000 echo "$as_me: error: no acceptable C compiler found in \$PATH
2001 See \`config.log' for more details." >&2;}
2002 { (exit 1); exit 1; }; }
2004 # Provide some information about the compiler.
2005 echo "$as_me:$LINENO:" \
2006 "checking for C compiler version" >&5
2007 ac_compiler=`set X $ac_compile; echo $2`
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009 (eval $ac_compiler --version </dev/null >&5) 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014 (eval $ac_compiler -v </dev/null >&5) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019 (eval $ac_compiler -V </dev/null >&5) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2024 cat >conftest.$ac_ext <<_ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2039 ac_clean_files_save=$ac_clean_files
2040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041 # Try to create an executable without -o first, disregard a.out.
2042 # It will help us diagnose broken compilers, and finding out an intuition
2044 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2047 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2048 (eval $ac_link_default) 2>&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; then
2052 # Find the output, starting from the most likely. This scheme is
2053 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2056 # Be careful to initialize this variable, since it used to be cached.
2057 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2059 # b.out is created by i960 compilers.
2060 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2062 test -f "$ac_file" || continue
2064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2067 # This is the source file.
2070 # We found the default executable, but exeext='' is most
2074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 # FIXME: I believe we export ac_cv_exeext for Libtool,
2076 # but it would be cool to find out if it's true. Does anybody
2077 # maintain Libtool? --akim.
2085 echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: C compiler cannot create executables
2091 See \`config.log' for more details." >&2;}
2092 { (exit 77); exit 77; }; }
2095 ac_exeext=$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_file" >&5
2097 echo "${ECHO_T}$ac_file" >&6
2099 # Check the compiler produces executables we can run. If not, either
2100 # the compiler is broken, or we cross compile.
2101 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2104 # If not cross compiling, check that we can run a simple program.
2105 if test "$cross_compiling" != yes; then
2106 if { ac_try='./$ac_file'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2114 if test "$cross_compiling" = maybe; then
2117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: cannot run C compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2127 echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6
2130 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2131 ac_clean_files=$ac_clean_files_save
2132 # Check the compiler produces executables we can run. If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2136 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2137 echo "${ECHO_T}$cross_compiling" >&6
2139 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2142 (eval $ac_link) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2148 # work properly (i.e., refer to `conftest.exe'), while it won't with
2150 for ac_file in conftest.exe conftest conftest.*; do
2151 test -f "$ac_file" || continue
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2164 See \`config.log' for more details." >&2;}
2165 { (exit 1); exit 1; }; }
2168 rm -f conftest$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170 echo "${ECHO_T}$ac_cv_exeext" >&6
2172 rm -f conftest.$ac_ext
2173 EXEEXT=$ac_cv_exeext
2175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177 if test "${ac_cv_objext+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 cat >conftest.$ac_ext <<_ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2195 rm -f conftest.o conftest.obj
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2215 See \`config.log' for more details." >&2;}
2216 { (exit 1); exit 1; }; }
2219 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222 echo "${ECHO_T}$ac_cv_objext" >&6
2223 OBJEXT=$ac_cv_objext
2225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 cat >conftest.$ac_ext <<_ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2252 grep -v '^ *+' conftest.er1 >conftest.err
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2283 GCC=`test $ac_compiler_gnu = yes && echo yes`
2284 ac_test_CFLAGS=${CFLAGS+set}
2285 ac_save_CFLAGS=$CFLAGS
2287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2289 if test "${ac_cv_prog_cc_g+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2311 grep -v '^ *+' conftest.er1 >conftest.err
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340 if test "$ac_test_CFLAGS" = set; then
2341 CFLAGS=$ac_save_CFLAGS
2342 elif test $ac_cv_prog_cc_g = yes; then
2343 if test "$GCC" = yes; then
2349 if test "$GCC" = yes; then
2355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 ac_cv_prog_cc_stdc=no
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2370 #include <sys/types.h>
2371 #include <sys/stat.h>
2372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2373 struct buf { int x; };
2374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2375 static char *e (p, i)
2381 static char *f (char * (*g) (char **, int), char **p, ...)
2386 s = g (p, va_arg (v,int));
2391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2392 function prototypes and stuff, but not '\xHH' hex character constants.
2393 These don't provoke an error unfortunately, instead are silently treated
2394 as 'x'. The following induces an error, until -std1 is added to get
2395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2396 array size at least. It's necessary to write '\x00'==0 to get something
2397 that's true only with -std1. */
2398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2400 int test (int i, double x);
2401 struct s1 {int (*f) (int a);};
2402 struct s2 {int (*f) (double a);};
2403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2414 # Don't try gcc -ansi; that turns off useful extensions and
2415 # breaks some systems' header files.
2416 # AIX -qlanglvl=ansi
2417 # Ultrix and OSF/1 -std1
2418 # HP-UX 10.20 and later -Ae
2419 # HP-UX older versions -Aa -D_HPUX_SOURCE
2420 # SVR4 -Xc -D__EXTENSIONS__
2421 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2423 CC="$ac_save_CC $ac_arg"
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2428 grep -v '^ *+' conftest.er1 >conftest.err
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 ac_cv_prog_cc_stdc=$ac_arg
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f conftest.err conftest.$ac_objext
2455 rm -f conftest.$ac_ext conftest.$ac_objext
2460 case "x$ac_cv_prog_cc_stdc" in
2462 echo "$as_me:$LINENO: result: none needed" >&5
2463 echo "${ECHO_T}none needed" >&6 ;;
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2467 CC="$CC $ac_cv_prog_cc_stdc" ;;
2470 # Some people use a C++ compiler to compile C. Since we use `exit',
2471 # in C++ we need to declare it. In case someone uses the same compiler
2472 # for both compiling C and C++ we need to have the C++ compiler decide
2473 # the declaration of exit, since it's the most demanding environment.
2474 cat >conftest.$ac_ext <<_ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481 (eval $ac_compile) 2>conftest.er1
2483 grep -v '^ *+' conftest.er1 >conftest.err
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -z "$ac_c_werror_flag"
2489 || test ! -s conftest.err'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 for ac_declaration in \
2503 'extern "C" void std::exit (int) throw (); using std::exit;' \
2504 'extern "C" void std::exit (int); using std::exit;' \
2505 'extern "C" void exit (int) throw ();' \
2506 'extern "C" void exit (int);' \
2509 cat >conftest.$ac_ext <<_ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 cat >conftest.$ac_ext <<_ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2574 grep -v '^ *+' conftest.er1 >conftest.err
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601 if test -n "$ac_declaration"; then
2602 echo '#ifdef __cplusplus' >>confdefs.h
2603 echo $ac_declaration >>confdefs.h
2604 echo '#endif' >>confdefs.h
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2620 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2621 if test "${lt_cv_path_SED+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 # Loop through the user's path and test for sed and gsed.
2625 # Then use that list of sed's as ones to test for truncation.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for lt_ac_prog in sed gsed; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2634 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2641 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2642 # along with /bin/sed that truncates output.
2643 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2644 test ! -f $lt_ac_sed && break
2645 cat /dev/null > conftest.in
2647 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2648 # Check for GNU sed and select it if it is found.
2649 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2650 lt_cv_path_SED=$lt_ac_sed
2654 cat conftest.in conftest.in >conftest.tmp
2655 mv conftest.tmp conftest.in
2656 cp conftest.in conftest.nl
2658 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2659 cmp -s conftest.out conftest.nl || break
2660 # 10000 chars as input seems more than enough
2661 test $lt_ac_count -gt 10 && break
2662 lt_ac_count=`expr $lt_ac_count + 1`
2663 if test $lt_ac_count -gt $lt_ac_max; then
2664 lt_ac_max=$lt_ac_count
2665 lt_cv_path_SED=$lt_ac_sed
2673 echo "$as_me:$LINENO: result: $SED" >&5
2674 echo "${ECHO_T}$SED" >&6
2676 echo "$as_me:$LINENO: checking for egrep" >&5
2677 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2678 if test "${ac_cv_prog_egrep+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2682 then ac_cv_prog_egrep='grep -E'
2683 else ac_cv_prog_egrep='egrep'
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2687 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2688 EGREP=$ac_cv_prog_egrep
2692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2693 if test "${with_gnu_ld+set}" = set; then
2694 withval="$with_gnu_ld"
2695 test "$withval" = no || with_gnu_ld=yes
2700 if test "$GCC" = yes; then
2701 # Check if gcc -print-prog-name=ld gives a path.
2702 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2703 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2706 # gcc leaves a trailing carriage return which upsets mingw
2707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2712 # Accept absolute paths.
2714 re_direlt='/[^/][^/]*/\.\./'
2715 # Canonicalize the path of ld
2716 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2717 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2718 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2720 test -z "$LD" && LD="$ac_prog"
2723 # If it fails, then pretend we aren't using GCC.
2727 # If it is relative, then search for the first ld in PATH.
2731 elif test "$with_gnu_ld" = yes; then
2732 echo "$as_me:$LINENO: checking for GNU ld" >&5
2733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2735 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2738 if test "${lt_cv_path_LD+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -z "$LD"; then
2742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2743 for ac_dir in $PATH; do
2745 test -z "$ac_dir" && ac_dir=.
2746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2747 lt_cv_path_LD="$ac_dir/$ac_prog"
2748 # Check to see if the program is GNU ld. I'd rather use --version,
2749 # but apparently some GNU ld's only accept -v.
2750 # Break only if it was the GNU/non-GNU ld that we prefer.
2751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2752 *GNU* | *'with BFD'*)
2753 test "$with_gnu_ld" != no && break
2756 test "$with_gnu_ld" != yes && break
2763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2768 if test -n "$LD"; then
2769 echo "$as_me:$LINENO: result: $LD" >&5
2770 echo "${ECHO_T}$LD" >&6
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2775 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2776 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2777 { (exit 1); exit 1; }; }
2778 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2779 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2780 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2784 case `"$LD" -v 2>&1 </dev/null` in
2785 *GNU* | *'with BFD'*)
2786 lt_cv_prog_gnu_ld=yes
2789 lt_cv_prog_gnu_ld=no
2793 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2794 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2795 with_gnu_ld=$lt_cv_prog_gnu_ld
2798 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2799 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2800 if test "${lt_cv_ld_reload_flag+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 lt_cv_ld_reload_flag='-r'
2805 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2806 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2807 reload_flag=$lt_cv_ld_reload_flag
2808 case $reload_flag in
2810 *) reload_flag=" $reload_flag" ;;
2812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2814 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2815 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2816 if test "${lt_cv_path_NM+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$NM"; then
2820 # Let the user override the test.
2823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2824 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2826 test -z "$ac_dir" && ac_dir=.
2827 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2828 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2829 # Check to see if the nm accepts a BSD-compat flag.
2830 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2831 # nm: unknown option "B" ignored
2832 # Tru64's nm complains that /dev/null is an invalid object file
2833 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2834 */dev/null* | *'Invalid file or object type'*)
2835 lt_cv_path_NM="$tmp_nm -B"
2839 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2841 lt_cv_path_NM="$tmp_nm -p"
2845 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2846 continue # so that we can try to find one that supports BSD flags
2853 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2856 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2857 echo "${ECHO_T}$lt_cv_path_NM" >&6
2860 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2861 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2863 if test "$LN_S" = "ln -s"; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2867 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2868 echo "${ECHO_T}no, using $LN_S" >&6
2871 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2872 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2873 if test "${lt_cv_deplibs_check_method+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 lt_cv_file_magic_cmd='$MAGIC_CMD'
2877 lt_cv_file_magic_test_file=
2878 lt_cv_deplibs_check_method='unknown'
2879 # Need to set the preceding variable on all platforms that support
2880 # interlibrary dependencies.
2881 # 'none' -- dependencies not supported.
2882 # `unknown' -- same as none, but documents that we really don't know.
2883 # 'pass_all' -- all dependencies passed with no checks.
2884 # 'test_compile' -- check by making test program.
2885 # 'file_magic [[regex]]' -- check by looking for files in library path
2886 # which responds to the $file_magic_cmd with a given extended regex.
2887 # If you have `file' or equivalent on your system and you're not sure
2888 # whether `pass_all' will *always* work, you probably want this one.
2892 lt_cv_deplibs_check_method=pass_all
2896 lt_cv_deplibs_check_method=pass_all
2900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2901 lt_cv_file_magic_cmd='/usr/bin/file -L'
2902 lt_cv_file_magic_test_file=/shlib/libc.so
2905 cygwin* | mingw* | pw32*)
2906 # win32_libid is a shell function defined in ltmain.sh
2907 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2908 lt_cv_file_magic_cmd='win32_libid'
2911 darwin* | rhapsody*)
2912 # this will be overwritten by pass_all, but leave it in just in case
2913 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2914 lt_cv_file_magic_cmd='/usr/bin/file -L'
2916 rhapsody* | darwin1.[012])
2917 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2920 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2923 lt_cv_deplibs_check_method=pass_all
2927 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2930 # Not sure whether the presence of OpenBSD here was a mistake.
2931 # Let's accept both of them until this is cleared up.
2932 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2933 lt_cv_file_magic_cmd=/usr/bin/file
2934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2938 lt_cv_deplibs_check_method=pass_all
2943 lt_cv_deplibs_check_method=pass_all
2946 hpux10.20* | hpux11*)
2947 lt_cv_file_magic_cmd=/usr/bin/file
2950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2951 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2954 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]'
2955 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2958 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2959 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2964 irix5* | irix6* | nonstopux*)
2966 irix5* | nonstopux*)
2967 # this will be overridden with pass_all, but let us keep it just in case
2968 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2972 *-32|*"-32 ") libmagic=32-bit;;
2973 *-n32|*"-n32 ") libmagic=N32;;
2974 *-64|*"-64 ") libmagic=64-bit;;
2975 *) libmagic=never-match;;
2977 # this will be overridden with pass_all, but let us keep it just in case
2978 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2981 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2982 lt_cv_deplibs_check_method=pass_all
2985 # This must be Linux ELF.
2988 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2989 lt_cv_deplibs_check_method=pass_all ;;
2991 # glibc up to 2.1.1 does not perform some relocations on ARM
2992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2994 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2998 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3007 lt_cv_file_magic_cmd=/usr/bin/file
3008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3012 lt_cv_deplibs_check_method=unknown
3016 lt_cv_file_magic_cmd=/usr/bin/file
3017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3021 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3025 osf3* | osf4* | osf5*)
3026 # this will be overridden with pass_all, but let us keep it just in case
3027 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3028 lt_cv_file_magic_test_file=/shlib/libc.so
3029 lt_cv_deplibs_check_method=pass_all
3033 lt_cv_deplibs_check_method=pass_all
3037 lt_cv_deplibs_check_method=pass_all
3038 lt_cv_file_magic_test_file=/lib/libc.so
3041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3042 case $host_vendor in
3044 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]'
3045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3048 lt_cv_deplibs_check_method=pass_all
3051 lt_cv_file_magic_cmd='/bin/file'
3052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3055 lt_cv_file_magic_cmd='/bin/file'
3056 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3057 lt_cv_file_magic_test_file=/lib/libc.so
3060 lt_cv_deplibs_check_method=pass_all
3065 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3066 lt_cv_deplibs_check_method=pass_all
3071 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3072 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3073 file_magic_cmd=$lt_cv_file_magic_cmd
3074 deplibs_check_method=$lt_cv_deplibs_check_method
3075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3080 # If no C compiler was specified, use CC.
3083 # Allow CC to be a program name with arguments.
3087 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3088 if test "${enable_libtool_lock+set}" = set; then
3089 enableval="$enable_libtool_lock"
3092 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3094 # Some flags need to be propagated to the compiler or linker for good
3098 # Find out which ABI we are using.
3099 echo 'int i;' > conftest.$ac_ext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 case `/usr/bin/file conftest.$ac_objext` in
3117 # Find out which ABI we are using.
3118 echo '#line 3118 "configure"' > conftest.$ac_ext
3119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; then
3124 if test "$lt_cv_prog_gnu_ld" = yes; then
3125 case `/usr/bin/file conftest.$ac_objext` in
3127 LD="${LD-ld} -melf32bsmip"
3130 LD="${LD-ld} -melf32bmipn32"
3133 LD="${LD-ld} -melf64bmip"
3137 case `/usr/bin/file conftest.$ac_objext` in
3153 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3154 # Find out which ABI we are using.
3155 echo 'int i;' > conftest.$ac_ext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; then
3161 case "`/usr/bin/file conftest.o`" in
3165 LD="${LD-ld} -m elf_i386"
3168 LD="${LD-ld} -m elf32ppclinux"
3171 LD="${LD-ld} -m elf_s390"
3174 LD="${LD-ld} -m elf32_sparc"
3181 LD="${LD-ld} -m elf_x86_64"
3183 ppc*-*linux*|powerpc*-*linux*)
3184 LD="${LD-ld} -m elf64ppc"
3187 LD="${LD-ld} -m elf64_s390"
3190 LD="${LD-ld} -m elf64_sparc"
3200 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3201 SAVE_CFLAGS="$CFLAGS"
3202 CFLAGS="$CFLAGS -belf"
3203 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3204 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3205 if test "${lt_cv_cc_needs_belf+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3229 rm -f conftest.$ac_objext conftest$ac_exeext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3231 (eval $ac_link) 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag"
3239 || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest$ac_exeext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 lt_cv_cc_needs_belf=yes
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 lt_cv_cc_needs_belf=no
3258 rm -f conftest.err conftest.$ac_objext \
3259 conftest$ac_exeext conftest.$ac_ext
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3268 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3269 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3270 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3271 CFLAGS="$SAVE_CFLAGS"
3277 need_locks="$enable_libtool_lock"
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3291 if test -z "$CPP"; then
3292 if test "${ac_cv_prog_CPP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 # Double quotes because CPP needs to be expanded
3296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3299 for ac_c_preproc_warn_flag in '' yes
3301 # Use a header file that comes with gcc, so configuring glibc
3302 # with a fresh cross-compiler works.
3303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 # <limits.h> exists even on freestanding compilers.
3305 # On the NeXT, cc -E runs the code through the compiler's parser,
3306 # not just through cpp. "Syntax error" is here to catch this case.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 # include <limits.h>
3316 # include <assert.h>
3320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337 if test -z "$ac_cpp_err"; then
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 # Broken: fails on valid input.
3346 rm -f conftest.err conftest.$ac_ext
3348 # OK, works on sane cases. Now check whether non-existent headers
3349 # can be detected and how.
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3356 #include <ac_nonexistent.h>
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375 if test -z "$ac_cpp_err"; then
3376 # Broken: success on invalid input.
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Passes both tests.
3386 rm -f conftest.err conftest.$ac_ext
3389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390 rm -f conftest.err conftest.$ac_ext
3391 if $ac_preproc_ok; then
3403 echo "$as_me:$LINENO: result: $CPP" >&5
3404 echo "${ECHO_T}$CPP" >&6
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 # include <limits.h>
3423 # include <assert.h>
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 if test -z "$ac_cpp_err"; then
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Broken: fails on valid input.
3453 rm -f conftest.err conftest.$ac_ext
3455 # OK, works on sane cases. Now check whether non-existent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482 if test -z "$ac_cpp_err"; then
3483 # Broken: success on invalid input.
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Passes both tests.
3493 rm -f conftest.err conftest.$ac_ext
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3501 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3502 See \`config.log' for more details." >&5
3503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3504 See \`config.log' for more details." >&2;}
3505 { (exit 1); exit 1; }; }
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_cv_header_stdc=yes
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 ac_cv_header_stdc=no
3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 if test $ac_cv_header_stdc = yes; then
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 $EGREP "memchr" >/dev/null 2>&1; then
3585 ac_cv_header_stdc=no
3591 if test $ac_cv_header_stdc = yes; then
3592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "free" >/dev/null 2>&1; then
3606 ac_cv_header_stdc=no
3612 if test $ac_cv_header_stdc = yes; then
3613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3614 if test "$cross_compiling" = yes; then
3617 cat >conftest.$ac_ext <<_ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3624 #if ((' ' & 0x0FF) == 0x020)
3625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3628 # define ISLOWER(c) \
3629 (('a' <= (c) && (c) <= 'i') \
3630 || ('j' <= (c) && (c) <= 'r') \
3631 || ('s' <= (c) && (c) <= 'z'))
3632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3640 for (i = 0; i < 256; i++)
3641 if (XOR (islower (i), ISLOWER (i))
3642 || toupper (i) != TOUPPER (i))
3647 rm -f conftest$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3660 echo "$as_me: program exited with status $ac_status" >&5
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3665 ac_cv_header_stdc=no
3667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3672 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3673 if test $ac_cv_header_stdc = yes; then
3675 cat >>confdefs.h <<\_ACEOF
3676 #define STDC_HEADERS 1
3681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3691 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3692 inttypes.h stdint.h unistd.h
3694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3695 echo "$as_me:$LINENO: checking for $ac_header" >&5
3696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 $ac_includes_default
3708 #include <$ac_header>
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3714 grep -v '^ *+' conftest.er1 >conftest.err
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 eval "$as_ac_Header=yes"
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 eval "$as_ac_Header=no"
3739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3744 cat >>confdefs.h <<_ACEOF
3745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3754 for ac_header in dlfcn.h
3756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3758 echo "$as_me:$LINENO: checking for $ac_header" >&5
3759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3766 # Is the header compilable?
3767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775 $ac_includes_default
3776 #include <$ac_header>
3778 rm -f conftest.$ac_objext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3780 (eval $ac_compile) 2>conftest.er1
3782 grep -v '^ *+' conftest.er1 >conftest.err
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_c_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_header_compiler=yes
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_header_compiler=no
3807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3809 echo "${ECHO_T}$ac_header_compiler" >&6
3811 # Is the header present?
3812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <$ac_header>
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null; then
3830 if test -s conftest.err; then
3831 ac_cpp_err=$ac_c_preproc_warn_flag
3832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3839 if test -z "$ac_cpp_err"; then
3840 ac_header_preproc=yes
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 ac_header_preproc=no
3847 rm -f conftest.err conftest.$ac_ext
3848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3849 echo "${ECHO_T}$ac_header_preproc" >&6
3851 # So? What about this header?
3852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3858 ac_header_preproc=yes
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3875 ## ---------------------------------- ##
3876 ## Report this to rspencer@x10sys.com ##
3877 ## ---------------------------------- ##
3880 sed "s/^/$as_me: WARNING: /" >&2
3883 echo "$as_me:$LINENO: checking for $ac_header" >&5
3884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 eval "$as_ac_Header=\$ac_header_preproc"
3890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3895 cat >>confdefs.h <<_ACEOF
3896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3904 ac_cpp='$CXXCPP $CPPFLAGS'
3905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3908 if test -n "$ac_tool_prefix"; then
3909 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_CXX+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if test -n "$CXX"; then
3919 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$CXX"; then
3939 echo "$as_me:$LINENO: result: $CXX" >&5
3940 echo "${ECHO_T}$CXX" >&6
3942 echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3946 test -n "$CXX" && break
3949 if test -z "$CXX"; then
3951 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 if test -n "$ac_ct_CXX"; then
3961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_ac_ct_CXX="$ac_prog"
3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3980 if test -n "$ac_ct_CXX"; then
3981 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3982 echo "${ECHO_T}$ac_ct_CXX" >&6
3984 echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3988 test -n "$ac_ct_CXX" && break
3990 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3996 # Provide some information about the compiler.
3997 echo "$as_me:$LINENO:" \
3998 "checking for C++ compiler version" >&5
3999 ac_compiler=`set X $ac_compile; echo $2`
4000 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4001 (eval $ac_compiler --version </dev/null >&5) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }
4005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4006 (eval $ac_compiler -v </dev/null >&5) 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }
4010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4011 (eval $ac_compiler -V </dev/null >&5) 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }
4016 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_cxx_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4072 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4073 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4074 GXX=`test $ac_compiler_gnu = yes && echo yes`
4075 ac_test_CXXFLAGS=${CXXFLAGS+set}
4076 ac_save_CXXFLAGS=$CXXFLAGS
4078 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4079 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4080 if test "${ac_cv_prog_cxx_g+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>conftest.er1
4102 grep -v '^ *+' conftest.er1 >conftest.err
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_cxx_werror_flag"
4108 || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_prog_cxx_g=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4130 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4131 if test "$ac_test_CXXFLAGS" = set; then
4132 CXXFLAGS=$ac_save_CXXFLAGS
4133 elif test $ac_cv_prog_cxx_g = yes; then
4134 if test "$GXX" = yes; then
4140 if test "$GXX" = yes; then
4146 for ac_declaration in \
4148 'extern "C" void std::exit (int) throw (); using std::exit;' \
4149 'extern "C" void std::exit (int); using std::exit;' \
4150 'extern "C" void exit (int) throw ();' \
4151 'extern "C" void exit (int);' \
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_cxx_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_cxx_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4246 if test -n "$ac_declaration"; then
4247 echo '#ifdef __cplusplus' >>confdefs.h
4248 echo $ac_declaration >>confdefs.h
4249 echo '#endif' >>confdefs.h
4253 ac_cpp='$CXXCPP $CPPFLAGS'
4254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4259 ac_cpp='$CXXCPP $CPPFLAGS'
4260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4264 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4265 if test -z "$CXXCPP"; then
4266 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 # Double quotes because CXXCPP needs to be expanded
4270 for CXXCPP in "$CXX -E" "/lib/cpp"
4273 for ac_cxx_preproc_warn_flag in '' yes
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4288 # include <limits.h>
4290 # include <assert.h>
4294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } >/dev/null; then
4302 if test -s conftest.err; then
4303 ac_cpp_err=$ac_cxx_preproc_warn_flag
4304 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4311 if test -z "$ac_cpp_err"; then
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 # Broken: fails on valid input.
4320 rm -f conftest.err conftest.$ac_ext
4322 # OK, works on sane cases. Now check whether non-existent headers
4323 # can be detected and how.
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <ac_nonexistent.h>
4332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } >/dev/null; then
4340 if test -s conftest.err; then
4341 ac_cpp_err=$ac_cxx_preproc_warn_flag
4342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4349 if test -z "$ac_cpp_err"; then
4350 # Broken: success on invalid input.
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 # Passes both tests.
4360 rm -f conftest.err conftest.$ac_ext
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.err conftest.$ac_ext
4365 if $ac_preproc_ok; then
4370 ac_cv_prog_CXXCPP=$CXXCPP
4373 CXXCPP=$ac_cv_prog_CXXCPP
4375 ac_cv_prog_CXXCPP=$CXXCPP
4377 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4378 echo "${ECHO_T}$CXXCPP" >&6
4380 for ac_cxx_preproc_warn_flag in '' yes
4382 # Use a header file that comes with gcc, so configuring glibc
4383 # with a fresh cross-compiler works.
4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385 # <limits.h> exists even on freestanding compilers.
4386 # On the NeXT, cc -E runs the code through the compiler's parser,
4387 # not just through cpp. "Syntax error" is here to catch this case.
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4395 # include <limits.h>
4397 # include <assert.h>
4401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } >/dev/null; then
4409 if test -s conftest.err; then
4410 ac_cpp_err=$ac_cxx_preproc_warn_flag
4411 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4418 if test -z "$ac_cpp_err"; then
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 # Broken: fails on valid input.
4427 rm -f conftest.err conftest.$ac_ext
4429 # OK, works on sane cases. Now check whether non-existent headers
4430 # can be detected and how.
4431 cat >conftest.$ac_ext <<_ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <ac_nonexistent.h>
4439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } >/dev/null; then
4447 if test -s conftest.err; then
4448 ac_cpp_err=$ac_cxx_preproc_warn_flag
4449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4456 if test -z "$ac_cpp_err"; then
4457 # Broken: success on invalid input.
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 # Passes both tests.
4467 rm -f conftest.err conftest.$ac_ext
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then
4475 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4476 See \`config.log' for more details." >&5
4477 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4478 See \`config.log' for more details." >&2;}
4479 { (exit 1); exit 1; }; }
4483 ac_cpp='$CXXCPP $CPPFLAGS'
4484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4490 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4491 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4493 if test -n "$ac_tool_prefix"; then
4494 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_F77+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$F77"; then
4504 ac_cv_prog_F77="$F77" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 if test -n "$F77"; then
4524 echo "$as_me:$LINENO: result: $F77" >&5
4525 echo "${ECHO_T}$F77" >&6
4527 echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4531 test -n "$F77" && break
4534 if test -z "$F77"; then
4536 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 if test -n "$ac_ct_F77"; then
4546 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_ac_ct_F77="$ac_prog"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4565 if test -n "$ac_ct_F77"; then
4566 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4567 echo "${ECHO_T}$ac_ct_F77" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 test -n "$ac_ct_F77" && break
4580 # Provide some information about the compiler.
4581 echo "$as_me:4581:" \
4582 "checking for Fortran 77 compiler version" >&5
4583 ac_compiler=`set X $ac_compile; echo $2`
4584 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4585 (eval $ac_compiler --version </dev/null >&5) 2>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }
4589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4590 (eval $ac_compiler -v </dev/null >&5) 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }
4594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4595 (eval $ac_compiler -V </dev/null >&5) 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }
4601 # If we don't use `.F' as extension, the preprocessor is not run on the
4602 # input file. (Note that this only needs to work for GNU compilers.)
4605 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4606 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4607 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>conftest.er1
4622 grep -v '^ *+' conftest.er1 >conftest.err
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_f77_werror_flag"
4628 || test ! -s conftest.err'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; } &&
4634 { ac_try='test -s conftest.$ac_objext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4648 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4651 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4652 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4654 ac_test_FFLAGS=${FFLAGS+set}
4655 ac_save_FFLAGS=$FFLAGS
4657 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4658 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4659 if test "${ac_cv_prog_f77_g+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>conftest.er1
4672 grep -v '^ *+' conftest.er1 >conftest.err
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_f77_werror_flag"
4678 || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_prog_f77_g=yes
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4701 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4702 if test "$ac_test_FFLAGS" = set; then
4703 FFLAGS=$ac_save_FFLAGS
4704 elif test $ac_cv_prog_f77_g = yes; then
4705 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4711 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4718 G77=`test $ac_compiler_gnu = yes && echo yes`
4720 ac_cpp='$CPP $CPPFLAGS'
4721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4729 # find the maximum length of command line arguments
4730 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4731 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4732 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 # On DJGPP, this test can blow up pretty badly due to problems in libc
4741 # (any single argument exceeding 2000 bytes causes a buffer overrun
4742 # during glob expansion). Even if it were fixed, the result of this
4743 # check would be larger than it should be.
4744 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4748 # Under GNU Hurd, this test is not required because there is
4749 # no limit to the length of command line arguments.
4750 # Libtool will interpret -1 as no limit whatsoever
4751 lt_cv_sys_max_cmd_len=-1;
4755 # On Win9x/ME, this test blows up -- it succeeds, but takes
4756 # about 5 minutes as the teststring grows exponentially.
4757 # Worse, since 9x/ME are not pre-emptively multitasking,
4758 # you end up with a "frozen" computer, even though with patience
4759 # the test eventually succeeds (with a max line length of 256k).
4760 # Instead, let's just punt: use the minimum linelength reported by
4761 # all of the supported platforms: 8192 (on NT/2K/XP).
4762 lt_cv_sys_max_cmd_len=8192;
4766 # If test is not a shell built-in, we'll probably end up computing a
4767 # maximum length that is only half of the actual maximum length, but
4769 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4770 = "XX$testring") >/dev/null 2>&1 &&
4771 new_result=`expr "X$testring" : ".*" 2>&1` &&
4772 lt_cv_sys_max_cmd_len=$new_result &&
4773 test $i != 17 # 1/2 MB should be enough
4776 testring=$testring$testring
4779 # Add a significant safety factor because C++ compilers can tack on massive
4780 # amounts of additional arguments before passing them to the linker.
4781 # It appears as though 1/2 is a usable value.
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4788 if test -n $lt_cv_sys_max_cmd_len ; then
4789 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4790 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4792 echo "$as_me:$LINENO: result: none" >&5
4793 echo "${ECHO_T}none" >&6
4799 # Check for command to grab the raw symbol name followed by C symbol from nm.
4800 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4801 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4802 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 # These are sane defaults that work on at least a few old systems.
4807 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4809 # Character class describing NM global symbol codes.
4810 symcode='[BCDEGRST]'
4812 # Regexp to match symbols that can be accessed directly from C.
4813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4815 # Transform the above into a raw symbol and a C symbol.
4816 symxfrm='\1 \2\3 \3'
4818 # Transform an extracted symbol line into a proper C declaration
4819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4821 # Transform an extracted symbol line into symbol name and symbol address
4822 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4824 # Define system-specific variables.
4829 cygwin* | mingw* | pw32*)
4830 symcode='[ABCDGISTW]'
4832 hpux*) # Its linker distinguishes data from code symbols
4833 if test "$host_cpu" = ia64; then
4834 symcode='[ABCDEGRST]'
4836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4840 symcode='[BCDEGRST]'
4843 symcode='[BCDEGQRST]'
4853 # Handle CRLF in mingw tool chain
4857 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4861 # If we're using GNU nm, then use its standard symbol codes.
4862 case `$NM -V 2>&1` in
4863 *GNU* | *'with BFD'*)
4864 symcode='[ABCDGISTW]' ;;
4867 # Try without a prefix undercore, then with it.
4868 for ac_symprfx in "" "_"; do
4870 # Write the raw and C identifiers.
4871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4873 # Check to see that the pipe works correctly.
4877 cat > conftest.$ac_ext <<EOF
4882 void nm_test_func(){}
4886 int main(){nm_test_var='a';nm_test_func();return(0);}
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; then
4894 # Now try to grab the symbols.
4896 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4897 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && test -s "$nlist"; then
4901 # Try sorting and uniquifying the output.
4902 if sort "$nlist" | uniq > "$nlist"T; then
4903 mv -f "$nlist"T "$nlist"
4908 # Make sure that we snagged all the symbols we need.
4909 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4910 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4911 cat <<EOF > conftest.$ac_ext
4917 # Now generate the symbol file.
4918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4920 cat <<EOF >> conftest.$ac_ext
4921 #if defined (__STDC__) && __STDC__
4922 # define lt_ptr_t void *
4924 # define lt_ptr_t char *
4928 /* The mapping between symbol names and symbols. */
4933 lt_preloaded_symbols[] =
4936 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4937 cat <<\EOF >> conftest.$ac_ext
4945 # Now try linking the two files.
4946 mv conftest.$ac_objext conftstm.$ac_objext
4947 lt_save_LIBS="$LIBS"
4948 lt_save_CFLAGS="$CFLAGS"
4949 LIBS="conftstm.$ac_objext"
4950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952 (eval $ac_link) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4958 LIBS="$lt_save_LIBS"
4959 CFLAGS="$lt_save_CFLAGS"
4961 echo "cannot find nm_test_func in $nlist" >&5
4964 echo "cannot find nm_test_var in $nlist" >&5
4967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4970 echo "$progname: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4973 rm -f conftest* conftst*
4975 # Do not use the global_symbol_pipe unless it works.
4976 if test "$pipe_works" = yes; then
4979 lt_cv_sys_global_symbol_pipe=
4985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4986 lt_cv_sys_global_symbol_to_cdecl=
4988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4989 echo "$as_me:$LINENO: result: failed" >&5
4990 echo "${ECHO_T}failed" >&6
4992 echo "$as_me:$LINENO: result: ok" >&5
4993 echo "${ECHO_T}ok" >&6
4996 echo "$as_me:$LINENO: checking for objdir" >&5
4997 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4998 if test "${lt_cv_objdir+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 rm -f .libs 2>/dev/null
5002 mkdir .libs 2>/dev/null
5003 if test -d .libs; then
5006 # MS-DOS does not allow filenames that begin with a dot.
5009 rmdir .libs 2>/dev/null
5011 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5012 echo "${ECHO_T}$lt_cv_objdir" >&6
5013 objdir=$lt_cv_objdir
5021 # AIX sometimes has problems with the GCC collect2 program. For some
5022 # reason, if we set the COLLECT_NAMES environment variable, the problems
5023 # vanish in a puff of smoke.
5024 if test "X${COLLECT_NAMES+set}" != Xset; then
5026 export COLLECT_NAMES
5031 # Sed substitution that helps us do robust quoting. It backslashifies
5032 # metacharacters that are still active within double-quoted strings.
5033 Xsed='sed -e s/^X//'
5034 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5036 # Same as above, but do not quote variable references.
5037 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5039 # Sed substitution to delay expansion of an escaped shell variable in a
5040 # double_quote_subst'ed string.
5041 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5043 # Sed substitution to avoid accidental globbing in evaled expressions
5044 no_glob_subst='s/\*/\\\*/g'
5051 can_build_shared=yes
5053 # All known linkers require a `.a' archive for static linking (except M$VC,
5054 # which needs '.lib').
5056 ltmain="$ac_aux_dir/ltmain.sh"
5057 ofile="$default_ofile"
5058 with_gnu_ld="$lt_cv_prog_gnu_ld"
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}ar; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_AR+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 if test -n "$AR"; then
5069 ac_cv_prog_AR="$AR" # Let the user override the test.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_AR="${ac_tool_prefix}ar"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test -n "$AR"; then
5089 echo "$as_me:$LINENO: result: $AR" >&5
5090 echo "${ECHO_T}$AR" >&6
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5097 if test -z "$ac_cv_prog_AR"; then
5099 # Extract the first word of "ar", so it can be a program name with args.
5100 set dummy ar; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 if test -n "$ac_ct_AR"; then
5107 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_ac_ct_AR="ar"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5127 if test -n "$ac_ct_AR"; then
5128 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5129 echo "${ECHO_T}$ac_ct_AR" >&6
5131 echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5140 if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5143 echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 if test "${ac_cv_prog_RANLIB+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if test -n "$RANLIB"; then
5149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 RANLIB=$ac_cv_prog_RANLIB
5168 if test -n "$RANLIB"; then
5169 echo "$as_me:$LINENO: result: $RANLIB" >&5
5170 echo "${ECHO_T}$RANLIB" >&6
5172 echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5177 if test -z "$ac_cv_prog_RANLIB"; then
5178 ac_ct_RANLIB=$RANLIB
5179 # Extract the first word of "ranlib", so it can be a program name with args.
5180 set dummy ranlib; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 if test -n "$ac_ct_RANLIB"; then
5187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_RANLIB="ranlib"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207 if test -n "$ac_ct_RANLIB"; then
5208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5215 RANLIB=$ac_ct_RANLIB
5217 RANLIB="$ac_cv_prog_RANLIB"
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}strip; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_STRIP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 if test -n "$STRIP"; then
5229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 STRIP=$ac_cv_prog_STRIP
5248 if test -n "$STRIP"; then
5249 echo "$as_me:$LINENO: result: $STRIP" >&5
5250 echo "${ECHO_T}$STRIP" >&6
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5257 if test -z "$ac_cv_prog_STRIP"; then
5259 # Extract the first word of "strip", so it can be a program name with args.
5260 set dummy strip; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 if test -n "$ac_ct_STRIP"; then
5267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_STRIP="strip"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5287 if test -n "$ac_ct_STRIP"; then
5288 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5289 echo "${ECHO_T}$ac_ct_STRIP" >&6
5291 echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5297 STRIP="$ac_cv_prog_STRIP"
5302 old_CFLAGS="$CFLAGS"
5304 # Set sane defaults for various variables
5305 test -z "$AR" && AR=ar
5306 test -z "$AR_FLAGS" && AR_FLAGS=cru
5307 test -z "$AS" && AS=as
5308 test -z "$CC" && CC=cc
5309 test -z "$LTCC" && LTCC=$CC
5310 test -z "$DLLTOOL" && DLLTOOL=dlltool
5311 test -z "$LD" && LD=ld
5312 test -z "$LN_S" && LN_S="ln -s"
5313 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5314 test -z "$NM" && NM=nm
5315 test -z "$SED" && SED=sed
5316 test -z "$OBJDUMP" && OBJDUMP=objdump
5317 test -z "$RANLIB" && RANLIB=:
5318 test -z "$STRIP" && STRIP=:
5319 test -z "$ac_objext" && ac_objext=o
5321 # Determine commands to create old-style static archives.
5322 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5323 old_postinstall_cmds='chmod 644 $oldlib'
5324 old_postuninstall_cmds=
5326 if test -n "$RANLIB"; then
5329 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5332 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5335 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5338 # Only perform the check for file, if the check method requires it
5339 case $deplibs_check_method in
5341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5342 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5343 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5352 lt_save_MAGIC_CMD="$MAGIC_CMD"
5353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5355 for ac_dir in $ac_dummy; do
5357 test -z "$ac_dir" && ac_dir=.
5358 if test -f $ac_dir/${ac_tool_prefix}file; then
5359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5360 if test -n "$file_magic_test_file"; then
5361 case $deplibs_check_method in
5363 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5366 $EGREP "$file_magic_regex" > /dev/null; then
5371 *** Warning: the command libtool uses to detect shared libraries,
5372 *** $file_magic_cmd, produces output that libtool cannot recognize.
5373 *** The result is that libtool may fail to recognize shared libraries
5374 *** as such. This will affect the creation of libtool libraries that
5375 *** depend on shared libraries, but programs linked with such libtool
5376 *** libraries will work regardless of this problem. Nevertheless, you
5377 *** may want to report the problem to your system manager and/or to
5378 *** bug-libtool@gnu.org
5388 MAGIC_CMD="$lt_save_MAGIC_CMD"
5393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5394 if test -n "$MAGIC_CMD"; then
5395 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5396 echo "${ECHO_T}$MAGIC_CMD" >&6
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5402 if test -z "$lt_cv_path_MAGIC_CMD"; then
5403 if test -n "$ac_tool_prefix"; then
5404 echo "$as_me:$LINENO: checking for file" >&5
5405 echo $ECHO_N "checking for file... $ECHO_C" >&6
5406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5414 lt_save_MAGIC_CMD="$MAGIC_CMD"
5415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5417 for ac_dir in $ac_dummy; do
5419 test -z "$ac_dir" && ac_dir=.
5420 if test -f $ac_dir/file; then
5421 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5422 if test -n "$file_magic_test_file"; then
5423 case $deplibs_check_method in
5425 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5428 $EGREP "$file_magic_regex" > /dev/null; then
5433 *** Warning: the command libtool uses to detect shared libraries,
5434 *** $file_magic_cmd, produces output that libtool cannot recognize.
5435 *** The result is that libtool may fail to recognize shared libraries
5436 *** as such. This will affect the creation of libtool libraries that
5437 *** depend on shared libraries, but programs linked with such libtool
5438 *** libraries will work regardless of this problem. Nevertheless, you
5439 *** may want to report the problem to your system manager and/or to
5440 *** bug-libtool@gnu.org
5450 MAGIC_CMD="$lt_save_MAGIC_CMD"
5455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5456 if test -n "$MAGIC_CMD"; then
5457 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5458 echo "${ECHO_T}$MAGIC_CMD" >&6
5460 echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5476 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5477 if test "${enable_libtool_lock+set}" = set; then
5478 enableval="$enable_libtool_lock"
5481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5484 # Check whether --with-pic or --without-pic was given.
5485 if test "${with_pic+set}" = set; then
5491 test -z "$pic_mode" && pic_mode=default
5493 # Use C for the default configuration in the libtool script
5497 ac_cpp='$CPP $CPPFLAGS'
5498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5503 # Source file extension for C test sources.
5506 # Object file extension for compiled C test sources.
5510 # Code to be used in simple compile tests
5511 lt_simple_compile_test_code="int some_variable = 0;\n"
5513 # Code to be used in simple link tests
5514 lt_simple_link_test_code='int main(){return(0);}\n'
5517 # If no C compiler was specified, use CC.
5520 # Allow CC to be a program name with arguments.
5525 # Check for any special shared library compilation flags.
5528 if test "$GCC" = no; then
5531 lt_prog_cc_shlib='-belf'
5535 if test -n "$lt_prog_cc_shlib"; then
5536 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5537 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5538 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5540 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5541 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5542 lt_cv_prog_cc_can_build_shared=no
5548 # Check to make sure the static flag actually works.
5550 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5551 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5552 if test "${lt_prog_compiler_static_works+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 lt_prog_compiler_static_works=no
5556 save_LDFLAGS="$LDFLAGS"
5557 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5558 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5560 # The compiler can only warn and ignore the option if not recognized
5561 # So say no if there are warnings
5562 if test -s conftest.err; then
5563 # Append any errors to the config.log.
5564 cat conftest.err 1>&5
5566 lt_prog_compiler_static_works=yes
5570 LDFLAGS="$save_LDFLAGS"
5573 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5574 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5576 if test x"$lt_prog_compiler_static_works" = xyes; then
5579 lt_prog_compiler_static=
5585 ## There is no encapsulation within the following macros, do not change
5586 ## the running order or otherwise move them around unless you know exactly
5587 ## what you are doing...
5589 lt_prog_compiler_no_builtin_flag=
5591 if test "$GCC" = yes; then
5592 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5594 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5595 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5596 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 lt_cv_prog_compiler_rtti_exceptions=no
5600 ac_outfile=conftest.$ac_objext
5601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5602 lt_compiler_flag="-fno-rtti -fno-exceptions"
5603 # Insert the option either (1) after the last *FLAGS variable, or
5604 # (2) before a word containing "conftest.", or (3) at the end.
5605 # Note that $ac_compile itself does not contain backslashes and begins
5606 # with a dollar sign (not a hyphen), so the echo should work correctly.
5607 # The option is referenced via a variable to avoid confusing sed.
5608 lt_compile=`echo "$ac_compile" | $SED \
5609 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5611 -e 's:$: $lt_compiler_flag:'`
5612 (eval echo "\"\$as_me:5612: $lt_compile\"" >&5)
5613 (eval "$lt_compile" 2>conftest.err)
5615 cat conftest.err >&5
5616 echo "$as_me:5616: \$? = $ac_status" >&5
5617 if (exit $ac_status) && test -s "$ac_outfile"; then
5618 # The compiler can only warn and ignore the option if not recognized
5619 # So say no if there are warnings
5620 if test ! -s conftest.err; then
5621 lt_cv_prog_compiler_rtti_exceptions=yes
5627 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5628 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5630 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5631 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5638 lt_prog_compiler_wl=
5639 lt_prog_compiler_pic=
5640 lt_prog_compiler_static=
5642 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5643 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5645 if test "$GCC" = yes; then
5646 lt_prog_compiler_wl='-Wl,'
5647 lt_prog_compiler_static='-static'
5651 # All AIX code is PIC.
5652 if test "$host_cpu" = ia64; then
5653 # AIX 5 now supports IA64 processor
5654 lt_prog_compiler_static='-Bstatic'
5659 # FIXME: we need at least 68020 code to build shared libraries, but
5660 # adding the `-m68020' flag to GCC prevents building anything better,
5662 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5665 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5666 # PIC is the default for these OSes.
5669 mingw* | pw32* | os2*)
5670 # This hack is so that the source file can tell whether it is being
5671 # built for inclusion in a dll (and should export symbols for example).
5672 lt_prog_compiler_pic='-DDLL_EXPORT'
5675 darwin* | rhapsody*)
5676 # PIC is the default on this platform
5677 # Common symbols not allowed in MH_DYLIB files
5678 lt_prog_compiler_pic='-fno-common'
5682 # Just because we use GCC doesn't mean we suddenly get shared libraries
5683 # on systems that don't support them.
5684 lt_prog_compiler_can_build_shared=no
5689 if test -d /usr/nec; then
5690 lt_prog_compiler_pic=-Kconform_pic
5695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5702 lt_prog_compiler_pic='-fPIC'
5708 lt_prog_compiler_pic='-fPIC'
5712 # PORTME Check for flag to pass linker flags through the system compiler.
5715 lt_prog_compiler_wl='-Wl,'
5716 if test "$host_cpu" = ia64; then
5717 # AIX 5 now supports IA64 processor
5718 lt_prog_compiler_static='-Bstatic'
5720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5724 mingw* | pw32* | os2*)
5725 # This hack is so that the source file can tell whether it is being
5726 # built for inclusion in a dll (and should export symbols for example).
5727 lt_prog_compiler_pic='-DDLL_EXPORT'
5730 hpux9* | hpux10* | hpux11*)
5731 lt_prog_compiler_wl='-Wl,'
5732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5739 lt_prog_compiler_pic='+Z'
5742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5743 lt_prog_compiler_static='${wl}-a ${wl}archive'
5746 irix5* | irix6* | nonstopux*)
5747 lt_prog_compiler_wl='-Wl,'
5748 # PIC (with -KPIC) is the default.
5749 lt_prog_compiler_static='-non_shared'
5753 lt_prog_compiler_pic='-KPIC'
5754 lt_prog_compiler_static='-Bstatic'
5760 lt_prog_compiler_wl='-Wl,'
5761 lt_prog_compiler_pic='-KPIC'
5762 lt_prog_compiler_static='-static'
5765 lt_prog_compiler_wl='-Wl,'
5766 # All Alpha code is PIC.
5767 lt_prog_compiler_static='-non_shared'
5772 osf3* | osf4* | osf5*)
5773 lt_prog_compiler_wl='-Wl,'
5774 # All OSF/1 code is PIC.
5775 lt_prog_compiler_static='-non_shared'
5779 lt_prog_compiler_pic='-Kpic'
5780 lt_prog_compiler_static='-dn'
5784 lt_prog_compiler_wl='-Wl,'
5785 lt_prog_compiler_pic='-KPIC'
5786 lt_prog_compiler_static='-Bstatic'
5790 lt_prog_compiler_wl='-Qoption ld '
5791 lt_prog_compiler_pic='-PIC'
5792 lt_prog_compiler_static='-Bstatic'
5795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5796 lt_prog_compiler_wl='-Wl,'
5797 lt_prog_compiler_pic='-KPIC'
5798 lt_prog_compiler_static='-Bstatic'
5802 if test -d /usr/nec ;then
5803 lt_prog_compiler_pic='-Kconform_pic'
5804 lt_prog_compiler_static='-Bstatic'
5809 lt_prog_compiler_pic='-pic'
5810 lt_prog_compiler_static='-Bstatic'
5814 lt_prog_compiler_can_build_shared=no
5819 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5820 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5823 # Check to make sure the PIC flag actually works.
5825 if test -n "$lt_prog_compiler_pic"; then
5826 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5827 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5828 if test "${lt_prog_compiler_pic_works+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 lt_prog_compiler_pic_works=no
5832 ac_outfile=conftest.$ac_objext
5833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5835 # Insert the option either (1) after the last *FLAGS variable, or
5836 # (2) before a word containing "conftest.", or (3) at the end.
5837 # Note that $ac_compile itself does not contain backslashes and begins
5838 # with a dollar sign (not a hyphen), so the echo should work correctly.
5839 # The option is referenced via a variable to avoid confusing sed.
5840 lt_compile=`echo "$ac_compile" | $SED \
5841 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5843 -e 's:$: $lt_compiler_flag:'`
5844 (eval echo "\"\$as_me:5844: $lt_compile\"" >&5)
5845 (eval "$lt_compile" 2>conftest.err)
5847 cat conftest.err >&5
5848 echo "$as_me:5848: \$? = $ac_status" >&5
5849 if (exit $ac_status) && test -s "$ac_outfile"; then
5850 # The compiler can only warn and ignore the option if not recognized
5851 # So say no if there are warnings
5852 if test ! -s conftest.err; then
5853 lt_prog_compiler_pic_works=yes
5859 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5860 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5862 if test x"$lt_prog_compiler_pic_works" = xyes; then
5863 case $lt_prog_compiler_pic in
5865 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5868 lt_prog_compiler_pic=
5869 lt_prog_compiler_can_build_shared=no
5874 # For platforms which do not support PIC, -DPIC is meaningless:
5876 lt_prog_compiler_pic=
5879 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5883 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5884 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5885 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 lt_cv_prog_compiler_c_o=no
5889 $rm -r conftest 2>/dev/null
5893 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5895 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5896 # that will create temporary files in the current directory regardless of
5897 # the output directory. Thus, making CWD read-only will cause this test
5898 # to fail, enabling locking or at least warning the user not to do parallel
5902 lt_compiler_flag="-o out/conftest2.$ac_objext"
5903 # Insert the option either (1) after the last *FLAGS variable, or
5904 # (2) before a word containing "conftest.", or (3) at the end.
5905 # Note that $ac_compile itself does not contain backslashes and begins
5906 # with a dollar sign (not a hyphen), so the echo should work correctly.
5907 lt_compile=`echo "$ac_compile" | $SED \
5908 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5910 -e 's:$: $lt_compiler_flag:'`
5911 (eval echo "\"\$as_me:5911: $lt_compile\"" >&5)
5912 (eval "$lt_compile" 2>out/conftest.err)
5914 cat out/conftest.err >&5
5915 echo "$as_me:5915: \$? = $ac_status" >&5
5916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5918 # The compiler can only warn and ignore the option if not recognized
5919 # So say no if there are warnings
5920 if test ! -s out/conftest.err; then
5921 lt_cv_prog_compiler_c_o=yes
5932 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5933 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5936 hard_links="nottested"
5937 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5938 # do not overwrite the value of need_locks provided by the user
5939 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5940 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5945 ln conftest.a conftest.b 2>&5 || hard_links=no
5946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5947 echo "$as_me:$LINENO: result: $hard_links" >&5
5948 echo "${ECHO_T}$hard_links" >&6
5949 if test "$hard_links" = no; then
5950 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5951 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5958 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5959 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5962 allow_undefined_flag=
5963 enable_shared_with_static_runtimes=no
5965 archive_expsym_cmds=
5966 old_archive_From_new_cmds=
5967 old_archive_from_expsyms_cmds=
5968 export_dynamic_flag_spec=
5969 whole_archive_flag_spec=
5970 thread_safe_flag_spec=
5971 hardcode_libdir_flag_spec=
5972 hardcode_libdir_flag_spec_ld=
5973 hardcode_libdir_separator=
5976 hardcode_shlibpath_var=unsupported
5977 link_all_deplibs=unknown
5978 hardcode_automatic=no
5981 always_export_symbols=no
5982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5983 # include_expsyms should be a list of space-separated symbols to be *always*
5984 # included in the symbol list
5986 # exclude_expsyms can be an extended regexp of symbols to exclude
5987 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5989 # as well as any symbol that contains `d'.
5990 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5992 # platforms (ab)use it in PIC code, but their linkers get confused if
5993 # the symbol is explicitly referenced. Since portable code cannot
5994 # rely on this symbol name, it's probably fine to never include it in
5995 # preloaded symbol tables.
5996 extract_expsyms_cmds=
5999 cygwin* | mingw* | pw32*)
6000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6001 # When not using gcc, we currently assume that we are using
6002 # Microsoft Visual C++.
6003 if test "$GCC" != yes; then
6013 if test "$with_gnu_ld" = yes; then
6014 # If archive_cmds runs LD, not CC, wlarc should be empty
6017 # See if GNU ld supports shared libraries.
6019 aix3* | aix4* | aix5*)
6020 # On AIX/PPC, the GNU linker is very broken
6021 if test "$host_cpu" != ia64; then
6025 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6026 *** to be unable to reliably create shared libraries on AIX.
6027 *** Therefore, libtool is disabling shared libraries support. If you
6028 *** really care for shared libraries, you may want to modify your PATH
6029 *** so that a non-GNU linker is found, and then restart.
6036 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)'
6037 hardcode_libdir_flag_spec='-L$libdir'
6038 hardcode_minus_L=yes
6040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6041 # that the semantics of dynamic libraries on AmigaOS, at least up
6042 # to version 4, is to share data among multiple programs linked
6043 # with the same dynamic library. Since this doesn't match the
6044 # behavior of shared libraries on other platforms, we can't use
6050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6051 allow_undefined_flag=unsupported
6052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6053 # support --undefined. This deserves some investigation. FIXME
6054 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6060 cygwin* | mingw* | pw32*)
6061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6062 # as there is no search path for DLLs.
6063 hardcode_libdir_flag_spec='-L$libdir'
6064 allow_undefined_flag=unsupported
6065 always_export_symbols=no
6066 enable_shared_with_static_runtimes=yes
6067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6071 # If the export-symbols file already is a .def file (1st line
6072 # is EXPORTS), use it as is; otherwise, prepend...
6073 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6074 cp $export_symbols $output_objdir/$soname.def;
6076 echo EXPORTS > $output_objdir/$soname.def;
6077 cat $export_symbols >> $output_objdir/$soname.def;
6079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6087 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6096 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6100 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6101 *** create shared libraries on Solaris systems. Therefore, libtool
6102 *** is disabling shared libraries support. We urge you to upgrade GNU
6103 *** binutils to release 2.9.1 or newer. Another option is to modify
6104 *** your PATH or compiler configuration so that the native linker is
6105 *** used, and then restart.
6108 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6117 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6120 hardcode_shlibpath_var=no
6124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6133 if test "$ld_shlibs" = yes; then
6134 runpath_var=LD_RUN_PATH
6135 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6136 export_dynamic_flag_spec='${wl}--export-dynamic'
6137 # ancient GNU ld didn't support --whole-archive et. al.
6138 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6139 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6141 whole_archive_flag_spec=
6145 # PORTME fill in a description of your system's linker (not GNU ld)
6148 allow_undefined_flag=unsupported
6149 always_export_symbols=yes
6150 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'
6151 # Note: this linker hardcodes the directories in LIBPATH if there
6152 # are no directories specified by -L.
6153 hardcode_minus_L=yes
6154 if test "$GCC" = yes && test -z "$link_static_flag"; then
6155 # Neither direct hardcoding nor static linking is supported with a
6157 hardcode_direct=unsupported
6162 if test "$host_cpu" = ia64; then
6163 # On IA64, the linker does run time linking by default, so we don't
6164 # have to do anything special.
6165 aix_use_runtimelinking=no
6166 exp_sym_flag='-Bexport'
6169 # If we're using GNU nm, then we don't want the "-C" option.
6170 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6171 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6172 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'
6174 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'
6176 aix_use_runtimelinking=no
6178 # Test if we are trying to use run time linking or normal
6179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6180 # need to do runtime linking.
6181 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6182 for ld_flag in $LDFLAGS; do
6183 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6184 aix_use_runtimelinking=yes
6190 exp_sym_flag='-bexport'
6191 no_entry_flag='-bnoentry'
6194 # When large executables or shared objects are built, AIX ld can
6195 # have problems creating the table of contents. If linking a library
6196 # or program results in "error TOC overflow" add -mminimal-toc to
6197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6202 hardcode_libdir_separator=':'
6203 link_all_deplibs=yes
6205 if test "$GCC" = yes; then
6206 case $host_os in aix4.012|aix4.012.*)
6207 # We only want to do this on AIX 4.2 and lower, the check
6208 # below for broken collect2 doesn't work under 4.3+
6209 collect2name=`${CC} -print-prog-name=collect2`
6210 if test -f "$collect2name" && \
6211 strings "$collect2name" | grep resolve_lib_name >/dev/null
6213 # We have reworked collect2
6216 # We have old collect2
6217 hardcode_direct=unsupported
6218 # It fails to find uninstalled libraries when the uninstalled
6219 # path is not listed in the libpath. Setting hardcode_minus_L
6220 # to unsupported forces relinking
6221 hardcode_minus_L=yes
6222 hardcode_libdir_flag_spec='-L$libdir'
6223 hardcode_libdir_separator=
6226 shared_flag='-shared'
6229 if test "$host_cpu" = ia64; then
6230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6231 # chokes on -Wl,-G. The following line is correct:
6234 if test "$aix_use_runtimelinking" = yes; then
6235 shared_flag='${wl}-G'
6237 shared_flag='${wl}-bM:SRE'
6242 # It seems that -bexpall does not export symbols beginning with
6243 # underscore (_), so it is better to generate a list of symbols to export.
6244 always_export_symbols=yes
6245 if test "$aix_use_runtimelinking" = yes; then
6246 # Warning - without using the other runtime loading flags (-brtl),
6247 # -berok will link without error, but may produce a broken library.
6248 allow_undefined_flag='-berok'
6249 # Determine the default libpath from the value encoded in an empty executable.
6250 cat >conftest.$ac_ext <<_ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>conftest.er1
6269 grep -v '^ *+' conftest.er1 >conftest.err
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6290 # Check for a 64-bit object if we didn't find anything.
6291 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6298 rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6303 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6305 if test "$host_cpu" = ia64; then
6306 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6307 allow_undefined_flag="-z nodefs"
6308 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6310 # Determine the default libpath from the value encoded in an empty executable.
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328 (eval $ac_link) 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_c_werror_flag"
6336 || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest$ac_exeext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6351 # Check for a 64-bit object if we didn't find anything.
6352 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6359 rm -f conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6364 # Warning - without using the other run time loading flags,
6365 # -berok will link without error, but may produce a broken library.
6366 no_undefined_flag=' ${wl}-bernotok'
6367 allow_undefined_flag=' ${wl}-berok'
6368 # -bexpall does not export symbols beginning with underscore (_)
6369 always_export_symbols=yes
6370 # Exported symbols can be pulled into shared objects from archives
6371 whole_archive_flag_spec=' '
6372 archive_cmds_need_lc=yes
6373 # This is similar to how AIX traditionally builds it's shared libraries.
6374 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6380 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)'
6381 hardcode_libdir_flag_spec='-L$libdir'
6382 hardcode_minus_L=yes
6383 # see comment about different semantics on the GNU ld section
6388 export_dynamic_flag_spec=-rdynamic
6391 cygwin* | mingw* | pw32*)
6392 # When not using gcc, we currently assume that we are using
6393 # Microsoft Visual C++.
6394 # hardcode_libdir_flag_spec is actually meaningless, as there is
6395 # no search path for DLLs.
6396 hardcode_libdir_flag_spec=' '
6397 allow_undefined_flag=unsupported
6398 # Tell ltmain to make .lib files, not .a files.
6400 # Tell ltmain to make .dll files, not .so files.
6402 # FIXME: Setting linknames here is a bad hack.
6403 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6404 # The linker will automatically build a .lib file if we build a DLL.
6405 old_archive_From_new_cmds='true'
6406 # FIXME: Should let the user specify the lib program.
6407 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6408 fix_srcfile_path='`cygpath -w "$srcfile"`'
6409 enable_shared_with_static_runtimes=yes
6412 darwin* | rhapsody*)
6413 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6414 archive_cmds_need_lc=no
6416 rhapsody* | darwin1.[012])
6417 allow_undefined_flag='-undefined suppress'
6420 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6423 # FIXME: Relying on posixy $() will cause problems for
6424 # cross-compilation, but unfortunately the echo tests do not
6425 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6426 # `"' quotes if we put them in here... so don't!
6427 lt_int_apple_cc_single_mod=no
6428 output_verbose_link_cmd='echo'
6429 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6430 lt_int_apple_cc_single_mod=yes
6432 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6433 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6435 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6437 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6439 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6440 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6442 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6444 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6446 hardcode_automatic=yes
6447 hardcode_shlibpath_var=unsupported
6448 whole_archive_flag_spec='-all_load $convenience'
6449 link_all_deplibs=yes
6454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6455 hardcode_libdir_flag_spec='-L$libdir'
6456 hardcode_shlibpath_var=no
6463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6464 # support. Future versions do this automatically, but an explicit c++rt0.o
6465 # does not break anything, and helps significantly (at the cost of a little
6468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6469 hardcode_libdir_flag_spec='-R$libdir'
6471 hardcode_shlibpath_var=no
6474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6478 hardcode_minus_L=yes
6479 hardcode_shlibpath_var=no
6482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6484 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6485 hardcode_libdir_flag_spec='-R$libdir'
6487 hardcode_shlibpath_var=no
6491 if test "$GCC" = yes; then
6492 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'
6494 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'
6496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6497 hardcode_libdir_separator=:
6500 # hardcode_minus_L: Not really in the search PATH,
6501 # but as the default location of the library.
6502 hardcode_minus_L=yes
6503 export_dynamic_flag_spec='${wl}-E'
6507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6510 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6513 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6519 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6526 if test "$with_gnu_ld" = no; then
6529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6530 hardcode_libdir_flag_spec_ld='+b $libdir'
6531 hardcode_libdir_separator=:
6533 hardcode_shlibpath_var=no
6536 hardcode_libdir_flag_spec='-L$libdir'
6538 hardcode_shlibpath_var=no
6540 # hardcode_minus_L: Not really in the search PATH,
6541 # but as the default location of the library.
6542 hardcode_minus_L=yes
6545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6546 hardcode_libdir_separator=:
6548 export_dynamic_flag_spec='${wl}-E'
6550 # hardcode_minus_L: Not really in the search PATH,
6551 # but as the default location of the library.
6552 hardcode_minus_L=yes
6558 irix5* | irix6* | nonstopux*)
6559 if test "$GCC" = yes; then
6560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6562 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6563 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6566 hardcode_libdir_separator=:
6567 link_all_deplibs=yes
6571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6574 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6576 hardcode_libdir_flag_spec='-R$libdir'
6578 hardcode_shlibpath_var=no
6582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6585 hardcode_libdir_separator=:
6586 hardcode_shlibpath_var=no
6591 hardcode_shlibpath_var=no
6592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6595 export_dynamic_flag_spec='${wl}-E'
6598 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6600 hardcode_libdir_flag_spec='-R$libdir'
6603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6611 hardcode_libdir_flag_spec='-L$libdir'
6612 hardcode_minus_L=yes
6613 allow_undefined_flag=unsupported
6614 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'
6615 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6619 if test "$GCC" = yes; then
6620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6621 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6623 allow_undefined_flag=' -expect_unresolved \*'
6624 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6627 hardcode_libdir_separator=:
6630 osf4* | osf5*) # as osf3* with the addition of -msym flag
6631 if test "$GCC" = yes; then
6632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6633 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6636 allow_undefined_flag=' -expect_unresolved \*'
6637 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6638 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6639 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6641 # Both c and cxx compiler support -rpath directly
6642 hardcode_libdir_flag_spec='-rpath $libdir'
6644 hardcode_libdir_separator=:
6648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6649 hardcode_shlibpath_var=no
6650 export_dynamic_flag_spec='${wl}-Bexport'
6651 runpath_var=LD_RUN_PATH
6652 hardcode_runpath_var=yes
6656 no_undefined_flag=' -z text'
6657 if test "$GCC" = yes; then
6658 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6659 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6660 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6662 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6663 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6664 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6666 hardcode_libdir_flag_spec='-R$libdir'
6667 hardcode_shlibpath_var=no
6669 solaris2.[0-5] | solaris2.[0-5].*) ;;
6670 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6671 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6673 link_all_deplibs=yes
6677 if test "x$host_vendor" = xsequent; then
6678 # Use $CC to link under sequent, because it throws in some extra .o
6679 # files that make .init and .fini sections work.
6680 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6682 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6684 hardcode_libdir_flag_spec='-L$libdir'
6686 hardcode_minus_L=yes
6687 hardcode_shlibpath_var=no
6691 case $host_vendor in
6693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6694 hardcode_direct=yes # is this really true???
6697 ## LD is ld it makes a PLAMLIB
6698 ## CC just makes a GrossModule.
6699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6700 reload_cmds='$CC -r -o $output$reload_objs'
6704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6705 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6708 runpath_var='LD_RUN_PATH'
6709 hardcode_shlibpath_var=no
6713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6714 hardcode_shlibpath_var=no
6715 export_dynamic_flag_spec='-Bexport'
6719 if test -d /usr/nec; then
6720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721 hardcode_shlibpath_var=no
6722 runpath_var=LD_RUN_PATH
6723 hardcode_runpath_var=yes
6729 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6732 hardcode_shlibpath_var=no
6733 hardcode_runpath_var=yes
6734 runpath_var=LD_RUN_PATH
6737 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6738 no_undefined_flag='${wl}-z ${wl}text'
6739 if test "$GCC" = yes; then
6740 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6742 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6744 runpath_var='LD_RUN_PATH'
6745 hardcode_shlibpath_var=no
6749 no_undefined_flag=' -z text'
6750 # $CC -shared without GNU ld will not create a library from C++
6751 # object files and a static libstdc++, better avoid it by now
6752 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6753 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6754 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6755 hardcode_libdir_flag_spec=
6756 hardcode_shlibpath_var=no
6757 runpath_var='LD_RUN_PATH'
6761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6762 hardcode_libdir_flag_spec='-L$libdir'
6763 hardcode_shlibpath_var=no
6772 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6773 echo "${ECHO_T}$ld_shlibs" >&6
6774 test "$ld_shlibs" = no && can_build_shared=no
6776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6777 if test "$GCC" = yes; then
6778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6782 # Do we need to explicitly link libc?
6784 case "x$archive_cmds_need_lc" in
6786 # Assume -lc should be added
6787 archive_cmds_need_lc=yes
6789 if test "$enable_shared" = yes && test "$GCC" = yes; then
6790 case $archive_cmds in
6792 # FIXME: we may have to deal with multi-command sequences.
6795 # Test whether the compiler implicitly links with -lc since on some
6796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6797 # to ld, don't add -lc before -lgcc.
6798 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6799 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } 2>conftest.err; then
6810 libobjs=conftest.$ac_objext
6812 wl=$lt_prog_compiler_wl
6818 lt_save_allow_undefined_flag=$allow_undefined_flag
6819 allow_undefined_flag=
6820 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6821 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }
6826 archive_cmds_need_lc=no
6828 archive_cmds_need_lc=yes
6830 allow_undefined_flag=$lt_save_allow_undefined_flag
6832 cat conftest.err 1>&5
6835 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6836 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6843 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6844 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6846 if test -n "$hardcode_libdir_flag_spec" || \
6847 test -n "$runpath_var " || \
6848 test "X$hardcode_automatic"="Xyes" ; then
6850 # We can hardcode non-existant directories.
6851 if test "$hardcode_direct" != no &&
6852 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6853 # have to relink, otherwise we might link with an installed library
6854 # when we should be linking with a yet-to-be-installed one
6855 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6856 test "$hardcode_minus_L" != no; then
6857 # Linking always hardcodes the temporary library directory.
6858 hardcode_action=relink
6860 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6861 hardcode_action=immediate
6864 # We cannot hardcode anything, or else we can only hardcode existing
6866 hardcode_action=unsupported
6868 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6869 echo "${ECHO_T}$hardcode_action" >&6
6871 if test "$hardcode_action" = relink; then
6872 # Fast installation is not supported
6873 enable_fast_install=no
6874 elif test "$shlibpath_overrides_runpath" = yes ||
6875 test "$enable_shared" = no; then
6876 # Fast installation is not necessary
6877 enable_fast_install=needless
6882 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6883 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6884 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6887 echo "$as_me:$LINENO: result: yes" >&5
6888 echo "${ECHO_T}yes" >&6
6890 # FIXME - insert some real tests, host_os isn't really good enough
6893 if test -n "$STRIP" ; then
6894 striplib="$STRIP -x"
6895 echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6
6898 echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6903 echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6
6909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6912 libname_spec='lib$name'
6920 shlibpath_overrides_runpath=unknown
6922 dynamic_linker="$host_os ld.so"
6923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6924 if test "$GCC" = yes; then
6925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6926 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6927 # if the path contains ";" then we assume it to be the separator
6928 # otherwise default to the standard path separator (i.e. ":") - it is
6929 # assumed that no part of a normal pathname contains ";" but that should
6930 # okay in the real world where ";" in dirpaths is itself problematic.
6931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6938 need_lib_prefix=unknown
6939 hardcode_into_libs=no
6941 # when you set need_version to no, make sure it does not cause -set_version
6942 # flags to be left without arguments
6943 need_version=unknown
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6949 shlibpath_var=LIBPATH
6951 # AIX 3 has no versioning support, so we append a major version to the name.
6952 soname_spec='${libname}${release}${shared_ext}$major'
6959 hardcode_into_libs=yes
6960 if test "$host_cpu" = ia64; then
6961 # AIX 5 supports IA64
6962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6963 shlibpath_var=LD_LIBRARY_PATH
6965 # With GCC up to 2.95.x, collect2 would create an import file
6966 # for dependence libraries. The import file would start with
6967 # the line `#! .'. This would cause the generated library to
6968 # depend on `.', always an invalid library. This was fixed in
6969 # development snapshots of GCC prior to 3.0.
6971 aix4 | aix4.[01] | aix4.[01].*)
6972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6982 # soname into executable. Probably we can add versioning support to
6983 # collect2, so additional links can be useful in future.
6984 if test "$aix_use_runtimelinking" = yes; then
6985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6986 # instead of lib<name>.a to let people know that these are not
6987 # typical AIX shared libraries.
6988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6990 # We preserve .a as extension for shared libraries through AIX4.2
6991 # and later when we are not doing run time linking.
6992 library_names_spec='${libname}${release}.a $libname.a'
6993 soname_spec='${libname}${release}${shared_ext}$major'
6995 shlibpath_var=LIBPATH
7000 library_names_spec='$libname.ixlibrary $libname.a'
7001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7002 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'
7006 library_names_spec='${libname}${shared_ext}'
7007 dynamic_linker="$host_os ld.so"
7008 shlibpath_var=LIBRARY_PATH
7014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7015 soname_spec='${libname}${release}${shared_ext}$major'
7016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7017 shlibpath_var=LD_LIBRARY_PATH
7018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7020 # the default ld.so.conf also contains /usr/contrib/lib and
7021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7022 # libtool to hard-code these into programs
7025 cygwin* | mingw* | pw32*)
7026 version_type=windows
7031 case $GCC,$host_os in
7032 yes,cygwin* | yes,mingw* | yes,pw32*)
7033 library_names_spec='$libname.dll.a'
7034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7035 postinstall_cmds='base_file=`basename \${file}`~
7036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7037 dldir=$destdir/`dirname \$dlpath`~
7038 test -d \$dldir || mkdir -p \$dldir~
7039 $install_prog $dir/$dlname \$dldir/$dlname'
7040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7041 dlpath=$dir/\$dldll~
7043 shlibpath_overrides_runpath=yes
7047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7049 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7052 # MinGW DLLs use traditional 'lib' prefix
7053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7055 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7056 # It is most probably a Windows format PATH printed by
7057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7058 # path with ; separators, and with drive letters. We can handle the
7059 # drive letters (cygwin fileutils understands them), so leave them,
7060 # especially as we might pass files found there to a mingw objdump,
7061 # which wouldn't understand a cygwinified path. Ahh.
7062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7068 # pw32 DLLs use 'pw' prefix rather than 'lib'
7069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7078 dynamic_linker='Win32 ld.exe'
7079 # FIXME: first we should search . and the directory the executable is in
7083 darwin* | rhapsody*)
7084 dynamic_linker="$host_os dyld"
7088 # FIXME: Relying on posixy $() will cause problems for
7089 # cross-compilation, but unfortunately the echo tests do not
7090 # yet detect zsh echo's removal of \ escapes.
7091 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7092 soname_spec='${libname}${release}${major}$shared_ext'
7093 shlibpath_overrides_runpath=yes
7094 shlibpath_var=DYLD_LIBRARY_PATH
7095 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7096 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7097 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7098 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7108 soname_spec='${libname}${release}${shared_ext}$major'
7109 shlibpath_var=LD_LIBRARY_PATH
7117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7118 version_type=freebsd-$objformat
7119 case $version_type in
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7130 shlibpath_var=LD_LIBRARY_PATH
7133 shlibpath_overrides_runpath=yes
7135 freebsd3.01* | freebsdelf3.01*)
7136 shlibpath_overrides_runpath=yes
7137 hardcode_into_libs=yes
7140 shlibpath_overrides_runpath=no
7141 hardcode_into_libs=yes
7150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7151 soname_spec='${libname}${release}${shared_ext}$major'
7152 shlibpath_var=LD_LIBRARY_PATH
7153 hardcode_into_libs=yes
7156 hpux9* | hpux10* | hpux11*)
7157 # Give a soname corresponding to the major version so that dld.sl refuses to
7158 # link against other versions.
7165 hardcode_into_libs=yes
7166 dynamic_linker="$host_os dld.so"
7167 shlibpath_var=LD_LIBRARY_PATH
7168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7170 soname_spec='${libname}${release}${shared_ext}$major'
7171 if test "X$HPUX_IA64_MODE" = X32; then
7172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7180 hardcode_into_libs=yes
7181 dynamic_linker="$host_os dld.sl"
7182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7191 dynamic_linker="$host_os dld.sl"
7192 shlibpath_var=SHLIB_PATH
7193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7195 soname_spec='${libname}${release}${shared_ext}$major'
7198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7199 postinstall_cmds='chmod 555 $lib'
7202 irix5* | irix6* | nonstopux*)
7204 nonstopux*) version_type=nonstopux ;;
7206 if test "$lt_cv_prog_gnu_ld" = yes; then
7214 soname_spec='${libname}${release}${shared_ext}$major'
7215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7217 irix5* | nonstopux*)
7221 case $LD in # libtool.m4 will add one of these switches to LD
7222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7223 libsuff= shlibsuff= libmagic=32-bit;;
7224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7225 libsuff=32 shlibsuff=N32 libmagic=N32;;
7226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7228 *) libsuff= shlibsuff= libmagic=never-match;;
7232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7233 shlibpath_overrides_runpath=no
7234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7236 hardcode_into_libs=yes
7239 # No shared lib support for Linux oldld, aout, or coff.
7240 linux*oldld* | linux*aout* | linux*coff*)
7244 # This must be Linux ELF.
7249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250 soname_spec='${libname}${release}${shared_ext}$major'
7251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7252 shlibpath_var=LD_LIBRARY_PATH
7253 shlibpath_overrides_runpath=no
7254 # This implies no fast_install, which is unacceptable.
7255 # Some rework will be needed to allow for fast_install
7256 # before this can be enabled.
7257 hardcode_into_libs=yes
7259 # We used to test for /lib/ld.so.1 and disable shared libraries on
7260 # powerpc, because MkLinux only supported shared libraries with the
7261 # GNU dynamic linker. Since this was broken with cross compilers,
7262 # most powerpc-linux boxes support dynamic linking these days and
7263 # people can always --disable-shared, the test was removed, and we
7264 # assume the GNU/Linux dynamic linker is in use.
7265 dynamic_linker='GNU/Linux ld.so'
7272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7275 dynamic_linker='NetBSD (a.out) ld.so'
7277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7278 soname_spec='${libname}${release}${shared_ext}$major'
7279 dynamic_linker='NetBSD ld.elf_so'
7281 shlibpath_var=LD_LIBRARY_PATH
7282 shlibpath_overrides_runpath=yes
7283 hardcode_into_libs=yes
7288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7289 shlibpath_var=LD_LIBRARY_PATH
7290 shlibpath_overrides_runpath=yes
7297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7298 soname_spec='${libname}${release}${shared_ext}$major'
7299 shlibpath_var=LD_LIBRARY_PATH
7300 shlibpath_overrides_runpath=yes
7307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7309 shlibpath_var=LD_LIBRARY_PATH
7310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7312 openbsd2.[89] | openbsd2.[89].*)
7313 shlibpath_overrides_runpath=no
7316 shlibpath_overrides_runpath=yes
7320 shlibpath_overrides_runpath=yes
7325 libname_spec='$name'
7328 library_names_spec='$libname${shared_ext} $libname.a'
7329 dynamic_linker='OS/2 ld.exe'
7330 shlibpath_var=LIBPATH
7333 osf3* | osf4* | osf5*)
7337 soname_spec='${libname}${release}${shared_ext}$major'
7338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7339 shlibpath_var=LD_LIBRARY_PATH
7340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7346 soname_spec='${libname}${release}${shared_ext}$major'
7347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348 shlibpath_var=LD_LIBRARY_PATH
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7356 soname_spec='${libname}${release}${shared_ext}$major'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=yes
7359 hardcode_into_libs=yes
7360 # ldd complains unless libraries are executable
7361 postinstall_cmds='chmod +x $lib'
7366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7368 shlibpath_var=LD_LIBRARY_PATH
7369 shlibpath_overrides_runpath=yes
7370 if test "$with_gnu_ld" = yes; then
7376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379 soname_spec='${libname}${release}${shared_ext}$major'
7380 shlibpath_var=LD_LIBRARY_PATH
7381 case $host_vendor in
7383 shlibpath_overrides_runpath=no
7385 export_dynamic_flag_spec='${wl}-Blargedynsym'
7386 runpath_var=LD_RUN_PATH
7394 shlibpath_overrides_runpath=no
7395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7401 if test -d /usr/nec ;then
7403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7404 soname_spec='$libname${shared_ext}.$major'
7405 shlibpath_var=LD_LIBRARY_PATH
7411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7412 soname_spec='${libname}${release}${shared_ext}$major'
7413 shlibpath_var=LD_LIBRARY_PATH
7420 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7421 echo "${ECHO_T}$dynamic_linker" >&6
7422 test "$dynamic_linker" = no && can_build_shared=no
7424 if test "x$enable_dlopen" != xyes; then
7425 enable_dlopen=unknown
7426 enable_dlopen_self=unknown
7427 enable_dlopen_self_static=unknown
7434 lt_cv_dlopen="load_add_on"
7436 lt_cv_dlopen_self=yes
7440 lt_cv_dlopen="LoadLibrary"
7445 lt_cv_dlopen="dlopen"
7450 # if libdl is installed we need to link against it
7451 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_check_lib_save_LIBS=$LIBS
7458 cat >conftest.$ac_ext <<_ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7465 /* Override any gcc2 internal prototype to avoid an error. */
7469 /* We use char because int might match the return type of a gcc2
7470 builtin and then its argument prototype would still apply. */
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -z "$ac_c_werror_flag"
7490 || test ! -s conftest.err'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try='test -s conftest$ac_exeext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_cv_lib_dl_dlopen=yes
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7507 ac_cv_lib_dl_dlopen=no
7509 rm -f conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511 LIBS=$ac_check_lib_save_LIBS
7513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7515 if test $ac_cv_lib_dl_dlopen = yes; then
7516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7521 lt_cv_dlopen_self=yes
7528 echo "$as_me:$LINENO: checking for shl_load" >&5
7529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7530 if test "${ac_cv_func_shl_load+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7541 #define shl_load innocuous_shl_load
7543 /* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char shl_load (); below.
7545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7546 <limits.h> exists even on freestanding compilers. */
7549 # include <limits.h>
7551 # include <assert.h>
7556 /* Override any gcc2 internal prototype to avoid an error. */
7561 /* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7564 /* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7570 char (*f) () = shl_load;
7579 return f != shl_load;
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1 >conftest.err
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_func_shl_load=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_cv_func_shl_load=no
7613 rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7616 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7618 if test $ac_cv_func_shl_load = yes; then
7619 lt_cv_dlopen="shl_load"
7621 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 ac_check_lib_save_LIBS=$LIBS
7628 cat >conftest.$ac_ext <<_ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7635 /* Override any gcc2 internal prototype to avoid an error. */
7639 /* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7650 rm -f conftest.$ac_objext conftest$ac_exeext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7652 (eval $ac_link) 2>conftest.er1
7654 grep -v '^ *+' conftest.er1 >conftest.err
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try='test -z "$ac_c_werror_flag"
7660 || test ! -s conftest.err'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_cv_lib_dld_shl_load=yes
7674 echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7677 ac_cv_lib_dld_shl_load=no
7679 rm -f conftest.err conftest.$ac_objext \
7680 conftest$ac_exeext conftest.$ac_ext
7681 LIBS=$ac_check_lib_save_LIBS
7683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7685 if test $ac_cv_lib_dld_shl_load = yes; then
7686 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7688 echo "$as_me:$LINENO: checking for dlopen" >&5
7689 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7690 if test "${ac_cv_func_dlopen+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7701 #define dlopen innocuous_dlopen
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char dlopen (); below.
7705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 <limits.h> exists even on freestanding compilers. */
7709 # include <limits.h>
7711 # include <assert.h>
7716 /* Override any gcc2 internal prototype to avoid an error. */
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7724 /* The GNU C library defines this for functions which it implements
7725 to always fail with ENOSYS. Some functions are actually named
7726 something starting with __ and the normal name is an alias. */
7727 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7730 char (*f) () = dlopen;
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_func_dlopen=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_cv_func_dlopen=no
7773 rm -f conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7777 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7778 if test $ac_cv_func_dlopen = yes; then
7779 lt_cv_dlopen="dlopen"
7781 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 ac_check_lib_save_LIBS=$LIBS
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_dl_dlopen=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_cv_lib_dl_dlopen=no
7839 rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7845 if test $ac_cv_lib_dl_dlopen = yes; then
7846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7848 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 ac_check_lib_save_LIBS=$LIBS
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7862 /* Override any gcc2 internal prototype to avoid an error. */
7866 /* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 ac_cv_lib_svld_dlopen=yes
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_cv_lib_svld_dlopen=no
7906 rm -f conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7910 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7912 if test $ac_cv_lib_svld_dlopen = yes; then
7913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 ac_check_lib_save_LIBS=$LIBS
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7929 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_lib_dld_dld_link=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_lib_dld_dld_link=no
7973 rm -f conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975 LIBS=$ac_check_lib_save_LIBS
7977 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7979 if test $ac_cv_lib_dld_dld_link = yes; then
7980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8001 if test "x$lt_cv_dlopen" != xno; then
8007 case $lt_cv_dlopen in
8009 save_CPPFLAGS="$CPPFLAGS"
8010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8012 save_LDFLAGS="$LDFLAGS"
8013 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8016 LIBS="$lt_cv_dlopen_libs $LIBS"
8018 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8019 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8020 if test "${lt_cv_dlopen_self+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 if test "$cross_compiling" = yes; then :
8024 lt_cv_dlopen_self=cross
8026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8027 lt_status=$lt_dlunknown
8028 cat > conftest.$ac_ext <<EOF
8029 #line 8029 "configure"
8030 #include "confdefs.h"
8039 # define LT_DLGLOBAL RTLD_GLOBAL
8042 # define LT_DLGLOBAL DL_GLOBAL
8044 # define LT_DLGLOBAL 0
8048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8049 find out it does not work in some platform. */
8050 #ifndef LT_DLLAZY_OR_NOW
8052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8055 # define LT_DLLAZY_OR_NOW DL_LAZY
8058 # define LT_DLLAZY_OR_NOW RTLD_NOW
8061 # define LT_DLLAZY_OR_NOW DL_NOW
8063 # define LT_DLLAZY_OR_NOW 0
8071 extern "C" void exit (int);
8074 void fnord() { int i=42;}
8077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8078 int status = $lt_dlunknown;
8082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8084 /* dlclose (self); */
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8095 (./conftest; exit; ) 2>/dev/null
8098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8100 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8103 # compilation failed
8104 lt_cv_dlopen_self=no
8111 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8114 if test "x$lt_cv_dlopen_self" = xyes; then
8115 LDFLAGS="$LDFLAGS $link_static_flag"
8116 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8118 if test "${lt_cv_dlopen_self_static+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 if test "$cross_compiling" = yes; then :
8122 lt_cv_dlopen_self_static=cross
8124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8125 lt_status=$lt_dlunknown
8126 cat > conftest.$ac_ext <<EOF
8127 #line 8127 "configure"
8128 #include "confdefs.h"
8137 # define LT_DLGLOBAL RTLD_GLOBAL
8140 # define LT_DLGLOBAL DL_GLOBAL
8142 # define LT_DLGLOBAL 0
8146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8147 find out it does not work in some platform. */
8148 #ifndef LT_DLLAZY_OR_NOW
8150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8153 # define LT_DLLAZY_OR_NOW DL_LAZY
8156 # define LT_DLLAZY_OR_NOW RTLD_NOW
8159 # define LT_DLLAZY_OR_NOW DL_NOW
8161 # define LT_DLLAZY_OR_NOW 0
8169 extern "C" void exit (int);
8172 void fnord() { int i=42;}
8175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8176 int status = $lt_dlunknown;
8180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8182 /* dlclose (self); */
8188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189 (eval $ac_link) 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8193 (./conftest; exit; ) 2>/dev/null
8196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8198 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8201 # compilation failed
8202 lt_cv_dlopen_self_static=no
8209 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8213 CPPFLAGS="$save_CPPFLAGS"
8214 LDFLAGS="$save_LDFLAGS"
8219 case $lt_cv_dlopen_self in
8220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8221 *) enable_dlopen_self=unknown ;;
8224 case $lt_cv_dlopen_self_static in
8225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8226 *) enable_dlopen_self_static=unknown ;;
8231 # Report which librarie types wil actually be built
8232 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8233 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8234 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8235 echo "${ECHO_T}$can_build_shared" >&6
8237 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8238 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8239 test "$can_build_shared" = "no" && enable_shared=no
8241 # On AIX, shared libraries and static libraries use the same namespace, and
8242 # are all built from PIC.
8245 test "$enable_shared" = yes && enable_static=no
8246 if test -n "$RANLIB"; then
8247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8248 postinstall_cmds='$RANLIB $lib'
8253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8254 test "$enable_shared" = yes && enable_static=no
8257 darwin* | rhapsody*)
8258 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8259 archive_cmds_need_lc=no
8261 rhapsody* | darwin1.[012])
8262 allow_undefined_flag='-undefined suppress'
8265 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8268 # FIXME: Relying on posixy $() will cause problems for
8269 # cross-compilation, but unfortunately the echo tests do not
8270 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8271 # `"' quotes if we put them in here... so don't!
8272 output_verbose_link_cmd='echo'
8273 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8274 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8275 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8276 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
8277 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8279 hardcode_automatic=yes
8280 hardcode_shlibpath_var=unsupported
8281 whole_archive_flag_spec='-all_load $convenience'
8282 link_all_deplibs=yes
8286 echo "$as_me:$LINENO: result: $enable_shared" >&5
8287 echo "${ECHO_T}$enable_shared" >&6
8289 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8290 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8291 # Make sure either enable_shared or enable_static is yes.
8292 test "$enable_shared" = yes || enable_static=yes
8293 echo "$as_me:$LINENO: result: $enable_static" >&5
8294 echo "${ECHO_T}$enable_static" >&6
8296 # The else clause should only fire when bootstrapping the
8297 # libtool distribution, otherwise you forgot to ship ltmain.sh
8298 # with your package, and you will get complaints that there are
8299 # no rules to generate ltmain.sh.
8300 if test -f "$ltmain"; then
8301 # See if we are running on zsh, and set the options which allow our commands through
8302 # without removal of \ escapes.
8303 if test -n "${ZSH_VERSION+set}" ; then
8304 setopt NO_GLOB_SUBST
8306 # Now quote all the things that may contain metacharacters while being
8307 # careful not to overquote the AC_SUBSTed values. We take copies of the
8308 # variables and quote the copies for generation of the libtool script.
8309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8312 deplibs_check_method reload_flag reload_cmds need_locks \
8313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8314 lt_cv_sys_global_symbol_to_c_name_address \
8315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8316 old_postinstall_cmds old_postuninstall_cmds \
8320 lt_prog_compiler_wl \
8321 lt_prog_compiler_pic \
8322 lt_prog_compiler_static \
8323 lt_prog_compiler_no_builtin_flag \
8324 export_dynamic_flag_spec \
8325 thread_safe_flag_spec \
8326 whole_archive_flag_spec \
8327 enable_shared_with_static_runtimes \
8329 old_archive_from_new_cmds \
8334 compiler_lib_search_path \
8336 archive_expsym_cmds \
8338 postuninstall_cmds \
8339 old_archive_from_expsyms_cmds \
8340 allow_undefined_flag \
8342 export_symbols_cmds \
8343 hardcode_libdir_flag_spec \
8344 hardcode_libdir_flag_spec_ld \
8345 hardcode_libdir_separator \
8346 hardcode_automatic \
8348 module_expsym_cmds \
8349 lt_cv_prog_compiler_c_o \
8354 old_archive_cmds | \
8355 old_archive_from_new_cmds | \
8357 archive_expsym_cmds | \
8359 module_expsym_cmds | \
8360 old_archive_from_expsyms_cmds | \
8361 export_symbols_cmds | \
8362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8363 postinstall_cmds | postuninstall_cmds | \
8364 old_postinstall_cmds | old_postuninstall_cmds | \
8365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8366 # Double-quote double-evaled strings.
8367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8376 *'\$0 --fallback-echo"')
8377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8382 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8384 { echo "$as_me:$LINENO: creating $ofile" >&5
8385 echo "$as_me: creating $ofile" >&6;}
8387 cat <<__EOF__ >> "$cfgfile"
8390 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8391 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8392 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8394 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8395 # Free Software Foundation, Inc.
8397 # This file is part of GNU Libtool:
8398 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8400 # This program is free software; you can redistribute it and/or modify
8401 # it under the terms of the GNU General Public License as published by
8402 # the Free Software Foundation; either version 2 of the License, or
8403 # (at your option) any later version.
8405 # This program is distributed in the hope that it will be useful, but
8406 # WITHOUT ANY WARRANTY; without even the implied warranty of
8407 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8408 # General Public License for more details.
8410 # You should have received a copy of the GNU General Public License
8411 # along with this program; if not, write to the Free Software
8412 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8414 # As a special exception to the GNU General Public License, if you
8415 # distribute this file as part of a program that contains a
8416 # configuration script generated by Autoconf, you may include it under
8417 # the same distribution terms that you use for the rest of that program.
8419 # A sed program that does not truncate output.
8422 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8423 Xsed="$SED -e s/^X//"
8425 # The HP-UX ksh and POSIX shell print the target directory to stdout
8427 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8429 # The names of the tagged configurations supported by this script.
8432 # ### BEGIN LIBTOOL CONFIG
8434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8436 # Shell to use when invoking shell scripts.
8439 # Whether or not to build shared libraries.
8440 build_libtool_libs=$enable_shared
8442 # Whether or not to build static libraries.
8443 build_old_libs=$enable_static
8445 # Whether or not to add -lc for building shared libraries.
8446 build_libtool_need_lc=$archive_cmds_need_lc
8448 # Whether or not to disallow shared libs when runtime libs are static
8449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8451 # Whether or not to optimize for fast installation.
8452 fast_install=$enable_fast_install
8455 host_alias=$host_alias
8458 # An echo program that does not interpret backslashes.
8463 AR_FLAGS=$lt_AR_FLAGS
8468 # A language-specific compiler.
8471 # Is the compiler the GNU C compiler?
8477 # The linker used to build libraries.
8480 # Whether we need hard or soft links.
8483 # A BSD-compatible nm program.
8486 # A symbol stripping program
8489 # Used to examine libraries when file_magic_cmd begins "file"
8490 MAGIC_CMD=$MAGIC_CMD
8492 # Used on cygwin: DLL creation program.
8495 # Used on cygwin: object dumper.
8498 # Used on cygwin: assembler.
8501 # The name of the directory that contains temporary libtool files.
8504 # How to create reloadable object files.
8505 reload_flag=$lt_reload_flag
8506 reload_cmds=$lt_reload_cmds
8508 # How to pass a linker flag through the compiler.
8509 wl=$lt_lt_prog_compiler_wl
8511 # Object file suffix (normally "o").
8514 # Old archive suffix (normally "a").
8517 # Shared library suffix (normally ".so").
8520 # Executable file suffix (normally "").
8523 # Additional compiler flags for building library objects.
8524 pic_flag=$lt_lt_prog_compiler_pic
8527 # What is the maximum length of a command?
8528 max_cmd_len=$lt_cv_sys_max_cmd_len
8530 # Does compiler simultaneously support -c and -o options?
8531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8533 # Must we lock files when doing compilation ?
8534 need_locks=$lt_need_locks
8536 # Do we need the lib prefix for modules?
8537 need_lib_prefix=$need_lib_prefix
8539 # Do we need a version for libraries?
8540 need_version=$need_version
8542 # Whether dlopen is supported.
8543 dlopen_support=$enable_dlopen
8545 # Whether dlopen of programs is supported.
8546 dlopen_self=$enable_dlopen_self
8548 # Whether dlopen of statically linked programs is supported.
8549 dlopen_self_static=$enable_dlopen_self_static
8551 # Compiler flag to prevent dynamic linking.
8552 link_static_flag=$lt_lt_prog_compiler_static
8554 # Compiler flag to turn off builtin functions.
8555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8557 # Compiler flag to allow reflexive dlopens.
8558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8560 # Compiler flag to generate shared objects directly from archives.
8561 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8563 # Compiler flag to generate thread-safe objects.
8564 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8566 # Library versioning type.
8567 version_type=$version_type
8569 # Format of library name prefix.
8570 libname_spec=$lt_libname_spec
8572 # List of archive names. First name is the real one, the rest are links.
8573 # The last name is the one that the linker finds with -lNAME.
8574 library_names_spec=$lt_library_names_spec
8576 # The coded name of the library, if different from the real name.
8577 soname_spec=$lt_soname_spec
8579 # Commands used to build and install an old-style archive.
8581 old_archive_cmds=$lt_old_archive_cmds
8582 old_postinstall_cmds=$lt_old_postinstall_cmds
8583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8585 # Create an old-style archive from a shared archive.
8586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8588 # Create a temporary old-style archive to link instead of a shared archive.
8589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8591 # Commands used to build and install a shared archive.
8592 archive_cmds=$lt_archive_cmds
8593 archive_expsym_cmds=$lt_archive_expsym_cmds
8594 postinstall_cmds=$lt_postinstall_cmds
8595 postuninstall_cmds=$lt_postuninstall_cmds
8597 # Commands used to build a loadable module (assumed same as above if empty)
8598 module_cmds=$lt_module_cmds
8599 module_expsym_cmds=$lt_module_expsym_cmds
8601 # Commands to strip libraries.
8602 old_striplib=$lt_old_striplib
8603 striplib=$lt_striplib
8605 # Dependencies to place before the objects being linked to create a
8607 predep_objects=$lt_predep_objects
8609 # Dependencies to place after the objects being linked to create a
8611 postdep_objects=$lt_postdep_objects
8613 # Dependencies to place before the objects being linked to create a
8617 # Dependencies to place after the objects being linked to create a
8619 postdeps=$lt_postdeps
8621 # The library search path used internally by the compiler when linking
8623 compiler_lib_search_path=$lt_compiler_lib_search_path
8625 # Method to check whether dependent libraries are shared objects.
8626 deplibs_check_method=$lt_deplibs_check_method
8628 # Command to use when deplibs_check_method == file_magic.
8629 file_magic_cmd=$lt_file_magic_cmd
8631 # Flag that allows shared libraries with undefined symbols to be built.
8632 allow_undefined_flag=$lt_allow_undefined_flag
8634 # Flag that forces no undefined symbols.
8635 no_undefined_flag=$lt_no_undefined_flag
8637 # Commands used to finish a libtool library installation in a directory.
8638 finish_cmds=$lt_finish_cmds
8640 # Same as above, but a single script fragment to be evaled but not shown.
8641 finish_eval=$lt_finish_eval
8643 # Take the output of nm and produce a listing of raw symbols and C names.
8644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8646 # Transform the output of nm in a proper C declaration
8647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8649 # Transform the output of nm in a C name address pair
8650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8652 # This is the shared library runtime path variable.
8653 runpath_var=$runpath_var
8655 # This is the shared library path variable.
8656 shlibpath_var=$shlibpath_var
8658 # Is shlibpath searched before the hard-coded library search path?
8659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8661 # How to hardcode a shared library path into an executable.
8662 hardcode_action=$hardcode_action
8664 # Whether we should hardcode library paths into libraries.
8665 hardcode_into_libs=$hardcode_into_libs
8667 # Flag to hardcode \$libdir into a binary during linking.
8668 # This must work even if \$libdir does not exist.
8669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8671 # If ld is used when linking, flag to hardcode \$libdir into
8672 # a binary during linking. This must work even if \$libdir does
8674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8676 # Whether we need a single -rpath flag with a separated argument.
8677 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8681 hardcode_direct=$hardcode_direct
8683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8685 hardcode_minus_L=$hardcode_minus_L
8687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8688 # the resulting binary.
8689 hardcode_shlibpath_var=$hardcode_shlibpath_var
8691 # Set to yes if building a shared library automatically hardcodes DIR into the library
8692 # and all subsequent libraries and executables linked against it.
8693 hardcode_automatic=$hardcode_automatic
8695 # Variables whose values should be saved in libtool wrapper scripts and
8696 # restored at relink time.
8697 variables_saved_for_relink="$variables_saved_for_relink"
8699 # Whether libtool must link a program against all its dependency libraries.
8700 link_all_deplibs=$link_all_deplibs
8702 # Compile-time system search path for libraries
8703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8705 # Run-time system search path for libraries
8706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8708 # Fix the shell variable \$srcfile for the compiler.
8709 fix_srcfile_path="$fix_srcfile_path"
8711 # Set to yes if exported symbols are required.
8712 always_export_symbols=$always_export_symbols
8714 # The commands to list exported symbols.
8715 export_symbols_cmds=$lt_export_symbols_cmds
8717 # The commands to extract the exported symbol list from a shared archive.
8718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8720 # Symbols that should not be listed in the preloaded symbols.
8721 exclude_expsyms=$lt_exclude_expsyms
8723 # Symbols that must always be exported.
8724 include_expsyms=$lt_include_expsyms
8726 # ### END LIBTOOL CONFIG
8733 cat <<\EOF >> "$cfgfile"
8735 # AIX sometimes has problems with the GCC collect2 program. For some
8736 # reason, if we set the COLLECT_NAMES environment variable, the problems
8737 # vanish in a puff of smoke.
8738 if test "X${COLLECT_NAMES+set}" != Xset; then
8740 export COLLECT_NAMES
8746 # We use sed instead of cat because bash on DJGPP gets confused if
8747 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8748 # text mode, it properly converts lines to CR/LF. This bash problem
8749 # is reportedly fixed, but why not run on old versions too?
8750 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8752 mv -f "$cfgfile" "$ofile" || \
8753 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8757 # If there is no Makefile yet, we rely on a make rule to execute
8758 # `config.status --recheck' to rerun these tests and create the
8759 # libtool script then.
8760 test -f Makefile && make "$ltmain"
8765 ac_cpp='$CPP $CPPFLAGS'
8766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773 # Check whether --with-tags or --without-tags was given.
8774 if test "${with_tags+set}" = set; then
8775 withval="$with_tags"
8779 if test -f "$ltmain" && test -n "$tagnames"; then
8780 if test ! -f "${ofile}"; then
8781 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8782 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8785 if test -z "$LTCC"; then
8786 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8787 if test -z "$LTCC"; then
8788 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8789 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8792 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8796 # Extract list of available tagged configurations in $ofile.
8797 # Note that this assumes the entire list is on one line.
8798 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8801 for tagname in $tagnames; do
8803 # Check whether tagname contains only valid characters
8804 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8806 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8807 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8808 { (exit 1); exit 1; }; }
8812 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8814 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8815 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8816 { (exit 1); exit 1; }; }
8819 # Update the list of available tags.
8820 if test -n "$tagname"; then
8821 echo appending configuration tag \"$tagname\" to $ofile
8825 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8827 ac_cpp='$CXXCPP $CPPFLAGS'
8828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8835 archive_cmds_need_lc_CXX=no
8836 allow_undefined_flag_CXX=
8837 always_export_symbols_CXX=no
8838 archive_expsym_cmds_CXX=
8839 export_dynamic_flag_spec_CXX=
8840 hardcode_direct_CXX=no
8841 hardcode_libdir_flag_spec_CXX=
8842 hardcode_libdir_flag_spec_ld_CXX=
8843 hardcode_libdir_separator_CXX=
8844 hardcode_minus_L_CXX=no
8845 hardcode_automatic_CXX=no
8847 module_expsym_cmds_CXX=
8848 link_all_deplibs_CXX=unknown
8849 old_archive_cmds_CXX=$old_archive_cmds
8850 no_undefined_flag_CXX=
8851 whole_archive_flag_spec_CXX=
8852 enable_shared_with_static_runtimes_CXX=no
8854 # Dependencies to place before and after the object being linked:
8856 postdep_objects_CXX=
8859 compiler_lib_search_path_CXX=
8861 # Source file extension for C++ test sources.
8864 # Object file extension for compiled C++ test sources.
8868 # Code to be used in simple compile tests
8869 lt_simple_compile_test_code="int some_variable = 0;\n"
8871 # Code to be used in simple link tests
8872 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8876 # If no C compiler was specified, use CC.
8879 # Allow CC to be a program name with arguments.
8883 # Allow CC to be a program name with arguments.
8888 lt_save_with_gnu_ld=$with_gnu_ld
8889 lt_save_path_LD=$lt_cv_path_LD
8890 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8891 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8893 unset lt_cv_prog_gnu_ld
8895 if test -n "${lt_cv_path_LDCXX+set}"; then
8896 lt_cv_path_LD=$lt_cv_path_LDCXX
8900 test -z "${LDCXX+set}" || LD=$LDCXX
8904 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8906 # We don't want -fno-exception wen compiling C++ code, so set the
8907 # no_builtin_flag separately
8908 if test "$GXX" = yes; then
8909 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8911 lt_prog_compiler_no_builtin_flag_CXX=
8914 if test "$GXX" = yes; then
8915 # Set up default GNU C++ configuration
8918 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8919 if test "${with_gnu_ld+set}" = set; then
8920 withval="$with_gnu_ld"
8921 test "$withval" = no || with_gnu_ld=yes
8926 if test "$GCC" = yes; then
8927 # Check if gcc -print-prog-name=ld gives a path.
8928 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8929 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8932 # gcc leaves a trailing carriage return which upsets mingw
8933 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8935 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8938 # Accept absolute paths.
8940 re_direlt='/[^/][^/]*/\.\./'
8941 # Canonicalize the path of ld
8942 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8943 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8944 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8946 test -z "$LD" && LD="$ac_prog"
8949 # If it fails, then pretend we aren't using GCC.
8953 # If it is relative, then search for the first ld in PATH.
8957 elif test "$with_gnu_ld" = yes; then
8958 echo "$as_me:$LINENO: checking for GNU ld" >&5
8959 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8961 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8962 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8964 if test "${lt_cv_path_LD+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 if test -z "$LD"; then
8968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8969 for ac_dir in $PATH; do
8971 test -z "$ac_dir" && ac_dir=.
8972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8973 lt_cv_path_LD="$ac_dir/$ac_prog"
8974 # Check to see if the program is GNU ld. I'd rather use --version,
8975 # but apparently some GNU ld's only accept -v.
8976 # Break only if it was the GNU/non-GNU ld that we prefer.
8977 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8978 *GNU* | *'with BFD'*)
8979 test "$with_gnu_ld" != no && break
8982 test "$with_gnu_ld" != yes && break
8989 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8994 if test -n "$LD"; then
8995 echo "$as_me:$LINENO: result: $LD" >&5
8996 echo "${ECHO_T}$LD" >&6
8998 echo "$as_me:$LINENO: result: no" >&5
8999 echo "${ECHO_T}no" >&6
9001 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9002 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9003 { (exit 1); exit 1; }; }
9004 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9005 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9006 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9010 case `"$LD" -v 2>&1 </dev/null` in
9011 *GNU* | *'with BFD'*)
9012 lt_cv_prog_gnu_ld=yes
9015 lt_cv_prog_gnu_ld=no
9019 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9021 with_gnu_ld=$lt_cv_prog_gnu_ld
9025 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9026 # archiving commands below assume that GNU ld is being used.
9027 if test "$with_gnu_ld" = yes; then
9028 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9034 # If archive_cmds runs LD, not CC, wlarc should be empty
9035 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9036 # investigate it a little bit more. (MM)
9039 # ancient GNU ld didn't support --whole-archive et. al.
9040 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9041 grep 'no-whole-archive' > /dev/null; then
9042 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9044 whole_archive_flag_spec_CXX=
9050 # A generic and very simple default shared library creation
9051 # command for GNU C++ for the case where it uses the native
9052 # linker, instead of GNU ld. If possible, this setting should
9053 # overridden to take advantage of the native linker features on
9054 # the platform it is being used on.
9055 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9058 # Commands to make compiler produce verbose output that lists
9059 # what "hidden" libraries, object files and flags are used when
9060 # linking a shared library.
9061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9069 # PORTME: fill in a description of your system's C++ link characteristics
9070 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9075 # FIXME: insert proper C++ library support
9079 if test "$host_cpu" = ia64; then
9080 # On IA64, the linker does run time linking by default, so we don't
9081 # have to do anything special.
9082 aix_use_runtimelinking=no
9083 exp_sym_flag='-Bexport'
9086 aix_use_runtimelinking=no
9088 # Test if we are trying to use run time linking or normal
9089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9090 # need to do runtime linking.
9091 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9092 for ld_flag in $LDFLAGS; do
9095 aix_use_runtimelinking=yes
9102 exp_sym_flag='-bexport'
9103 no_entry_flag='-bnoentry'
9106 # When large executables or shared objects are built, AIX ld can
9107 # have problems creating the table of contents. If linking a library
9108 # or program results in "error TOC overflow" add -mminimal-toc to
9109 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9110 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9113 hardcode_direct_CXX=yes
9114 hardcode_libdir_separator_CXX=':'
9115 link_all_deplibs_CXX=yes
9117 if test "$GXX" = yes; then
9118 case $host_os in aix4.012|aix4.012.*)
9119 # We only want to do this on AIX 4.2 and lower, the check
9120 # below for broken collect2 doesn't work under 4.3+
9121 collect2name=`${CC} -print-prog-name=collect2`
9122 if test -f "$collect2name" && \
9123 strings "$collect2name" | grep resolve_lib_name >/dev/null
9125 # We have reworked collect2
9126 hardcode_direct_CXX=yes
9128 # We have old collect2
9129 hardcode_direct_CXX=unsupported
9130 # It fails to find uninstalled libraries when the uninstalled
9131 # path is not listed in the libpath. Setting hardcode_minus_L
9132 # to unsupported forces relinking
9133 hardcode_minus_L_CXX=yes
9134 hardcode_libdir_flag_spec_CXX='-L$libdir'
9135 hardcode_libdir_separator_CXX=
9138 shared_flag='-shared'
9141 if test "$host_cpu" = ia64; then
9142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9143 # chokes on -Wl,-G. The following line is correct:
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag='${wl}-G'
9149 shared_flag='${wl}-bM:SRE'
9154 # It seems that -bexpall does not export symbols beginning with
9155 # underscore (_), so it is better to generate a list of symbols to export.
9156 always_export_symbols_CXX=yes
9157 if test "$aix_use_runtimelinking" = yes; then
9158 # Warning - without using the other runtime loading flags (-brtl),
9159 # -berok will link without error, but may produce a broken library.
9160 allow_undefined_flag_CXX='-berok'
9161 # Determine the default libpath from the value encoded in an empty executable.
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_cxx_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9202 # Check for a 64-bit object if we didn't find anything.
9203 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9210 rm -f conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9214 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9216 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9218 if test "$host_cpu" = ia64; then
9219 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9220 allow_undefined_flag_CXX="-z nodefs"
9221 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9223 # Determine the default libpath from the value encoded in an empty executable.
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_cxx_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9262 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9264 # Check for a 64-bit object if we didn't find anything.
9265 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9272 rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9276 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9277 # Warning - without using the other run time loading flags,
9278 # -berok will link without error, but may produce a broken library.
9279 no_undefined_flag_CXX=' ${wl}-bernotok'
9280 allow_undefined_flag_CXX=' ${wl}-berok'
9281 # -bexpall does not export symbols beginning with underscore (_)
9282 always_export_symbols_CXX=yes
9283 # Exported symbols can be pulled into shared objects from archives
9284 whole_archive_flag_spec_CXX=' '
9285 archive_cmds_need_lc_CXX=yes
9286 # This is similar to how AIX traditionally builds it's shared libraries.
9287 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9292 case $cc_basename in
9294 # FIXME: insert proper C++ library support
9300 cygwin* | mingw* | pw32*)
9301 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9302 # as there is no search path for DLLs.
9303 hardcode_libdir_flag_spec_CXX='-L$libdir'
9304 allow_undefined_flag_CXX=unsupported
9305 always_export_symbols_CXX=no
9306 enable_shared_with_static_runtimes_CXX=yes
9308 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9309 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9310 # If the export-symbols file already is a .def file (1st line
9311 # is EXPORTS), use it as is; otherwise, prepend...
9312 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9313 cp $export_symbols $output_objdir/$soname.def;
9315 echo EXPORTS > $output_objdir/$soname.def;
9316 cat $export_symbols >> $output_objdir/$soname.def;
9318 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9324 darwin* | rhapsody*)
9325 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9326 archive_cmds_need_lc_CXX=no
9328 rhapsody* | darwin1.[012])
9329 allow_undefined_flag_CXX='-undefined suppress'
9332 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9335 lt_int_apple_cc_single_mod=no
9336 output_verbose_link_cmd='echo'
9337 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9338 lt_int_apple_cc_single_mod=yes
9340 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9341 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9343 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9345 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9348 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9349 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9351 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9353 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9354 hardcode_direct_CXX=no
9355 hardcode_automatic_CXX=yes
9356 hardcode_shlibpath_var_CXX=unsupported
9357 whole_archive_flag_spec_CXX='-all_load $convenience'
9358 link_all_deplibs_CXX=yes
9363 case $cc_basename in
9365 # FIXME: insert proper C++ library support
9369 # Green Hills C++ Compiler
9370 # FIXME: insert proper C++ library support
9374 # FIXME: insert proper C++ library support
9380 # C++ shared libraries reported to be fairly broken before switch to ELF
9384 archive_cmds_need_lc_CXX=no
9387 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_separator_CXX=:
9396 export_dynamic_flag_spec_CXX='${wl}-E'
9397 hardcode_direct_CXX=yes
9398 hardcode_minus_L_CXX=yes # Not in the search PATH,
9399 # but as the default
9400 # location of the library.
9402 case $cc_basename in
9404 # FIXME: insert proper C++ library support
9408 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9409 # Commands to make compiler produce verbose output that lists
9410 # what "hidden" libraries, object files and flags are used when
9411 # linking a shared library.
9413 # There doesn't appear to be a way to prevent this compiler from
9414 # explicitly linking system object files so we need to strip them
9415 # from the output so that they don't get included in the library
9417 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9420 if test "$GXX" = yes; then
9421 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9423 # FIXME: insert proper C++ library support
9430 if test $with_gnu_ld = no; then
9433 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9435 hardcode_libdir_separator_CXX=:
9438 hardcode_libdir_flag_spec_CXX='-L$libdir'
9441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9442 hardcode_libdir_separator_CXX=:
9443 export_dynamic_flag_spec_CXX='${wl}-E'
9449 hardcode_direct_CXX=no
9450 hardcode_shlibpath_var_CXX=no
9453 hardcode_direct_CXX=no
9454 hardcode_shlibpath_var_CXX=no
9455 hardcode_minus_L_CXX=yes # Not in the search PATH,
9456 # but as the default
9457 # location of the library.
9460 hardcode_direct_CXX=yes
9461 hardcode_minus_L_CXX=yes # Not in the search PATH,
9462 # but as the default
9463 # location of the library.
9467 case $cc_basename in
9469 # FIXME: insert proper C++ library support
9475 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9481 # Commands to make compiler produce verbose output that lists
9482 # what "hidden" libraries, object files and flags are used when
9483 # linking a shared library.
9485 # There doesn't appear to be a way to prevent this compiler from
9486 # explicitly linking system object files so we need to strip them
9487 # from the output so that they don't get included in the library
9489 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9492 if test "$GXX" = yes; then
9493 if test $with_gnu_ld = no; then
9496 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9504 # FIXME: insert proper C++ library support
9511 case $cc_basename in
9514 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9516 # Archives containing C++ object files must be created using
9517 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9518 # necessary to make sure instantiated templates are included
9520 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9523 if test "$GXX" = yes; then
9524 if test "$with_gnu_ld" = no; then
9525 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9530 link_all_deplibs_CXX=yes
9533 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9534 hardcode_libdir_separator_CXX=:
9537 case $cc_basename in
9539 # Kuck and Associates, Inc. (KAI) C++ Compiler
9541 # KCC will only create a shared library if the output file
9542 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9543 # to its proper name (with version) after linking.
9544 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9545 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9546 # Commands to make compiler produce verbose output that lists
9547 # what "hidden" libraries, object files and flags are used when
9548 # linking a shared library.
9550 # There doesn't appear to be a way to prevent this compiler from
9551 # explicitly linking system object files so we need to strip them
9552 # from the output so that they don't get included in the library
9554 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9556 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9559 # Archives containing C++ object files must be created using
9560 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9561 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9566 archive_cmds_need_lc_CXX=no
9567 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9570 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9571 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9578 runpath_var=LD_RUN_PATH
9579 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9580 hardcode_libdir_separator_CXX=:
9582 # Commands to make compiler produce verbose output that lists
9583 # what "hidden" libraries, object files and flags are used when
9584 # linking a shared library.
9586 # There doesn't appear to be a way to prevent this compiler from
9587 # explicitly linking system object files so we need to strip them
9588 # from the output so that they don't get included in the library
9590 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9595 # FIXME: insert proper C++ library support
9599 # FIXME: insert proper C++ library support
9603 case $cc_basename in
9605 # FIXME: insert proper C++ library support
9609 # FIXME: insert proper C++ library support
9615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9616 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9618 hardcode_libdir_flag_spec_CXX='-R$libdir'
9619 hardcode_direct_CXX=yes
9620 hardcode_shlibpath_var_CXX=no
9622 # Workaround some broken pre-1.5 toolchains
9623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9626 case $cc_basename in
9628 # Kuck and Associates, Inc. (KAI) C++ Compiler
9630 # KCC will only create a shared library if the output file
9631 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9632 # to its proper name (with version) after linking.
9633 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9636 hardcode_libdir_separator_CXX=:
9638 # Archives containing C++ object files must be created using
9639 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9640 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9644 # Rational C++ 2.4.1
9645 # FIXME: insert proper C++ library support
9649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9650 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9653 hardcode_libdir_separator_CXX=:
9655 # Commands to make compiler produce verbose output that lists
9656 # what "hidden" libraries, object files and flags are used when
9657 # linking a shared library.
9659 # There doesn't appear to be a way to prevent this compiler from
9660 # explicitly linking system object files so we need to strip them
9661 # from the output so that they don't get included in the library
9663 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9668 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9671 hardcode_libdir_separator_CXX=:
9673 # Commands to make compiler produce verbose output that lists
9674 # what "hidden" libraries, object files and flags are used when
9675 # linking a shared library.
9676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9679 # FIXME: insert proper C++ library support
9686 case $cc_basename in
9688 # Kuck and Associates, Inc. (KAI) C++ Compiler
9690 # KCC will only create a shared library if the output file
9691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9692 # to its proper name (with version) after linking.
9693 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9696 hardcode_libdir_separator_CXX=:
9698 # Archives containing C++ object files must be created using
9699 # the KAI C++ compiler.
9700 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9703 # Rational C++ 2.4.1
9704 # FIXME: insert proper C++ library support
9708 allow_undefined_flag_CXX=' -expect_unresolved \*'
9709 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9710 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9711 echo "-hidden">> $lib.exp~
9712 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9715 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9716 hardcode_libdir_separator_CXX=:
9718 # Commands to make compiler produce verbose output that lists
9719 # what "hidden" libraries, object files and flags are used when
9720 # linking a shared library.
9722 # There doesn't appear to be a way to prevent this compiler from
9723 # explicitly linking system object files so we need to strip them
9724 # from the output so that they don't get included in the library
9726 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9731 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator_CXX=:
9736 # Commands to make compiler produce verbose output that lists
9737 # what "hidden" libraries, object files and flags are used when
9738 # linking a shared library.
9739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9742 # FIXME: insert proper C++ library support
9749 # FIXME: insert proper C++ library support
9753 archive_cmds_need_lc_CXX=no
9754 case $cc_basename in
9756 # FIXME: insert proper C++ library support
9760 # FIXME: insert proper C++ library support
9766 case $cc_basename in
9769 # FIXME: insert proper C++ library support
9774 # FIXME: insert proper C++ library support
9778 # FIXME: insert proper C++ library support
9784 case $cc_basename in
9786 # Sun C++ 4.2, 5.x and Centerline C++
9787 no_undefined_flag_CXX=' -zdefs'
9788 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9789 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9790 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9792 hardcode_libdir_flag_spec_CXX='-R$libdir'
9793 hardcode_shlibpath_var_CXX=no
9795 solaris2.0-5 | solaris2.0-5.*) ;;
9797 # The C++ compiler is used as linker so we must use $wl
9798 # flag to pass the commands to the underlying system
9800 # Supported since Solaris 2.6 (maybe 2.5.1?)
9801 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9804 link_all_deplibs_CXX=yes
9806 # Commands to make compiler produce verbose output that lists
9807 # what "hidden" libraries, object files and flags are used when
9808 # linking a shared library.
9810 # There doesn't appear to be a way to prevent this compiler from
9811 # explicitly linking system object files so we need to strip them
9812 # from the output so that they don't get included in the library
9814 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9816 # Archives containing C++ object files must be created using
9817 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9818 # necessary to make sure instantiated templates are included
9820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9823 # Green Hills C++ Compiler
9824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9826 # The C++ compiler must be used to create the archive.
9827 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9830 # GNU C++ compiler with Solaris linker
9831 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9832 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9833 if $CC --version | grep -v '^2\.7' > /dev/null; then
9834 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9835 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9836 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9838 # Commands to make compiler produce verbose output that lists
9839 # what "hidden" libraries, object files and flags are used when
9840 # linking a shared library.
9841 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9843 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9845 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9846 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9847 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9849 # Commands to make compiler produce verbose output that lists
9850 # what "hidden" libraries, object files and flags are used when
9851 # linking a shared library.
9852 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9855 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9860 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9861 archive_cmds_need_lc_CXX=no
9864 case $cc_basename in
9866 # NonStop-UX NCC 3.20
9867 # FIXME: insert proper C++ library support
9871 # FIXME: insert proper C++ library support
9877 # FIXME: insert proper C++ library support
9881 # FIXME: insert proper C++ library support
9885 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9886 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9887 test "$ld_shlibs_CXX" = no && can_build_shared=no
9893 ## There is no encapsulation within the following macros, do not change
9894 ## the running order or otherwise move them around unless you know exactly
9895 ## what you are doing...
9897 cat > conftest.$ac_ext <<EOF
9901 Foo (void) { a = 0; }
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; then
9912 # Parse the compiler output and extract the necessary
9913 # objects, libraries and library flags.
9915 # Sentinel used to keep track of whether or not we are before
9916 # the conftest object file.
9917 pre_test_object_deps_done=no
9919 # The `*' in the case matches for architectures that use `case' in
9920 # $output_verbose_cmd can trigger glob expansion during the loop
9921 # eval without this substitution.
9922 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9924 for p in `eval $output_verbose_link_cmd`; do
9928 # Some compilers place space between "-{L,R}" and the path.
9931 || test $p = "-R"; then
9938 if test "$pre_test_object_deps_done" = no; then
9941 # Internal compiler library paths should come after those
9942 # provided the user. The postdeps already come after the
9943 # user supplied libs so there is no need to process them.
9944 if test -z "$compiler_lib_search_path_CXX"; then
9945 compiler_lib_search_path_CXX="${prev}${p}"
9947 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9950 # The "-l" case would never come before the object being
9951 # linked, so don't bother handling this case.
9954 if test -z "$postdeps_CXX"; then
9955 postdeps_CXX="${prev}${p}"
9957 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9963 # This assumes that the test object file only shows up
9964 # once in the compiler output.
9965 if test "$p" = "conftest.$objext"; then
9966 pre_test_object_deps_done=yes
9970 if test "$pre_test_object_deps_done" = no; then
9971 if test -z "$predep_objects_CXX"; then
9972 predep_objects_CXX="$p"
9974 predep_objects_CXX="$predep_objects_CXX $p"
9977 if test -z "$postdep_objects_CXX"; then
9978 postdep_objects_CXX="$p"
9980 postdep_objects_CXX="$postdep_objects_CXX $p"
9985 *) ;; # Ignore the rest.
9993 echo "libtool.m4: error: problem compiling CXX test program"
9996 $rm -f confest.$objext
9998 case " $postdeps_CXX " in
9999 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10002 lt_prog_compiler_wl_CXX=
10003 lt_prog_compiler_pic_CXX=
10004 lt_prog_compiler_static_CXX=
10006 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10009 # C++ specific cases for pic, static, wl, etc.
10010 if test "$GXX" = yes; then
10011 lt_prog_compiler_wl_CXX='-Wl,'
10012 lt_prog_compiler_static_CXX='-static'
10016 # All AIX code is PIC.
10017 if test "$host_cpu" = ia64; then
10018 # AIX 5 now supports IA64 processor
10019 lt_prog_compiler_static_CXX='-Bstatic'
10023 # FIXME: we need at least 68020 code to build shared libraries, but
10024 # adding the `-m68020' flag to GCC prevents building anything better,
10026 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10029 # PIC is the default for these OSes.
10031 mingw* | os2* | pw32*)
10032 # This hack is so that the source file can tell whether it is being
10033 # built for inclusion in a dll (and should export symbols for example).
10034 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10036 darwin* | rhapsody*)
10037 # PIC is the default on this platform
10038 # Common symbols not allowed in MH_DYLIB files
10039 lt_prog_compiler_pic_CXX='-fno-common'
10042 # DJGPP does not support shared libraries at all
10043 lt_prog_compiler_pic_CXX=
10046 if test -d /usr/nec; then
10047 lt_prog_compiler_pic_CXX=-Kconform_pic
10051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10052 # not for PA HP-UX.
10053 case "$host_cpu" in
10057 lt_prog_compiler_pic_CXX='-fPIC'
10062 lt_prog_compiler_pic_CXX='-fPIC'
10068 # All AIX code is PIC.
10069 if test "$host_cpu" = ia64; then
10070 # AIX 5 now supports IA64 processor
10071 lt_prog_compiler_static_CXX='-Bstatic'
10073 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10077 case $cc_basename in
10079 # Green Hills C++ Compiler
10080 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10085 case $cc_basename in
10087 lt_prog_compiler_pic_CXX='-KPIC'
10090 # Green Hills C++ Compiler
10091 lt_prog_compiler_pic_CXX='-pic'
10098 # FreeBSD uses GNU C++
10100 hpux9* | hpux10* | hpux11*)
10101 case $cc_basename in
10103 lt_prog_compiler_wl_CXX='-Wl,'
10104 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10105 if test "$host_cpu" != ia64; then
10106 lt_prog_compiler_pic_CXX='+Z'
10110 lt_prog_compiler_wl_CXX='-Wl,'
10111 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10112 case "$host_cpu" in
10117 lt_prog_compiler_pic_CXX='+Z'
10125 irix5* | irix6* | nonstopux*)
10126 case $cc_basename in
10128 lt_prog_compiler_wl_CXX='-Wl,'
10129 lt_prog_compiler_static_CXX='-non_shared'
10130 # CC pic flag -KPIC is the default.
10137 case $cc_basename in
10140 lt_prog_compiler_wl_CXX='--backend -Wl,'
10141 lt_prog_compiler_pic_CXX='-fPIC'
10145 lt_prog_compiler_wl_CXX='-Wl,'
10146 lt_prog_compiler_pic_CXX='-KPIC'
10147 lt_prog_compiler_static_CXX='-static'
10151 # Make sure the PIC flag is empty. It appears that all Alpha
10152 # Linux and Compaq Tru64 Unix objects are PIC.
10153 lt_prog_compiler_pic_CXX=
10154 lt_prog_compiler_static_CXX='-non_shared'
10165 case $cc_basename in
10167 lt_prog_compiler_pic_CXX='-W c,exportall'
10175 osf3* | osf4* | osf5*)
10176 case $cc_basename in
10178 lt_prog_compiler_wl_CXX='--backend -Wl,'
10181 # Rational C++ 2.4.1
10182 lt_prog_compiler_pic_CXX='-pic'
10185 # Digital/Compaq C++
10186 lt_prog_compiler_wl_CXX='-Wl,'
10187 # Make sure the PIC flag is empty. It appears that all Alpha
10188 # Linux and Compaq Tru64 Unix objects are PIC.
10189 lt_prog_compiler_pic_CXX=
10190 lt_prog_compiler_static_CXX='-non_shared'
10199 case $cc_basename in
10201 lt_prog_compiler_pic_CXX='-fPIC'
10208 case $cc_basename in
10210 # Sun C++ 4.2, 5.x and Centerline C++
10211 lt_prog_compiler_pic_CXX='-KPIC'
10212 lt_prog_compiler_static_CXX='-Bstatic'
10213 lt_prog_compiler_wl_CXX='-Qoption ld '
10216 # Green Hills C++ Compiler
10217 lt_prog_compiler_pic_CXX='-PIC'
10224 case $cc_basename in
10227 lt_prog_compiler_pic_CXX='-pic'
10228 lt_prog_compiler_static_CXX='-Bstatic'
10232 lt_prog_compiler_pic_CXX='-pic'
10239 case $cc_basename in
10241 # NonStop-UX NCC 3.20
10242 lt_prog_compiler_pic_CXX='-KPIC'
10253 lt_prog_compiler_can_build_shared_CXX=no
10258 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10259 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10262 # Check to make sure the PIC flag actually works.
10264 if test -n "$lt_prog_compiler_pic_CXX"; then
10265 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10267 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 lt_prog_compiler_pic_works_CXX=no
10271 ac_outfile=conftest.$ac_objext
10272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10273 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10274 # Insert the option either (1) after the last *FLAGS variable, or
10275 # (2) before a word containing "conftest.", or (3) at the end.
10276 # Note that $ac_compile itself does not contain backslashes and begins
10277 # with a dollar sign (not a hyphen), so the echo should work correctly.
10278 # The option is referenced via a variable to avoid confusing sed.
10279 lt_compile=`echo "$ac_compile" | $SED \
10280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10282 -e 's:$: $lt_compiler_flag:'`
10283 (eval echo "\"\$as_me:10283: $lt_compile\"" >&5)
10284 (eval "$lt_compile" 2>conftest.err)
10286 cat conftest.err >&5
10287 echo "$as_me:10287: \$? = $ac_status" >&5
10288 if (exit $ac_status) && test -s "$ac_outfile"; then
10289 # The compiler can only warn and ignore the option if not recognized
10290 # So say no if there are warnings
10291 if test ! -s conftest.err; then
10292 lt_prog_compiler_pic_works_CXX=yes
10298 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10299 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10301 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10302 case $lt_prog_compiler_pic_CXX in
10304 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10307 lt_prog_compiler_pic_CXX=
10308 lt_prog_compiler_can_build_shared_CXX=no
10313 # For platforms which do not support PIC, -DPIC is meaningless:
10315 lt_prog_compiler_pic_CXX=
10318 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10322 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10323 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10324 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 lt_cv_prog_compiler_c_o_CXX=no
10328 $rm -r conftest 2>/dev/null
10332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10334 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10335 # that will create temporary files in the current directory regardless of
10336 # the output directory. Thus, making CWD read-only will cause this test
10337 # to fail, enabling locking or at least warning the user not to do parallel
10341 lt_compiler_flag="-o out/conftest2.$ac_objext"
10342 # Insert the option either (1) after the last *FLAGS variable, or
10343 # (2) before a word containing "conftest.", or (3) at the end.
10344 # Note that $ac_compile itself does not contain backslashes and begins
10345 # with a dollar sign (not a hyphen), so the echo should work correctly.
10346 lt_compile=`echo "$ac_compile" | $SED \
10347 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10349 -e 's:$: $lt_compiler_flag:'`
10350 (eval echo "\"\$as_me:10350: $lt_compile\"" >&5)
10351 (eval "$lt_compile" 2>out/conftest.err)
10353 cat out/conftest.err >&5
10354 echo "$as_me:10354: \$? = $ac_status" >&5
10355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10357 # The compiler can only warn and ignore the option if not recognized
10358 # So say no if there are warnings
10359 if test ! -s out/conftest.err; then
10360 lt_cv_prog_compiler_c_o_CXX=yes
10364 $rm conftest* out/*
10371 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10375 hard_links="nottested"
10376 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10377 # do not overwrite the value of need_locks provided by the user
10378 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10384 ln conftest.a conftest.b 2>&5 || hard_links=no
10385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10386 echo "$as_me:$LINENO: result: $hard_links" >&5
10387 echo "${ECHO_T}$hard_links" >&6
10388 if test "$hard_links" = no; then
10389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10397 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10400 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10403 # If we're using GNU nm, then we don't want the "-C" option.
10404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10406 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10408 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10412 export_symbols_cmds_CXX="$ltdll_cmds"
10415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10418 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10422 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10423 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10424 test "$ld_shlibs_CXX" = no && can_build_shared=no
10426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10427 if test "$GCC" = yes; then
10428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10432 # Do we need to explicitly link libc?
10434 case "x$archive_cmds_need_lc_CXX" in
10436 # Assume -lc should be added
10437 archive_cmds_need_lc_CXX=yes
10439 if test "$enable_shared" = yes && test "$GCC" = yes; then
10440 case $archive_cmds_CXX in
10442 # FIXME: we may have to deal with multi-command sequences.
10445 # Test whether the compiler implicitly links with -lc since on some
10446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10447 # to ld, don't add -lc before -lgcc.
10448 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454 (eval $ac_compile) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } 2>conftest.err; then
10460 libobjs=conftest.$ac_objext
10462 wl=$lt_prog_compiler_wl_CXX
10468 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10469 allow_undefined_flag_CXX=
10470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10471 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }
10476 archive_cmds_need_lc_CXX=no
10478 archive_cmds_need_lc_CXX=yes
10480 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10482 cat conftest.err 1>&5
10485 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10486 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10493 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10494 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10495 hardcode_action_CXX=
10496 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10497 test -n "$runpath_var CXX" || \
10498 test "X$hardcode_automatic_CXX"="Xyes" ; then
10500 # We can hardcode non-existant directories.
10501 if test "$hardcode_direct_CXX" != no &&
10502 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10503 # have to relink, otherwise we might link with an installed library
10504 # when we should be linking with a yet-to-be-installed one
10505 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10506 test "$hardcode_minus_L_CXX" != no; then
10507 # Linking always hardcodes the temporary library directory.
10508 hardcode_action_CXX=relink
10510 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10511 hardcode_action_CXX=immediate
10514 # We cannot hardcode anything, or else we can only hardcode existing
10516 hardcode_action_CXX=unsupported
10518 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10519 echo "${ECHO_T}$hardcode_action_CXX" >&6
10521 if test "$hardcode_action_CXX" = relink; then
10522 # Fast installation is not supported
10523 enable_fast_install=no
10524 elif test "$shlibpath_overrides_runpath" = yes ||
10525 test "$enable_shared" = no; then
10526 # Fast installation is not necessary
10527 enable_fast_install=needless
10532 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10533 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10534 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10535 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10536 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10537 echo "$as_me:$LINENO: result: yes" >&5
10538 echo "${ECHO_T}yes" >&6
10540 # FIXME - insert some real tests, host_os isn't really good enough
10543 if test -n "$STRIP" ; then
10544 striplib="$STRIP -x"
10545 echo "$as_me:$LINENO: result: yes" >&5
10546 echo "${ECHO_T}yes" >&6
10548 echo "$as_me:$LINENO: result: no" >&5
10549 echo "${ECHO_T}no" >&6
10553 echo "$as_me:$LINENO: result: no" >&5
10554 echo "${ECHO_T}no" >&6
10559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10561 library_names_spec=
10562 libname_spec='lib$name'
10566 postuninstall_cmds=
10570 shlibpath_overrides_runpath=unknown
10572 dynamic_linker="$host_os ld.so"
10573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10574 if test "$GCC" = yes; then
10575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10576 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10577 # if the path contains ";" then we assume it to be the separator
10578 # otherwise default to the standard path separator (i.e. ":") - it is
10579 # assumed that no part of a normal pathname contains ";" but that should
10580 # okay in the real world where ";" in dirpaths is itself problematic.
10581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10588 need_lib_prefix=unknown
10589 hardcode_into_libs=no
10591 # when you set need_version to no, make sure it does not cause -set_version
10592 # flags to be left without arguments
10593 need_version=unknown
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10599 shlibpath_var=LIBPATH
10601 # AIX 3 has no versioning support, so we append a major version to the name.
10602 soname_spec='${libname}${release}${shared_ext}$major'
10609 hardcode_into_libs=yes
10610 if test "$host_cpu" = ia64; then
10611 # AIX 5 supports IA64
10612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10615 # With GCC up to 2.95.x, collect2 would create an import file
10616 # for dependence libraries. The import file would start with
10617 # the line `#! .'. This would cause the generated library to
10618 # depend on `.', always an invalid library. This was fixed in
10619 # development snapshots of GCC prior to 3.0.
10621 aix4 | aix4.[01] | aix4.[01].*)
10622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10624 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10627 can_build_shared=no
10631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10632 # soname into executable. Probably we can add versioning support to
10633 # collect2, so additional links can be useful in future.
10634 if test "$aix_use_runtimelinking" = yes; then
10635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10636 # instead of lib<name>.a to let people know that these are not
10637 # typical AIX shared libraries.
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 # We preserve .a as extension for shared libraries through AIX4.2
10641 # and later when we are not doing run time linking.
10642 library_names_spec='${libname}${release}.a $libname.a'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LIBPATH
10650 library_names_spec='$libname.ixlibrary $libname.a'
10651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10652 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'
10656 library_names_spec='${libname}${shared_ext}'
10657 dynamic_linker="$host_os ld.so"
10658 shlibpath_var=LIBRARY_PATH
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10670 # the default ld.so.conf also contains /usr/contrib/lib and
10671 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10672 # libtool to hard-code these into programs
10675 cygwin* | mingw* | pw32*)
10676 version_type=windows
10681 case $GCC,$host_os in
10682 yes,cygwin* | yes,mingw* | yes,pw32*)
10683 library_names_spec='$libname.dll.a'
10684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10685 postinstall_cmds='base_file=`basename \${file}`~
10686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10687 dldir=$destdir/`dirname \$dlpath`~
10688 test -d \$dldir || mkdir -p \$dldir~
10689 $install_prog $dir/$dlname \$dldir/$dlname'
10690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10691 dlpath=$dir/\$dldll~
10693 shlibpath_overrides_runpath=yes
10697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10699 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10702 # MinGW DLLs use traditional 'lib' prefix
10703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10706 # It is most probably a Windows format PATH printed by
10707 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10708 # path with ; separators, and with drive letters. We can handle the
10709 # drive letters (cygwin fileutils understands them), so leave them,
10710 # especially as we might pass files found there to a mingw objdump,
10711 # which wouldn't understand a cygwinified path. Ahh.
10712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10718 # pw32 DLLs use 'pw' prefix rather than 'lib'
10719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10728 dynamic_linker='Win32 ld.exe'
10729 # FIXME: first we should search . and the directory the executable is in
10733 darwin* | rhapsody*)
10734 dynamic_linker="$host_os dyld"
10735 version_type=darwin
10738 # FIXME: Relying on posixy $() will cause problems for
10739 # cross-compilation, but unfortunately the echo tests do not
10740 # yet detect zsh echo's removal of \ escapes.
10741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10742 soname_spec='${libname}${release}${major}$shared_ext'
10743 shlibpath_overrides_runpath=yes
10744 shlibpath_var=DYLD_LIBRARY_PATH
10745 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10747 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10748 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10767 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10768 version_type=freebsd-$objformat
10769 case $version_type in
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10780 shlibpath_var=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath=yes
10785 freebsd3.01* | freebsdelf3.01*)
10786 shlibpath_overrides_runpath=yes
10787 hardcode_into_libs=yes
10790 shlibpath_overrides_runpath=no
10791 hardcode_into_libs=yes
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 hardcode_into_libs=yes
10806 hpux9* | hpux10* | hpux11*)
10807 # Give a soname corresponding to the major version so that dld.sl refuses to
10808 # link against other versions.
10812 case "$host_cpu" in
10815 hardcode_into_libs=yes
10816 dynamic_linker="$host_os dld.so"
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 if test "X$HPUX_IA64_MODE" = X32; then
10822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10830 hardcode_into_libs=yes
10831 dynamic_linker="$host_os dld.sl"
10832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10841 dynamic_linker="$host_os dld.sl"
10842 shlibpath_var=SHLIB_PATH
10843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10849 postinstall_cmds='chmod 555 $lib'
10852 irix5* | irix6* | nonstopux*)
10854 nonstopux*) version_type=nonstopux ;;
10856 if test "$lt_cv_prog_gnu_ld" = yes; then
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10867 irix5* | nonstopux*)
10868 libsuff= shlibsuff=
10871 case $LD in # libtool.m4 will add one of these switches to LD
10872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10873 libsuff= shlibsuff= libmagic=32-bit;;
10874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10875 libsuff=32 shlibsuff=N32 libmagic=N32;;
10876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10878 *) libsuff= shlibsuff= libmagic=never-match;;
10882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10883 shlibpath_overrides_runpath=no
10884 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10885 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10886 hardcode_into_libs=yes
10889 # No shared lib support for Linux oldld, aout, or coff.
10890 linux*oldld* | linux*aout* | linux*coff*)
10894 # This must be Linux ELF.
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=no
10904 # This implies no fast_install, which is unacceptable.
10905 # Some rework will be needed to allow for fast_install
10906 # before this can be enabled.
10907 hardcode_into_libs=yes
10909 # We used to test for /lib/ld.so.1 and disable shared libraries on
10910 # powerpc, because MkLinux only supported shared libraries with the
10911 # GNU dynamic linker. Since this was broken with cross compilers,
10912 # most powerpc-linux boxes support dynamic linking these days and
10913 # people can always --disable-shared, the test was removed, and we
10914 # assume the GNU/Linux dynamic linker is in use.
10915 dynamic_linker='GNU/Linux ld.so'
10922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 dynamic_linker='NetBSD (a.out) ld.so'
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 dynamic_linker='NetBSD ld.elf_so'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10933 hardcode_into_libs=yes
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=yes
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10962 openbsd2.[89] | openbsd2.[89].*)
10963 shlibpath_overrides_runpath=no
10966 shlibpath_overrides_runpath=yes
10970 shlibpath_overrides_runpath=yes
10975 libname_spec='$name'
10978 library_names_spec='$libname${shared_ext} $libname.a'
10979 dynamic_linker='OS/2 ld.exe'
10980 shlibpath_var=LIBPATH
10983 osf3* | osf4* | osf5*)
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 shlibpath_var=LD_LIBRARY_PATH
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath=yes
11009 hardcode_into_libs=yes
11010 # ldd complains unless libraries are executable
11011 postinstall_cmds='chmod +x $lib'
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 if test "$with_gnu_ld" = yes; then
11026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 case $host_vendor in
11033 shlibpath_overrides_runpath=no
11035 export_dynamic_flag_spec='${wl}-Blargedynsym'
11036 runpath_var=LD_RUN_PATH
11044 shlibpath_overrides_runpath=no
11045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11051 if test -d /usr/nec ;then
11053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11054 soname_spec='$libname${shared_ext}.$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 shlibpath_var=LD_LIBRARY_PATH
11070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11071 echo "${ECHO_T}$dynamic_linker" >&6
11072 test "$dynamic_linker" = no && can_build_shared=no
11074 if test "x$enable_dlopen" != xyes; then
11075 enable_dlopen=unknown
11076 enable_dlopen_self=unknown
11077 enable_dlopen_self_static=unknown
11084 lt_cv_dlopen="load_add_on"
11086 lt_cv_dlopen_self=yes
11090 lt_cv_dlopen="LoadLibrary"
11095 lt_cv_dlopen="dlopen"
11100 # if libdl is installed we need to link against it
11101 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11102 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11103 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 ac_check_lib_save_LIBS=$LIBS
11108 cat >conftest.$ac_ext <<_ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11115 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_cxx_werror_flag"
11140 || test ! -s conftest.err'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_lib_dl_dlopen=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_lib_dl_dlopen=no
11159 rm -f conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11163 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11164 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11165 if test $ac_cv_lib_dl_dlopen = yes; then
11166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11169 lt_cv_dlopen="dyld"
11171 lt_cv_dlopen_self=yes
11178 echo "$as_me:$LINENO: checking for shl_load" >&5
11179 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11180 if test "${ac_cv_func_shl_load+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11191 #define shl_load innocuous_shl_load
11193 /* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char shl_load (); below.
11195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11196 <limits.h> exists even on freestanding compilers. */
11199 # include <limits.h>
11201 # include <assert.h>
11206 /* Override any gcc2 internal prototype to avoid an error. */
11211 /* We use char because int might match the return type of a gcc2
11212 builtin and then its argument prototype would still apply. */
11214 /* The GNU C library defines this for functions which it implements
11215 to always fail with ENOSYS. Some functions are actually named
11216 something starting with __ and the normal name is an alias. */
11217 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11220 char (*f) () = shl_load;
11229 return f != shl_load;
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>conftest.er1
11238 grep -v '^ *+' conftest.er1 >conftest.err
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_cxx_werror_flag"
11244 || test ! -s conftest.err'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
11250 { ac_try='test -s conftest$ac_exeext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_func_shl_load=yes
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_cv_func_shl_load=no
11263 rm -f conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11267 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11268 if test $ac_cv_func_shl_load = yes; then
11269 lt_cv_dlopen="shl_load"
11271 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11272 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 ac_check_lib_save_LIBS=$LIBS
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11285 /* Override any gcc2 internal prototype to avoid an error. */
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302 (eval $ac_link) 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_cxx_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest$ac_exeext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_cv_lib_dld_shl_load=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_cv_lib_dld_shl_load=no
11329 rm -f conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11334 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11335 if test $ac_cv_lib_dld_shl_load = yes; then
11336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11338 echo "$as_me:$LINENO: checking for dlopen" >&5
11339 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11340 if test "${ac_cv_func_dlopen+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 cat >conftest.$ac_ext <<_ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11351 #define dlopen innocuous_dlopen
11353 /* System header to define __stub macros and hopefully few prototypes,
11354 which can conflict with char dlopen (); below.
11355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11356 <limits.h> exists even on freestanding compilers. */
11359 # include <limits.h>
11361 # include <assert.h>
11366 /* Override any gcc2 internal prototype to avoid an error. */
11371 /* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */
11374 /* The GNU C library defines this for functions which it implements
11375 to always fail with ENOSYS. Some functions are actually named
11376 something starting with __ and the normal name is an alias. */
11377 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11380 char (*f) () = dlopen;
11389 return f != dlopen;
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>conftest.er1
11398 grep -v '^ *+' conftest.er1 >conftest.err
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_cxx_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest$ac_exeext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_cv_func_dlopen=yes
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_cv_func_dlopen=no
11423 rm -f conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11426 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11427 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11428 if test $ac_cv_func_dlopen = yes; then
11429 lt_cv_dlopen="dlopen"
11431 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11432 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11433 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_check_lib_save_LIBS=$LIBS
11438 cat >conftest.$ac_ext <<_ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11445 /* Override any gcc2 internal prototype to avoid an error. */
11449 /* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462 (eval $ac_link) 2>conftest.er1
11464 grep -v '^ *+' conftest.er1 >conftest.err
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -z "$ac_cxx_werror_flag"
11470 || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_lib_dl_dlopen=yes
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 ac_cv_lib_dl_dlopen=no
11489 rm -f conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11494 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11495 if test $ac_cv_lib_dl_dlopen = yes; then
11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11498 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11499 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11500 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 ac_check_lib_save_LIBS=$LIBS
11504 LIBS="-lsvld $LIBS"
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11512 /* Override any gcc2 internal prototype to avoid an error. */
11516 /* We use char because int might match the return type of a gcc2
11517 builtin and then its argument prototype would still apply. */
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11529 (eval $ac_link) 2>conftest.er1
11531 grep -v '^ *+' conftest.er1 >conftest.err
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_cxx_werror_flag"
11537 || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest$ac_exeext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_lib_svld_dlopen=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_lib_svld_dlopen=no
11556 rm -f conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11561 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11562 if test $ac_cv_lib_svld_dlopen = yes; then
11563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11565 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11566 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11567 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 ac_check_lib_save_LIBS=$LIBS
11572 cat >conftest.$ac_ext <<_ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11579 /* Override any gcc2 internal prototype to avoid an error. */
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11594 rm -f conftest.$ac_objext conftest$ac_exeext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11596 (eval $ac_link) 2>conftest.er1
11598 grep -v '^ *+' conftest.er1 >conftest.err
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -z "$ac_cxx_werror_flag"
11604 || test ! -s conftest.err'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_lib_dld_dld_link=yes
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11621 ac_cv_lib_dld_dld_link=no
11623 rm -f conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11628 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11629 if test $ac_cv_lib_dld_dld_link = yes; then
11630 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11651 if test "x$lt_cv_dlopen" != xno; then
11657 case $lt_cv_dlopen in
11659 save_CPPFLAGS="$CPPFLAGS"
11660 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11662 save_LDFLAGS="$LDFLAGS"
11663 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11666 LIBS="$lt_cv_dlopen_libs $LIBS"
11668 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11669 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11670 if test "${lt_cv_dlopen_self+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 if test "$cross_compiling" = yes; then :
11674 lt_cv_dlopen_self=cross
11676 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11677 lt_status=$lt_dlunknown
11678 cat > conftest.$ac_ext <<EOF
11679 #line 11679 "configure"
11680 #include "confdefs.h"
11689 # define LT_DLGLOBAL RTLD_GLOBAL
11692 # define LT_DLGLOBAL DL_GLOBAL
11694 # define LT_DLGLOBAL 0
11698 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11699 find out it does not work in some platform. */
11700 #ifndef LT_DLLAZY_OR_NOW
11702 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11705 # define LT_DLLAZY_OR_NOW DL_LAZY
11708 # define LT_DLLAZY_OR_NOW RTLD_NOW
11711 # define LT_DLLAZY_OR_NOW DL_NOW
11713 # define LT_DLLAZY_OR_NOW 0
11721 extern "C" void exit (int);
11724 void fnord() { int i=42;}
11727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11728 int status = $lt_dlunknown;
11732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11733 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11734 /* dlclose (self); */
11740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11741 (eval $ac_link) 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11745 (./conftest; exit; ) 2>/dev/null
11747 case x$lt_status in
11748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11750 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11753 # compilation failed
11754 lt_cv_dlopen_self=no
11761 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11762 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11764 if test "x$lt_cv_dlopen_self" = xyes; then
11765 LDFLAGS="$LDFLAGS $link_static_flag"
11766 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11767 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11768 if test "${lt_cv_dlopen_self_static+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 if test "$cross_compiling" = yes; then :
11772 lt_cv_dlopen_self_static=cross
11774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11775 lt_status=$lt_dlunknown
11776 cat > conftest.$ac_ext <<EOF
11777 #line 11777 "configure"
11778 #include "confdefs.h"
11787 # define LT_DLGLOBAL RTLD_GLOBAL
11790 # define LT_DLGLOBAL DL_GLOBAL
11792 # define LT_DLGLOBAL 0
11796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11797 find out it does not work in some platform. */
11798 #ifndef LT_DLLAZY_OR_NOW
11800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11803 # define LT_DLLAZY_OR_NOW DL_LAZY
11806 # define LT_DLLAZY_OR_NOW RTLD_NOW
11809 # define LT_DLLAZY_OR_NOW DL_NOW
11811 # define LT_DLLAZY_OR_NOW 0
11819 extern "C" void exit (int);
11822 void fnord() { int i=42;}
11825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11826 int status = $lt_dlunknown;
11830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11832 /* dlclose (self); */
11838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11839 (eval $ac_link) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11843 (./conftest; exit; ) 2>/dev/null
11845 case x$lt_status in
11846 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11847 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11848 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11851 # compilation failed
11852 lt_cv_dlopen_self_static=no
11859 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11860 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11863 CPPFLAGS="$save_CPPFLAGS"
11864 LDFLAGS="$save_LDFLAGS"
11869 case $lt_cv_dlopen_self in
11870 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11871 *) enable_dlopen_self=unknown ;;
11874 case $lt_cv_dlopen_self_static in
11875 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11876 *) enable_dlopen_self_static=unknown ;;
11881 # The else clause should only fire when bootstrapping the
11882 # libtool distribution, otherwise you forgot to ship ltmain.sh
11883 # with your package, and you will get complaints that there are
11884 # no rules to generate ltmain.sh.
11885 if test -f "$ltmain"; then
11886 # See if we are running on zsh, and set the options which allow our commands through
11887 # without removal of \ escapes.
11888 if test -n "${ZSH_VERSION+set}" ; then
11889 setopt NO_GLOB_SUBST
11891 # Now quote all the things that may contain metacharacters while being
11892 # careful not to overquote the AC_SUBSTed values. We take copies of the
11893 # variables and quote the copies for generation of the libtool script.
11894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11895 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11896 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11897 deplibs_check_method reload_flag reload_cmds need_locks \
11898 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11899 lt_cv_sys_global_symbol_to_c_name_address \
11900 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11901 old_postinstall_cmds old_postuninstall_cmds \
11905 lt_prog_compiler_wl_CXX \
11906 lt_prog_compiler_pic_CXX \
11907 lt_prog_compiler_static_CXX \
11908 lt_prog_compiler_no_builtin_flag_CXX \
11909 export_dynamic_flag_spec_CXX \
11910 thread_safe_flag_spec_CXX \
11911 whole_archive_flag_spec_CXX \
11912 enable_shared_with_static_runtimes_CXX \
11913 old_archive_cmds_CXX \
11914 old_archive_from_new_cmds_CXX \
11915 predep_objects_CXX \
11916 postdep_objects_CXX \
11919 compiler_lib_search_path_CXX \
11921 archive_expsym_cmds_CXX \
11922 postinstall_cmds_CXX \
11923 postuninstall_cmds_CXX \
11924 old_archive_from_expsyms_cmds_CXX \
11925 allow_undefined_flag_CXX \
11926 no_undefined_flag_CXX \
11927 export_symbols_cmds_CXX \
11928 hardcode_libdir_flag_spec_CXX \
11929 hardcode_libdir_flag_spec_ld_CXX \
11930 hardcode_libdir_separator_CXX \
11931 hardcode_automatic_CXX \
11933 module_expsym_cmds_CXX \
11934 lt_cv_prog_compiler_c_o_CXX \
11935 exclude_expsyms_CXX \
11936 include_expsyms_CXX; do
11939 old_archive_cmds_CXX | \
11940 old_archive_from_new_cmds_CXX | \
11941 archive_cmds_CXX | \
11942 archive_expsym_cmds_CXX | \
11943 module_cmds_CXX | \
11944 module_expsym_cmds_CXX | \
11945 old_archive_from_expsyms_cmds_CXX | \
11946 export_symbols_cmds_CXX | \
11947 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11948 postinstall_cmds | postuninstall_cmds | \
11949 old_postinstall_cmds | old_postuninstall_cmds | \
11950 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11951 # Double-quote double-evaled strings.
11952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11955 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11961 *'\$0 --fallback-echo"')
11962 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11968 cat <<__EOF__ >> "$cfgfile"
11969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11973 # Shell to use when invoking shell scripts.
11976 # Whether or not to build shared libraries.
11977 build_libtool_libs=$enable_shared
11979 # Whether or not to build static libraries.
11980 build_old_libs=$enable_static
11982 # Whether or not to add -lc for building shared libraries.
11983 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11985 # Whether or not to disallow shared libs when runtime libs are static
11986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11988 # Whether or not to optimize for fast installation.
11989 fast_install=$enable_fast_install
11992 host_alias=$host_alias
11995 # An echo program that does not interpret backslashes.
12000 AR_FLAGS=$lt_AR_FLAGS
12005 # A language-specific compiler.
12006 CC=$lt_compiler_CXX
12008 # Is the compiler the GNU C compiler?
12014 # The linker used to build libraries.
12017 # Whether we need hard or soft links.
12020 # A BSD-compatible nm program.
12023 # A symbol stripping program
12026 # Used to examine libraries when file_magic_cmd begins "file"
12027 MAGIC_CMD=$MAGIC_CMD
12029 # Used on cygwin: DLL creation program.
12032 # Used on cygwin: object dumper.
12035 # Used on cygwin: assembler.
12038 # The name of the directory that contains temporary libtool files.
12041 # How to create reloadable object files.
12042 reload_flag=$lt_reload_flag
12043 reload_cmds=$lt_reload_cmds
12045 # How to pass a linker flag through the compiler.
12046 wl=$lt_lt_prog_compiler_wl_CXX
12048 # Object file suffix (normally "o").
12049 objext="$ac_objext"
12051 # Old archive suffix (normally "a").
12054 # Shared library suffix (normally ".so").
12057 # Executable file suffix (normally "").
12060 # Additional compiler flags for building library objects.
12061 pic_flag=$lt_lt_prog_compiler_pic_CXX
12064 # What is the maximum length of a command?
12065 max_cmd_len=$lt_cv_sys_max_cmd_len
12067 # Does compiler simultaneously support -c and -o options?
12068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12070 # Must we lock files when doing compilation ?
12071 need_locks=$lt_need_locks
12073 # Do we need the lib prefix for modules?
12074 need_lib_prefix=$need_lib_prefix
12076 # Do we need a version for libraries?
12077 need_version=$need_version
12079 # Whether dlopen is supported.
12080 dlopen_support=$enable_dlopen
12082 # Whether dlopen of programs is supported.
12083 dlopen_self=$enable_dlopen_self
12085 # Whether dlopen of statically linked programs is supported.
12086 dlopen_self_static=$enable_dlopen_self_static
12088 # Compiler flag to prevent dynamic linking.
12089 link_static_flag=$lt_lt_prog_compiler_static_CXX
12091 # Compiler flag to turn off builtin functions.
12092 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12094 # Compiler flag to allow reflexive dlopens.
12095 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12097 # Compiler flag to generate shared objects directly from archives.
12098 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12100 # Compiler flag to generate thread-safe objects.
12101 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12103 # Library versioning type.
12104 version_type=$version_type
12106 # Format of library name prefix.
12107 libname_spec=$lt_libname_spec
12109 # List of archive names. First name is the real one, the rest are links.
12110 # The last name is the one that the linker finds with -lNAME.
12111 library_names_spec=$lt_library_names_spec
12113 # The coded name of the library, if different from the real name.
12114 soname_spec=$lt_soname_spec
12116 # Commands used to build and install an old-style archive.
12118 old_archive_cmds=$lt_old_archive_cmds_CXX
12119 old_postinstall_cmds=$lt_old_postinstall_cmds
12120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12122 # Create an old-style archive from a shared archive.
12123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12125 # Create a temporary old-style archive to link instead of a shared archive.
12126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12128 # Commands used to build and install a shared archive.
12129 archive_cmds=$lt_archive_cmds_CXX
12130 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12131 postinstall_cmds=$lt_postinstall_cmds
12132 postuninstall_cmds=$lt_postuninstall_cmds
12134 # Commands used to build a loadable module (assumed same as above if empty)
12135 module_cmds=$lt_module_cmds_CXX
12136 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12138 # Commands to strip libraries.
12139 old_striplib=$lt_old_striplib
12140 striplib=$lt_striplib
12142 # Dependencies to place before the objects being linked to create a
12144 predep_objects=$lt_predep_objects_CXX
12146 # Dependencies to place after the objects being linked to create a
12148 postdep_objects=$lt_postdep_objects_CXX
12150 # Dependencies to place before the objects being linked to create a
12152 predeps=$lt_predeps_CXX
12154 # Dependencies to place after the objects being linked to create a
12156 postdeps=$lt_postdeps_CXX
12158 # The library search path used internally by the compiler when linking
12159 # a shared library.
12160 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12162 # Method to check whether dependent libraries are shared objects.
12163 deplibs_check_method=$lt_deplibs_check_method
12165 # Command to use when deplibs_check_method == file_magic.
12166 file_magic_cmd=$lt_file_magic_cmd
12168 # Flag that allows shared libraries with undefined symbols to be built.
12169 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12171 # Flag that forces no undefined symbols.
12172 no_undefined_flag=$lt_no_undefined_flag_CXX
12174 # Commands used to finish a libtool library installation in a directory.
12175 finish_cmds=$lt_finish_cmds
12177 # Same as above, but a single script fragment to be evaled but not shown.
12178 finish_eval=$lt_finish_eval
12180 # Take the output of nm and produce a listing of raw symbols and C names.
12181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12183 # Transform the output of nm in a proper C declaration
12184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12186 # Transform the output of nm in a C name address pair
12187 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12189 # This is the shared library runtime path variable.
12190 runpath_var=$runpath_var
12192 # This is the shared library path variable.
12193 shlibpath_var=$shlibpath_var
12195 # Is shlibpath searched before the hard-coded library search path?
12196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12198 # How to hardcode a shared library path into an executable.
12199 hardcode_action=$hardcode_action_CXX
12201 # Whether we should hardcode library paths into libraries.
12202 hardcode_into_libs=$hardcode_into_libs
12204 # Flag to hardcode \$libdir into a binary during linking.
12205 # This must work even if \$libdir does not exist.
12206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12208 # If ld is used when linking, flag to hardcode \$libdir into
12209 # a binary during linking. This must work even if \$libdir does
12211 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12213 # Whether we need a single -rpath flag with a separated argument.
12214 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12216 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12217 # resulting binary.
12218 hardcode_direct=$hardcode_direct_CXX
12220 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12221 # resulting binary.
12222 hardcode_minus_L=$hardcode_minus_L_CXX
12224 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12225 # the resulting binary.
12226 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12228 # Set to yes if building a shared library automatically hardcodes DIR into the library
12229 # and all subsequent libraries and executables linked against it.
12230 hardcode_automatic=$hardcode_automatic_CXX
12232 # Variables whose values should be saved in libtool wrapper scripts and
12233 # restored at relink time.
12234 variables_saved_for_relink="$variables_saved_for_relink"
12236 # Whether libtool must link a program against all its dependency libraries.
12237 link_all_deplibs=$link_all_deplibs_CXX
12239 # Compile-time system search path for libraries
12240 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12242 # Run-time system search path for libraries
12243 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12245 # Fix the shell variable \$srcfile for the compiler.
12246 fix_srcfile_path="$fix_srcfile_path_CXX"
12248 # Set to yes if exported symbols are required.
12249 always_export_symbols=$always_export_symbols_CXX
12251 # The commands to list exported symbols.
12252 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12254 # The commands to extract the exported symbol list from a shared archive.
12255 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12257 # Symbols that should not be listed in the preloaded symbols.
12258 exclude_expsyms=$lt_exclude_expsyms_CXX
12260 # Symbols that must always be exported.
12261 include_expsyms=$lt_include_expsyms_CXX
12263 # ### END LIBTOOL TAG CONFIG: $tagname
12269 # If there is no Makefile yet, we rely on a make rule to execute
12270 # `config.status --recheck' to rerun these tests and create the
12271 # libtool script then.
12272 test -f Makefile && make "$ltmain"
12277 ac_cpp='$CPP $CPPFLAGS'
12278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12286 with_gnu_ldcxx=$with_gnu_ld
12287 with_gnu_ld=$lt_save_with_gnu_ld
12288 lt_cv_path_LDCXX=$lt_cv_path_LD
12289 lt_cv_path_LD=$lt_save_path_LD
12290 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12291 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12299 if test -n "$F77" && test "X$F77" != "Xno"; then
12302 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12303 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12307 archive_cmds_need_lc_F77=no
12308 allow_undefined_flag_F77=
12309 always_export_symbols_F77=no
12310 archive_expsym_cmds_F77=
12311 export_dynamic_flag_spec_F77=
12312 hardcode_direct_F77=no
12313 hardcode_libdir_flag_spec_F77=
12314 hardcode_libdir_flag_spec_ld_F77=
12315 hardcode_libdir_separator_F77=
12316 hardcode_minus_L_F77=no
12317 hardcode_automatic_F77=no
12319 module_expsym_cmds_F77=
12320 link_all_deplibs_F77=unknown
12321 old_archive_cmds_F77=$old_archive_cmds
12322 no_undefined_flag_F77=
12323 whole_archive_flag_spec_F77=
12324 enable_shared_with_static_runtimes_F77=no
12326 # Source file extension for f77 test sources.
12329 # Object file extension for compiled f77 test sources.
12333 # Code to be used in simple compile tests
12334 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12336 # Code to be used in simple link tests
12337 lt_simple_link_test_code=" program t\n end\n"
12339 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12341 # If no C compiler was specified, use CC.
12344 # Allow CC to be a program name with arguments.
12348 # Allow CC to be a program name with arguments.
12353 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12355 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12356 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12357 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12358 echo "${ECHO_T}$can_build_shared" >&6
12360 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12361 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12362 test "$can_build_shared" = "no" && enable_shared=no
12364 # On AIX, shared libraries and static libraries use the same namespace, and
12365 # are all built from PIC.
12368 test "$enable_shared" = yes && enable_static=no
12369 if test -n "$RANLIB"; then
12370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12371 postinstall_cmds='$RANLIB $lib'
12375 test "$enable_shared" = yes && enable_static=no
12378 echo "$as_me:$LINENO: result: $enable_shared" >&5
12379 echo "${ECHO_T}$enable_shared" >&6
12381 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12382 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12383 # Make sure either enable_shared or enable_static is yes.
12384 test "$enable_shared" = yes || enable_static=yes
12385 echo "$as_me:$LINENO: result: $enable_static" >&5
12386 echo "${ECHO_T}$enable_static" >&6
12388 test "$ld_shlibs_F77" = no && can_build_shared=no
12393 lt_prog_compiler_wl_F77=
12394 lt_prog_compiler_pic_F77=
12395 lt_prog_compiler_static_F77=
12397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12400 if test "$GCC" = yes; then
12401 lt_prog_compiler_wl_F77='-Wl,'
12402 lt_prog_compiler_static_F77='-static'
12406 # All AIX code is PIC.
12407 if test "$host_cpu" = ia64; then
12408 # AIX 5 now supports IA64 processor
12409 lt_prog_compiler_static_F77='-Bstatic'
12414 # FIXME: we need at least 68020 code to build shared libraries, but
12415 # adding the `-m68020' flag to GCC prevents building anything better,
12417 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12420 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12421 # PIC is the default for these OSes.
12424 mingw* | pw32* | os2*)
12425 # This hack is so that the source file can tell whether it is being
12426 # built for inclusion in a dll (and should export symbols for example).
12427 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12430 darwin* | rhapsody*)
12431 # PIC is the default on this platform
12432 # Common symbols not allowed in MH_DYLIB files
12433 lt_prog_compiler_pic_F77='-fno-common'
12437 # Just because we use GCC doesn't mean we suddenly get shared libraries
12438 # on systems that don't support them.
12439 lt_prog_compiler_can_build_shared_F77=no
12444 if test -d /usr/nec; then
12445 lt_prog_compiler_pic_F77=-Kconform_pic
12450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12451 # not for PA HP-UX.
12452 case "$host_cpu" in
12457 lt_prog_compiler_pic_F77='-fPIC'
12463 lt_prog_compiler_pic_F77='-fPIC'
12467 # PORTME Check for flag to pass linker flags through the system compiler.
12470 lt_prog_compiler_wl_F77='-Wl,'
12471 if test "$host_cpu" = ia64; then
12472 # AIX 5 now supports IA64 processor
12473 lt_prog_compiler_static_F77='-Bstatic'
12475 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12479 mingw* | pw32* | os2*)
12480 # This hack is so that the source file can tell whether it is being
12481 # built for inclusion in a dll (and should export symbols for example).
12482 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12485 hpux9* | hpux10* | hpux11*)
12486 lt_prog_compiler_wl_F77='-Wl,'
12487 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12488 # not for PA HP-UX.
12489 case "$host_cpu" in
12494 lt_prog_compiler_pic_F77='+Z'
12497 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12498 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12501 irix5* | irix6* | nonstopux*)
12502 lt_prog_compiler_wl_F77='-Wl,'
12503 # PIC (with -KPIC) is the default.
12504 lt_prog_compiler_static_F77='-non_shared'
12508 lt_prog_compiler_pic_F77='-KPIC'
12509 lt_prog_compiler_static_F77='-Bstatic'
12515 lt_prog_compiler_wl_F77='-Wl,'
12516 lt_prog_compiler_pic_F77='-KPIC'
12517 lt_prog_compiler_static_F77='-static'
12520 lt_prog_compiler_wl_F77='-Wl,'
12521 # All Alpha code is PIC.
12522 lt_prog_compiler_static_F77='-non_shared'
12527 osf3* | osf4* | osf5*)
12528 lt_prog_compiler_wl_F77='-Wl,'
12529 # All OSF/1 code is PIC.
12530 lt_prog_compiler_static_F77='-non_shared'
12534 lt_prog_compiler_pic_F77='-Kpic'
12535 lt_prog_compiler_static_F77='-dn'
12539 lt_prog_compiler_wl_F77='-Wl,'
12540 lt_prog_compiler_pic_F77='-KPIC'
12541 lt_prog_compiler_static_F77='-Bstatic'
12545 lt_prog_compiler_wl_F77='-Qoption ld '
12546 lt_prog_compiler_pic_F77='-PIC'
12547 lt_prog_compiler_static_F77='-Bstatic'
12550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12551 lt_prog_compiler_wl_F77='-Wl,'
12552 lt_prog_compiler_pic_F77='-KPIC'
12553 lt_prog_compiler_static_F77='-Bstatic'
12557 if test -d /usr/nec ;then
12558 lt_prog_compiler_pic_F77='-Kconform_pic'
12559 lt_prog_compiler_static_F77='-Bstatic'
12564 lt_prog_compiler_pic_F77='-pic'
12565 lt_prog_compiler_static_F77='-Bstatic'
12569 lt_prog_compiler_can_build_shared_F77=no
12574 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12575 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12578 # Check to make sure the PIC flag actually works.
12580 if test -n "$lt_prog_compiler_pic_F77"; then
12581 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12583 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 lt_prog_compiler_pic_works_F77=no
12587 ac_outfile=conftest.$ac_objext
12588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12589 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12590 # Insert the option either (1) after the last *FLAGS variable, or
12591 # (2) before a word containing "conftest.", or (3) at the end.
12592 # Note that $ac_compile itself does not contain backslashes and begins
12593 # with a dollar sign (not a hyphen), so the echo should work correctly.
12594 # The option is referenced via a variable to avoid confusing sed.
12595 lt_compile=`echo "$ac_compile" | $SED \
12596 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12598 -e 's:$: $lt_compiler_flag:'`
12599 (eval echo "\"\$as_me:12599: $lt_compile\"" >&5)
12600 (eval "$lt_compile" 2>conftest.err)
12602 cat conftest.err >&5
12603 echo "$as_me:12603: \$? = $ac_status" >&5
12604 if (exit $ac_status) && test -s "$ac_outfile"; then
12605 # The compiler can only warn and ignore the option if not recognized
12606 # So say no if there are warnings
12607 if test ! -s conftest.err; then
12608 lt_prog_compiler_pic_works_F77=yes
12614 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12615 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12617 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12618 case $lt_prog_compiler_pic_F77 in
12620 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12623 lt_prog_compiler_pic_F77=
12624 lt_prog_compiler_can_build_shared_F77=no
12629 # For platforms which do not support PIC, -DPIC is meaningless:
12631 lt_prog_compiler_pic_F77=
12634 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12638 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12639 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12640 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 lt_cv_prog_compiler_c_o_F77=no
12644 $rm -r conftest 2>/dev/null
12648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12650 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12651 # that will create temporary files in the current directory regardless of
12652 # the output directory. Thus, making CWD read-only will cause this test
12653 # to fail, enabling locking or at least warning the user not to do parallel
12657 lt_compiler_flag="-o out/conftest2.$ac_objext"
12658 # Insert the option either (1) after the last *FLAGS variable, or
12659 # (2) before a word containing "conftest.", or (3) at the end.
12660 # Note that $ac_compile itself does not contain backslashes and begins
12661 # with a dollar sign (not a hyphen), so the echo should work correctly.
12662 lt_compile=`echo "$ac_compile" | $SED \
12663 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12665 -e 's:$: $lt_compiler_flag:'`
12666 (eval echo "\"\$as_me:12666: $lt_compile\"" >&5)
12667 (eval "$lt_compile" 2>out/conftest.err)
12669 cat out/conftest.err >&5
12670 echo "$as_me:12670: \$? = $ac_status" >&5
12671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12673 # The compiler can only warn and ignore the option if not recognized
12674 # So say no if there are warnings
12675 if test ! -s out/conftest.err; then
12676 lt_cv_prog_compiler_c_o_F77=yes
12680 $rm conftest* out/*
12687 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12688 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12691 hard_links="nottested"
12692 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12693 # do not overwrite the value of need_locks provided by the user
12694 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12695 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12700 ln conftest.a conftest.b 2>&5 || hard_links=no
12701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12702 echo "$as_me:$LINENO: result: $hard_links" >&5
12703 echo "${ECHO_T}$hard_links" >&6
12704 if test "$hard_links" = no; then
12705 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12706 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12713 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12714 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12717 allow_undefined_flag_F77=
12718 enable_shared_with_static_runtimes_F77=no
12720 archive_expsym_cmds_F77=
12721 old_archive_From_new_cmds_F77=
12722 old_archive_from_expsyms_cmds_F77=
12723 export_dynamic_flag_spec_F77=
12724 whole_archive_flag_spec_F77=
12725 thread_safe_flag_spec_F77=
12726 hardcode_libdir_flag_spec_F77=
12727 hardcode_libdir_flag_spec_ld_F77=
12728 hardcode_libdir_separator_F77=
12729 hardcode_direct_F77=no
12730 hardcode_minus_L_F77=no
12731 hardcode_shlibpath_var_F77=unsupported
12732 link_all_deplibs_F77=unknown
12733 hardcode_automatic_F77=no
12735 module_expsym_cmds_F77=
12736 always_export_symbols_F77=no
12737 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12738 # include_expsyms should be a list of space-separated symbols to be *always*
12739 # included in the symbol list
12740 include_expsyms_F77=
12741 # exclude_expsyms can be an extended regexp of symbols to exclude
12742 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12743 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12744 # as well as any symbol that contains `d'.
12745 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12746 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12747 # platforms (ab)use it in PIC code, but their linkers get confused if
12748 # the symbol is explicitly referenced. Since portable code cannot
12749 # rely on this symbol name, it's probably fine to never include it in
12750 # preloaded symbol tables.
12751 extract_expsyms_cmds=
12754 cygwin* | mingw* | pw32*)
12755 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12756 # When not using gcc, we currently assume that we are using
12757 # Microsoft Visual C++.
12758 if test "$GCC" != yes; then
12768 if test "$with_gnu_ld" = yes; then
12769 # If archive_cmds runs LD, not CC, wlarc should be empty
12772 # See if GNU ld supports shared libraries.
12774 aix3* | aix4* | aix5*)
12775 # On AIX/PPC, the GNU linker is very broken
12776 if test "$host_cpu" != ia64; then
12780 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12781 *** to be unable to reliably create shared libraries on AIX.
12782 *** Therefore, libtool is disabling shared libraries support. If you
12783 *** really care for shared libraries, you may want to modify your PATH
12784 *** so that a non-GNU linker is found, and then restart.
12791 archive_cmds_F77='$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)'
12792 hardcode_libdir_flag_spec_F77='-L$libdir'
12793 hardcode_minus_L_F77=yes
12795 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12796 # that the semantics of dynamic libraries on AmigaOS, at least up
12797 # to version 4, is to share data among multiple programs linked
12798 # with the same dynamic library. Since this doesn't match the
12799 # behavior of shared libraries on other platforms, we can't use
12805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12806 allow_undefined_flag_F77=unsupported
12807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12808 # support --undefined. This deserves some investigation. FIXME
12809 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12815 cygwin* | mingw* | pw32*)
12816 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12817 # as there is no search path for DLLs.
12818 hardcode_libdir_flag_spec_F77='-L$libdir'
12819 allow_undefined_flag_F77=unsupported
12820 always_export_symbols_F77=no
12821 enable_shared_with_static_runtimes_F77=yes
12822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12824 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12825 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12826 # If the export-symbols file already is a .def file (1st line
12827 # is EXPORTS), use it as is; otherwise, prepend...
12828 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12829 cp $export_symbols $output_objdir/$soname.def;
12831 echo EXPORTS > $output_objdir/$soname.def;
12832 cat $export_symbols >> $output_objdir/$soname.def;
12834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12842 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12845 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12851 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12855 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12856 *** create shared libraries on Solaris systems. Therefore, libtool
12857 *** is disabling shared libraries support. We urge you to upgrade GNU
12858 *** binutils to release 2.9.1 or newer. Another option is to modify
12859 *** your PATH or compiler configuration so that the native linker is
12860 *** used, and then restart.
12863 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12864 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12865 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12872 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12874 hardcode_direct_F77=yes
12875 hardcode_shlibpath_var_F77=no
12879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12888 if test "$ld_shlibs_F77" = yes; then
12889 runpath_var=LD_RUN_PATH
12890 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12891 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12892 # ancient GNU ld didn't support --whole-archive et. al.
12893 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12894 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12896 whole_archive_flag_spec_F77=
12900 # PORTME fill in a description of your system's linker (not GNU ld)
12903 allow_undefined_flag_F77=unsupported
12904 always_export_symbols_F77=yes
12905 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12906 # Note: this linker hardcodes the directories in LIBPATH if there
12907 # are no directories specified by -L.
12908 hardcode_minus_L_F77=yes
12909 if test "$GCC" = yes && test -z "$link_static_flag"; then
12910 # Neither direct hardcoding nor static linking is supported with a
12912 hardcode_direct_F77=unsupported
12917 if test "$host_cpu" = ia64; then
12918 # On IA64, the linker does run time linking by default, so we don't
12919 # have to do anything special.
12920 aix_use_runtimelinking=no
12921 exp_sym_flag='-Bexport'
12924 # If we're using GNU nm, then we don't want the "-C" option.
12925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12926 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12927 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12929 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12931 aix_use_runtimelinking=no
12933 # Test if we are trying to use run time linking or normal
12934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12935 # need to do runtime linking.
12936 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12937 for ld_flag in $LDFLAGS; do
12938 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12939 aix_use_runtimelinking=yes
12945 exp_sym_flag='-bexport'
12946 no_entry_flag='-bnoentry'
12949 # When large executables or shared objects are built, AIX ld can
12950 # have problems creating the table of contents. If linking a library
12951 # or program results in "error TOC overflow" add -mminimal-toc to
12952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12955 archive_cmds_F77=''
12956 hardcode_direct_F77=yes
12957 hardcode_libdir_separator_F77=':'
12958 link_all_deplibs_F77=yes
12960 if test "$GCC" = yes; then
12961 case $host_os in aix4.012|aix4.012.*)
12962 # We only want to do this on AIX 4.2 and lower, the check
12963 # below for broken collect2 doesn't work under 4.3+
12964 collect2name=`${CC} -print-prog-name=collect2`
12965 if test -f "$collect2name" && \
12966 strings "$collect2name" | grep resolve_lib_name >/dev/null
12968 # We have reworked collect2
12969 hardcode_direct_F77=yes
12971 # We have old collect2
12972 hardcode_direct_F77=unsupported
12973 # It fails to find uninstalled libraries when the uninstalled
12974 # path is not listed in the libpath. Setting hardcode_minus_L
12975 # to unsupported forces relinking
12976 hardcode_minus_L_F77=yes
12977 hardcode_libdir_flag_spec_F77='-L$libdir'
12978 hardcode_libdir_separator_F77=
12981 shared_flag='-shared'
12984 if test "$host_cpu" = ia64; then
12985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12986 # chokes on -Wl,-G. The following line is correct:
12989 if test "$aix_use_runtimelinking" = yes; then
12990 shared_flag='${wl}-G'
12992 shared_flag='${wl}-bM:SRE'
12997 # It seems that -bexpall does not export symbols beginning with
12998 # underscore (_), so it is better to generate a list of symbols to export.
12999 always_export_symbols_F77=yes
13000 if test "$aix_use_runtimelinking" = yes; then
13001 # Warning - without using the other runtime loading flags (-brtl),
13002 # -berok will link without error, but may produce a broken library.
13003 allow_undefined_flag_F77='-berok'
13004 # Determine the default libpath from the value encoded in an empty executable.
13005 cat >conftest.$ac_ext <<_ACEOF
13010 rm -f conftest.$ac_objext conftest$ac_exeext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012 (eval $ac_link) 2>conftest.er1
13014 grep -v '^ *+' conftest.er1 >conftest.err
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_f77_werror_flag"
13020 || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13035 # Check for a 64-bit object if we didn't find anything.
13036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13043 rm -f conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13047 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13048 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13050 if test "$host_cpu" = ia64; then
13051 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13052 allow_undefined_flag_F77="-z nodefs"
13053 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13055 # Determine the default libpath from the value encoded in an empty executable.
13056 cat >conftest.$ac_ext <<_ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063 (eval $ac_link) 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_f77_werror_flag"
13071 || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13086 # Check for a 64-bit object if we didn't find anything.
13087 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13094 rm -f conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13098 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13099 # Warning - without using the other run time loading flags,
13100 # -berok will link without error, but may produce a broken library.
13101 no_undefined_flag_F77=' ${wl}-bernotok'
13102 allow_undefined_flag_F77=' ${wl}-berok'
13103 # -bexpall does not export symbols beginning with underscore (_)
13104 always_export_symbols_F77=yes
13105 # Exported symbols can be pulled into shared objects from archives
13106 whole_archive_flag_spec_F77=' '
13107 archive_cmds_need_lc_F77=yes
13108 # This is similar to how AIX traditionally builds it's shared libraries.
13109 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13115 archive_cmds_F77='$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)'
13116 hardcode_libdir_flag_spec_F77='-L$libdir'
13117 hardcode_minus_L_F77=yes
13118 # see comment about different semantics on the GNU ld section
13123 export_dynamic_flag_spec_F77=-rdynamic
13126 cygwin* | mingw* | pw32*)
13127 # When not using gcc, we currently assume that we are using
13128 # Microsoft Visual C++.
13129 # hardcode_libdir_flag_spec is actually meaningless, as there is
13130 # no search path for DLLs.
13131 hardcode_libdir_flag_spec_F77=' '
13132 allow_undefined_flag_F77=unsupported
13133 # Tell ltmain to make .lib files, not .a files.
13135 # Tell ltmain to make .dll files, not .so files.
13137 # FIXME: Setting linknames here is a bad hack.
13138 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13139 # The linker will automatically build a .lib file if we build a DLL.
13140 old_archive_From_new_cmds_F77='true'
13141 # FIXME: Should let the user specify the lib program.
13142 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13143 fix_srcfile_path='`cygpath -w "$srcfile"`'
13144 enable_shared_with_static_runtimes_F77=yes
13147 darwin* | rhapsody*)
13148 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13149 archive_cmds_need_lc_F77=no
13151 rhapsody* | darwin1.[012])
13152 allow_undefined_flag_F77='-undefined suppress'
13155 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13158 # FIXME: Relying on posixy $() will cause problems for
13159 # cross-compilation, but unfortunately the echo tests do not
13160 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13161 # `"' quotes if we put them in here... so don't!
13162 lt_int_apple_cc_single_mod=no
13163 output_verbose_link_cmd='echo'
13164 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13165 lt_int_apple_cc_single_mod=yes
13167 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13168 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13170 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13172 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13173 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13174 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13175 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13177 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13179 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13180 hardcode_direct_F77=no
13181 hardcode_automatic_F77=yes
13182 hardcode_shlibpath_var_F77=unsupported
13183 whole_archive_flag_spec_F77='-all_load $convenience'
13184 link_all_deplibs_F77=yes
13189 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13190 hardcode_libdir_flag_spec_F77='-L$libdir'
13191 hardcode_shlibpath_var_F77=no
13198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13199 # support. Future versions do this automatically, but an explicit c++rt0.o
13200 # does not break anything, and helps significantly (at the cost of a little
13203 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13204 hardcode_libdir_flag_spec_F77='-R$libdir'
13205 hardcode_direct_F77=yes
13206 hardcode_shlibpath_var_F77=no
13209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13211 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13212 hardcode_direct_F77=yes
13213 hardcode_minus_L_F77=yes
13214 hardcode_shlibpath_var_F77=no
13217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13219 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13220 hardcode_libdir_flag_spec_F77='-R$libdir'
13221 hardcode_direct_F77=yes
13222 hardcode_shlibpath_var_F77=no
13226 if test "$GCC" = yes; then
13227 archive_cmds_F77='$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'
13229 archive_cmds_F77='$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'
13231 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13232 hardcode_libdir_separator_F77=:
13233 hardcode_direct_F77=yes
13235 # hardcode_minus_L: Not really in the search PATH,
13236 # but as the default location of the library.
13237 hardcode_minus_L_F77=yes
13238 export_dynamic_flag_spec_F77='${wl}-E'
13242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13243 case "$host_cpu" in
13245 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13248 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13252 case "$host_cpu" in
13254 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13257 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13261 if test "$with_gnu_ld" = no; then
13262 case "$host_cpu" in
13264 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13265 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13266 hardcode_libdir_separator_F77=:
13267 hardcode_direct_F77=no
13268 hardcode_shlibpath_var_F77=no
13271 hardcode_libdir_flag_spec_F77='-L$libdir'
13272 hardcode_direct_F77=no
13273 hardcode_shlibpath_var_F77=no
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_F77=yes
13280 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13281 hardcode_libdir_separator_F77=:
13282 hardcode_direct_F77=yes
13283 export_dynamic_flag_spec_F77='${wl}-E'
13285 # hardcode_minus_L: Not really in the search PATH,
13286 # but as the default location of the library.
13287 hardcode_minus_L_F77=yes
13293 irix5* | irix6* | nonstopux*)
13294 if test "$GCC" = yes; then
13295 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13297 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13298 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13300 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13301 hardcode_libdir_separator_F77=:
13302 link_all_deplibs_F77=yes
13306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13307 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13309 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13311 hardcode_libdir_flag_spec_F77='-R$libdir'
13312 hardcode_direct_F77=yes
13313 hardcode_shlibpath_var_F77=no
13317 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13318 hardcode_direct_F77=yes
13319 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13320 hardcode_libdir_separator_F77=:
13321 hardcode_shlibpath_var_F77=no
13325 hardcode_direct_F77=yes
13326 hardcode_shlibpath_var_F77=no
13327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13328 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13329 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13330 export_dynamic_flag_spec_F77='${wl}-E'
13333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13334 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13335 hardcode_libdir_flag_spec_F77='-R$libdir'
13338 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13346 hardcode_libdir_flag_spec_F77='-L$libdir'
13347 hardcode_minus_L_F77=yes
13348 allow_undefined_flag_F77=unsupported
13349 archive_cmds_F77='$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'
13350 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13354 if test "$GCC" = yes; then
13355 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13356 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13358 allow_undefined_flag_F77=' -expect_unresolved \*'
13359 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13362 hardcode_libdir_separator_F77=:
13365 osf4* | osf5*) # as osf3* with the addition of -msym flag
13366 if test "$GCC" = yes; then
13367 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13368 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13371 allow_undefined_flag_F77=' -expect_unresolved \*'
13372 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13373 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13374 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13376 # Both c and cxx compiler support -rpath directly
13377 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13379 hardcode_libdir_separator_F77=:
13383 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13384 hardcode_shlibpath_var_F77=no
13385 export_dynamic_flag_spec_F77='${wl}-Bexport'
13386 runpath_var=LD_RUN_PATH
13387 hardcode_runpath_var=yes
13391 no_undefined_flag_F77=' -z text'
13392 if test "$GCC" = yes; then
13393 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13395 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13397 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13398 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13401 hardcode_libdir_flag_spec_F77='-R$libdir'
13402 hardcode_shlibpath_var_F77=no
13404 solaris2.[0-5] | solaris2.[0-5].*) ;;
13405 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13406 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13408 link_all_deplibs_F77=yes
13412 if test "x$host_vendor" = xsequent; then
13413 # Use $CC to link under sequent, because it throws in some extra .o
13414 # files that make .init and .fini sections work.
13415 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13417 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_libdir_flag_spec_F77='-L$libdir'
13420 hardcode_direct_F77=yes
13421 hardcode_minus_L_F77=yes
13422 hardcode_shlibpath_var_F77=no
13426 case $host_vendor in
13428 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429 hardcode_direct_F77=yes # is this really true???
13432 ## LD is ld it makes a PLAMLIB
13433 ## CC just makes a GrossModule.
13434 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13435 reload_cmds_F77='$CC -r -o $output$reload_objs'
13436 hardcode_direct_F77=no
13439 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13440 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13443 runpath_var='LD_RUN_PATH'
13444 hardcode_shlibpath_var_F77=no
13448 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 hardcode_shlibpath_var_F77=no
13450 export_dynamic_flag_spec_F77='-Bexport'
13454 if test -d /usr/nec; then
13455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_shlibpath_var_F77=no
13457 runpath_var=LD_RUN_PATH
13458 hardcode_runpath_var=yes
13464 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_direct_F77=yes
13466 hardcode_minus_L_F77=no
13467 hardcode_shlibpath_var_F77=no
13468 hardcode_runpath_var=yes
13469 runpath_var=LD_RUN_PATH
13472 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13473 no_undefined_flag_F77='${wl}-z ${wl}text'
13474 if test "$GCC" = yes; then
13475 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13479 runpath_var='LD_RUN_PATH'
13480 hardcode_shlibpath_var_F77=no
13484 no_undefined_flag_F77=' -z text'
13485 # $CC -shared without GNU ld will not create a library from C++
13486 # object files and a static libstdc++, better avoid it by now
13487 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13490 hardcode_libdir_flag_spec_F77=
13491 hardcode_shlibpath_var_F77=no
13492 runpath_var='LD_RUN_PATH'
13496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497 hardcode_libdir_flag_spec_F77='-L$libdir'
13498 hardcode_shlibpath_var_F77=no
13507 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13508 echo "${ECHO_T}$ld_shlibs_F77" >&6
13509 test "$ld_shlibs_F77" = no && can_build_shared=no
13511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13512 if test "$GCC" = yes; then
13513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13517 # Do we need to explicitly link libc?
13519 case "x$archive_cmds_need_lc_F77" in
13521 # Assume -lc should be added
13522 archive_cmds_need_lc_F77=yes
13524 if test "$enable_shared" = yes && test "$GCC" = yes; then
13525 case $archive_cmds_F77 in
13527 # FIXME: we may have to deal with multi-command sequences.
13530 # Test whether the compiler implicitly links with -lc since on some
13531 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13532 # to ld, don't add -lc before -lgcc.
13533 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13534 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539 (eval $ac_compile) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } 2>conftest.err; then
13545 libobjs=conftest.$ac_objext
13547 wl=$lt_prog_compiler_wl_F77
13553 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13554 allow_undefined_flag_F77=
13555 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13556 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }
13561 archive_cmds_need_lc_F77=no
13563 archive_cmds_need_lc_F77=yes
13565 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13567 cat conftest.err 1>&5
13570 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13571 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13578 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13580 hardcode_action_F77=
13581 if test -n "$hardcode_libdir_flag_spec_F77" || \
13582 test -n "$runpath_var F77" || \
13583 test "X$hardcode_automatic_F77"="Xyes" ; then
13585 # We can hardcode non-existant directories.
13586 if test "$hardcode_direct_F77" != no &&
13587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13588 # have to relink, otherwise we might link with an installed library
13589 # when we should be linking with a yet-to-be-installed one
13590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13591 test "$hardcode_minus_L_F77" != no; then
13592 # Linking always hardcodes the temporary library directory.
13593 hardcode_action_F77=relink
13595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13596 hardcode_action_F77=immediate
13599 # We cannot hardcode anything, or else we can only hardcode existing
13601 hardcode_action_F77=unsupported
13603 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13604 echo "${ECHO_T}$hardcode_action_F77" >&6
13606 if test "$hardcode_action_F77" = relink; then
13607 # Fast installation is not supported
13608 enable_fast_install=no
13609 elif test "$shlibpath_overrides_runpath" = yes ||
13610 test "$enable_shared" = no; then
13611 # Fast installation is not necessary
13612 enable_fast_install=needless
13617 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13622 echo "$as_me:$LINENO: result: yes" >&5
13623 echo "${ECHO_T}yes" >&6
13625 # FIXME - insert some real tests, host_os isn't really good enough
13628 if test -n "$STRIP" ; then
13629 striplib="$STRIP -x"
13630 echo "$as_me:$LINENO: result: yes" >&5
13631 echo "${ECHO_T}yes" >&6
13633 echo "$as_me:$LINENO: result: no" >&5
13634 echo "${ECHO_T}no" >&6
13638 echo "$as_me:$LINENO: result: no" >&5
13639 echo "${ECHO_T}no" >&6
13644 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13645 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13646 library_names_spec=
13647 libname_spec='lib$name'
13651 postuninstall_cmds=
13655 shlibpath_overrides_runpath=unknown
13657 dynamic_linker="$host_os ld.so"
13658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13659 if test "$GCC" = yes; then
13660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13661 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13662 # if the path contains ";" then we assume it to be the separator
13663 # otherwise default to the standard path separator (i.e. ":") - it is
13664 # assumed that no part of a normal pathname contains ";" but that should
13665 # okay in the real world where ";" in dirpaths is itself problematic.
13666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13673 need_lib_prefix=unknown
13674 hardcode_into_libs=no
13676 # when you set need_version to no, make sure it does not cause -set_version
13677 # flags to be left without arguments
13678 need_version=unknown
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13684 shlibpath_var=LIBPATH
13686 # AIX 3 has no versioning support, so we append a major version to the name.
13687 soname_spec='${libname}${release}${shared_ext}$major'
13694 hardcode_into_libs=yes
13695 if test "$host_cpu" = ia64; then
13696 # AIX 5 supports IA64
13697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13698 shlibpath_var=LD_LIBRARY_PATH
13700 # With GCC up to 2.95.x, collect2 would create an import file
13701 # for dependence libraries. The import file would start with
13702 # the line `#! .'. This would cause the generated library to
13703 # depend on `.', always an invalid library. This was fixed in
13704 # development snapshots of GCC prior to 3.0.
13706 aix4 | aix4.[01] | aix4.[01].*)
13707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13709 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13712 can_build_shared=no
13716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13717 # soname into executable. Probably we can add versioning support to
13718 # collect2, so additional links can be useful in future.
13719 if test "$aix_use_runtimelinking" = yes; then
13720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13721 # instead of lib<name>.a to let people know that these are not
13722 # typical AIX shared libraries.
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725 # We preserve .a as extension for shared libraries through AIX4.2
13726 # and later when we are not doing run time linking.
13727 library_names_spec='${libname}${release}.a $libname.a'
13728 soname_spec='${libname}${release}${shared_ext}$major'
13730 shlibpath_var=LIBPATH
13735 library_names_spec='$libname.ixlibrary $libname.a'
13736 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13737 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'
13741 library_names_spec='${libname}${shared_ext}'
13742 dynamic_linker="$host_os ld.so"
13743 shlibpath_var=LIBRARY_PATH
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13754 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13755 # the default ld.so.conf also contains /usr/contrib/lib and
13756 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13757 # libtool to hard-code these into programs
13760 cygwin* | mingw* | pw32*)
13761 version_type=windows
13766 case $GCC,$host_os in
13767 yes,cygwin* | yes,mingw* | yes,pw32*)
13768 library_names_spec='$libname.dll.a'
13769 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13770 postinstall_cmds='base_file=`basename \${file}`~
13771 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13772 dldir=$destdir/`dirname \$dlpath`~
13773 test -d \$dldir || mkdir -p \$dldir~
13774 $install_prog $dir/$dlname \$dldir/$dlname'
13775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13776 dlpath=$dir/\$dldll~
13778 shlibpath_overrides_runpath=yes
13782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13784 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13787 # MinGW DLLs use traditional 'lib' prefix
13788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13790 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13791 # It is most probably a Windows format PATH printed by
13792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13793 # path with ; separators, and with drive letters. We can handle the
13794 # drive letters (cygwin fileutils understands them), so leave them,
13795 # especially as we might pass files found there to a mingw objdump,
13796 # which wouldn't understand a cygwinified path. Ahh.
13797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13803 # pw32 DLLs use 'pw' prefix rather than 'lib'
13804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13813 dynamic_linker='Win32 ld.exe'
13814 # FIXME: first we should search . and the directory the executable is in
13818 darwin* | rhapsody*)
13819 dynamic_linker="$host_os dyld"
13820 version_type=darwin
13823 # FIXME: Relying on posixy $() will cause problems for
13824 # cross-compilation, but unfortunately the echo tests do not
13825 # yet detect zsh echo's removal of \ escapes.
13826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13827 soname_spec='${libname}${release}${major}$shared_ext'
13828 shlibpath_overrides_runpath=yes
13829 shlibpath_var=DYLD_LIBRARY_PATH
13830 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13832 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13833 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13835 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13843 soname_spec='${libname}${release}${shared_ext}$major'
13844 shlibpath_var=LD_LIBRARY_PATH
13852 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13853 version_type=freebsd-$objformat
13854 case $version_type in
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13865 shlibpath_var=LD_LIBRARY_PATH
13868 shlibpath_overrides_runpath=yes
13870 freebsd3.01* | freebsdelf3.01*)
13871 shlibpath_overrides_runpath=yes
13872 hardcode_into_libs=yes
13875 shlibpath_overrides_runpath=no
13876 hardcode_into_libs=yes
13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13886 soname_spec='${libname}${release}${shared_ext}$major'
13887 shlibpath_var=LD_LIBRARY_PATH
13888 hardcode_into_libs=yes
13891 hpux9* | hpux10* | hpux11*)
13892 # Give a soname corresponding to the major version so that dld.sl refuses to
13893 # link against other versions.
13897 case "$host_cpu" in
13900 hardcode_into_libs=yes
13901 dynamic_linker="$host_os dld.so"
13902 shlibpath_var=LD_LIBRARY_PATH
13903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13905 soname_spec='${libname}${release}${shared_ext}$major'
13906 if test "X$HPUX_IA64_MODE" = X32; then
13907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13915 hardcode_into_libs=yes
13916 dynamic_linker="$host_os dld.sl"
13917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13926 dynamic_linker="$host_os dld.sl"
13927 shlibpath_var=SHLIB_PATH
13928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13930 soname_spec='${libname}${release}${shared_ext}$major'
13933 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13934 postinstall_cmds='chmod 555 $lib'
13937 irix5* | irix6* | nonstopux*)
13939 nonstopux*) version_type=nonstopux ;;
13941 if test "$lt_cv_prog_gnu_ld" = yes; then
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13952 irix5* | nonstopux*)
13953 libsuff= shlibsuff=
13956 case $LD in # libtool.m4 will add one of these switches to LD
13957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13958 libsuff= shlibsuff= libmagic=32-bit;;
13959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13960 libsuff=32 shlibsuff=N32 libmagic=N32;;
13961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13963 *) libsuff= shlibsuff= libmagic=never-match;;
13967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13968 shlibpath_overrides_runpath=no
13969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13971 hardcode_into_libs=yes
13974 # No shared lib support for Linux oldld, aout, or coff.
13975 linux*oldld* | linux*aout* | linux*coff*)
13979 # This must be Linux ELF.
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 shlibpath_overrides_runpath=no
13989 # This implies no fast_install, which is unacceptable.
13990 # Some rework will be needed to allow for fast_install
13991 # before this can be enabled.
13992 hardcode_into_libs=yes
13994 # We used to test for /lib/ld.so.1 and disable shared libraries on
13995 # powerpc, because MkLinux only supported shared libraries with the
13996 # GNU dynamic linker. Since this was broken with cross compilers,
13997 # most powerpc-linux boxes support dynamic linking these days and
13998 # people can always --disable-shared, the test was removed, and we
13999 # assume the GNU/Linux dynamic linker is in use.
14000 dynamic_linker='GNU/Linux ld.so'
14007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14010 dynamic_linker='NetBSD (a.out) ld.so'
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 dynamic_linker='NetBSD ld.elf_so'
14016 shlibpath_var=LD_LIBRARY_PATH
14017 shlibpath_overrides_runpath=yes
14018 hardcode_into_libs=yes
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024 shlibpath_var=LD_LIBRARY_PATH
14025 shlibpath_overrides_runpath=yes
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 shlibpath_overrides_runpath=yes
14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14044 shlibpath_var=LD_LIBRARY_PATH
14045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14047 openbsd2.[89] | openbsd2.[89].*)
14048 shlibpath_overrides_runpath=no
14051 shlibpath_overrides_runpath=yes
14055 shlibpath_overrides_runpath=yes
14060 libname_spec='$name'
14063 library_names_spec='$libname${shared_ext} $libname.a'
14064 dynamic_linker='OS/2 ld.exe'
14065 shlibpath_var=LIBPATH
14068 osf3* | osf4* | osf5*)
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14076 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 shlibpath_var=LD_LIBRARY_PATH
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath=yes
14094 hardcode_into_libs=yes
14095 # ldd complains unless libraries are executable
14096 postinstall_cmds='chmod +x $lib'
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 shlibpath_overrides_runpath=yes
14105 if test "$with_gnu_ld" = yes; then
14111 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 case $host_vendor in
14118 shlibpath_overrides_runpath=no
14120 export_dynamic_flag_spec='${wl}-Blargedynsym'
14121 runpath_var=LD_RUN_PATH
14129 shlibpath_overrides_runpath=no
14130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14136 if test -d /usr/nec ;then
14138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14139 soname_spec='$libname${shared_ext}.$major'
14140 shlibpath_var=LD_LIBRARY_PATH
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147 soname_spec='${libname}${release}${shared_ext}$major'
14148 shlibpath_var=LD_LIBRARY_PATH
14155 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14156 echo "${ECHO_T}$dynamic_linker" >&6
14157 test "$dynamic_linker" = no && can_build_shared=no
14160 # The else clause should only fire when bootstrapping the
14161 # libtool distribution, otherwise you forgot to ship ltmain.sh
14162 # with your package, and you will get complaints that there are
14163 # no rules to generate ltmain.sh.
14164 if test -f "$ltmain"; then
14165 # See if we are running on zsh, and set the options which allow our commands through
14166 # without removal of \ escapes.
14167 if test -n "${ZSH_VERSION+set}" ; then
14168 setopt NO_GLOB_SUBST
14170 # Now quote all the things that may contain metacharacters while being
14171 # careful not to overquote the AC_SUBSTed values. We take copies of the
14172 # variables and quote the copies for generation of the libtool script.
14173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14176 deplibs_check_method reload_flag reload_cmds need_locks \
14177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14178 lt_cv_sys_global_symbol_to_c_name_address \
14179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14180 old_postinstall_cmds old_postuninstall_cmds \
14184 lt_prog_compiler_wl_F77 \
14185 lt_prog_compiler_pic_F77 \
14186 lt_prog_compiler_static_F77 \
14187 lt_prog_compiler_no_builtin_flag_F77 \
14188 export_dynamic_flag_spec_F77 \
14189 thread_safe_flag_spec_F77 \
14190 whole_archive_flag_spec_F77 \
14191 enable_shared_with_static_runtimes_F77 \
14192 old_archive_cmds_F77 \
14193 old_archive_from_new_cmds_F77 \
14194 predep_objects_F77 \
14195 postdep_objects_F77 \
14198 compiler_lib_search_path_F77 \
14200 archive_expsym_cmds_F77 \
14201 postinstall_cmds_F77 \
14202 postuninstall_cmds_F77 \
14203 old_archive_from_expsyms_cmds_F77 \
14204 allow_undefined_flag_F77 \
14205 no_undefined_flag_F77 \
14206 export_symbols_cmds_F77 \
14207 hardcode_libdir_flag_spec_F77 \
14208 hardcode_libdir_flag_spec_ld_F77 \
14209 hardcode_libdir_separator_F77 \
14210 hardcode_automatic_F77 \
14212 module_expsym_cmds_F77 \
14213 lt_cv_prog_compiler_c_o_F77 \
14214 exclude_expsyms_F77 \
14215 include_expsyms_F77; do
14218 old_archive_cmds_F77 | \
14219 old_archive_from_new_cmds_F77 | \
14220 archive_cmds_F77 | \
14221 archive_expsym_cmds_F77 | \
14222 module_cmds_F77 | \
14223 module_expsym_cmds_F77 | \
14224 old_archive_from_expsyms_cmds_F77 | \
14225 export_symbols_cmds_F77 | \
14226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14227 postinstall_cmds | postuninstall_cmds | \
14228 old_postinstall_cmds | old_postuninstall_cmds | \
14229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14230 # Double-quote double-evaled strings.
14231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14240 *'\$0 --fallback-echo"')
14241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14247 cat <<__EOF__ >> "$cfgfile"
14248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14252 # Shell to use when invoking shell scripts.
14255 # Whether or not to build shared libraries.
14256 build_libtool_libs=$enable_shared
14258 # Whether or not to build static libraries.
14259 build_old_libs=$enable_static
14261 # Whether or not to add -lc for building shared libraries.
14262 build_libtool_need_lc=$archive_cmds_need_lc_F77
14264 # Whether or not to disallow shared libs when runtime libs are static
14265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14267 # Whether or not to optimize for fast installation.
14268 fast_install=$enable_fast_install
14271 host_alias=$host_alias
14274 # An echo program that does not interpret backslashes.
14279 AR_FLAGS=$lt_AR_FLAGS
14284 # A language-specific compiler.
14285 CC=$lt_compiler_F77
14287 # Is the compiler the GNU C compiler?
14293 # The linker used to build libraries.
14296 # Whether we need hard or soft links.
14299 # A BSD-compatible nm program.
14302 # A symbol stripping program
14305 # Used to examine libraries when file_magic_cmd begins "file"
14306 MAGIC_CMD=$MAGIC_CMD
14308 # Used on cygwin: DLL creation program.
14311 # Used on cygwin: object dumper.
14314 # Used on cygwin: assembler.
14317 # The name of the directory that contains temporary libtool files.
14320 # How to create reloadable object files.
14321 reload_flag=$lt_reload_flag
14322 reload_cmds=$lt_reload_cmds
14324 # How to pass a linker flag through the compiler.
14325 wl=$lt_lt_prog_compiler_wl_F77
14327 # Object file suffix (normally "o").
14328 objext="$ac_objext"
14330 # Old archive suffix (normally "a").
14333 # Shared library suffix (normally ".so").
14336 # Executable file suffix (normally "").
14339 # Additional compiler flags for building library objects.
14340 pic_flag=$lt_lt_prog_compiler_pic_F77
14343 # What is the maximum length of a command?
14344 max_cmd_len=$lt_cv_sys_max_cmd_len
14346 # Does compiler simultaneously support -c and -o options?
14347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14349 # Must we lock files when doing compilation ?
14350 need_locks=$lt_need_locks
14352 # Do we need the lib prefix for modules?
14353 need_lib_prefix=$need_lib_prefix
14355 # Do we need a version for libraries?
14356 need_version=$need_version
14358 # Whether dlopen is supported.
14359 dlopen_support=$enable_dlopen
14361 # Whether dlopen of programs is supported.
14362 dlopen_self=$enable_dlopen_self
14364 # Whether dlopen of statically linked programs is supported.
14365 dlopen_self_static=$enable_dlopen_self_static
14367 # Compiler flag to prevent dynamic linking.
14368 link_static_flag=$lt_lt_prog_compiler_static_F77
14370 # Compiler flag to turn off builtin functions.
14371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14373 # Compiler flag to allow reflexive dlopens.
14374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14376 # Compiler flag to generate shared objects directly from archives.
14377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14379 # Compiler flag to generate thread-safe objects.
14380 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14382 # Library versioning type.
14383 version_type=$version_type
14385 # Format of library name prefix.
14386 libname_spec=$lt_libname_spec
14388 # List of archive names. First name is the real one, the rest are links.
14389 # The last name is the one that the linker finds with -lNAME.
14390 library_names_spec=$lt_library_names_spec
14392 # The coded name of the library, if different from the real name.
14393 soname_spec=$lt_soname_spec
14395 # Commands used to build and install an old-style archive.
14397 old_archive_cmds=$lt_old_archive_cmds_F77
14398 old_postinstall_cmds=$lt_old_postinstall_cmds
14399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14401 # Create an old-style archive from a shared archive.
14402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14404 # Create a temporary old-style archive to link instead of a shared archive.
14405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14407 # Commands used to build and install a shared archive.
14408 archive_cmds=$lt_archive_cmds_F77
14409 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14410 postinstall_cmds=$lt_postinstall_cmds
14411 postuninstall_cmds=$lt_postuninstall_cmds
14413 # Commands used to build a loadable module (assumed same as above if empty)
14414 module_cmds=$lt_module_cmds_F77
14415 module_expsym_cmds=$lt_module_expsym_cmds_F77
14417 # Commands to strip libraries.
14418 old_striplib=$lt_old_striplib
14419 striplib=$lt_striplib
14421 # Dependencies to place before the objects being linked to create a
14423 predep_objects=$lt_predep_objects_F77
14425 # Dependencies to place after the objects being linked to create a
14427 postdep_objects=$lt_postdep_objects_F77
14429 # Dependencies to place before the objects being linked to create a
14431 predeps=$lt_predeps_F77
14433 # Dependencies to place after the objects being linked to create a
14435 postdeps=$lt_postdeps_F77
14437 # The library search path used internally by the compiler when linking
14438 # a shared library.
14439 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14441 # Method to check whether dependent libraries are shared objects.
14442 deplibs_check_method=$lt_deplibs_check_method
14444 # Command to use when deplibs_check_method == file_magic.
14445 file_magic_cmd=$lt_file_magic_cmd
14447 # Flag that allows shared libraries with undefined symbols to be built.
14448 allow_undefined_flag=$lt_allow_undefined_flag_F77
14450 # Flag that forces no undefined symbols.
14451 no_undefined_flag=$lt_no_undefined_flag_F77
14453 # Commands used to finish a libtool library installation in a directory.
14454 finish_cmds=$lt_finish_cmds
14456 # Same as above, but a single script fragment to be evaled but not shown.
14457 finish_eval=$lt_finish_eval
14459 # Take the output of nm and produce a listing of raw symbols and C names.
14460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14462 # Transform the output of nm in a proper C declaration
14463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14465 # Transform the output of nm in a C name address pair
14466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14468 # This is the shared library runtime path variable.
14469 runpath_var=$runpath_var
14471 # This is the shared library path variable.
14472 shlibpath_var=$shlibpath_var
14474 # Is shlibpath searched before the hard-coded library search path?
14475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14477 # How to hardcode a shared library path into an executable.
14478 hardcode_action=$hardcode_action_F77
14480 # Whether we should hardcode library paths into libraries.
14481 hardcode_into_libs=$hardcode_into_libs
14483 # Flag to hardcode \$libdir into a binary during linking.
14484 # This must work even if \$libdir does not exist.
14485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14487 # If ld is used when linking, flag to hardcode \$libdir into
14488 # a binary during linking. This must work even if \$libdir does
14490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14492 # Whether we need a single -rpath flag with a separated argument.
14493 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14496 # resulting binary.
14497 hardcode_direct=$hardcode_direct_F77
14499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14500 # resulting binary.
14501 hardcode_minus_L=$hardcode_minus_L_F77
14503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14504 # the resulting binary.
14505 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14507 # Set to yes if building a shared library automatically hardcodes DIR into the library
14508 # and all subsequent libraries and executables linked against it.
14509 hardcode_automatic=$hardcode_automatic_F77
14511 # Variables whose values should be saved in libtool wrapper scripts and
14512 # restored at relink time.
14513 variables_saved_for_relink="$variables_saved_for_relink"
14515 # Whether libtool must link a program against all its dependency libraries.
14516 link_all_deplibs=$link_all_deplibs_F77
14518 # Compile-time system search path for libraries
14519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14521 # Run-time system search path for libraries
14522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14524 # Fix the shell variable \$srcfile for the compiler.
14525 fix_srcfile_path="$fix_srcfile_path_F77"
14527 # Set to yes if exported symbols are required.
14528 always_export_symbols=$always_export_symbols_F77
14530 # The commands to list exported symbols.
14531 export_symbols_cmds=$lt_export_symbols_cmds_F77
14533 # The commands to extract the exported symbol list from a shared archive.
14534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14536 # Symbols that should not be listed in the preloaded symbols.
14537 exclude_expsyms=$lt_exclude_expsyms_F77
14539 # Symbols that must always be exported.
14540 include_expsyms=$lt_include_expsyms_F77
14542 # ### END LIBTOOL TAG CONFIG: $tagname
14548 # If there is no Makefile yet, we rely on a make rule to execute
14549 # `config.status --recheck' to rerun these tests and create the
14550 # libtool script then.
14551 test -f Makefile && make "$ltmain"
14556 ac_cpp='$CPP $CPPFLAGS'
14557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14569 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14573 # Source file extension for Java test sources.
14576 # Object file extension for compiled Java test sources.
14580 # Code to be used in simple compile tests
14581 lt_simple_compile_test_code="class foo {}\n"
14583 # Code to be used in simple link tests
14584 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14588 # If no C compiler was specified, use CC.
14591 # Allow CC to be a program name with arguments.
14595 # Allow CC to be a program name with arguments.
14601 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14602 archive_cmds_need_lc_GCJ=no
14605 ## There is no encapsulation within the following macros, do not change
14606 ## the running order or otherwise move them around unless you know exactly
14607 ## what you are doing...
14609 lt_prog_compiler_no_builtin_flag_GCJ=
14611 if test "$GCC" = yes; then
14612 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14614 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 lt_cv_prog_compiler_rtti_exceptions=no
14620 ac_outfile=conftest.$ac_objext
14621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14622 lt_compiler_flag="-fno-rtti -fno-exceptions"
14623 # Insert the option either (1) after the last *FLAGS variable, or
14624 # (2) before a word containing "conftest.", or (3) at the end.
14625 # Note that $ac_compile itself does not contain backslashes and begins
14626 # with a dollar sign (not a hyphen), so the echo should work correctly.
14627 # The option is referenced via a variable to avoid confusing sed.
14628 lt_compile=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
14632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633 (eval "$lt_compile" 2>conftest.err)
14635 cat conftest.err >&5
14636 echo "$as_me:14636: \$? = $ac_status" >&5
14637 if (exit $ac_status) && test -s "$ac_outfile"; then
14638 # The compiler can only warn and ignore the option if not recognized
14639 # So say no if there are warnings
14640 if test ! -s conftest.err; then
14641 lt_cv_prog_compiler_rtti_exceptions=yes
14647 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14648 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14651 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14658 lt_prog_compiler_wl_GCJ=
14659 lt_prog_compiler_pic_GCJ=
14660 lt_prog_compiler_static_GCJ=
14662 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14663 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14665 if test "$GCC" = yes; then
14666 lt_prog_compiler_wl_GCJ='-Wl,'
14667 lt_prog_compiler_static_GCJ='-static'
14671 # All AIX code is PIC.
14672 if test "$host_cpu" = ia64; then
14673 # AIX 5 now supports IA64 processor
14674 lt_prog_compiler_static_GCJ='-Bstatic'
14679 # FIXME: we need at least 68020 code to build shared libraries, but
14680 # adding the `-m68020' flag to GCC prevents building anything better,
14682 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14685 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14686 # PIC is the default for these OSes.
14689 mingw* | pw32* | os2*)
14690 # This hack is so that the source file can tell whether it is being
14691 # built for inclusion in a dll (and should export symbols for example).
14692 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14695 darwin* | rhapsody*)
14696 # PIC is the default on this platform
14697 # Common symbols not allowed in MH_DYLIB files
14698 lt_prog_compiler_pic_GCJ='-fno-common'
14702 # Just because we use GCC doesn't mean we suddenly get shared libraries
14703 # on systems that don't support them.
14704 lt_prog_compiler_can_build_shared_GCJ=no
14709 if test -d /usr/nec; then
14710 lt_prog_compiler_pic_GCJ=-Kconform_pic
14715 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14716 # not for PA HP-UX.
14717 case "$host_cpu" in
14722 lt_prog_compiler_pic_GCJ='-fPIC'
14728 lt_prog_compiler_pic_GCJ='-fPIC'
14732 # PORTME Check for flag to pass linker flags through the system compiler.
14735 lt_prog_compiler_wl_GCJ='-Wl,'
14736 if test "$host_cpu" = ia64; then
14737 # AIX 5 now supports IA64 processor
14738 lt_prog_compiler_static_GCJ='-Bstatic'
14740 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14744 mingw* | pw32* | os2*)
14745 # This hack is so that the source file can tell whether it is being
14746 # built for inclusion in a dll (and should export symbols for example).
14747 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14750 hpux9* | hpux10* | hpux11*)
14751 lt_prog_compiler_wl_GCJ='-Wl,'
14752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14753 # not for PA HP-UX.
14754 case "$host_cpu" in
14759 lt_prog_compiler_pic_GCJ='+Z'
14762 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14763 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14766 irix5* | irix6* | nonstopux*)
14767 lt_prog_compiler_wl_GCJ='-Wl,'
14768 # PIC (with -KPIC) is the default.
14769 lt_prog_compiler_static_GCJ='-non_shared'
14773 lt_prog_compiler_pic_GCJ='-KPIC'
14774 lt_prog_compiler_static_GCJ='-Bstatic'
14780 lt_prog_compiler_wl_GCJ='-Wl,'
14781 lt_prog_compiler_pic_GCJ='-KPIC'
14782 lt_prog_compiler_static_GCJ='-static'
14785 lt_prog_compiler_wl_GCJ='-Wl,'
14786 # All Alpha code is PIC.
14787 lt_prog_compiler_static_GCJ='-non_shared'
14792 osf3* | osf4* | osf5*)
14793 lt_prog_compiler_wl_GCJ='-Wl,'
14794 # All OSF/1 code is PIC.
14795 lt_prog_compiler_static_GCJ='-non_shared'
14799 lt_prog_compiler_pic_GCJ='-Kpic'
14800 lt_prog_compiler_static_GCJ='-dn'
14804 lt_prog_compiler_wl_GCJ='-Wl,'
14805 lt_prog_compiler_pic_GCJ='-KPIC'
14806 lt_prog_compiler_static_GCJ='-Bstatic'
14810 lt_prog_compiler_wl_GCJ='-Qoption ld '
14811 lt_prog_compiler_pic_GCJ='-PIC'
14812 lt_prog_compiler_static_GCJ='-Bstatic'
14815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 lt_prog_compiler_pic_GCJ='-KPIC'
14818 lt_prog_compiler_static_GCJ='-Bstatic'
14822 if test -d /usr/nec ;then
14823 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14824 lt_prog_compiler_static_GCJ='-Bstatic'
14829 lt_prog_compiler_pic_GCJ='-pic'
14830 lt_prog_compiler_static_GCJ='-Bstatic'
14834 lt_prog_compiler_can_build_shared_GCJ=no
14839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14840 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14843 # Check to make sure the PIC flag actually works.
14845 if test -n "$lt_prog_compiler_pic_GCJ"; then
14846 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14847 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14848 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 lt_prog_compiler_pic_works_GCJ=no
14852 ac_outfile=conftest.$ac_objext
14853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14854 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14855 # Insert the option either (1) after the last *FLAGS variable, or
14856 # (2) before a word containing "conftest.", or (3) at the end.
14857 # Note that $ac_compile itself does not contain backslashes and begins
14858 # with a dollar sign (not a hyphen), so the echo should work correctly.
14859 # The option is referenced via a variable to avoid confusing sed.
14860 lt_compile=`echo "$ac_compile" | $SED \
14861 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14863 -e 's:$: $lt_compiler_flag:'`
14864 (eval echo "\"\$as_me:14864: $lt_compile\"" >&5)
14865 (eval "$lt_compile" 2>conftest.err)
14867 cat conftest.err >&5
14868 echo "$as_me:14868: \$? = $ac_status" >&5
14869 if (exit $ac_status) && test -s "$ac_outfile"; then
14870 # The compiler can only warn and ignore the option if not recognized
14871 # So say no if there are warnings
14872 if test ! -s conftest.err; then
14873 lt_prog_compiler_pic_works_GCJ=yes
14879 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14880 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14882 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14883 case $lt_prog_compiler_pic_GCJ in
14885 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14888 lt_prog_compiler_pic_GCJ=
14889 lt_prog_compiler_can_build_shared_GCJ=no
14894 # For platforms which do not support PIC, -DPIC is meaningless:
14896 lt_prog_compiler_pic_GCJ=
14899 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14903 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14905 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 lt_cv_prog_compiler_c_o_GCJ=no
14909 $rm -r conftest 2>/dev/null
14913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14915 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14916 # that will create temporary files in the current directory regardless of
14917 # the output directory. Thus, making CWD read-only will cause this test
14918 # to fail, enabling locking or at least warning the user not to do parallel
14922 lt_compiler_flag="-o out/conftest2.$ac_objext"
14923 # Insert the option either (1) after the last *FLAGS variable, or
14924 # (2) before a word containing "conftest.", or (3) at the end.
14925 # Note that $ac_compile itself does not contain backslashes and begins
14926 # with a dollar sign (not a hyphen), so the echo should work correctly.
14927 lt_compile=`echo "$ac_compile" | $SED \
14928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14930 -e 's:$: $lt_compiler_flag:'`
14931 (eval echo "\"\$as_me:14931: $lt_compile\"" >&5)
14932 (eval "$lt_compile" 2>out/conftest.err)
14934 cat out/conftest.err >&5
14935 echo "$as_me:14935: \$? = $ac_status" >&5
14936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14938 # The compiler can only warn and ignore the option if not recognized
14939 # So say no if there are warnings
14940 if test ! -s out/conftest.err; then
14941 lt_cv_prog_compiler_c_o_GCJ=yes
14945 $rm conftest* out/*
14952 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14953 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14956 hard_links="nottested"
14957 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14958 # do not overwrite the value of need_locks provided by the user
14959 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14965 ln conftest.a conftest.b 2>&5 || hard_links=no
14966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14967 echo "$as_me:$LINENO: result: $hard_links" >&5
14968 echo "${ECHO_T}$hard_links" >&6
14969 if test "$hard_links" = no; then
14970 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14978 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14979 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14982 allow_undefined_flag_GCJ=
14983 enable_shared_with_static_runtimes_GCJ=no
14985 archive_expsym_cmds_GCJ=
14986 old_archive_From_new_cmds_GCJ=
14987 old_archive_from_expsyms_cmds_GCJ=
14988 export_dynamic_flag_spec_GCJ=
14989 whole_archive_flag_spec_GCJ=
14990 thread_safe_flag_spec_GCJ=
14991 hardcode_libdir_flag_spec_GCJ=
14992 hardcode_libdir_flag_spec_ld_GCJ=
14993 hardcode_libdir_separator_GCJ=
14994 hardcode_direct_GCJ=no
14995 hardcode_minus_L_GCJ=no
14996 hardcode_shlibpath_var_GCJ=unsupported
14997 link_all_deplibs_GCJ=unknown
14998 hardcode_automatic_GCJ=no
15000 module_expsym_cmds_GCJ=
15001 always_export_symbols_GCJ=no
15002 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15003 # include_expsyms should be a list of space-separated symbols to be *always*
15004 # included in the symbol list
15005 include_expsyms_GCJ=
15006 # exclude_expsyms can be an extended regexp of symbols to exclude
15007 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15008 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15009 # as well as any symbol that contains `d'.
15010 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15011 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15012 # platforms (ab)use it in PIC code, but their linkers get confused if
15013 # the symbol is explicitly referenced. Since portable code cannot
15014 # rely on this symbol name, it's probably fine to never include it in
15015 # preloaded symbol tables.
15016 extract_expsyms_cmds=
15019 cygwin* | mingw* | pw32*)
15020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15021 # When not using gcc, we currently assume that we are using
15022 # Microsoft Visual C++.
15023 if test "$GCC" != yes; then
15033 if test "$with_gnu_ld" = yes; then
15034 # If archive_cmds runs LD, not CC, wlarc should be empty
15037 # See if GNU ld supports shared libraries.
15039 aix3* | aix4* | aix5*)
15040 # On AIX/PPC, the GNU linker is very broken
15041 if test "$host_cpu" != ia64; then
15045 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15046 *** to be unable to reliably create shared libraries on AIX.
15047 *** Therefore, libtool is disabling shared libraries support. If you
15048 *** really care for shared libraries, you may want to modify your PATH
15049 *** so that a non-GNU linker is found, and then restart.
15056 archive_cmds_GCJ='$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)'
15057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15058 hardcode_minus_L_GCJ=yes
15060 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15061 # that the semantics of dynamic libraries on AmigaOS, at least up
15062 # to version 4, is to share data among multiple programs linked
15063 # with the same dynamic library. Since this doesn't match the
15064 # behavior of shared libraries on other platforms, we can't use
15070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071 allow_undefined_flag_GCJ=unsupported
15072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15073 # support --undefined. This deserves some investigation. FIXME
15074 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080 cygwin* | mingw* | pw32*)
15081 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15082 # as there is no search path for DLLs.
15083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15084 allow_undefined_flag_GCJ=unsupported
15085 always_export_symbols_GCJ=no
15086 enable_shared_with_static_runtimes_GCJ=yes
15087 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15089 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15090 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15091 # If the export-symbols file already is a .def file (1st line
15092 # is EXPORTS), use it as is; otherwise, prepend...
15093 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15094 cp $export_symbols $output_objdir/$soname.def;
15096 echo EXPORTS > $output_objdir/$soname.def;
15097 cat $export_symbols >> $output_objdir/$soname.def;
15099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15107 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15110 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15116 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15121 *** create shared libraries on Solaris systems. Therefore, libtool
15122 *** is disabling shared libraries support. We urge you to upgrade GNU
15123 *** binutils to release 2.9.1 or newer. Another option is to modify
15124 *** your PATH or compiler configuration so that the native linker is
15125 *** used, and then restart.
15128 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15130 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15137 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15139 hardcode_direct_GCJ=yes
15140 hardcode_shlibpath_var_GCJ=no
15144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15146 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15153 if test "$ld_shlibs_GCJ" = yes; then
15154 runpath_var=LD_RUN_PATH
15155 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15156 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15157 # ancient GNU ld didn't support --whole-archive et. al.
15158 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15159 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15161 whole_archive_flag_spec_GCJ=
15165 # PORTME fill in a description of your system's linker (not GNU ld)
15168 allow_undefined_flag_GCJ=unsupported
15169 always_export_symbols_GCJ=yes
15170 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15171 # Note: this linker hardcodes the directories in LIBPATH if there
15172 # are no directories specified by -L.
15173 hardcode_minus_L_GCJ=yes
15174 if test "$GCC" = yes && test -z "$link_static_flag"; then
15175 # Neither direct hardcoding nor static linking is supported with a
15177 hardcode_direct_GCJ=unsupported
15182 if test "$host_cpu" = ia64; then
15183 # On IA64, the linker does run time linking by default, so we don't
15184 # have to do anything special.
15185 aix_use_runtimelinking=no
15186 exp_sym_flag='-Bexport'
15189 # If we're using GNU nm, then we don't want the "-C" option.
15190 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15191 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15192 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15194 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15196 aix_use_runtimelinking=no
15198 # Test if we are trying to use run time linking or normal
15199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15200 # need to do runtime linking.
15201 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15202 for ld_flag in $LDFLAGS; do
15203 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15204 aix_use_runtimelinking=yes
15210 exp_sym_flag='-bexport'
15211 no_entry_flag='-bnoentry'
15214 # When large executables or shared objects are built, AIX ld can
15215 # have problems creating the table of contents. If linking a library
15216 # or program results in "error TOC overflow" add -mminimal-toc to
15217 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15218 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15220 archive_cmds_GCJ=''
15221 hardcode_direct_GCJ=yes
15222 hardcode_libdir_separator_GCJ=':'
15223 link_all_deplibs_GCJ=yes
15225 if test "$GCC" = yes; then
15226 case $host_os in aix4.012|aix4.012.*)
15227 # We only want to do this on AIX 4.2 and lower, the check
15228 # below for broken collect2 doesn't work under 4.3+
15229 collect2name=`${CC} -print-prog-name=collect2`
15230 if test -f "$collect2name" && \
15231 strings "$collect2name" | grep resolve_lib_name >/dev/null
15233 # We have reworked collect2
15234 hardcode_direct_GCJ=yes
15236 # We have old collect2
15237 hardcode_direct_GCJ=unsupported
15238 # It fails to find uninstalled libraries when the uninstalled
15239 # path is not listed in the libpath. Setting hardcode_minus_L
15240 # to unsupported forces relinking
15241 hardcode_minus_L_GCJ=yes
15242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15243 hardcode_libdir_separator_GCJ=
15246 shared_flag='-shared'
15249 if test "$host_cpu" = ia64; then
15250 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15251 # chokes on -Wl,-G. The following line is correct:
15254 if test "$aix_use_runtimelinking" = yes; then
15255 shared_flag='${wl}-G'
15257 shared_flag='${wl}-bM:SRE'
15262 # It seems that -bexpall does not export symbols beginning with
15263 # underscore (_), so it is better to generate a list of symbols to export.
15264 always_export_symbols_GCJ=yes
15265 if test "$aix_use_runtimelinking" = yes; then
15266 # Warning - without using the other runtime loading flags (-brtl),
15267 # -berok will link without error, but may produce a broken library.
15268 allow_undefined_flag_GCJ='-berok'
15269 # Determine the default libpath from the value encoded in an empty executable.
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287 (eval $ac_link) 2>conftest.er1
15289 grep -v '^ *+' conftest.er1 >conftest.err
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag"
15295 || test ! -s conftest.err'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest$ac_exeext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15310 # Check for a 64-bit object if we didn't find anything.
15311 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15318 rm -f conftest.err conftest.$ac_objext \
15319 conftest$ac_exeext conftest.$ac_ext
15320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15322 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15323 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15325 if test "$host_cpu" = ia64; then
15326 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15327 allow_undefined_flag_GCJ="-z nodefs"
15328 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15330 # Determine the default libpath from the value encoded in an empty executable.
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348 (eval $ac_link) 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_c_werror_flag"
15356 || test ! -s conftest.err'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try='test -s conftest$ac_exeext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15371 # Check for a 64-bit object if we didn't find anything.
15372 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15379 rm -f conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15383 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15384 # Warning - without using the other run time loading flags,
15385 # -berok will link without error, but may produce a broken library.
15386 no_undefined_flag_GCJ=' ${wl}-bernotok'
15387 allow_undefined_flag_GCJ=' ${wl}-berok'
15388 # -bexpall does not export symbols beginning with underscore (_)
15389 always_export_symbols_GCJ=yes
15390 # Exported symbols can be pulled into shared objects from archives
15391 whole_archive_flag_spec_GCJ=' '
15392 archive_cmds_need_lc_GCJ=yes
15393 # This is similar to how AIX traditionally builds it's shared libraries.
15394 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15400 archive_cmds_GCJ='$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)'
15401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15402 hardcode_minus_L_GCJ=yes
15403 # see comment about different semantics on the GNU ld section
15408 export_dynamic_flag_spec_GCJ=-rdynamic
15411 cygwin* | mingw* | pw32*)
15412 # When not using gcc, we currently assume that we are using
15413 # Microsoft Visual C++.
15414 # hardcode_libdir_flag_spec is actually meaningless, as there is
15415 # no search path for DLLs.
15416 hardcode_libdir_flag_spec_GCJ=' '
15417 allow_undefined_flag_GCJ=unsupported
15418 # Tell ltmain to make .lib files, not .a files.
15420 # Tell ltmain to make .dll files, not .so files.
15422 # FIXME: Setting linknames here is a bad hack.
15423 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15424 # The linker will automatically build a .lib file if we build a DLL.
15425 old_archive_From_new_cmds_GCJ='true'
15426 # FIXME: Should let the user specify the lib program.
15427 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15428 fix_srcfile_path='`cygpath -w "$srcfile"`'
15429 enable_shared_with_static_runtimes_GCJ=yes
15432 darwin* | rhapsody*)
15433 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15434 archive_cmds_need_lc_GCJ=no
15436 rhapsody* | darwin1.[012])
15437 allow_undefined_flag_GCJ='-undefined suppress'
15440 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15443 # FIXME: Relying on posixy $() will cause problems for
15444 # cross-compilation, but unfortunately the echo tests do not
15445 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15446 # `"' quotes if we put them in here... so don't!
15447 lt_int_apple_cc_single_mod=no
15448 output_verbose_link_cmd='echo'
15449 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15450 lt_int_apple_cc_single_mod=yes
15452 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15453 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15455 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15457 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15459 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15460 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15462 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15464 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15465 hardcode_direct_GCJ=no
15466 hardcode_automatic_GCJ=yes
15467 hardcode_shlibpath_var_GCJ=unsupported
15468 whole_archive_flag_spec_GCJ='-all_load $convenience'
15469 link_all_deplibs_GCJ=yes
15474 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15475 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476 hardcode_shlibpath_var_GCJ=no
15483 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15484 # support. Future versions do this automatically, but an explicit c++rt0.o
15485 # does not break anything, and helps significantly (at the cost of a little
15488 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15489 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15490 hardcode_direct_GCJ=yes
15491 hardcode_shlibpath_var_GCJ=no
15494 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_direct_GCJ=yes
15498 hardcode_minus_L_GCJ=yes
15499 hardcode_shlibpath_var_GCJ=no
15502 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15504 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15505 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15506 hardcode_direct_GCJ=yes
15507 hardcode_shlibpath_var_GCJ=no
15511 if test "$GCC" = yes; then
15512 archive_cmds_GCJ='$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'
15514 archive_cmds_GCJ='$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'
15516 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15517 hardcode_libdir_separator_GCJ=:
15518 hardcode_direct_GCJ=yes
15520 # hardcode_minus_L: Not really in the search PATH,
15521 # but as the default location of the library.
15522 hardcode_minus_L_GCJ=yes
15523 export_dynamic_flag_spec_GCJ='${wl}-E'
15527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15528 case "$host_cpu" in
15530 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15537 case "$host_cpu" in
15539 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15546 if test "$with_gnu_ld" = no; then
15547 case "$host_cpu" in
15549 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15550 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15551 hardcode_libdir_separator_GCJ=:
15552 hardcode_direct_GCJ=no
15553 hardcode_shlibpath_var_GCJ=no
15556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15557 hardcode_direct_GCJ=no
15558 hardcode_shlibpath_var_GCJ=no
15560 # hardcode_minus_L: Not really in the search PATH,
15561 # but as the default location of the library.
15562 hardcode_minus_L_GCJ=yes
15565 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15566 hardcode_libdir_separator_GCJ=:
15567 hardcode_direct_GCJ=yes
15568 export_dynamic_flag_spec_GCJ='${wl}-E'
15570 # hardcode_minus_L: Not really in the search PATH,
15571 # but as the default location of the library.
15572 hardcode_minus_L_GCJ=yes
15578 irix5* | irix6* | nonstopux*)
15579 if test "$GCC" = yes; then
15580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15582 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15583 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15586 hardcode_libdir_separator_GCJ=:
15587 link_all_deplibs_GCJ=yes
15591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15594 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15596 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15597 hardcode_direct_GCJ=yes
15598 hardcode_shlibpath_var_GCJ=no
15602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603 hardcode_direct_GCJ=yes
15604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15605 hardcode_libdir_separator_GCJ=:
15606 hardcode_shlibpath_var_GCJ=no
15610 hardcode_direct_GCJ=yes
15611 hardcode_shlibpath_var_GCJ=no
15612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15615 export_dynamic_flag_spec_GCJ='${wl}-E'
15618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15619 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15623 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15624 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15632 hardcode_minus_L_GCJ=yes
15633 allow_undefined_flag_GCJ=unsupported
15634 archive_cmds_GCJ='$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'
15635 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15639 if test "$GCC" = yes; then
15640 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15641 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15643 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15644 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15647 hardcode_libdir_separator_GCJ=:
15650 osf4* | osf5*) # as osf3* with the addition of -msym flag
15651 if test "$GCC" = yes; then
15652 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15653 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15656 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15657 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15658 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15659 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15661 # Both c and cxx compiler support -rpath directly
15662 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15664 hardcode_libdir_separator_GCJ=:
15668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_shlibpath_var_GCJ=no
15670 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15671 runpath_var=LD_RUN_PATH
15672 hardcode_runpath_var=yes
15676 no_undefined_flag_GCJ=' -z text'
15677 if test "$GCC" = yes; then
15678 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15680 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15682 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15684 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15686 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15687 hardcode_shlibpath_var_GCJ=no
15689 solaris2.[0-5] | solaris2.[0-5].*) ;;
15690 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15691 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15693 link_all_deplibs_GCJ=yes
15697 if test "x$host_vendor" = xsequent; then
15698 # Use $CC to link under sequent, because it throws in some extra .o
15699 # files that make .init and .fini sections work.
15700 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15705 hardcode_direct_GCJ=yes
15706 hardcode_minus_L_GCJ=yes
15707 hardcode_shlibpath_var_GCJ=no
15711 case $host_vendor in
15713 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_direct_GCJ=yes # is this really true???
15717 ## LD is ld it makes a PLAMLIB
15718 ## CC just makes a GrossModule.
15719 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15721 hardcode_direct_GCJ=no
15724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15728 runpath_var='LD_RUN_PATH'
15729 hardcode_shlibpath_var_GCJ=no
15733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 hardcode_shlibpath_var_GCJ=no
15735 export_dynamic_flag_spec_GCJ='-Bexport'
15739 if test -d /usr/nec; then
15740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_shlibpath_var_GCJ=no
15742 runpath_var=LD_RUN_PATH
15743 hardcode_runpath_var=yes
15749 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_direct_GCJ=yes
15751 hardcode_minus_L_GCJ=no
15752 hardcode_shlibpath_var_GCJ=no
15753 hardcode_runpath_var=yes
15754 runpath_var=LD_RUN_PATH
15757 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15758 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15759 if test "$GCC" = yes; then
15760 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15762 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15764 runpath_var='LD_RUN_PATH'
15765 hardcode_shlibpath_var_GCJ=no
15769 no_undefined_flag_GCJ=' -z text'
15770 # $CC -shared without GNU ld will not create a library from C++
15771 # object files and a static libstdc++, better avoid it by now
15772 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15773 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15774 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15775 hardcode_libdir_flag_spec_GCJ=
15776 hardcode_shlibpath_var_GCJ=no
15777 runpath_var='LD_RUN_PATH'
15781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783 hardcode_shlibpath_var_GCJ=no
15792 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15793 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15794 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15797 if test "$GCC" = yes; then
15798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15802 # Do we need to explicitly link libc?
15804 case "x$archive_cmds_need_lc_GCJ" in
15806 # Assume -lc should be added
15807 archive_cmds_need_lc_GCJ=yes
15809 if test "$enable_shared" = yes && test "$GCC" = yes; then
15810 case $archive_cmds_GCJ in
15812 # FIXME: we may have to deal with multi-command sequences.
15815 # Test whether the compiler implicitly links with -lc since on some
15816 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15817 # to ld, don't add -lc before -lgcc.
15818 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15819 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824 (eval $ac_compile) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } 2>conftest.err; then
15830 libobjs=conftest.$ac_objext
15832 wl=$lt_prog_compiler_wl_GCJ
15838 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15839 allow_undefined_flag_GCJ=
15840 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15841 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }
15846 archive_cmds_need_lc_GCJ=no
15848 archive_cmds_need_lc_GCJ=yes
15850 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15852 cat conftest.err 1>&5
15855 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15856 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15863 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15865 hardcode_action_GCJ=
15866 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15867 test -n "$runpath_var GCJ" || \
15868 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15870 # We can hardcode non-existant directories.
15871 if test "$hardcode_direct_GCJ" != no &&
15872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15873 # have to relink, otherwise we might link with an installed library
15874 # when we should be linking with a yet-to-be-installed one
15875 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15876 test "$hardcode_minus_L_GCJ" != no; then
15877 # Linking always hardcodes the temporary library directory.
15878 hardcode_action_GCJ=relink
15880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15881 hardcode_action_GCJ=immediate
15884 # We cannot hardcode anything, or else we can only hardcode existing
15886 hardcode_action_GCJ=unsupported
15888 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15889 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15891 if test "$hardcode_action_GCJ" = relink; then
15892 # Fast installation is not supported
15893 enable_fast_install=no
15894 elif test "$shlibpath_overrides_runpath" = yes ||
15895 test "$enable_shared" = no; then
15896 # Fast installation is not necessary
15897 enable_fast_install=needless
15902 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15903 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15904 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15907 echo "$as_me:$LINENO: result: yes" >&5
15908 echo "${ECHO_T}yes" >&6
15910 # FIXME - insert some real tests, host_os isn't really good enough
15913 if test -n "$STRIP" ; then
15914 striplib="$STRIP -x"
15915 echo "$as_me:$LINENO: result: yes" >&5
15916 echo "${ECHO_T}yes" >&6
15918 echo "$as_me:$LINENO: result: no" >&5
15919 echo "${ECHO_T}no" >&6
15923 echo "$as_me:$LINENO: result: no" >&5
15924 echo "${ECHO_T}no" >&6
15929 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15930 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15931 library_names_spec=
15932 libname_spec='lib$name'
15936 postuninstall_cmds=
15940 shlibpath_overrides_runpath=unknown
15942 dynamic_linker="$host_os ld.so"
15943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15944 if test "$GCC" = yes; then
15945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15946 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15947 # if the path contains ";" then we assume it to be the separator
15948 # otherwise default to the standard path separator (i.e. ":") - it is
15949 # assumed that no part of a normal pathname contains ";" but that should
15950 # okay in the real world where ";" in dirpaths is itself problematic.
15951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15956 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15958 need_lib_prefix=unknown
15959 hardcode_into_libs=no
15961 # when you set need_version to no, make sure it does not cause -set_version
15962 # flags to be left without arguments
15963 need_version=unknown
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15969 shlibpath_var=LIBPATH
15971 # AIX 3 has no versioning support, so we append a major version to the name.
15972 soname_spec='${libname}${release}${shared_ext}$major'
15979 hardcode_into_libs=yes
15980 if test "$host_cpu" = ia64; then
15981 # AIX 5 supports IA64
15982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15983 shlibpath_var=LD_LIBRARY_PATH
15985 # With GCC up to 2.95.x, collect2 would create an import file
15986 # for dependence libraries. The import file would start with
15987 # the line `#! .'. This would cause the generated library to
15988 # depend on `.', always an invalid library. This was fixed in
15989 # development snapshots of GCC prior to 3.0.
15991 aix4 | aix4.[01] | aix4.[01].*)
15992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15994 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15997 can_build_shared=no
16001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16002 # soname into executable. Probably we can add versioning support to
16003 # collect2, so additional links can be useful in future.
16004 if test "$aix_use_runtimelinking" = yes; then
16005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16006 # instead of lib<name>.a to let people know that these are not
16007 # typical AIX shared libraries.
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 # We preserve .a as extension for shared libraries through AIX4.2
16011 # and later when we are not doing run time linking.
16012 library_names_spec='${libname}${release}.a $libname.a'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16015 shlibpath_var=LIBPATH
16020 library_names_spec='$libname.ixlibrary $libname.a'
16021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16022 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'
16026 library_names_spec='${libname}${shared_ext}'
16027 dynamic_linker="$host_os ld.so"
16028 shlibpath_var=LIBRARY_PATH
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16039 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16040 # the default ld.so.conf also contains /usr/contrib/lib and
16041 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16042 # libtool to hard-code these into programs
16045 cygwin* | mingw* | pw32*)
16046 version_type=windows
16051 case $GCC,$host_os in
16052 yes,cygwin* | yes,mingw* | yes,pw32*)
16053 library_names_spec='$libname.dll.a'
16054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16055 postinstall_cmds='base_file=`basename \${file}`~
16056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16057 dldir=$destdir/`dirname \$dlpath`~
16058 test -d \$dldir || mkdir -p \$dldir~
16059 $install_prog $dir/$dlname \$dldir/$dlname'
16060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16061 dlpath=$dir/\$dldll~
16063 shlibpath_overrides_runpath=yes
16067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16069 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16072 # MinGW DLLs use traditional 'lib' prefix
16073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16076 # It is most probably a Windows format PATH printed by
16077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16078 # path with ; separators, and with drive letters. We can handle the
16079 # drive letters (cygwin fileutils understands them), so leave them,
16080 # especially as we might pass files found there to a mingw objdump,
16081 # which wouldn't understand a cygwinified path. Ahh.
16082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16088 # pw32 DLLs use 'pw' prefix rather than 'lib'
16089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16098 dynamic_linker='Win32 ld.exe'
16099 # FIXME: first we should search . and the directory the executable is in
16103 darwin* | rhapsody*)
16104 dynamic_linker="$host_os dyld"
16105 version_type=darwin
16108 # FIXME: Relying on posixy $() will cause problems for
16109 # cross-compilation, but unfortunately the echo tests do not
16110 # yet detect zsh echo's removal of \ escapes.
16111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16112 soname_spec='${libname}${release}${major}$shared_ext'
16113 shlibpath_overrides_runpath=yes
16114 shlibpath_var=DYLD_LIBRARY_PATH
16115 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16116 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16117 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16118 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 shlibpath_var=LD_LIBRARY_PATH
16137 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16138 version_type=freebsd-$objformat
16139 case $version_type in
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16150 shlibpath_var=LD_LIBRARY_PATH
16153 shlibpath_overrides_runpath=yes
16155 freebsd3.01* | freebsdelf3.01*)
16156 shlibpath_overrides_runpath=yes
16157 hardcode_into_libs=yes
16160 shlibpath_overrides_runpath=no
16161 hardcode_into_libs=yes
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LD_LIBRARY_PATH
16173 hardcode_into_libs=yes
16176 hpux9* | hpux10* | hpux11*)
16177 # Give a soname corresponding to the major version so that dld.sl refuses to
16178 # link against other versions.
16182 case "$host_cpu" in
16185 hardcode_into_libs=yes
16186 dynamic_linker="$host_os dld.so"
16187 shlibpath_var=LD_LIBRARY_PATH
16188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 if test "X$HPUX_IA64_MODE" = X32; then
16192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16200 hardcode_into_libs=yes
16201 dynamic_linker="$host_os dld.sl"
16202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211 dynamic_linker="$host_os dld.sl"
16212 shlibpath_var=SHLIB_PATH
16213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16219 postinstall_cmds='chmod 555 $lib'
16222 irix5* | irix6* | nonstopux*)
16224 nonstopux*) version_type=nonstopux ;;
16226 if test "$lt_cv_prog_gnu_ld" = yes; then
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16237 irix5* | nonstopux*)
16238 libsuff= shlibsuff=
16241 case $LD in # libtool.m4 will add one of these switches to LD
16242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16243 libsuff= shlibsuff= libmagic=32-bit;;
16244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16245 libsuff=32 shlibsuff=N32 libmagic=N32;;
16246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16248 *) libsuff= shlibsuff= libmagic=never-match;;
16252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16253 shlibpath_overrides_runpath=no
16254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16256 hardcode_into_libs=yes
16259 # No shared lib support for Linux oldld, aout, or coff.
16260 linux*oldld* | linux*aout* | linux*coff*)
16264 # This must be Linux ELF.
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 shlibpath_overrides_runpath=no
16274 # This implies no fast_install, which is unacceptable.
16275 # Some rework will be needed to allow for fast_install
16276 # before this can be enabled.
16277 hardcode_into_libs=yes
16279 # We used to test for /lib/ld.so.1 and disable shared libraries on
16280 # powerpc, because MkLinux only supported shared libraries with the
16281 # GNU dynamic linker. Since this was broken with cross compilers,
16282 # most powerpc-linux boxes support dynamic linking these days and
16283 # people can always --disable-shared, the test was removed, and we
16284 # assume the GNU/Linux dynamic linker is in use.
16285 dynamic_linker='GNU/Linux ld.so'
16292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16295 dynamic_linker='NetBSD (a.out) ld.so'
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 dynamic_linker='NetBSD ld.elf_so'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=yes
16303 hardcode_into_libs=yes
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 shlibpath_overrides_runpath=yes
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 shlibpath_overrides_runpath=yes
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16332 openbsd2.[89] | openbsd2.[89].*)
16333 shlibpath_overrides_runpath=no
16336 shlibpath_overrides_runpath=yes
16340 shlibpath_overrides_runpath=yes
16345 libname_spec='$name'
16348 library_names_spec='$libname${shared_ext} $libname.a'
16349 dynamic_linker='OS/2 ld.exe'
16350 shlibpath_var=LIBPATH
16353 osf3* | osf4* | osf5*)
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 shlibpath_var=LD_LIBRARY_PATH
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 shlibpath_var=LD_LIBRARY_PATH
16378 shlibpath_overrides_runpath=yes
16379 hardcode_into_libs=yes
16380 # ldd complains unless libraries are executable
16381 postinstall_cmds='chmod +x $lib'
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 if test "$with_gnu_ld" = yes; then
16396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 case $host_vendor in
16403 shlibpath_overrides_runpath=no
16405 export_dynamic_flag_spec='${wl}-Blargedynsym'
16406 runpath_var=LD_RUN_PATH
16414 shlibpath_overrides_runpath=no
16415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16421 if test -d /usr/nec ;then
16423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16424 soname_spec='$libname${shared_ext}.$major'
16425 shlibpath_var=LD_LIBRARY_PATH
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 shlibpath_var=LD_LIBRARY_PATH
16440 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16441 echo "${ECHO_T}$dynamic_linker" >&6
16442 test "$dynamic_linker" = no && can_build_shared=no
16444 if test "x$enable_dlopen" != xyes; then
16445 enable_dlopen=unknown
16446 enable_dlopen_self=unknown
16447 enable_dlopen_self_static=unknown
16454 lt_cv_dlopen="load_add_on"
16456 lt_cv_dlopen_self=yes
16460 lt_cv_dlopen="LoadLibrary"
16465 lt_cv_dlopen="dlopen"
16470 # if libdl is installed we need to link against it
16471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16472 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 ac_check_lib_save_LIBS=$LIBS
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any gcc2 internal prototype to avoid an error. */
16489 /* We use char because int might match the return type of a gcc2
16490 builtin and then its argument prototype would still apply. */
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502 (eval $ac_link) 2>conftest.er1
16504 grep -v '^ *+' conftest.er1 >conftest.err
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag"
16510 || test ! -s conftest.err'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest$ac_exeext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 ac_cv_lib_dl_dlopen=yes
16524 echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16527 ac_cv_lib_dl_dlopen=no
16529 rm -f conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531 LIBS=$ac_check_lib_save_LIBS
16533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16535 if test $ac_cv_lib_dl_dlopen = yes; then
16536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16539 lt_cv_dlopen="dyld"
16541 lt_cv_dlopen_self=yes
16548 echo "$as_me:$LINENO: checking for shl_load" >&5
16549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16550 if test "${ac_cv_func_shl_load+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 cat >conftest.$ac_ext <<_ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16561 #define shl_load innocuous_shl_load
16563 /* System header to define __stub macros and hopefully few prototypes,
16564 which can conflict with char shl_load (); below.
16565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566 <limits.h> exists even on freestanding compilers. */
16569 # include <limits.h>
16571 # include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16584 /* The GNU C library defines this for functions which it implements
16585 to always fail with ENOSYS. Some functions are actually named
16586 something starting with __ and the normal name is an alias. */
16587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16590 char (*f) () = shl_load;
16599 return f != shl_load;
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>conftest.er1
16608 grep -v '^ *+' conftest.er1 >conftest.err
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_func_shl_load=yes
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_func_shl_load=no
16633 rm -f conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16638 if test $ac_cv_func_shl_load = yes; then
16639 lt_cv_dlopen="shl_load"
16641 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 ac_check_lib_save_LIBS=$LIBS
16648 cat >conftest.$ac_ext <<_ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16655 /* Override any gcc2 internal prototype to avoid an error. */
16659 /* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest$ac_exeext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_lib_dld_shl_load=yes
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ac_cv_lib_dld_shl_load=no
16699 rm -f conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 LIBS=$ac_check_lib_save_LIBS
16703 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16705 if test $ac_cv_lib_dld_shl_load = yes; then
16706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16708 echo "$as_me:$LINENO: checking for dlopen" >&5
16709 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16710 if test "${ac_cv_func_dlopen+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16721 #define dlopen innocuous_dlopen
16723 /* System header to define __stub macros and hopefully few prototypes,
16724 which can conflict with char dlopen (); below.
16725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726 <limits.h> exists even on freestanding compilers. */
16729 # include <limits.h>
16731 # include <assert.h>
16736 /* Override any gcc2 internal prototype to avoid an error. */
16741 /* We use char because int might match the return type of a gcc2
16742 builtin and then its argument prototype would still apply. */
16744 /* The GNU C library defines this for functions which it implements
16745 to always fail with ENOSYS. Some functions are actually named
16746 something starting with __ and the normal name is an alias. */
16747 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16750 char (*f) () = dlopen;
16759 return f != dlopen;
16764 rm -f conftest.$ac_objext conftest$ac_exeext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16766 (eval $ac_link) 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest$ac_exeext'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_func_dlopen=yes
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ac_cv_func_dlopen=no
16793 rm -f conftest.err conftest.$ac_objext \
16794 conftest$ac_exeext conftest.$ac_ext
16796 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16797 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16798 if test $ac_cv_func_dlopen = yes; then
16799 lt_cv_dlopen="dlopen"
16801 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 ac_check_lib_save_LIBS=$LIBS
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16815 /* Override any gcc2 internal prototype to avoid an error. */
16819 /* We use char because int might match the return type of a gcc2
16820 builtin and then its argument prototype would still apply. */
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16832 (eval $ac_link) 2>conftest.er1
16834 grep -v '^ *+' conftest.er1 >conftest.err
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag"
16840 || test ! -s conftest.err'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest$ac_exeext'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_lib_dl_dlopen=yes
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 ac_cv_lib_dl_dlopen=no
16859 rm -f conftest.err conftest.$ac_objext \
16860 conftest$ac_exeext conftest.$ac_ext
16861 LIBS=$ac_check_lib_save_LIBS
16863 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16865 if test $ac_cv_lib_dl_dlopen = yes; then
16866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16868 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 ac_check_lib_save_LIBS=$LIBS
16874 LIBS="-lsvld $LIBS"
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16882 /* Override any gcc2 internal prototype to avoid an error. */
16886 /* We use char because int might match the return type of a gcc2
16887 builtin and then its argument prototype would still apply. */
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899 (eval $ac_link) 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag"
16907 || test ! -s conftest.err'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_lib_svld_dlopen=yes
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 ac_cv_lib_svld_dlopen=no
16926 rm -f conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16930 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16932 if test $ac_cv_lib_svld_dlopen = yes; then
16933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16935 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 ac_check_lib_save_LIBS=$LIBS
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16949 /* Override any gcc2 internal prototype to avoid an error. */
16953 /* We use char because int might match the return type of a gcc2
16954 builtin and then its argument prototype would still apply. */
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>conftest.er1
16968 grep -v '^ *+' conftest.er1 >conftest.err
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_lib_dld_dld_link=yes
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_cv_lib_dld_dld_link=no
16993 rm -f conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16995 LIBS=$ac_check_lib_save_LIBS
16997 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16999 if test $ac_cv_lib_dld_dld_link = yes; then
17000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17021 if test "x$lt_cv_dlopen" != xno; then
17027 case $lt_cv_dlopen in
17029 save_CPPFLAGS="$CPPFLAGS"
17030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17032 save_LDFLAGS="$LDFLAGS"
17033 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17036 LIBS="$lt_cv_dlopen_libs $LIBS"
17038 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17039 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17040 if test "${lt_cv_dlopen_self+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 if test "$cross_compiling" = yes; then :
17044 lt_cv_dlopen_self=cross
17046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17047 lt_status=$lt_dlunknown
17048 cat > conftest.$ac_ext <<EOF
17049 #line 17049 "configure"
17050 #include "confdefs.h"
17059 # define LT_DLGLOBAL RTLD_GLOBAL
17062 # define LT_DLGLOBAL DL_GLOBAL
17064 # define LT_DLGLOBAL 0
17068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17069 find out it does not work in some platform. */
17070 #ifndef LT_DLLAZY_OR_NOW
17072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17075 # define LT_DLLAZY_OR_NOW DL_LAZY
17078 # define LT_DLLAZY_OR_NOW RTLD_NOW
17081 # define LT_DLLAZY_OR_NOW DL_NOW
17083 # define LT_DLLAZY_OR_NOW 0
17091 extern "C" void exit (int);
17094 void fnord() { int i=42;}
17097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17098 int status = $lt_dlunknown;
17102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17104 /* dlclose (self); */
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111 (eval $ac_link) 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17115 (./conftest; exit; ) 2>/dev/null
17117 case x$lt_status in
17118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17120 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17123 # compilation failed
17124 lt_cv_dlopen_self=no
17131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17132 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17134 if test "x$lt_cv_dlopen_self" = xyes; then
17135 LDFLAGS="$LDFLAGS $link_static_flag"
17136 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17137 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17138 if test "${lt_cv_dlopen_self_static+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 if test "$cross_compiling" = yes; then :
17142 lt_cv_dlopen_self_static=cross
17144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17145 lt_status=$lt_dlunknown
17146 cat > conftest.$ac_ext <<EOF
17147 #line 17147 "configure"
17148 #include "confdefs.h"
17157 # define LT_DLGLOBAL RTLD_GLOBAL
17160 # define LT_DLGLOBAL DL_GLOBAL
17162 # define LT_DLGLOBAL 0
17166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17167 find out it does not work in some platform. */
17168 #ifndef LT_DLLAZY_OR_NOW
17170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17173 # define LT_DLLAZY_OR_NOW DL_LAZY
17176 # define LT_DLLAZY_OR_NOW RTLD_NOW
17179 # define LT_DLLAZY_OR_NOW DL_NOW
17181 # define LT_DLLAZY_OR_NOW 0
17189 extern "C" void exit (int);
17192 void fnord() { int i=42;}
17195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17196 int status = $lt_dlunknown;
17200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17202 /* dlclose (self); */
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17213 (./conftest; exit; ) 2>/dev/null
17215 case x$lt_status in
17216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17218 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17221 # compilation failed
17222 lt_cv_dlopen_self_static=no
17229 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17230 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17233 CPPFLAGS="$save_CPPFLAGS"
17234 LDFLAGS="$save_LDFLAGS"
17239 case $lt_cv_dlopen_self in
17240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17241 *) enable_dlopen_self=unknown ;;
17244 case $lt_cv_dlopen_self_static in
17245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17246 *) enable_dlopen_self_static=unknown ;;
17251 # The else clause should only fire when bootstrapping the
17252 # libtool distribution, otherwise you forgot to ship ltmain.sh
17253 # with your package, and you will get complaints that there are
17254 # no rules to generate ltmain.sh.
17255 if test -f "$ltmain"; then
17256 # See if we are running on zsh, and set the options which allow our commands through
17257 # without removal of \ escapes.
17258 if test -n "${ZSH_VERSION+set}" ; then
17259 setopt NO_GLOB_SUBST
17261 # Now quote all the things that may contain metacharacters while being
17262 # careful not to overquote the AC_SUBSTed values. We take copies of the
17263 # variables and quote the copies for generation of the libtool script.
17264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17265 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17266 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17267 deplibs_check_method reload_flag reload_cmds need_locks \
17268 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17269 lt_cv_sys_global_symbol_to_c_name_address \
17270 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17271 old_postinstall_cmds old_postuninstall_cmds \
17275 lt_prog_compiler_wl_GCJ \
17276 lt_prog_compiler_pic_GCJ \
17277 lt_prog_compiler_static_GCJ \
17278 lt_prog_compiler_no_builtin_flag_GCJ \
17279 export_dynamic_flag_spec_GCJ \
17280 thread_safe_flag_spec_GCJ \
17281 whole_archive_flag_spec_GCJ \
17282 enable_shared_with_static_runtimes_GCJ \
17283 old_archive_cmds_GCJ \
17284 old_archive_from_new_cmds_GCJ \
17285 predep_objects_GCJ \
17286 postdep_objects_GCJ \
17289 compiler_lib_search_path_GCJ \
17291 archive_expsym_cmds_GCJ \
17292 postinstall_cmds_GCJ \
17293 postuninstall_cmds_GCJ \
17294 old_archive_from_expsyms_cmds_GCJ \
17295 allow_undefined_flag_GCJ \
17296 no_undefined_flag_GCJ \
17297 export_symbols_cmds_GCJ \
17298 hardcode_libdir_flag_spec_GCJ \
17299 hardcode_libdir_flag_spec_ld_GCJ \
17300 hardcode_libdir_separator_GCJ \
17301 hardcode_automatic_GCJ \
17303 module_expsym_cmds_GCJ \
17304 lt_cv_prog_compiler_c_o_GCJ \
17305 exclude_expsyms_GCJ \
17306 include_expsyms_GCJ; do
17309 old_archive_cmds_GCJ | \
17310 old_archive_from_new_cmds_GCJ | \
17311 archive_cmds_GCJ | \
17312 archive_expsym_cmds_GCJ | \
17313 module_cmds_GCJ | \
17314 module_expsym_cmds_GCJ | \
17315 old_archive_from_expsyms_cmds_GCJ | \
17316 export_symbols_cmds_GCJ | \
17317 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17318 postinstall_cmds | postuninstall_cmds | \
17319 old_postinstall_cmds | old_postuninstall_cmds | \
17320 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17321 # Double-quote double-evaled strings.
17322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17331 *'\$0 --fallback-echo"')
17332 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17338 cat <<__EOF__ >> "$cfgfile"
17339 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17343 # Shell to use when invoking shell scripts.
17346 # Whether or not to build shared libraries.
17347 build_libtool_libs=$enable_shared
17349 # Whether or not to build static libraries.
17350 build_old_libs=$enable_static
17352 # Whether or not to add -lc for building shared libraries.
17353 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17355 # Whether or not to disallow shared libs when runtime libs are static
17356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17358 # Whether or not to optimize for fast installation.
17359 fast_install=$enable_fast_install
17362 host_alias=$host_alias
17365 # An echo program that does not interpret backslashes.
17370 AR_FLAGS=$lt_AR_FLAGS
17375 # A language-specific compiler.
17376 CC=$lt_compiler_GCJ
17378 # Is the compiler the GNU C compiler?
17384 # The linker used to build libraries.
17387 # Whether we need hard or soft links.
17390 # A BSD-compatible nm program.
17393 # A symbol stripping program
17396 # Used to examine libraries when file_magic_cmd begins "file"
17397 MAGIC_CMD=$MAGIC_CMD
17399 # Used on cygwin: DLL creation program.
17402 # Used on cygwin: object dumper.
17405 # Used on cygwin: assembler.
17408 # The name of the directory that contains temporary libtool files.
17411 # How to create reloadable object files.
17412 reload_flag=$lt_reload_flag
17413 reload_cmds=$lt_reload_cmds
17415 # How to pass a linker flag through the compiler.
17416 wl=$lt_lt_prog_compiler_wl_GCJ
17418 # Object file suffix (normally "o").
17419 objext="$ac_objext"
17421 # Old archive suffix (normally "a").
17424 # Shared library suffix (normally ".so").
17427 # Executable file suffix (normally "").
17430 # Additional compiler flags for building library objects.
17431 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17434 # What is the maximum length of a command?
17435 max_cmd_len=$lt_cv_sys_max_cmd_len
17437 # Does compiler simultaneously support -c and -o options?
17438 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17440 # Must we lock files when doing compilation ?
17441 need_locks=$lt_need_locks
17443 # Do we need the lib prefix for modules?
17444 need_lib_prefix=$need_lib_prefix
17446 # Do we need a version for libraries?
17447 need_version=$need_version
17449 # Whether dlopen is supported.
17450 dlopen_support=$enable_dlopen
17452 # Whether dlopen of programs is supported.
17453 dlopen_self=$enable_dlopen_self
17455 # Whether dlopen of statically linked programs is supported.
17456 dlopen_self_static=$enable_dlopen_self_static
17458 # Compiler flag to prevent dynamic linking.
17459 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17461 # Compiler flag to turn off builtin functions.
17462 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17464 # Compiler flag to allow reflexive dlopens.
17465 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17467 # Compiler flag to generate shared objects directly from archives.
17468 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17470 # Compiler flag to generate thread-safe objects.
17471 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17473 # Library versioning type.
17474 version_type=$version_type
17476 # Format of library name prefix.
17477 libname_spec=$lt_libname_spec
17479 # List of archive names. First name is the real one, the rest are links.
17480 # The last name is the one that the linker finds with -lNAME.
17481 library_names_spec=$lt_library_names_spec
17483 # The coded name of the library, if different from the real name.
17484 soname_spec=$lt_soname_spec
17486 # Commands used to build and install an old-style archive.
17488 old_archive_cmds=$lt_old_archive_cmds_GCJ
17489 old_postinstall_cmds=$lt_old_postinstall_cmds
17490 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17492 # Create an old-style archive from a shared archive.
17493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17495 # Create a temporary old-style archive to link instead of a shared archive.
17496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17498 # Commands used to build and install a shared archive.
17499 archive_cmds=$lt_archive_cmds_GCJ
17500 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17501 postinstall_cmds=$lt_postinstall_cmds
17502 postuninstall_cmds=$lt_postuninstall_cmds
17504 # Commands used to build a loadable module (assumed same as above if empty)
17505 module_cmds=$lt_module_cmds_GCJ
17506 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17508 # Commands to strip libraries.
17509 old_striplib=$lt_old_striplib
17510 striplib=$lt_striplib
17512 # Dependencies to place before the objects being linked to create a
17514 predep_objects=$lt_predep_objects_GCJ
17516 # Dependencies to place after the objects being linked to create a
17518 postdep_objects=$lt_postdep_objects_GCJ
17520 # Dependencies to place before the objects being linked to create a
17522 predeps=$lt_predeps_GCJ
17524 # Dependencies to place after the objects being linked to create a
17526 postdeps=$lt_postdeps_GCJ
17528 # The library search path used internally by the compiler when linking
17529 # a shared library.
17530 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17532 # Method to check whether dependent libraries are shared objects.
17533 deplibs_check_method=$lt_deplibs_check_method
17535 # Command to use when deplibs_check_method == file_magic.
17536 file_magic_cmd=$lt_file_magic_cmd
17538 # Flag that allows shared libraries with undefined symbols to be built.
17539 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17541 # Flag that forces no undefined symbols.
17542 no_undefined_flag=$lt_no_undefined_flag_GCJ
17544 # Commands used to finish a libtool library installation in a directory.
17545 finish_cmds=$lt_finish_cmds
17547 # Same as above, but a single script fragment to be evaled but not shown.
17548 finish_eval=$lt_finish_eval
17550 # Take the output of nm and produce a listing of raw symbols and C names.
17551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17553 # Transform the output of nm in a proper C declaration
17554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17556 # Transform the output of nm in a C name address pair
17557 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17559 # This is the shared library runtime path variable.
17560 runpath_var=$runpath_var
17562 # This is the shared library path variable.
17563 shlibpath_var=$shlibpath_var
17565 # Is shlibpath searched before the hard-coded library search path?
17566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17568 # How to hardcode a shared library path into an executable.
17569 hardcode_action=$hardcode_action_GCJ
17571 # Whether we should hardcode library paths into libraries.
17572 hardcode_into_libs=$hardcode_into_libs
17574 # Flag to hardcode \$libdir into a binary during linking.
17575 # This must work even if \$libdir does not exist.
17576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17578 # If ld is used when linking, flag to hardcode \$libdir into
17579 # a binary during linking. This must work even if \$libdir does
17581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17583 # Whether we need a single -rpath flag with a separated argument.
17584 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17586 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17587 # resulting binary.
17588 hardcode_direct=$hardcode_direct_GCJ
17590 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17591 # resulting binary.
17592 hardcode_minus_L=$hardcode_minus_L_GCJ
17594 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17595 # the resulting binary.
17596 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17598 # Set to yes if building a shared library automatically hardcodes DIR into the library
17599 # and all subsequent libraries and executables linked against it.
17600 hardcode_automatic=$hardcode_automatic_GCJ
17602 # Variables whose values should be saved in libtool wrapper scripts and
17603 # restored at relink time.
17604 variables_saved_for_relink="$variables_saved_for_relink"
17606 # Whether libtool must link a program against all its dependency libraries.
17607 link_all_deplibs=$link_all_deplibs_GCJ
17609 # Compile-time system search path for libraries
17610 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17612 # Run-time system search path for libraries
17613 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17615 # Fix the shell variable \$srcfile for the compiler.
17616 fix_srcfile_path="$fix_srcfile_path_GCJ"
17618 # Set to yes if exported symbols are required.
17619 always_export_symbols=$always_export_symbols_GCJ
17621 # The commands to list exported symbols.
17622 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17624 # The commands to extract the exported symbol list from a shared archive.
17625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17627 # Symbols that should not be listed in the preloaded symbols.
17628 exclude_expsyms=$lt_exclude_expsyms_GCJ
17630 # Symbols that must always be exported.
17631 include_expsyms=$lt_include_expsyms_GCJ
17633 # ### END LIBTOOL TAG CONFIG: $tagname
17639 # If there is no Makefile yet, we rely on a make rule to execute
17640 # `config.status --recheck' to rerun these tests and create the
17641 # libtool script then.
17642 test -f Makefile && make "$ltmain"
17647 ac_cpp='$CPP $CPPFLAGS'
17648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663 # Source file extension for RC test sources.
17666 # Object file extension for compiled RC test sources.
17670 # Code to be used in simple compile tests
17671 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17673 # Code to be used in simple link tests
17674 lt_simple_link_test_code="$lt_simple_compile_test_code"
17676 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17678 # If no C compiler was specified, use CC.
17681 # Allow CC to be a program name with arguments.
17685 # Allow CC to be a program name with arguments.
17690 lt_cv_prog_compiler_c_o_RC=yes
17692 # The else clause should only fire when bootstrapping the
17693 # libtool distribution, otherwise you forgot to ship ltmain.sh
17694 # with your package, and you will get complaints that there are
17695 # no rules to generate ltmain.sh.
17696 if test -f "$ltmain"; then
17697 # See if we are running on zsh, and set the options which allow our commands through
17698 # without removal of \ escapes.
17699 if test -n "${ZSH_VERSION+set}" ; then
17700 setopt NO_GLOB_SUBST
17702 # Now quote all the things that may contain metacharacters while being
17703 # careful not to overquote the AC_SUBSTed values. We take copies of the
17704 # variables and quote the copies for generation of the libtool script.
17705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17708 deplibs_check_method reload_flag reload_cmds need_locks \
17709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17710 lt_cv_sys_global_symbol_to_c_name_address \
17711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17712 old_postinstall_cmds old_postuninstall_cmds \
17716 lt_prog_compiler_wl_RC \
17717 lt_prog_compiler_pic_RC \
17718 lt_prog_compiler_static_RC \
17719 lt_prog_compiler_no_builtin_flag_RC \
17720 export_dynamic_flag_spec_RC \
17721 thread_safe_flag_spec_RC \
17722 whole_archive_flag_spec_RC \
17723 enable_shared_with_static_runtimes_RC \
17724 old_archive_cmds_RC \
17725 old_archive_from_new_cmds_RC \
17726 predep_objects_RC \
17727 postdep_objects_RC \
17730 compiler_lib_search_path_RC \
17732 archive_expsym_cmds_RC \
17733 postinstall_cmds_RC \
17734 postuninstall_cmds_RC \
17735 old_archive_from_expsyms_cmds_RC \
17736 allow_undefined_flag_RC \
17737 no_undefined_flag_RC \
17738 export_symbols_cmds_RC \
17739 hardcode_libdir_flag_spec_RC \
17740 hardcode_libdir_flag_spec_ld_RC \
17741 hardcode_libdir_separator_RC \
17742 hardcode_automatic_RC \
17744 module_expsym_cmds_RC \
17745 lt_cv_prog_compiler_c_o_RC \
17746 exclude_expsyms_RC \
17747 include_expsyms_RC; do
17750 old_archive_cmds_RC | \
17751 old_archive_from_new_cmds_RC | \
17752 archive_cmds_RC | \
17753 archive_expsym_cmds_RC | \
17755 module_expsym_cmds_RC | \
17756 old_archive_from_expsyms_cmds_RC | \
17757 export_symbols_cmds_RC | \
17758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17759 postinstall_cmds | postuninstall_cmds | \
17760 old_postinstall_cmds | old_postuninstall_cmds | \
17761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17762 # Double-quote double-evaled strings.
17763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17772 *'\$0 --fallback-echo"')
17773 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17779 cat <<__EOF__ >> "$cfgfile"
17780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17784 # Shell to use when invoking shell scripts.
17787 # Whether or not to build shared libraries.
17788 build_libtool_libs=$enable_shared
17790 # Whether or not to build static libraries.
17791 build_old_libs=$enable_static
17793 # Whether or not to add -lc for building shared libraries.
17794 build_libtool_need_lc=$archive_cmds_need_lc_RC
17796 # Whether or not to disallow shared libs when runtime libs are static
17797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17799 # Whether or not to optimize for fast installation.
17800 fast_install=$enable_fast_install
17803 host_alias=$host_alias
17806 # An echo program that does not interpret backslashes.
17811 AR_FLAGS=$lt_AR_FLAGS
17816 # A language-specific compiler.
17819 # Is the compiler the GNU C compiler?
17825 # The linker used to build libraries.
17828 # Whether we need hard or soft links.
17831 # A BSD-compatible nm program.
17834 # A symbol stripping program
17837 # Used to examine libraries when file_magic_cmd begins "file"
17838 MAGIC_CMD=$MAGIC_CMD
17840 # Used on cygwin: DLL creation program.
17843 # Used on cygwin: object dumper.
17846 # Used on cygwin: assembler.
17849 # The name of the directory that contains temporary libtool files.
17852 # How to create reloadable object files.
17853 reload_flag=$lt_reload_flag
17854 reload_cmds=$lt_reload_cmds
17856 # How to pass a linker flag through the compiler.
17857 wl=$lt_lt_prog_compiler_wl_RC
17859 # Object file suffix (normally "o").
17860 objext="$ac_objext"
17862 # Old archive suffix (normally "a").
17865 # Shared library suffix (normally ".so").
17868 # Executable file suffix (normally "").
17871 # Additional compiler flags for building library objects.
17872 pic_flag=$lt_lt_prog_compiler_pic_RC
17875 # What is the maximum length of a command?
17876 max_cmd_len=$lt_cv_sys_max_cmd_len
17878 # Does compiler simultaneously support -c and -o options?
17879 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17881 # Must we lock files when doing compilation ?
17882 need_locks=$lt_need_locks
17884 # Do we need the lib prefix for modules?
17885 need_lib_prefix=$need_lib_prefix
17887 # Do we need a version for libraries?
17888 need_version=$need_version
17890 # Whether dlopen is supported.
17891 dlopen_support=$enable_dlopen
17893 # Whether dlopen of programs is supported.
17894 dlopen_self=$enable_dlopen_self
17896 # Whether dlopen of statically linked programs is supported.
17897 dlopen_self_static=$enable_dlopen_self_static
17899 # Compiler flag to prevent dynamic linking.
17900 link_static_flag=$lt_lt_prog_compiler_static_RC
17902 # Compiler flag to turn off builtin functions.
17903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17905 # Compiler flag to allow reflexive dlopens.
17906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17908 # Compiler flag to generate shared objects directly from archives.
17909 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17911 # Compiler flag to generate thread-safe objects.
17912 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17914 # Library versioning type.
17915 version_type=$version_type
17917 # Format of library name prefix.
17918 libname_spec=$lt_libname_spec
17920 # List of archive names. First name is the real one, the rest are links.
17921 # The last name is the one that the linker finds with -lNAME.
17922 library_names_spec=$lt_library_names_spec
17924 # The coded name of the library, if different from the real name.
17925 soname_spec=$lt_soname_spec
17927 # Commands used to build and install an old-style archive.
17929 old_archive_cmds=$lt_old_archive_cmds_RC
17930 old_postinstall_cmds=$lt_old_postinstall_cmds
17931 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17933 # Create an old-style archive from a shared archive.
17934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17936 # Create a temporary old-style archive to link instead of a shared archive.
17937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17939 # Commands used to build and install a shared archive.
17940 archive_cmds=$lt_archive_cmds_RC
17941 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17942 postinstall_cmds=$lt_postinstall_cmds
17943 postuninstall_cmds=$lt_postuninstall_cmds
17945 # Commands used to build a loadable module (assumed same as above if empty)
17946 module_cmds=$lt_module_cmds_RC
17947 module_expsym_cmds=$lt_module_expsym_cmds_RC
17949 # Commands to strip libraries.
17950 old_striplib=$lt_old_striplib
17951 striplib=$lt_striplib
17953 # Dependencies to place before the objects being linked to create a
17955 predep_objects=$lt_predep_objects_RC
17957 # Dependencies to place after the objects being linked to create a
17959 postdep_objects=$lt_postdep_objects_RC
17961 # Dependencies to place before the objects being linked to create a
17963 predeps=$lt_predeps_RC
17965 # Dependencies to place after the objects being linked to create a
17967 postdeps=$lt_postdeps_RC
17969 # The library search path used internally by the compiler when linking
17970 # a shared library.
17971 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17973 # Method to check whether dependent libraries are shared objects.
17974 deplibs_check_method=$lt_deplibs_check_method
17976 # Command to use when deplibs_check_method == file_magic.
17977 file_magic_cmd=$lt_file_magic_cmd
17979 # Flag that allows shared libraries with undefined symbols to be built.
17980 allow_undefined_flag=$lt_allow_undefined_flag_RC
17982 # Flag that forces no undefined symbols.
17983 no_undefined_flag=$lt_no_undefined_flag_RC
17985 # Commands used to finish a libtool library installation in a directory.
17986 finish_cmds=$lt_finish_cmds
17988 # Same as above, but a single script fragment to be evaled but not shown.
17989 finish_eval=$lt_finish_eval
17991 # Take the output of nm and produce a listing of raw symbols and C names.
17992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17994 # Transform the output of nm in a proper C declaration
17995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17997 # Transform the output of nm in a C name address pair
17998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18000 # This is the shared library runtime path variable.
18001 runpath_var=$runpath_var
18003 # This is the shared library path variable.
18004 shlibpath_var=$shlibpath_var
18006 # Is shlibpath searched before the hard-coded library search path?
18007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18009 # How to hardcode a shared library path into an executable.
18010 hardcode_action=$hardcode_action_RC
18012 # Whether we should hardcode library paths into libraries.
18013 hardcode_into_libs=$hardcode_into_libs
18015 # Flag to hardcode \$libdir into a binary during linking.
18016 # This must work even if \$libdir does not exist.
18017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18019 # If ld is used when linking, flag to hardcode \$libdir into
18020 # a binary during linking. This must work even if \$libdir does
18022 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18024 # Whether we need a single -rpath flag with a separated argument.
18025 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18027 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18028 # resulting binary.
18029 hardcode_direct=$hardcode_direct_RC
18031 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18032 # resulting binary.
18033 hardcode_minus_L=$hardcode_minus_L_RC
18035 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18036 # the resulting binary.
18037 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18039 # Set to yes if building a shared library automatically hardcodes DIR into the library
18040 # and all subsequent libraries and executables linked against it.
18041 hardcode_automatic=$hardcode_automatic_RC
18043 # Variables whose values should be saved in libtool wrapper scripts and
18044 # restored at relink time.
18045 variables_saved_for_relink="$variables_saved_for_relink"
18047 # Whether libtool must link a program against all its dependency libraries.
18048 link_all_deplibs=$link_all_deplibs_RC
18050 # Compile-time system search path for libraries
18051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18053 # Run-time system search path for libraries
18054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18056 # Fix the shell variable \$srcfile for the compiler.
18057 fix_srcfile_path="$fix_srcfile_path_RC"
18059 # Set to yes if exported symbols are required.
18060 always_export_symbols=$always_export_symbols_RC
18062 # The commands to list exported symbols.
18063 export_symbols_cmds=$lt_export_symbols_cmds_RC
18065 # The commands to extract the exported symbol list from a shared archive.
18066 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18068 # Symbols that should not be listed in the preloaded symbols.
18069 exclude_expsyms=$lt_exclude_expsyms_RC
18071 # Symbols that must always be exported.
18072 include_expsyms=$lt_include_expsyms_RC
18074 # ### END LIBTOOL TAG CONFIG: $tagname
18080 # If there is no Makefile yet, we rely on a make rule to execute
18081 # `config.status --recheck' to rerun these tests and create the
18082 # libtool script then.
18083 test -f Makefile && make "$ltmain"
18088 ac_cpp='$CPP $CPPFLAGS'
18089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18098 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18099 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18100 { (exit 1); exit 1; }; }
18104 # Append the new tag name to the list of available tags.
18105 if test -n "$tagname" ; then
18106 available_tags="$available_tags $tagname"
18112 # Now substitute the updated list of available tags.
18113 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18114 mv "${ofile}T" "$ofile"
18118 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18119 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18120 { (exit 1); exit 1; }; }
18126 # This can be used to rebuild libtool when needed
18127 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18129 # Always use our own libtool.
18130 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18132 # Prevent multiple expansion
18153 echo "$as_me:$LINENO: checking for shared library suffix" >&5
18154 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
18155 eval "SHLIBEXT=$shrext"
18156 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
18157 echo "${ECHO_T}$SHLIBEXT" >&6
18161 cat >>confdefs.h <<_ACEOF
18162 #define SHLIBEXT "$SHLIBEXT"
18175 # Check whether --with-llvmsrc or --without-llvmsrc was given.
18176 if test "${with_llvmsrc+set}" = set; then
18177 withval="$with_llvmsrc"
18181 LLVM_SRC=`cd ${srcdir}/../..; pwd`
18186 # Check whether --with-llvmobj or --without-llvmobj was given.
18187 if test "${with_llvmobj+set}" = set; then
18188 withval="$with_llvmobj"
18192 LLVM_OBJ=`cd ../..; pwd`
18196 cat >confcache <<\_ACEOF
18197 # This file is a shell script that caches the results of configure
18198 # tests run on this system so they can be shared between configure
18199 # scripts and configure runs, see configure's option --config-cache.
18200 # It is not useful on other systems. If it contains results you don't
18201 # want to keep, you may remove or edit it.
18203 # config.status only pays attention to the cache file if you give it
18204 # the --recheck option to rerun configure.
18206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18208 # following values.
18212 # The following way of writing the cache mishandles newlines in values,
18213 # but we know of no workaround that is simple, portable, and efficient.
18214 # So, don't put newlines in cache variables' values.
18215 # Ultrix sh set writes to stderr and can't be redirected directly,
18216 # and sets the high bit in the cache file unless we assign to the vars.
18219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18221 # `set' does not quote correctly, so add quotes (double-quote
18222 # substitution turns \\\\ into \\, and sed turns \\ into \).
18225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18228 # `set' quotes correctly as required by POSIX, so do not add quotes.
18230 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18239 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18241 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18242 if test -w $cache_file; then
18243 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18244 cat confcache >$cache_file
18246 echo "not updating unwritable cache $cache_file"
18251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18252 # Let make expand exec_prefix.
18253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18257 # trailing colons and then remove the whole line if VPATH becomes empty
18258 # (actually we leave an empty line to preserve line numbers).
18259 if test "x$srcdir" = x.; then
18260 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18261 s/:*\$(srcdir):*/:/;
18262 s/:*\${srcdir}:*/:/;
18264 s/^\([^=]*=[ ]*\):*/\1/;
18270 # Transform confdefs.h into DEFS.
18271 # Protect against shell expansion while executing Makefile rules.
18272 # Protect against Makefile macro expansion.
18274 # If the first sed substitution is executed (which looks for macros that
18275 # take arguments), then we branch to the quote section. Otherwise,
18276 # look for a macro that doesn't take arguments.
18277 cat >confdef2opt.sed <<\_ACEOF
18280 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
18282 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
18286 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
18292 # We use echo to avoid assuming a particular line-breaking character.
18293 # The extra dot is to prevent the shell from consuming trailing
18294 # line-breaks from the sub-command output. A line-break within
18295 # single-quotes doesn't work because, if this script is created in a
18296 # platform that uses two characters for line-breaks (e.g., DOS), tr
18298 ac_LF_and_DOT=`echo; echo .`
18299 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
18300 rm -f confdef2opt.sed
18305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18306 # 1. Remove the extension, and $U if already installed.
18307 ac_i=`echo "$ac_i" |
18308 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18310 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18311 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18313 LIBOBJS=$ac_libobjs
18315 LTLIBOBJS=$ac_ltlibobjs
18319 : ${CONFIG_STATUS=./config.status}
18320 ac_clean_files_save=$ac_clean_files
18321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18322 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18323 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18324 cat >$CONFIG_STATUS <<_ACEOF
18326 # Generated by $as_me.
18327 # Run this file to recreate the current configuration.
18328 # Compiler output produced by configure, useful for debugging
18329 # configure, is in config.log if it exists.
18332 ac_cs_recheck=false
18334 SHELL=\${CONFIG_SHELL-$SHELL}
18337 cat >>$CONFIG_STATUS <<\_ACEOF
18338 ## --------------------- ##
18339 ## M4sh Initialization. ##
18340 ## --------------------- ##
18342 # Be Bourne compatible
18343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18347 # is contrary to our usage. Disable this feature.
18348 alias -g '${1+"$@"}'='"$@"'
18349 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18352 DUALCASE=1; export DUALCASE # for MKS sh
18354 # Support unset when possible.
18355 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18362 # Work around bugs in pre-3.0 UWIN ksh.
18363 $as_unset ENV MAIL MAILPATH
18370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18372 LC_TELEPHONE LC_TIME
18374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18375 eval $as_var=C; export $as_var
18381 # Required to use basename.
18382 if expr a : '\(a\)' >/dev/null 2>&1; then
18388 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18389 as_basename=basename
18395 # Name of the executable.
18396 as_me=`$as_basename "$0" ||
18397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18398 X"$0" : 'X\(//\)$' \| \
18399 X"$0" : 'X\(/\)$' \| \
18400 . : '\(.\)' 2>/dev/null ||
18402 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18403 /^X\/\(\/\/\)$/{ s//\1/; q; }
18404 /^X\/\(\/\).*/{ s//\1/; q; }
18408 # PATH needs CR, and LINENO needs CR and PATH.
18409 # Avoid depending upon Character Ranges.
18410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18413 as_cr_digits='0123456789'
18414 as_cr_alnum=$as_cr_Letters$as_cr_digits
18416 # The user is always right.
18417 if test "${PATH_SEPARATOR+set}" != set; then
18418 echo "#! /bin/sh" >conf$$.sh
18419 echo "exit 0" >>conf$$.sh
18421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18430 as_lineno_1=$LINENO
18431 as_lineno_2=$LINENO
18432 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18433 test "x$as_lineno_1" != "x$as_lineno_2" &&
18434 test "x$as_lineno_3" = "x$as_lineno_2" || {
18435 # Find who we are. Look in the path if we contain no path at all
18438 *[\\/]* ) as_myself=$0 ;;
18439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18440 for as_dir in $PATH
18443 test -z "$as_dir" && as_dir=.
18444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18449 # We did not find ourselves, most probably we were run as `sh COMMAND'
18450 # in which case we are not to be found in the path.
18451 if test "x$as_myself" = x; then
18454 if test ! -f "$as_myself"; then
18455 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18456 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18457 { (exit 1); exit 1; }; }
18459 case $CONFIG_SHELL in
18461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18462 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18465 test -z "$as_dir" && as_dir=.
18466 for as_base in sh bash ksh sh5; do
18469 if ("$as_dir/$as_base" -c '
18470 as_lineno_1=$LINENO
18471 as_lineno_2=$LINENO
18472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18473 test "x$as_lineno_1" != "x$as_lineno_2" &&
18474 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18475 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18476 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18477 CONFIG_SHELL=$as_dir/$as_base
18478 export CONFIG_SHELL
18479 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18487 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18488 # uniformly replaced by the line number. The first 'sed' inserts a
18489 # line-number line before each line; the second 'sed' does the real
18490 # work. The second script uses 'N' to pair each line-number line
18491 # with the numbered line, and appends trailing '-' during
18492 # substitution so that $LINENO is not a special case at line end.
18493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18494 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18495 sed '=' <$as_myself |
18500 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18503 s,^['$as_cr_digits']*\n,,
18504 ' >$as_me.lineno &&
18505 chmod +x $as_me.lineno ||
18506 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18507 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18508 { (exit 1); exit 1; }; }
18510 # Don't try to exec as it changes $[0], causing all sort of problems
18511 # (the dirname of $[0] is not the place where we might find the
18512 # original and so on. Autoconf is especially sensible to this).
18514 # Exit status is that of the last command.
18519 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18520 *c*,-n*) ECHO_N= ECHO_C='
18522 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18523 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18526 if expr a : '\(a\)' >/dev/null 2>&1; then
18532 rm -f conf$$ conf$$.exe conf$$.file
18534 if ln -s conf$$.file conf$$ 2>/dev/null; then
18535 # We could just check for DJGPP; but this test a) works b) is more generic
18536 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18537 if test -f conf$$.exe; then
18538 # Don't use ln at all; we don't have any links
18543 elif ln conf$$.file conf$$ 2>/dev/null; then
18548 rm -f conf$$ conf$$.exe conf$$.file
18550 if mkdir -p . 2>/dev/null; then
18553 test -d ./-p && rmdir ./-p
18557 as_executable_p="test -f"
18559 # Sed expression to map a string onto a valid CPP name.
18560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18562 # Sed expression to map a string onto a valid variable name.
18563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18567 # We need space, tab and new line, in precisely that order.
18577 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18578 # report actual input values of CONFIG_FILES etc. instead of their
18579 # values after options handling. Logging --version etc. is OK.
18583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18584 ## Running $as_me. ##
18589 This file was extended by [Stacker] $as_me [1.0], which was
18590 generated by GNU Autoconf 2.59. Invocation command line was
18592 CONFIG_FILES = $CONFIG_FILES
18593 CONFIG_HEADERS = $CONFIG_HEADERS
18594 CONFIG_LINKS = $CONFIG_LINKS
18595 CONFIG_COMMANDS = $CONFIG_COMMANDS
18599 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18603 # Files that config.status was made for.
18604 if test -n "$ac_config_files"; then
18605 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18608 if test -n "$ac_config_headers"; then
18609 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18612 if test -n "$ac_config_links"; then
18613 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18616 if test -n "$ac_config_commands"; then
18617 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18620 cat >>$CONFIG_STATUS <<\_ACEOF
18623 \`$as_me' instantiates files from templates according to the
18624 current configuration.
18626 Usage: $0 [OPTIONS] [FILE]...
18628 -h, --help print this help, then exit
18629 -V, --version print version number, then exit
18630 -q, --quiet do not print progress messages
18631 -d, --debug don't remove temporary files
18632 --recheck update $as_me by reconfiguring in the same conditions
18633 --file=FILE[:TEMPLATE]
18634 instantiate the configuration file FILE
18636 Configuration files:
18639 Configuration commands:
18642 Report bugs to <bug-autoconf@gnu.org>."
18645 cat >>$CONFIG_STATUS <<_ACEOF
18647 [Stacker] config.status [1.0]
18648 configured by $0, generated by GNU Autoconf 2.59,
18649 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18651 Copyright (C) 2003 Free Software Foundation, Inc.
18652 This config.status script is free software; the Free Software Foundation
18653 gives unlimited permission to copy, distribute and modify it."
18657 cat >>$CONFIG_STATUS <<\_ACEOF
18658 # If no file are specified by the user, then we need to provide default
18659 # value. By we need to know if files were specified by the user.
18665 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18666 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18674 *) # This is not an option, so the user has probably given explicit
18677 ac_need_defaults=false;;
18681 # Handling of the options.
18683 cat >>$CONFIG_STATUS <<\_ACEOF
18684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18686 --version | --vers* | -V )
18687 echo "$ac_cs_version"; exit 0 ;;
18689 # Conflict between --help and --header
18690 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18691 Try \`$0 --help' for more information." >&5
18692 echo "$as_me: error: ambiguous option: $1
18693 Try \`$0 --help' for more information." >&2;}
18694 { (exit 1); exit 1; }; };;
18695 --help | --hel | -h )
18696 echo "$ac_cs_usage"; exit 0 ;;
18697 --debug | --d* | -d )
18699 --file | --fil | --fi | --f )
18701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18702 ac_need_defaults=false;;
18703 --header | --heade | --head | --hea )
18705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18706 ac_need_defaults=false;;
18707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18711 # This is an error.
18712 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18713 Try \`$0 --help' for more information." >&5
18714 echo "$as_me: error: unrecognized option: $1
18715 Try \`$0 --help' for more information." >&2;}
18716 { (exit 1); exit 1; }; } ;;
18718 *) ac_config_targets="$ac_config_targets $1" ;;
18724 ac_configure_extra_args=
18726 if $ac_cs_silent; then
18728 ac_configure_extra_args="$ac_configure_extra_args --silent"
18732 cat >>$CONFIG_STATUS <<_ACEOF
18733 if \$ac_cs_recheck; then
18734 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18735 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18740 cat >>$CONFIG_STATUS <<_ACEOF
18742 # INIT-COMMANDS section.
18745 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
18746 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
18747 ${srcdir}/autoconf/mkinstalldirs `dirname lib/compiler/Makefile`
18748 ${srcdir}/autoconf/mkinstalldirs `dirname lib/runtime/Makefile`
18749 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
18750 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
18751 ${srcdir}/autoconf/mkinstalldirs `dirname tools/stkrc/Makefile`
18757 cat >>$CONFIG_STATUS <<\_ACEOF
18758 for ac_config_target in $ac_config_targets
18760 case "$ac_config_target" in
18761 # Handling of arguments.
18762 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
18763 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18764 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18765 "lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/compiler/Makefile" ;;
18766 "lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/runtime/Makefile" ;;
18767 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18768 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18769 "tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/stkrc/Makefile" ;;
18770 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18771 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18772 { (exit 1); exit 1; }; };;
18776 # If the user did not use the arguments to specify the items to instantiate,
18777 # then the envvar interface is used. Set only those that are not.
18778 # We use the long form for the default assignment because of an extremely
18779 # bizarre bug on SunOS 4.1.3.
18780 if $ac_need_defaults; then
18781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18785 # Have a temporary directory for convenience. Make it in the build tree
18786 # simply because there is no reason to put it here, and in addition,
18787 # creating and moving files from /tmp can sometimes cause problems.
18788 # Create a temporary directory, and hook for its removal unless debugging.
18791 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18792 trap '{ (exit 1); exit 1; }' 1 2 13 15
18795 # Create a (secure) tmp directory for tmp files.
18798 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18799 test -n "$tmp" && test -d "$tmp"
18802 tmp=./confstat$$-$RANDOM
18803 (umask 077 && mkdir $tmp)
18806 echo "$me: cannot create a temporary directory in ." >&2
18807 { (exit 1); exit 1; }
18812 cat >>$CONFIG_STATUS <<_ACEOF
18815 # CONFIG_FILES section.
18818 # No need to generate the scripts if there are no CONFIG_FILES.
18819 # This happens for instance when ./config.status config.h
18820 if test -n "\$CONFIG_FILES"; then
18821 # Protect against being on the right side of a sed subst in config.status.
18822 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18823 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18824 s,@SHELL@,$SHELL,;t t
18825 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18826 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18827 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18828 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18829 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18830 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18831 s,@exec_prefix@,$exec_prefix,;t t
18832 s,@prefix@,$prefix,;t t
18833 s,@program_transform_name@,$program_transform_name,;t t
18834 s,@bindir@,$bindir,;t t
18835 s,@sbindir@,$sbindir,;t t
18836 s,@libexecdir@,$libexecdir,;t t
18837 s,@datadir@,$datadir,;t t
18838 s,@sysconfdir@,$sysconfdir,;t t
18839 s,@sharedstatedir@,$sharedstatedir,;t t
18840 s,@localstatedir@,$localstatedir,;t t
18841 s,@libdir@,$libdir,;t t
18842 s,@includedir@,$includedir,;t t
18843 s,@oldincludedir@,$oldincludedir,;t t
18844 s,@infodir@,$infodir,;t t
18845 s,@mandir@,$mandir,;t t
18846 s,@build_alias@,$build_alias,;t t
18847 s,@host_alias@,$host_alias,;t t
18848 s,@target_alias@,$target_alias,;t t
18849 s,@DEFS@,$DEFS,;t t
18850 s,@ECHO_C@,$ECHO_C,;t t
18851 s,@ECHO_N@,$ECHO_N,;t t
18852 s,@ECHO_T@,$ECHO_T,;t t
18853 s,@LIBS@,$LIBS,;t t
18854 s,@build@,$build,;t t
18855 s,@build_cpu@,$build_cpu,;t t
18856 s,@build_vendor@,$build_vendor,;t t
18857 s,@build_os@,$build_os,;t t
18858 s,@host@,$host,;t t
18859 s,@host_cpu@,$host_cpu,;t t
18860 s,@host_vendor@,$host_vendor,;t t
18861 s,@host_os@,$host_os,;t t
18863 s,@CFLAGS@,$CFLAGS,;t t
18864 s,@LDFLAGS@,$LDFLAGS,;t t
18865 s,@CPPFLAGS@,$CPPFLAGS,;t t
18866 s,@ac_ct_CC@,$ac_ct_CC,;t t
18867 s,@EXEEXT@,$EXEEXT,;t t
18868 s,@OBJEXT@,$OBJEXT,;t t
18869 s,@EGREP@,$EGREP,;t t
18870 s,@LN_S@,$LN_S,;t t
18871 s,@ECHO@,$ECHO,;t t
18873 s,@ac_ct_AR@,$ac_ct_AR,;t t
18874 s,@RANLIB@,$RANLIB,;t t
18875 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18876 s,@STRIP@,$STRIP,;t t
18877 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18880 s,@CXXFLAGS@,$CXXFLAGS,;t t
18881 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18882 s,@CXXCPP@,$CXXCPP,;t t
18884 s,@FFLAGS@,$FFLAGS,;t t
18885 s,@ac_ct_F77@,$ac_ct_F77,;t t
18886 s,@LIBTOOL@,$LIBTOOL,;t t
18887 s,@SHLIBEXT@,$SHLIBEXT,;t t
18888 s,@LLVM_SRC@,$LLVM_SRC,;t t
18889 s,@LLVM_OBJ@,$LLVM_OBJ,;t t
18890 s,@LIBOBJS@,$LIBOBJS,;t t
18891 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18896 cat >>$CONFIG_STATUS <<\_ACEOF
18897 # Split the substitutions into bite-sized pieces for seds with
18898 # small command number limits, like on Digital OSF/1 and HP-UX.
18899 ac_max_sed_lines=48
18900 ac_sed_frag=1 # Number of current file.
18901 ac_beg=1 # First line for current file.
18902 ac_end=$ac_max_sed_lines # Line after last line for current file.
18905 while $ac_more_lines; do
18906 if test $ac_beg -gt 1; then
18907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18911 if test ! -s $tmp/subs.frag; then
18912 ac_more_lines=false
18914 # The purpose of the label and of the branching condition is to
18915 # speed up the sed processing (if there are no `@' at all, there
18916 # is no need to browse any of the substitutions).
18917 # These are the two extra sed commands mentioned above.
18919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18920 if test -z "$ac_sed_cmds"; then
18921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18925 ac_sed_frag=`expr $ac_sed_frag + 1`
18927 ac_end=`expr $ac_end + $ac_max_sed_lines`
18930 if test -z "$ac_sed_cmds"; then
18933 fi # test -n "$CONFIG_FILES"
18936 cat >>$CONFIG_STATUS <<\_ACEOF
18937 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18940 - | *:- | *:-:* ) # input from stdin
18942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18946 * ) ac_file_in=$ac_file.in ;;
18949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952 X"$ac_file" : 'X\(//\)[^/]' \| \
18953 X"$ac_file" : 'X\(//\)$' \| \
18954 X"$ac_file" : 'X\(/\)' \| \
18955 . : '\(.\)' 2>/dev/null ||
18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18959 /^X\(\/\/\)$/{ s//\1/; q; }
18960 /^X\(\/\).*/{ s//\1/; q; }
18962 { if $as_mkdir_p; then
18967 while test ! -d "$as_dir"; do
18968 as_dirs="$as_dir $as_dirs"
18969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971 X"$as_dir" : 'X\(//\)[^/]' \| \
18972 X"$as_dir" : 'X\(//\)$' \| \
18973 X"$as_dir" : 'X\(/\)' \| \
18974 . : '\(.\)' 2>/dev/null ||
18976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18978 /^X\(\/\/\)$/{ s//\1/; q; }
18979 /^X\(\/\).*/{ s//\1/; q; }
18982 test ! -n "$as_dirs" || mkdir $as_dirs
18983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18985 { (exit 1); exit 1; }; }; }
18989 if test "$ac_dir" != .; then
18990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18991 # A "../" for each directory in $ac_dir_suffix.
18992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18994 ac_dir_suffix= ac_top_builddir=
18998 .) # No --srcdir option. We are building in place.
19000 if test -z "$ac_top_builddir"; then
19003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19005 [\\/]* | ?:[\\/]* ) # Absolute path.
19006 ac_srcdir=$srcdir$ac_dir_suffix;
19007 ac_top_srcdir=$srcdir ;;
19008 *) # Relative path.
19009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19013 # Do not use `cd foo && pwd` to compute absolute paths, because
19014 # the directories may not exist.
19016 .) ac_abs_builddir="$ac_dir";;
19019 .) ac_abs_builddir=`pwd`;;
19020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19024 case $ac_abs_builddir in
19025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19027 case ${ac_top_builddir}. in
19028 .) ac_abs_top_builddir=$ac_abs_builddir;;
19029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19033 case $ac_abs_builddir in
19034 .) ac_abs_srcdir=$ac_srcdir;;
19037 .) ac_abs_srcdir=$ac_abs_builddir;;
19038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19042 case $ac_abs_builddir in
19043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19045 case $ac_top_srcdir in
19046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19054 if test x"$ac_file" != x-; then
19055 { echo "$as_me:$LINENO: creating $ac_file" >&5
19056 echo "$as_me: creating $ac_file" >&6;}
19059 # Let's still pretend it is `configure' which instantiates (i.e., don't
19060 # use $as_me), people would be surprised to read:
19061 # /* config.h. Generated by config.status. */
19062 if test x"$ac_file" = x-; then
19065 configure_input="$ac_file. "
19067 configure_input=$configure_input"Generated from `echo $ac_file_in |
19068 sed 's,.*/,,'` by configure."
19070 # First look for the input files in the build tree, otherwise in the
19072 ac_file_inputs=`IFS=:
19073 for f in $ac_file_in; do
19075 -) echo $tmp/stdin ;;
19077 # Absolute (can't be DOS-style, as IFS=:)
19078 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19079 echo "$as_me: error: cannot find input file: $f" >&2;}
19080 { (exit 1); exit 1; }; }
19083 if test -f "$f"; then
19086 elif test -f "$srcdir/$f"; then
19091 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19092 echo "$as_me: error: cannot find input file: $f" >&2;}
19093 { (exit 1); exit 1; }; }
19096 done` || { (exit 1); exit 1; }
19098 cat >>$CONFIG_STATUS <<_ACEOF
19102 cat >>$CONFIG_STATUS <<\_ACEOF
19104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19105 s,@configure_input@,$configure_input,;t t
19106 s,@srcdir@,$ac_srcdir,;t t
19107 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19108 s,@top_srcdir@,$ac_top_srcdir,;t t
19109 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19110 s,@builddir@,$ac_builddir,;t t
19111 s,@abs_builddir@,$ac_abs_builddir,;t t
19112 s,@top_builddir@,$ac_top_builddir,;t t
19113 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19114 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19116 if test x"$ac_file" != x-; then
19117 mv $tmp/out $ac_file
19125 cat >>$CONFIG_STATUS <<\_ACEOF
19128 # CONFIG_COMMANDS section.
19130 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19131 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19132 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19133 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19134 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135 X"$ac_dest" : 'X\(//\)[^/]' \| \
19136 X"$ac_dest" : 'X\(//\)$' \| \
19137 X"$ac_dest" : 'X\(/\)' \| \
19138 . : '\(.\)' 2>/dev/null ||
19140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19142 /^X\(\/\/\)$/{ s//\1/; q; }
19143 /^X\(\/\).*/{ s//\1/; q; }
19145 { if $as_mkdir_p; then
19150 while test ! -d "$as_dir"; do
19151 as_dirs="$as_dir $as_dirs"
19152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19154 X"$as_dir" : 'X\(//\)[^/]' \| \
19155 X"$as_dir" : 'X\(//\)$' \| \
19156 X"$as_dir" : 'X\(/\)' \| \
19157 . : '\(.\)' 2>/dev/null ||
19159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19161 /^X\(\/\/\)$/{ s//\1/; q; }
19162 /^X\(\/\).*/{ s//\1/; q; }
19165 test ! -n "$as_dirs" || mkdir $as_dirs
19166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19168 { (exit 1); exit 1; }; }; }
19172 if test "$ac_dir" != .; then
19173 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19174 # A "../" for each directory in $ac_dir_suffix.
19175 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19177 ac_dir_suffix= ac_top_builddir=
19181 .) # No --srcdir option. We are building in place.
19183 if test -z "$ac_top_builddir"; then
19186 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19188 [\\/]* | ?:[\\/]* ) # Absolute path.
19189 ac_srcdir=$srcdir$ac_dir_suffix;
19190 ac_top_srcdir=$srcdir ;;
19191 *) # Relative path.
19192 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19193 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19196 # Do not use `cd foo && pwd` to compute absolute paths, because
19197 # the directories may not exist.
19199 .) ac_abs_builddir="$ac_dir";;
19202 .) ac_abs_builddir=`pwd`;;
19203 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19204 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19207 case $ac_abs_builddir in
19208 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19210 case ${ac_top_builddir}. in
19211 .) ac_abs_top_builddir=$ac_abs_builddir;;
19212 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19213 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19216 case $ac_abs_builddir in
19217 .) ac_abs_srcdir=$ac_srcdir;;
19220 .) ac_abs_srcdir=$ac_abs_builddir;;
19221 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19222 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19225 case $ac_abs_builddir in
19226 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19228 case $ac_top_srcdir in
19229 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19230 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19231 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19236 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19237 echo "$as_me: executing $ac_dest commands" >&6;}
19239 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
19240 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
19241 lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/compiler/Makefile lib/compiler/Makefile ;;
19242 lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/runtime/Makefile lib/runtime/Makefile ;;
19243 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
19244 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
19245 tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/stkrc/Makefile tools/stkrc/Makefile ;;
19250 cat >>$CONFIG_STATUS <<\_ACEOF
19252 { (exit 0); exit 0; }
19254 chmod +x $CONFIG_STATUS
19255 ac_clean_files=$ac_clean_files_save
19258 # configure is writing to config.log, and then calls config.status.
19259 # config.status does its own redirection, appending to config.log.
19260 # Unfortunately, on DOS this fails, as config.log is still kept open
19261 # by configure, so config.status won't be able to write to it; its
19262 # output is simply discarded. So we exec the FD to /dev/null,
19263 # effectively closing config.log, so it can be properly (re)opened and
19264 # appended to by config.status. When coming back to configure, we
19265 # need to make the FD available again.
19266 if test "$no_create" != yes; then
19268 ac_config_status_args=
19269 test "$silent" = yes &&
19270 ac_config_status_args="$ac_config_status_args --quiet"
19272 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19275 # would make configure fail if this is the last instruction.
19276 $ac_cs_success || { (exit 1); exit 1; }