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="Makefile.common.in"
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.
1537 ac_config_commands="$ac_config_commands Makefile"
1540 ac_config_commands="$ac_config_commands lib/Makefile"
1543 ac_config_commands="$ac_config_commands lib/compiler/Makefile"
1546 ac_config_commands="$ac_config_commands lib/runtime/Makefile"
1549 ac_config_commands="$ac_config_commands test/Makefile"
1552 ac_config_commands="$ac_config_commands tools/Makefile"
1555 ac_config_commands="$ac_config_commands tools/stkrc/Makefile"
1560 # Check whether --enable-shared or --disable-shared was given.
1561 if test "${enable_shared+set}" = set; then
1562 enableval="$enable_shared"
1563 p=${PACKAGE-default}
1565 yes) enable_shared=yes ;;
1566 no) enable_shared=no ;;
1569 # Look at the argument we got. We use all the common list separators.
1570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1571 for pkg in $enableval; do
1573 if test "X$pkg" = "X$p"; then
1584 # Check whether --enable-static or --disable-static was given.
1585 if test "${enable_static+set}" = set; then
1586 enableval="$enable_static"
1587 p=${PACKAGE-default}
1589 yes) enable_static=yes ;;
1590 no) enable_static=no ;;
1593 # Look at the argument we got. We use all the common list separators.
1594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1595 for pkg in $enableval; do
1597 if test "X$pkg" = "X$p"; then
1608 # Check whether --enable-fast-install or --disable-fast-install was given.
1609 if test "${enable_fast_install+set}" = set; then
1610 enableval="$enable_fast_install"
1611 p=${PACKAGE-default}
1613 yes) enable_fast_install=yes ;;
1614 no) enable_fast_install=no ;;
1616 enable_fast_install=no
1617 # Look at the argument we got. We use all the common list separators.
1618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1619 for pkg in $enableval; do
1621 if test "X$pkg" = "X$p"; then
1622 enable_fast_install=yes
1629 enable_fast_install=yes
1632 # Make sure we can run config.sub.
1633 $ac_config_sub sun4 >/dev/null 2>&1 ||
1634 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1635 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1636 { (exit 1); exit 1; }; }
1638 echo "$as_me:$LINENO: checking build system type" >&5
1639 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1640 if test "${ac_cv_build+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 ac_cv_build_alias=$build_alias
1644 test -z "$ac_cv_build_alias" &&
1645 ac_cv_build_alias=`$ac_config_guess`
1646 test -z "$ac_cv_build_alias" &&
1647 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1648 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1649 { (exit 1); exit 1; }; }
1650 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1657 echo "${ECHO_T}$ac_cv_build" >&6
1659 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664 echo "$as_me:$LINENO: checking host system type" >&5
1665 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1666 if test "${ac_cv_host+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 ac_cv_host_alias=$host_alias
1670 test -z "$ac_cv_host_alias" &&
1671 ac_cv_host_alias=$ac_cv_build_alias
1672 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1673 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1675 { (exit 1); exit 1; }; }
1678 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1679 echo "${ECHO_T}$ac_cv_host" >&6
1681 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 ac_cpp='$CPP $CPPFLAGS'
1688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1691 if test -n "$ac_tool_prefix"; then
1692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1693 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC="$CC" # Let the user override the test.
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir=.
1707 for ac_exec_ext in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 if test -n "$CC"; then
1720 echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1728 if test -z "$ac_cv_prog_CC"; then
1730 # Extract the first word of "gcc", so it can be a program name with args.
1731 set dummy gcc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="gcc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1770 if test -z "$CC"; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}cc; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC="$CC" # Let the user override the test.
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_CC="${ac_tool_prefix}cc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_CC"; then
1818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_CC="cc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1851 if test -z "$CC"; then
1852 # Extract the first word of "cc", so it can be a program name with args.
1853 set dummy cc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1871 ac_prog_rejected=yes
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 if test $ac_prog_rejected = yes; then
1882 # We found a bogon in the path, so make sure we never use it.
1883 set dummy $ac_cv_prog_CC
1885 if test $# != 0; then
1886 # We chose a different compiler from the bogus one.
1887 # However, it has the same basename, so the bogon will be chosen
1888 # first if we set CC to just the basename; use the full file name.
1890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1896 if test -n "$CC"; then
1897 echo "$as_me:$LINENO: result: $CC" >&5
1898 echo "${ECHO_T}$CC" >&6
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1905 if test -z "$CC"; then
1906 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 if test -n "$CC"; then
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1944 test -n "$CC" && break
1947 if test -z "$CC"; then
1951 # Extract the first word of "$ac_prog", so it can be a program name with args.
1952 set dummy $ac_prog; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$ac_ct_CC"; then
1959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_ac_ct_CC="$ac_prog"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1986 test -n "$ac_ct_CC" && break
1995 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: no acceptable C compiler found in \$PATH
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2001 # Provide some information about the compiler.
2002 echo "$as_me:$LINENO:" \
2003 "checking for C compiler version" >&5
2004 ac_compiler=`set X $ac_compile; echo $2`
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2006 (eval $ac_compiler --version </dev/null >&5) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }
2010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2011 (eval $ac_compiler -v </dev/null >&5) 2>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }
2015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2016 (eval $ac_compiler -V </dev/null >&5) 2>&5
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2021 cat >conftest.$ac_ext <<_ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h. */
2036 ac_clean_files_save=$ac_clean_files
2037 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2038 # Try to create an executable without -o first, disregard a.out.
2039 # It will help us diagnose broken compilers, and finding out an intuition
2041 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2042 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2043 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2045 (eval $ac_link_default) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # Find the output, starting from the most likely. This scheme is
2050 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2053 # Be careful to initialize this variable, since it used to be cached.
2054 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2056 # b.out is created by i960 compilers.
2057 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2059 test -f "$ac_file" || continue
2061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2064 # This is the source file.
2067 # We found the default executable, but exeext='' is most
2071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 # FIXME: I believe we export ac_cv_exeext for Libtool,
2073 # but it would be cool to find out if it's true. Does anybody
2074 # maintain Libtool? --akim.
2082 echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2085 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: C compiler cannot create executables
2088 See \`config.log' for more details." >&2;}
2089 { (exit 77); exit 77; }; }
2092 ac_exeext=$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_file" >&5
2094 echo "${ECHO_T}$ac_file" >&6
2096 # Check the compiler produces executables we can run. If not, either
2097 # the compiler is broken, or we cross compile.
2098 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2099 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2101 # If not cross compiling, check that we can run a simple program.
2102 if test "$cross_compiling" != yes; then
2103 if { ac_try='./$ac_file'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2111 if test "$cross_compiling" = maybe; then
2114 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2115 If you meant to cross compile, use \`--host'.
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: cannot run C compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2124 echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6
2127 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2128 ac_clean_files=$ac_clean_files_save
2129 # Check the compiler produces executables we can run. If not, either
2130 # the compiler is broken, or we cross compile.
2131 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2132 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2133 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2134 echo "${ECHO_T}$cross_compiling" >&6
2136 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2137 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2139 (eval $ac_link) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2144 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2145 # work properly (i.e., refer to `conftest.exe'), while it won't with
2147 for ac_file in conftest.exe conftest conftest.*; do
2148 test -f "$ac_file" || continue
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2151 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2161 See \`config.log' for more details." >&2;}
2162 { (exit 1); exit 1; }; }
2165 rm -f conftest$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2167 echo "${ECHO_T}$ac_cv_exeext" >&6
2169 rm -f conftest.$ac_ext
2170 EXEEXT=$ac_cv_exeext
2172 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2173 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2174 if test "${ac_cv_objext+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 cat >conftest.$ac_ext <<_ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2192 rm -f conftest.o conftest.obj
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; then
2198 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2201 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2212 See \`config.log' for more details." >&2;}
2213 { (exit 1); exit 1; }; }
2216 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2218 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2219 echo "${ECHO_T}$ac_cv_objext" >&6
2220 OBJEXT=$ac_cv_objext
2222 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2223 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2224 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 cat >conftest.$ac_ext <<_ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2249 grep -v '^ *+' conftest.er1 >conftest.err
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2275 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2278 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2279 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2280 GCC=`test $ac_compiler_gnu = yes && echo yes`
2281 ac_test_CFLAGS=${CFLAGS+set}
2282 ac_save_CFLAGS=$CFLAGS
2284 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2285 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2286 if test "${ac_cv_prog_cc_g+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2308 grep -v '^ *+' conftest.er1 >conftest.err
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag"
2314 || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2336 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2337 if test "$ac_test_CFLAGS" = set; then
2338 CFLAGS=$ac_save_CFLAGS
2339 elif test $ac_cv_prog_cc_g = yes; then
2340 if test "$GCC" = yes; then
2346 if test "$GCC" = yes; then
2352 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2353 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2354 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 ac_cv_prog_cc_stdc=no
2359 cat >conftest.$ac_ext <<_ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2367 #include <sys/types.h>
2368 #include <sys/stat.h>
2369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2370 struct buf { int x; };
2371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372 static char *e (p, i)
2378 static char *f (char * (*g) (char **, int), char **p, ...)
2383 s = g (p, va_arg (v,int));
2388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2389 function prototypes and stuff, but not '\xHH' hex character constants.
2390 These don't provoke an error unfortunately, instead are silently treated
2391 as 'x'. The following induces an error, until -std1 is added to get
2392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2393 array size at least. It's necessary to write '\x00'==0 to get something
2394 that's true only with -std1. */
2395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2397 int test (int i, double x);
2398 struct s1 {int (*f) (int a);};
2399 struct s2 {int (*f) (double a);};
2400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2411 # Don't try gcc -ansi; that turns off useful extensions and
2412 # breaks some systems' header files.
2413 # AIX -qlanglvl=ansi
2414 # Ultrix and OSF/1 -std1
2415 # HP-UX 10.20 and later -Ae
2416 # HP-UX older versions -Aa -D_HPUX_SOURCE
2417 # SVR4 -Xc -D__EXTENSIONS__
2418 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2420 CC="$ac_save_CC $ac_arg"
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 ac_cv_prog_cc_stdc=$ac_arg
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.err conftest.$ac_objext
2452 rm -f conftest.$ac_ext conftest.$ac_objext
2457 case "x$ac_cv_prog_cc_stdc" in
2459 echo "$as_me:$LINENO: result: none needed" >&5
2460 echo "${ECHO_T}none needed" >&6 ;;
2462 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2463 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2464 CC="$CC $ac_cv_prog_cc_stdc" ;;
2467 # Some people use a C++ compiler to compile C. Since we use `exit',
2468 # in C++ we need to declare it. In case someone uses the same compiler
2469 # for both compiling C and C++ we need to have the C++ compiler decide
2470 # the declaration of exit, since it's the most demanding environment.
2471 cat >conftest.$ac_ext <<_ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag"
2486 || test ! -s conftest.err'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 for ac_declaration in \
2500 'extern "C" void std::exit (int) throw (); using std::exit;' \
2501 'extern "C" void std::exit (int); using std::exit;' \
2502 'extern "C" void exit (int) throw ();' \
2503 'extern "C" void exit (int);' \
2506 cat >conftest.$ac_ext <<_ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>conftest.er1
2526 grep -v '^ *+' conftest.er1 >conftest.err
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -z "$ac_c_werror_flag"
2532 || test ! -s conftest.err'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>conftest.er1
2571 grep -v '^ *+' conftest.er1 >conftest.err
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag"
2577 || test ! -s conftest.err'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598 if test -n "$ac_declaration"; then
2599 echo '#ifdef __cplusplus' >>confdefs.h
2600 echo $ac_declaration >>confdefs.h
2601 echo '#endif' >>confdefs.h
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2617 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2618 if test "${lt_cv_path_SED+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 # Loop through the user's path and test for sed and gsed.
2622 # Then use that list of sed's as ones to test for truncation.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for lt_ac_prog in sed gsed; do
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2631 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2638 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2639 # along with /bin/sed that truncates output.
2640 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2641 test ! -f $lt_ac_sed && break
2642 cat /dev/null > conftest.in
2644 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2645 # Check for GNU sed and select it if it is found.
2646 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2647 lt_cv_path_SED=$lt_ac_sed
2651 cat conftest.in conftest.in >conftest.tmp
2652 mv conftest.tmp conftest.in
2653 cp conftest.in conftest.nl
2655 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2656 cmp -s conftest.out conftest.nl || break
2657 # 10000 chars as input seems more than enough
2658 test $lt_ac_count -gt 10 && break
2659 lt_ac_count=`expr $lt_ac_count + 1`
2660 if test $lt_ac_count -gt $lt_ac_max; then
2661 lt_ac_max=$lt_ac_count
2662 lt_cv_path_SED=$lt_ac_sed
2670 echo "$as_me:$LINENO: result: $SED" >&5
2671 echo "${ECHO_T}$SED" >&6
2673 echo "$as_me:$LINENO: checking for egrep" >&5
2674 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2675 if test "${ac_cv_prog_egrep+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2679 then ac_cv_prog_egrep='grep -E'
2680 else ac_cv_prog_egrep='egrep'
2683 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2684 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2685 EGREP=$ac_cv_prog_egrep
2689 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2690 if test "${with_gnu_ld+set}" = set; then
2691 withval="$with_gnu_ld"
2692 test "$withval" = no || with_gnu_ld=yes
2697 if test "$GCC" = yes; then
2698 # Check if gcc -print-prog-name=ld gives a path.
2699 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2700 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2703 # gcc leaves a trailing carriage return which upsets mingw
2704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2709 # Accept absolute paths.
2711 re_direlt='/[^/][^/]*/\.\./'
2712 # Canonicalize the path of ld
2713 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2714 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2715 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2717 test -z "$LD" && LD="$ac_prog"
2720 # If it fails, then pretend we aren't using GCC.
2724 # If it is relative, then search for the first ld in PATH.
2728 elif test "$with_gnu_ld" = yes; then
2729 echo "$as_me:$LINENO: checking for GNU ld" >&5
2730 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2732 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2733 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2735 if test "${lt_cv_path_LD+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 if test -z "$LD"; then
2739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2740 for ac_dir in $PATH; do
2742 test -z "$ac_dir" && ac_dir=.
2743 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2744 lt_cv_path_LD="$ac_dir/$ac_prog"
2745 # Check to see if the program is GNU ld. I'd rather use --version,
2746 # but apparently some GNU ld's only accept -v.
2747 # Break only if it was the GNU/non-GNU ld that we prefer.
2748 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2749 *GNU* | *'with BFD'*)
2750 test "$with_gnu_ld" != no && break
2753 test "$with_gnu_ld" != yes && break
2760 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2765 if test -n "$LD"; then
2766 echo "$as_me:$LINENO: result: $LD" >&5
2767 echo "${ECHO_T}$LD" >&6
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2772 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2773 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2774 { (exit 1); exit 1; }; }
2775 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2776 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2777 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2781 case `"$LD" -v 2>&1 </dev/null` in
2782 *GNU* | *'with BFD'*)
2783 lt_cv_prog_gnu_ld=yes
2786 lt_cv_prog_gnu_ld=no
2790 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2791 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2792 with_gnu_ld=$lt_cv_prog_gnu_ld
2795 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2796 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2797 if test "${lt_cv_ld_reload_flag+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 lt_cv_ld_reload_flag='-r'
2802 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2803 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2804 reload_flag=$lt_cv_ld_reload_flag
2805 case $reload_flag in
2807 *) reload_flag=" $reload_flag" ;;
2809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2811 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2812 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2813 if test "${lt_cv_path_NM+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$NM"; then
2817 # Let the user override the test.
2820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2821 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2823 test -z "$ac_dir" && ac_dir=.
2824 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2825 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2826 # Check to see if the nm accepts a BSD-compat flag.
2827 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2828 # nm: unknown option "B" ignored
2829 # Tru64's nm complains that /dev/null is an invalid object file
2830 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2831 */dev/null* | *'Invalid file or object type'*)
2832 lt_cv_path_NM="$tmp_nm -B"
2836 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2838 lt_cv_path_NM="$tmp_nm -p"
2842 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2843 continue # so that we can try to find one that supports BSD flags
2850 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2853 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2854 echo "${ECHO_T}$lt_cv_path_NM" >&6
2857 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2858 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2860 if test "$LN_S" = "ln -s"; then
2861 echo "$as_me:$LINENO: result: yes" >&5
2862 echo "${ECHO_T}yes" >&6
2864 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2865 echo "${ECHO_T}no, using $LN_S" >&6
2868 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2869 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2870 if test "${lt_cv_deplibs_check_method+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 lt_cv_file_magic_cmd='$MAGIC_CMD'
2874 lt_cv_file_magic_test_file=
2875 lt_cv_deplibs_check_method='unknown'
2876 # Need to set the preceding variable on all platforms that support
2877 # interlibrary dependencies.
2878 # 'none' -- dependencies not supported.
2879 # `unknown' -- same as none, but documents that we really don't know.
2880 # 'pass_all' -- all dependencies passed with no checks.
2881 # 'test_compile' -- check by making test program.
2882 # 'file_magic [[regex]]' -- check by looking for files in library path
2883 # which responds to the $file_magic_cmd with a given extended regex.
2884 # If you have `file' or equivalent on your system and you're not sure
2885 # whether `pass_all' will *always* work, you probably want this one.
2889 lt_cv_deplibs_check_method=pass_all
2893 lt_cv_deplibs_check_method=pass_all
2897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2898 lt_cv_file_magic_cmd='/usr/bin/file -L'
2899 lt_cv_file_magic_test_file=/shlib/libc.so
2902 cygwin* | mingw* | pw32*)
2903 # win32_libid is a shell function defined in ltmain.sh
2904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2905 lt_cv_file_magic_cmd='win32_libid'
2908 darwin* | rhapsody*)
2909 # this will be overwritten by pass_all, but leave it in just in case
2910 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2911 lt_cv_file_magic_cmd='/usr/bin/file -L'
2913 rhapsody* | darwin1.[012])
2914 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2917 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2920 lt_cv_deplibs_check_method=pass_all
2924 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2927 # Not sure whether the presence of OpenBSD here was a mistake.
2928 # Let's accept both of them until this is cleared up.
2929 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2930 lt_cv_file_magic_cmd=/usr/bin/file
2931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2935 lt_cv_deplibs_check_method=pass_all
2940 lt_cv_deplibs_check_method=pass_all
2943 hpux10.20* | hpux11*)
2944 lt_cv_file_magic_cmd=/usr/bin/file
2947 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2948 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2951 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]'
2952 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2956 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2961 irix5* | irix6* | nonstopux*)
2963 irix5* | nonstopux*)
2964 # this will be overridden with pass_all, but let us keep it just in case
2965 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2969 *-32|*"-32 ") libmagic=32-bit;;
2970 *-n32|*"-n32 ") libmagic=N32;;
2971 *-64|*"-64 ") libmagic=64-bit;;
2972 *) libmagic=never-match;;
2974 # this will be overridden with pass_all, but let us keep it just in case
2975 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2978 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2979 lt_cv_deplibs_check_method=pass_all
2982 # This must be Linux ELF.
2985 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2986 lt_cv_deplibs_check_method=pass_all ;;
2988 # glibc up to 2.1.1 does not perform some relocations on ARM
2989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2991 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2995 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3004 lt_cv_file_magic_cmd=/usr/bin/file
3005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3009 lt_cv_deplibs_check_method=unknown
3013 lt_cv_file_magic_cmd=/usr/bin/file
3014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3018 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3022 osf3* | osf4* | osf5*)
3023 # this will be overridden with pass_all, but let us keep it just in case
3024 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3025 lt_cv_file_magic_test_file=/shlib/libc.so
3026 lt_cv_deplibs_check_method=pass_all
3030 lt_cv_deplibs_check_method=pass_all
3034 lt_cv_deplibs_check_method=pass_all
3035 lt_cv_file_magic_test_file=/lib/libc.so
3038 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3039 case $host_vendor in
3041 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]'
3042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3045 lt_cv_deplibs_check_method=pass_all
3048 lt_cv_file_magic_cmd='/bin/file'
3049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3052 lt_cv_file_magic_cmd='/bin/file'
3053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3054 lt_cv_file_magic_test_file=/lib/libc.so
3057 lt_cv_deplibs_check_method=pass_all
3062 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3063 lt_cv_deplibs_check_method=pass_all
3068 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3069 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3070 file_magic_cmd=$lt_cv_file_magic_cmd
3071 deplibs_check_method=$lt_cv_deplibs_check_method
3072 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3077 # If no C compiler was specified, use CC.
3080 # Allow CC to be a program name with arguments.
3084 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3085 if test "${enable_libtool_lock+set}" = set; then
3086 enableval="$enable_libtool_lock"
3089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3091 # Some flags need to be propagated to the compiler or linker for good
3095 # Find out which ABI we are using.
3096 echo 'int i;' > conftest.$ac_ext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; then
3102 case `/usr/bin/file conftest.$ac_objext` in
3114 # Find out which ABI we are using.
3115 echo '#line 3115 "configure"' > conftest.$ac_ext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117 (eval $ac_compile) 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; then
3121 if test "$lt_cv_prog_gnu_ld" = yes; then
3122 case `/usr/bin/file conftest.$ac_objext` in
3124 LD="${LD-ld} -melf32bsmip"
3127 LD="${LD-ld} -melf32bmipn32"
3130 LD="${LD-ld} -melf64bmip"
3134 case `/usr/bin/file conftest.$ac_objext` in
3150 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3151 # Find out which ABI we are using.
3152 echo 'int i;' > conftest.$ac_ext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; then
3158 case "`/usr/bin/file conftest.o`" in
3162 LD="${LD-ld} -m elf_i386"
3165 LD="${LD-ld} -m elf32ppclinux"
3168 LD="${LD-ld} -m elf_s390"
3171 LD="${LD-ld} -m elf32_sparc"
3178 LD="${LD-ld} -m elf_x86_64"
3180 ppc*-*linux*|powerpc*-*linux*)
3181 LD="${LD-ld} -m elf64ppc"
3184 LD="${LD-ld} -m elf64_s390"
3187 LD="${LD-ld} -m elf64_sparc"
3197 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3198 SAVE_CFLAGS="$CFLAGS"
3199 CFLAGS="$CFLAGS -belf"
3200 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3201 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3202 if test "${lt_cv_cc_needs_belf+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228 (eval $ac_link) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest$ac_exeext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 lt_cv_cc_needs_belf=yes
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 lt_cv_cc_needs_belf=no
3255 rm -f conftest.err conftest.$ac_objext \
3256 conftest$ac_exeext conftest.$ac_ext
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3265 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3266 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3267 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3268 CFLAGS="$SAVE_CFLAGS"
3274 need_locks="$enable_libtool_lock"
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3283 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3284 # On Suns, sometimes $CPP names a directory.
3285 if test -n "$CPP" && test -d "$CPP"; then
3288 if test -z "$CPP"; then
3289 if test "${ac_cv_prog_CPP+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 # Double quotes because CPP needs to be expanded
3293 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3296 for ac_c_preproc_warn_flag in '' yes
3298 # Use a header file that comes with gcc, so configuring glibc
3299 # with a fresh cross-compiler works.
3300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3301 # <limits.h> exists even on freestanding compilers.
3302 # On the NeXT, cc -E runs the code through the compiler's parser,
3303 # not just through cpp. "Syntax error" is here to catch this case.
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3311 # include <limits.h>
3313 # include <assert.h>
3317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3334 if test -z "$ac_cpp_err"; then
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 # Broken: fails on valid input.
3343 rm -f conftest.err conftest.$ac_ext
3345 # OK, works on sane cases. Now check whether non-existent headers
3346 # can be detected and how.
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #include <ac_nonexistent.h>
3355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3358 grep -v '^ *+' conftest.er1 >conftest.err
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } >/dev/null; then
3363 if test -s conftest.err; then
3364 ac_cpp_err=$ac_c_preproc_warn_flag
3365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372 if test -z "$ac_cpp_err"; then
3373 # Broken: success on invalid input.
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 # Passes both tests.
3383 rm -f conftest.err conftest.$ac_ext
3386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3387 rm -f conftest.err conftest.$ac_ext
3388 if $ac_preproc_ok; then
3400 echo "$as_me:$LINENO: result: $CPP" >&5
3401 echo "${ECHO_T}$CPP" >&6
3403 for ac_c_preproc_warn_flag in '' yes
3405 # Use a header file that comes with gcc, so configuring glibc
3406 # with a fresh cross-compiler works.
3407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408 # <limits.h> exists even on freestanding compilers.
3409 # On the NeXT, cc -E runs the code through the compiler's parser,
3410 # not just through cpp. "Syntax error" is here to catch this case.
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3418 # include <limits.h>
3420 # include <assert.h>
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_c_preproc_warn_flag
3434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441 if test -z "$ac_cpp_err"; then
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Broken: fails on valid input.
3450 rm -f conftest.err conftest.$ac_ext
3452 # OK, works on sane cases. Now check whether non-existent headers
3453 # can be detected and how.
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #include <ac_nonexistent.h>
3462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479 if test -z "$ac_cpp_err"; then
3480 # Broken: success on invalid input.
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 # Passes both tests.
3490 rm -f conftest.err conftest.$ac_ext
3493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494 rm -f conftest.err conftest.$ac_ext
3495 if $ac_preproc_ok; then
3498 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&5
3500 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3501 See \`config.log' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3514 if test "${ac_cv_header_stdc+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_cv_header_stdc=yes
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 ac_cv_header_stdc=no
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567 if test $ac_cv_header_stdc = yes; then
3568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 $EGREP "memchr" >/dev/null 2>&1; then
3582 ac_cv_header_stdc=no
3588 if test $ac_cv_header_stdc = yes; then
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600 $EGREP "free" >/dev/null 2>&1; then
3603 ac_cv_header_stdc=no
3609 if test $ac_cv_header_stdc = yes; then
3610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3611 if test "$cross_compiling" = yes; then
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3621 #if ((' ' & 0x0FF) == 0x020)
3622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3625 # define ISLOWER(c) \
3626 (('a' <= (c) && (c) <= 'i') \
3627 || ('j' <= (c) && (c) <= 'r') \
3628 || ('s' <= (c) && (c) <= 'z'))
3629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3637 for (i = 0; i < 256; i++)
3638 if (XOR (islower (i), ISLOWER (i))
3639 || toupper (i) != TOUPPER (i))
3644 rm -f conftest$ac_exeext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646 (eval $ac_link) 2>&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3657 echo "$as_me: program exited with status $ac_status" >&5
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3662 ac_cv_header_stdc=no
3664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3669 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3670 if test $ac_cv_header_stdc = yes; then
3672 cat >>confdefs.h <<\_ACEOF
3673 #define STDC_HEADERS 1
3678 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3688 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3689 inttypes.h stdint.h unistd.h
3691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3692 echo "$as_me:$LINENO: checking for $ac_header" >&5
3693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 $ac_includes_default
3705 #include <$ac_header>
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag"
3717 || test ! -s conftest.err'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 eval "$as_ac_Header=yes"
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 eval "$as_ac_Header=no"
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3741 cat >>confdefs.h <<_ACEOF
3742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3751 for ac_header in dlfcn.h
3753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo "$as_me:$LINENO: checking for $ac_header" >&5
3756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3763 # Is the header compilable?
3764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 $ac_includes_default
3773 #include <$ac_header>
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_header_compiler=yes
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 ac_header_compiler=no
3804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3806 echo "${ECHO_T}$ac_header_compiler" >&6
3808 # Is the header present?
3809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <$ac_header>
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null; then
3827 if test -s conftest.err; then
3828 ac_cpp_err=$ac_c_preproc_warn_flag
3829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3836 if test -z "$ac_cpp_err"; then
3837 ac_header_preproc=yes
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 ac_header_preproc=no
3844 rm -f conftest.err conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3846 echo "${ECHO_T}$ac_header_preproc" >&6
3848 # So? What about this header?
3849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3855 ac_header_preproc=yes
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3872 ## ---------------------------------- ##
3873 ## Report this to rspencer@x10sys.com ##
3874 ## ---------------------------------- ##
3877 sed "s/^/$as_me: WARNING: /" >&2
3880 echo "$as_me:$LINENO: checking for $ac_header" >&5
3881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 eval "$as_ac_Header=\$ac_header_preproc"
3887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3892 cat >>confdefs.h <<_ACEOF
3893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3901 ac_cpp='$CXXCPP $CPPFLAGS'
3902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3905 if test -n "$ac_tool_prefix"; then
3906 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_CXX+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if test -n "$CXX"; then
3916 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 if test -n "$CXX"; then
3936 echo "$as_me:$LINENO: result: $CXX" >&5
3937 echo "${ECHO_T}$CXX" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 test -n "$CXX" && break
3946 if test -z "$CXX"; then
3948 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3950 # Extract the first word of "$ac_prog", so it can be a program name with args.
3951 set dummy $ac_prog; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 if test -n "$ac_ct_CXX"; then
3958 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_CXX="$ac_prog"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3977 if test -n "$ac_ct_CXX"; then
3978 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3979 echo "${ECHO_T}$ac_ct_CXX" >&6
3981 echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3985 test -n "$ac_ct_CXX" && break
3987 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3993 # Provide some information about the compiler.
3994 echo "$as_me:$LINENO:" \
3995 "checking for C++ compiler version" >&5
3996 ac_compiler=`set X $ac_compile; echo $2`
3997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3998 (eval $ac_compiler --version </dev/null >&5) 2>&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
4002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4003 (eval $ac_compiler -v </dev/null >&5) 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
4007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4008 (eval $ac_compiler -V </dev/null >&5) 2>&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }
4013 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4014 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4015 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4069 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4071 GXX=`test $ac_compiler_gnu = yes && echo yes`
4072 ac_test_CXXFLAGS=${CXXFLAGS+set}
4073 ac_save_CXXFLAGS=$CXXFLAGS
4075 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4076 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4077 if test "${ac_cv_prog_cxx_g+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_cxx_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_prog_cxx_g=yes
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4127 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4128 if test "$ac_test_CXXFLAGS" = set; then
4129 CXXFLAGS=$ac_save_CXXFLAGS
4130 elif test $ac_cv_prog_cxx_g = yes; then
4131 if test "$GXX" = yes; then
4137 if test "$GXX" = yes; then
4143 for ac_declaration in \
4145 'extern "C" void std::exit (int) throw (); using std::exit;' \
4146 'extern "C" void std::exit (int); using std::exit;' \
4147 'extern "C" void exit (int) throw ();' \
4148 'extern "C" void exit (int);' \
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4167 rm -f conftest.$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_cxx_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197 cat >conftest.$ac_ext <<_ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_cxx_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243 if test -n "$ac_declaration"; then
4244 echo '#ifdef __cplusplus' >>confdefs.h
4245 echo $ac_declaration >>confdefs.h
4246 echo '#endif' >>confdefs.h
4250 ac_cpp='$CXXCPP $CPPFLAGS'
4251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4256 ac_cpp='$CXXCPP $CPPFLAGS'
4257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4260 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4261 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4262 if test -z "$CXXCPP"; then
4263 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 # Double quotes because CXXCPP needs to be expanded
4267 for CXXCPP in "$CXX -E" "/lib/cpp"
4270 for ac_cxx_preproc_warn_flag in '' yes
4272 # Use a header file that comes with gcc, so configuring glibc
4273 # with a fresh cross-compiler works.
4274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4275 # <limits.h> exists even on freestanding compilers.
4276 # On the NeXT, cc -E runs the code through the compiler's parser,
4277 # not just through cpp. "Syntax error" is here to catch this case.
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4285 # include <limits.h>
4287 # include <assert.h>
4291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } >/dev/null; then
4299 if test -s conftest.err; then
4300 ac_cpp_err=$ac_cxx_preproc_warn_flag
4301 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4308 if test -z "$ac_cpp_err"; then
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 # Broken: fails on valid input.
4317 rm -f conftest.err conftest.$ac_ext
4319 # OK, works on sane cases. Now check whether non-existent headers
4320 # can be detected and how.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #include <ac_nonexistent.h>
4329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } >/dev/null; then
4337 if test -s conftest.err; then
4338 ac_cpp_err=$ac_cxx_preproc_warn_flag
4339 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4346 if test -z "$ac_cpp_err"; then
4347 # Broken: success on invalid input.
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 # Passes both tests.
4357 rm -f conftest.err conftest.$ac_ext
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then
4367 ac_cv_prog_CXXCPP=$CXXCPP
4370 CXXCPP=$ac_cv_prog_CXXCPP
4372 ac_cv_prog_CXXCPP=$CXXCPP
4374 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4375 echo "${ECHO_T}$CXXCPP" >&6
4377 for ac_cxx_preproc_warn_flag in '' yes
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat >conftest.$ac_ext <<_ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4392 # include <limits.h>
4394 # include <assert.h>
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } >/dev/null; then
4406 if test -s conftest.err; then
4407 ac_cpp_err=$ac_cxx_preproc_warn_flag
4408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4415 if test -z "$ac_cpp_err"; then
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 # Broken: fails on valid input.
4424 rm -f conftest.err conftest.$ac_ext
4426 # OK, works on sane cases. Now check whether non-existent headers
4427 # can be detected and how.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 #include <ac_nonexistent.h>
4436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev/null; then
4444 if test -s conftest.err; then
4445 ac_cpp_err=$ac_cxx_preproc_warn_flag
4446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4453 if test -z "$ac_cpp_err"; then
4454 # Broken: success on invalid input.
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 # Passes both tests.
4464 rm -f conftest.err conftest.$ac_ext
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then
4472 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4473 See \`config.log' for more details." >&5
4474 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4475 See \`config.log' for more details." >&2;}
4476 { (exit 1); exit 1; }; }
4480 ac_cpp='$CXXCPP $CPPFLAGS'
4481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4487 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4488 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4490 if test -n "$ac_tool_prefix"; then
4491 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_F77+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$F77"; then
4501 ac_cv_prog_F77="$F77" # Let the user override the test.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 if test -n "$F77"; then
4521 echo "$as_me:$LINENO: result: $F77" >&5
4522 echo "${ECHO_T}$F77" >&6
4524 echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4528 test -n "$F77" && break
4531 if test -z "$F77"; then
4533 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4535 # Extract the first word of "$ac_prog", so it can be a program name with args.
4536 set dummy $ac_prog; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 if test -n "$ac_ct_F77"; then
4543 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_F77="$ac_prog"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4562 if test -n "$ac_ct_F77"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4564 echo "${ECHO_T}$ac_ct_F77" >&6
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4570 test -n "$ac_ct_F77" && break
4577 # Provide some information about the compiler.
4578 echo "$as_me:4578:" \
4579 "checking for Fortran 77 compiler version" >&5
4580 ac_compiler=`set X $ac_compile; echo $2`
4581 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4582 (eval $ac_compiler --version </dev/null >&5) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }
4586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4587 (eval $ac_compiler -v </dev/null >&5) 2>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }
4591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4592 (eval $ac_compiler -V </dev/null >&5) 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }
4598 # If we don't use `.F' as extension, the preprocessor is not run on the
4599 # input file. (Note that this only needs to work for GNU compilers.)
4602 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4603 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4604 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_f77_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4648 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4649 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4651 ac_test_FFLAGS=${FFLAGS+set}
4652 ac_save_FFLAGS=$FFLAGS
4654 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4655 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4656 if test "${ac_cv_prog_f77_g+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4669 grep -v '^ *+' conftest.er1 >conftest.err
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_f77_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_cv_prog_f77_g=yes
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4698 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4699 if test "$ac_test_FFLAGS" = set; then
4700 FFLAGS=$ac_save_FFLAGS
4701 elif test $ac_cv_prog_f77_g = yes; then
4702 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4708 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4715 G77=`test $ac_compiler_gnu = yes && echo yes`
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4726 # find the maximum length of command line arguments
4727 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4728 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4729 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 # On DJGPP, this test can blow up pretty badly due to problems in libc
4738 # (any single argument exceeding 2000 bytes causes a buffer overrun
4739 # during glob expansion). Even if it were fixed, the result of this
4740 # check would be larger than it should be.
4741 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4745 # Under GNU Hurd, this test is not required because there is
4746 # no limit to the length of command line arguments.
4747 # Libtool will interpret -1 as no limit whatsoever
4748 lt_cv_sys_max_cmd_len=-1;
4752 # On Win9x/ME, this test blows up -- it succeeds, but takes
4753 # about 5 minutes as the teststring grows exponentially.
4754 # Worse, since 9x/ME are not pre-emptively multitasking,
4755 # you end up with a "frozen" computer, even though with patience
4756 # the test eventually succeeds (with a max line length of 256k).
4757 # Instead, let's just punt: use the minimum linelength reported by
4758 # all of the supported platforms: 8192 (on NT/2K/XP).
4759 lt_cv_sys_max_cmd_len=8192;
4763 # If test is not a shell built-in, we'll probably end up computing a
4764 # maximum length that is only half of the actual maximum length, but
4766 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4767 = "XX$testring") >/dev/null 2>&1 &&
4768 new_result=`expr "X$testring" : ".*" 2>&1` &&
4769 lt_cv_sys_max_cmd_len=$new_result &&
4770 test $i != 17 # 1/2 MB should be enough
4773 testring=$testring$testring
4776 # Add a significant safety factor because C++ compilers can tack on massive
4777 # amounts of additional arguments before passing them to the linker.
4778 # It appears as though 1/2 is a usable value.
4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4785 if test -n $lt_cv_sys_max_cmd_len ; then
4786 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4787 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4789 echo "$as_me:$LINENO: result: none" >&5
4790 echo "${ECHO_T}none" >&6
4796 # Check for command to grab the raw symbol name followed by C symbol from nm.
4797 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4798 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4799 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 # These are sane defaults that work on at least a few old systems.
4804 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4806 # Character class describing NM global symbol codes.
4807 symcode='[BCDEGRST]'
4809 # Regexp to match symbols that can be accessed directly from C.
4810 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4812 # Transform the above into a raw symbol and a C symbol.
4813 symxfrm='\1 \2\3 \3'
4815 # Transform an extracted symbol line into a proper C declaration
4816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4818 # Transform an extracted symbol line into symbol name and symbol address
4819 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'"
4821 # Define system-specific variables.
4826 cygwin* | mingw* | pw32*)
4827 symcode='[ABCDGISTW]'
4829 hpux*) # Its linker distinguishes data from code symbols
4830 if test "$host_cpu" = ia64; then
4831 symcode='[ABCDEGRST]'
4833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4834 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'"
4837 symcode='[BCDEGRST]'
4840 symcode='[BCDEGQRST]'
4850 # Handle CRLF in mingw tool chain
4854 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4858 # If we're using GNU nm, then use its standard symbol codes.
4859 case `$NM -V 2>&1` in
4860 *GNU* | *'with BFD'*)
4861 symcode='[ABCDGISTW]' ;;
4864 # Try without a prefix undercore, then with it.
4865 for ac_symprfx in "" "_"; do
4867 # Write the raw and C identifiers.
4868 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4870 # Check to see that the pipe works correctly.
4874 cat > conftest.$ac_ext <<EOF
4879 void nm_test_func(){}
4883 int main(){nm_test_var='a';nm_test_func();return(0);}
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; then
4891 # Now try to grab the symbols.
4893 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4894 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } && test -s "$nlist"; then
4898 # Try sorting and uniquifying the output.
4899 if sort "$nlist" | uniq > "$nlist"T; then
4900 mv -f "$nlist"T "$nlist"
4905 # Make sure that we snagged all the symbols we need.
4906 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4907 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4908 cat <<EOF > conftest.$ac_ext
4914 # Now generate the symbol file.
4915 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4917 cat <<EOF >> conftest.$ac_ext
4918 #if defined (__STDC__) && __STDC__
4919 # define lt_ptr_t void *
4921 # define lt_ptr_t char *
4925 /* The mapping between symbol names and symbols. */
4930 lt_preloaded_symbols[] =
4933 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4934 cat <<\EOF >> conftest.$ac_ext
4942 # Now try linking the two files.
4943 mv conftest.$ac_objext conftstm.$ac_objext
4944 lt_save_LIBS="$LIBS"
4945 lt_save_CFLAGS="$CFLAGS"
4946 LIBS="conftstm.$ac_objext"
4947 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949 (eval $ac_link) 2>&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4955 LIBS="$lt_save_LIBS"
4956 CFLAGS="$lt_save_CFLAGS"
4958 echo "cannot find nm_test_func in $nlist" >&5
4961 echo "cannot find nm_test_var in $nlist" >&5
4964 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4967 echo "$progname: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 rm -f conftest* conftst*
4972 # Do not use the global_symbol_pipe unless it works.
4973 if test "$pipe_works" = yes; then
4976 lt_cv_sys_global_symbol_pipe=
4982 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4983 lt_cv_sys_global_symbol_to_cdecl=
4985 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4986 echo "$as_me:$LINENO: result: failed" >&5
4987 echo "${ECHO_T}failed" >&6
4989 echo "$as_me:$LINENO: result: ok" >&5
4990 echo "${ECHO_T}ok" >&6
4993 echo "$as_me:$LINENO: checking for objdir" >&5
4994 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4995 if test "${lt_cv_objdir+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 rm -f .libs 2>/dev/null
4999 mkdir .libs 2>/dev/null
5000 if test -d .libs; then
5003 # MS-DOS does not allow filenames that begin with a dot.
5006 rmdir .libs 2>/dev/null
5008 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5009 echo "${ECHO_T}$lt_cv_objdir" >&6
5010 objdir=$lt_cv_objdir
5018 # AIX sometimes has problems with the GCC collect2 program. For some
5019 # reason, if we set the COLLECT_NAMES environment variable, the problems
5020 # vanish in a puff of smoke.
5021 if test "X${COLLECT_NAMES+set}" != Xset; then
5023 export COLLECT_NAMES
5028 # Sed substitution that helps us do robust quoting. It backslashifies
5029 # metacharacters that are still active within double-quoted strings.
5030 Xsed='sed -e s/^X//'
5031 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5033 # Same as above, but do not quote variable references.
5034 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5036 # Sed substitution to delay expansion of an escaped shell variable in a
5037 # double_quote_subst'ed string.
5038 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5040 # Sed substitution to avoid accidental globbing in evaled expressions
5041 no_glob_subst='s/\*/\\\*/g'
5048 can_build_shared=yes
5050 # All known linkers require a `.a' archive for static linking (except M$VC,
5051 # which needs '.lib').
5053 ltmain="$ac_aux_dir/ltmain.sh"
5054 ofile="$default_ofile"
5055 with_gnu_ld="$lt_cv_prog_gnu_ld"
5057 if test -n "$ac_tool_prefix"; then
5058 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}ar; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_prog_AR+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test -n "$AR"; then
5066 ac_cv_prog_AR="$AR" # Let the user override the test.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_AR="${ac_tool_prefix}ar"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 if test -n "$AR"; then
5086 echo "$as_me:$LINENO: result: $AR" >&5
5087 echo "${ECHO_T}$AR" >&6
5089 echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6
5094 if test -z "$ac_cv_prog_AR"; then
5096 # Extract the first word of "ar", so it can be a program name with args.
5097 set dummy ar; ac_word=$2
5098 echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 if test -n "$ac_ct_AR"; then
5104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_ac_ct_AR="ar"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5124 if test -n "$ac_ct_AR"; then
5125 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5126 echo "${ECHO_T}$ac_ct_AR" >&6
5128 echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_RANLIB+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -n "$RANLIB"; then
5146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 RANLIB=$ac_cv_prog_RANLIB
5165 if test -n "$RANLIB"; then
5166 echo "$as_me:$LINENO: result: $RANLIB" >&5
5167 echo "${ECHO_T}$RANLIB" >&6
5169 echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5174 if test -z "$ac_cv_prog_RANLIB"; then
5175 ac_ct_RANLIB=$RANLIB
5176 # Extract the first word of "ranlib", so it can be a program name with args.
5177 set dummy ranlib; ac_word=$2
5178 echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 if test -n "$ac_ct_RANLIB"; then
5184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_ac_ct_RANLIB="ranlib"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5204 if test -n "$ac_ct_RANLIB"; then
5205 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5206 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5208 echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5212 RANLIB=$ac_ct_RANLIB
5214 RANLIB="$ac_cv_prog_RANLIB"
5217 if test -n "$ac_tool_prefix"; then
5218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}strip; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_prog_STRIP+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test -n "$STRIP"; then
5226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 STRIP=$ac_cv_prog_STRIP
5245 if test -n "$STRIP"; then
5246 echo "$as_me:$LINENO: result: $STRIP" >&5
5247 echo "${ECHO_T}$STRIP" >&6
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5254 if test -z "$ac_cv_prog_STRIP"; then
5256 # Extract the first word of "strip", so it can be a program name with args.
5257 set dummy strip; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 if test -n "$ac_ct_STRIP"; then
5264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_STRIP="strip"
5274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5284 if test -n "$ac_ct_STRIP"; then
5285 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5286 echo "${ECHO_T}$ac_ct_STRIP" >&6
5288 echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6
5294 STRIP="$ac_cv_prog_STRIP"
5299 old_CFLAGS="$CFLAGS"
5301 # Set sane defaults for various variables
5302 test -z "$AR" && AR=ar
5303 test -z "$AR_FLAGS" && AR_FLAGS=cru
5304 test -z "$AS" && AS=as
5305 test -z "$CC" && CC=cc
5306 test -z "$LTCC" && LTCC=$CC
5307 test -z "$DLLTOOL" && DLLTOOL=dlltool
5308 test -z "$LD" && LD=ld
5309 test -z "$LN_S" && LN_S="ln -s"
5310 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5311 test -z "$NM" && NM=nm
5312 test -z "$SED" && SED=sed
5313 test -z "$OBJDUMP" && OBJDUMP=objdump
5314 test -z "$RANLIB" && RANLIB=:
5315 test -z "$STRIP" && STRIP=:
5316 test -z "$ac_objext" && ac_objext=o
5318 # Determine commands to create old-style static archives.
5319 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5320 old_postinstall_cmds='chmod 644 $oldlib'
5321 old_postuninstall_cmds=
5323 if test -n "$RANLIB"; then
5326 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5329 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5332 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5335 # Only perform the check for file, if the check method requires it
5336 case $deplibs_check_method in
5338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5339 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5340 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5349 lt_save_MAGIC_CMD="$MAGIC_CMD"
5350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5352 for ac_dir in $ac_dummy; do
5354 test -z "$ac_dir" && ac_dir=.
5355 if test -f $ac_dir/${ac_tool_prefix}file; then
5356 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5357 if test -n "$file_magic_test_file"; then
5358 case $deplibs_check_method in
5360 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5363 $EGREP "$file_magic_regex" > /dev/null; then
5368 *** Warning: the command libtool uses to detect shared libraries,
5369 *** $file_magic_cmd, produces output that libtool cannot recognize.
5370 *** The result is that libtool may fail to recognize shared libraries
5371 *** as such. This will affect the creation of libtool libraries that
5372 *** depend on shared libraries, but programs linked with such libtool
5373 *** libraries will work regardless of this problem. Nevertheless, you
5374 *** may want to report the problem to your system manager and/or to
5375 *** bug-libtool@gnu.org
5385 MAGIC_CMD="$lt_save_MAGIC_CMD"
5390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5391 if test -n "$MAGIC_CMD"; then
5392 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5393 echo "${ECHO_T}$MAGIC_CMD" >&6
5395 echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6
5399 if test -z "$lt_cv_path_MAGIC_CMD"; then
5400 if test -n "$ac_tool_prefix"; then
5401 echo "$as_me:$LINENO: checking for file" >&5
5402 echo $ECHO_N "checking for file... $ECHO_C" >&6
5403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5411 lt_save_MAGIC_CMD="$MAGIC_CMD"
5412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5414 for ac_dir in $ac_dummy; do
5416 test -z "$ac_dir" && ac_dir=.
5417 if test -f $ac_dir/file; then
5418 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5419 if test -n "$file_magic_test_file"; then
5420 case $deplibs_check_method in
5422 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5425 $EGREP "$file_magic_regex" > /dev/null; then
5430 *** Warning: the command libtool uses to detect shared libraries,
5431 *** $file_magic_cmd, produces output that libtool cannot recognize.
5432 *** The result is that libtool may fail to recognize shared libraries
5433 *** as such. This will affect the creation of libtool libraries that
5434 *** depend on shared libraries, but programs linked with such libtool
5435 *** libraries will work regardless of this problem. Nevertheless, you
5436 *** may want to report the problem to your system manager and/or to
5437 *** bug-libtool@gnu.org
5447 MAGIC_CMD="$lt_save_MAGIC_CMD"
5452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5453 if test -n "$MAGIC_CMD"; then
5454 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5455 echo "${ECHO_T}$MAGIC_CMD" >&6
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5473 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5474 if test "${enable_libtool_lock+set}" = set; then
5475 enableval="$enable_libtool_lock"
5478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5481 # Check whether --with-pic or --without-pic was given.
5482 if test "${with_pic+set}" = set; then
5488 test -z "$pic_mode" && pic_mode=default
5490 # Use C for the default configuration in the libtool script
5494 ac_cpp='$CPP $CPPFLAGS'
5495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500 # Source file extension for C test sources.
5503 # Object file extension for compiled C test sources.
5507 # Code to be used in simple compile tests
5508 lt_simple_compile_test_code="int some_variable = 0;\n"
5510 # Code to be used in simple link tests
5511 lt_simple_link_test_code='int main(){return(0);}\n'
5514 # If no C compiler was specified, use CC.
5517 # Allow CC to be a program name with arguments.
5522 # Check for any special shared library compilation flags.
5525 if test "$GCC" = no; then
5528 lt_prog_cc_shlib='-belf'
5532 if test -n "$lt_prog_cc_shlib"; then
5533 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5534 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5535 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5537 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5538 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5539 lt_cv_prog_cc_can_build_shared=no
5545 # Check to make sure the static flag actually works.
5547 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5548 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5549 if test "${lt_prog_compiler_static_works+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 lt_prog_compiler_static_works=no
5553 save_LDFLAGS="$LDFLAGS"
5554 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5555 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5557 # The compiler can only warn and ignore the option if not recognized
5558 # So say no if there are warnings
5559 if test -s conftest.err; then
5560 # Append any errors to the config.log.
5561 cat conftest.err 1>&5
5563 lt_prog_compiler_static_works=yes
5567 LDFLAGS="$save_LDFLAGS"
5570 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5571 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5573 if test x"$lt_prog_compiler_static_works" = xyes; then
5576 lt_prog_compiler_static=
5582 ## There is no encapsulation within the following macros, do not change
5583 ## the running order or otherwise move them around unless you know exactly
5584 ## what you are doing...
5586 lt_prog_compiler_no_builtin_flag=
5588 if test "$GCC" = yes; then
5589 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5591 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5592 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5593 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 lt_cv_prog_compiler_rtti_exceptions=no
5597 ac_outfile=conftest.$ac_objext
5598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5599 lt_compiler_flag="-fno-rtti -fno-exceptions"
5600 # Insert the option either (1) after the last *FLAGS variable, or
5601 # (2) before a word containing "conftest.", or (3) at the end.
5602 # Note that $ac_compile itself does not contain backslashes and begins
5603 # with a dollar sign (not a hyphen), so the echo should work correctly.
5604 # The option is referenced via a variable to avoid confusing sed.
5605 lt_compile=`echo "$ac_compile" | $SED \
5606 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5608 -e 's:$: $lt_compiler_flag:'`
5609 (eval echo "\"\$as_me:5609: $lt_compile\"" >&5)
5610 (eval "$lt_compile" 2>conftest.err)
5612 cat conftest.err >&5
5613 echo "$as_me:5613: \$? = $ac_status" >&5
5614 if (exit $ac_status) && test -s "$ac_outfile"; then
5615 # The compiler can only warn and ignore the option if not recognized
5616 # So say no if there are warnings
5617 if test ! -s conftest.err; then
5618 lt_cv_prog_compiler_rtti_exceptions=yes
5624 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5625 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5627 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5628 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5635 lt_prog_compiler_wl=
5636 lt_prog_compiler_pic=
5637 lt_prog_compiler_static=
5639 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5642 if test "$GCC" = yes; then
5643 lt_prog_compiler_wl='-Wl,'
5644 lt_prog_compiler_static='-static'
5648 # All AIX code is PIC.
5649 if test "$host_cpu" = ia64; then
5650 # AIX 5 now supports IA64 processor
5651 lt_prog_compiler_static='-Bstatic'
5656 # FIXME: we need at least 68020 code to build shared libraries, but
5657 # adding the `-m68020' flag to GCC prevents building anything better,
5659 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5662 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5663 # PIC is the default for these OSes.
5666 mingw* | pw32* | os2*)
5667 # This hack is so that the source file can tell whether it is being
5668 # built for inclusion in a dll (and should export symbols for example).
5669 lt_prog_compiler_pic='-DDLL_EXPORT'
5672 darwin* | rhapsody*)
5673 # PIC is the default on this platform
5674 # Common symbols not allowed in MH_DYLIB files
5675 lt_prog_compiler_pic='-fno-common'
5679 # Just because we use GCC doesn't mean we suddenly get shared libraries
5680 # on systems that don't support them.
5681 lt_prog_compiler_can_build_shared=no
5686 if test -d /usr/nec; then
5687 lt_prog_compiler_pic=-Kconform_pic
5692 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5699 lt_prog_compiler_pic='-fPIC'
5705 lt_prog_compiler_pic='-fPIC'
5709 # PORTME Check for flag to pass linker flags through the system compiler.
5712 lt_prog_compiler_wl='-Wl,'
5713 if test "$host_cpu" = ia64; then
5714 # AIX 5 now supports IA64 processor
5715 lt_prog_compiler_static='-Bstatic'
5717 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5721 mingw* | pw32* | os2*)
5722 # This hack is so that the source file can tell whether it is being
5723 # built for inclusion in a dll (and should export symbols for example).
5724 lt_prog_compiler_pic='-DDLL_EXPORT'
5727 hpux9* | hpux10* | hpux11*)
5728 lt_prog_compiler_wl='-Wl,'
5729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5736 lt_prog_compiler_pic='+Z'
5739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5740 lt_prog_compiler_static='${wl}-a ${wl}archive'
5743 irix5* | irix6* | nonstopux*)
5744 lt_prog_compiler_wl='-Wl,'
5745 # PIC (with -KPIC) is the default.
5746 lt_prog_compiler_static='-non_shared'
5750 lt_prog_compiler_pic='-KPIC'
5751 lt_prog_compiler_static='-Bstatic'
5757 lt_prog_compiler_wl='-Wl,'
5758 lt_prog_compiler_pic='-KPIC'
5759 lt_prog_compiler_static='-static'
5762 lt_prog_compiler_wl='-Wl,'
5763 # All Alpha code is PIC.
5764 lt_prog_compiler_static='-non_shared'
5769 osf3* | osf4* | osf5*)
5770 lt_prog_compiler_wl='-Wl,'
5771 # All OSF/1 code is PIC.
5772 lt_prog_compiler_static='-non_shared'
5776 lt_prog_compiler_pic='-Kpic'
5777 lt_prog_compiler_static='-dn'
5781 lt_prog_compiler_wl='-Wl,'
5782 lt_prog_compiler_pic='-KPIC'
5783 lt_prog_compiler_static='-Bstatic'
5787 lt_prog_compiler_wl='-Qoption ld '
5788 lt_prog_compiler_pic='-PIC'
5789 lt_prog_compiler_static='-Bstatic'
5792 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5793 lt_prog_compiler_wl='-Wl,'
5794 lt_prog_compiler_pic='-KPIC'
5795 lt_prog_compiler_static='-Bstatic'
5799 if test -d /usr/nec ;then
5800 lt_prog_compiler_pic='-Kconform_pic'
5801 lt_prog_compiler_static='-Bstatic'
5806 lt_prog_compiler_pic='-pic'
5807 lt_prog_compiler_static='-Bstatic'
5811 lt_prog_compiler_can_build_shared=no
5816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5817 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5820 # Check to make sure the PIC flag actually works.
5822 if test -n "$lt_prog_compiler_pic"; then
5823 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5824 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5825 if test "${lt_prog_compiler_pic_works+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 lt_prog_compiler_pic_works=no
5829 ac_outfile=conftest.$ac_objext
5830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5831 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5832 # Insert the option either (1) after the last *FLAGS variable, or
5833 # (2) before a word containing "conftest.", or (3) at the end.
5834 # Note that $ac_compile itself does not contain backslashes and begins
5835 # with a dollar sign (not a hyphen), so the echo should work correctly.
5836 # The option is referenced via a variable to avoid confusing sed.
5837 lt_compile=`echo "$ac_compile" | $SED \
5838 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5840 -e 's:$: $lt_compiler_flag:'`
5841 (eval echo "\"\$as_me:5841: $lt_compile\"" >&5)
5842 (eval "$lt_compile" 2>conftest.err)
5844 cat conftest.err >&5
5845 echo "$as_me:5845: \$? = $ac_status" >&5
5846 if (exit $ac_status) && test -s "$ac_outfile"; then
5847 # The compiler can only warn and ignore the option if not recognized
5848 # So say no if there are warnings
5849 if test ! -s conftest.err; then
5850 lt_prog_compiler_pic_works=yes
5856 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5857 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5859 if test x"$lt_prog_compiler_pic_works" = xyes; then
5860 case $lt_prog_compiler_pic in
5862 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5865 lt_prog_compiler_pic=
5866 lt_prog_compiler_can_build_shared=no
5871 # For platforms which do not support PIC, -DPIC is meaningless:
5873 lt_prog_compiler_pic=
5876 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5880 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5882 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 lt_cv_prog_compiler_c_o=no
5886 $rm -r conftest 2>/dev/null
5890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5892 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5893 # that will create temporary files in the current directory regardless of
5894 # the output directory. Thus, making CWD read-only will cause this test
5895 # to fail, enabling locking or at least warning the user not to do parallel
5899 lt_compiler_flag="-o out/conftest2.$ac_objext"
5900 # Insert the option either (1) after the last *FLAGS variable, or
5901 # (2) before a word containing "conftest.", or (3) at the end.
5902 # Note that $ac_compile itself does not contain backslashes and begins
5903 # with a dollar sign (not a hyphen), so the echo should work correctly.
5904 lt_compile=`echo "$ac_compile" | $SED \
5905 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5907 -e 's:$: $lt_compiler_flag:'`
5908 (eval echo "\"\$as_me:5908: $lt_compile\"" >&5)
5909 (eval "$lt_compile" 2>out/conftest.err)
5911 cat out/conftest.err >&5
5912 echo "$as_me:5912: \$? = $ac_status" >&5
5913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5915 # The compiler can only warn and ignore the option if not recognized
5916 # So say no if there are warnings
5917 if test ! -s out/conftest.err; then
5918 lt_cv_prog_compiler_c_o=yes
5929 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5933 hard_links="nottested"
5934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5935 # do not overwrite the value of need_locks provided by the user
5936 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5942 ln conftest.a conftest.b 2>&5 || hard_links=no
5943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5944 echo "$as_me:$LINENO: result: $hard_links" >&5
5945 echo "${ECHO_T}$hard_links" >&6
5946 if test "$hard_links" = no; then
5947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5955 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5959 allow_undefined_flag=
5960 enable_shared_with_static_runtimes=no
5962 archive_expsym_cmds=
5963 old_archive_From_new_cmds=
5964 old_archive_from_expsyms_cmds=
5965 export_dynamic_flag_spec=
5966 whole_archive_flag_spec=
5967 thread_safe_flag_spec=
5968 hardcode_libdir_flag_spec=
5969 hardcode_libdir_flag_spec_ld=
5970 hardcode_libdir_separator=
5973 hardcode_shlibpath_var=unsupported
5974 link_all_deplibs=unknown
5975 hardcode_automatic=no
5978 always_export_symbols=no
5979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5980 # include_expsyms should be a list of space-separated symbols to be *always*
5981 # included in the symbol list
5983 # exclude_expsyms can be an extended regexp of symbols to exclude
5984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5986 # as well as any symbol that contains `d'.
5987 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5989 # platforms (ab)use it in PIC code, but their linkers get confused if
5990 # the symbol is explicitly referenced. Since portable code cannot
5991 # rely on this symbol name, it's probably fine to never include it in
5992 # preloaded symbol tables.
5993 extract_expsyms_cmds=
5996 cygwin* | mingw* | pw32*)
5997 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5998 # When not using gcc, we currently assume that we are using
5999 # Microsoft Visual C++.
6000 if test "$GCC" != yes; then
6010 if test "$with_gnu_ld" = yes; then
6011 # If archive_cmds runs LD, not CC, wlarc should be empty
6014 # See if GNU ld supports shared libraries.
6016 aix3* | aix4* | aix5*)
6017 # On AIX/PPC, the GNU linker is very broken
6018 if test "$host_cpu" != ia64; then
6022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6023 *** to be unable to reliably create shared libraries on AIX.
6024 *** Therefore, libtool is disabling shared libraries support. If you
6025 *** really care for shared libraries, you may want to modify your PATH
6026 *** so that a non-GNU linker is found, and then restart.
6033 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)'
6034 hardcode_libdir_flag_spec='-L$libdir'
6035 hardcode_minus_L=yes
6037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6038 # that the semantics of dynamic libraries on AmigaOS, at least up
6039 # to version 4, is to share data among multiple programs linked
6040 # with the same dynamic library. Since this doesn't match the
6041 # behavior of shared libraries on other platforms, we can't use
6047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6048 allow_undefined_flag=unsupported
6049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6050 # support --undefined. This deserves some investigation. FIXME
6051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6057 cygwin* | mingw* | pw32*)
6058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6059 # as there is no search path for DLLs.
6060 hardcode_libdir_flag_spec='-L$libdir'
6061 allow_undefined_flag=unsupported
6062 always_export_symbols=no
6063 enable_shared_with_static_runtimes=yes
6064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6068 # If the export-symbols file already is a .def file (1st line
6069 # is EXPORTS), use it as is; otherwise, prepend...
6070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6071 cp $export_symbols $output_objdir/$soname.def;
6073 echo EXPORTS > $output_objdir/$soname.def;
6074 cat $export_symbols >> $output_objdir/$soname.def;
6076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6093 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6098 *** create shared libraries on Solaris systems. Therefore, libtool
6099 *** is disabling shared libraries support. We urge you to upgrade GNU
6100 *** binutils to release 2.9.1 or newer. Another option is to modify
6101 *** your PATH or compiler configuration so that the native linker is
6102 *** used, and then restart.
6105 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6114 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6117 hardcode_shlibpath_var=no
6121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6130 if test "$ld_shlibs" = yes; then
6131 runpath_var=LD_RUN_PATH
6132 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6133 export_dynamic_flag_spec='${wl}--export-dynamic'
6134 # ancient GNU ld didn't support --whole-archive et. al.
6135 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6136 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6138 whole_archive_flag_spec=
6142 # PORTME fill in a description of your system's linker (not GNU ld)
6145 allow_undefined_flag=unsupported
6146 always_export_symbols=yes
6147 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'
6148 # Note: this linker hardcodes the directories in LIBPATH if there
6149 # are no directories specified by -L.
6150 hardcode_minus_L=yes
6151 if test "$GCC" = yes && test -z "$link_static_flag"; then
6152 # Neither direct hardcoding nor static linking is supported with a
6154 hardcode_direct=unsupported
6159 if test "$host_cpu" = ia64; then
6160 # On IA64, the linker does run time linking by default, so we don't
6161 # have to do anything special.
6162 aix_use_runtimelinking=no
6163 exp_sym_flag='-Bexport'
6166 # If we're using GNU nm, then we don't want the "-C" option.
6167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6168 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6169 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'
6171 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'
6173 aix_use_runtimelinking=no
6175 # Test if we are trying to use run time linking or normal
6176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6177 # need to do runtime linking.
6178 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6179 for ld_flag in $LDFLAGS; do
6180 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6181 aix_use_runtimelinking=yes
6187 exp_sym_flag='-bexport'
6188 no_entry_flag='-bnoentry'
6191 # When large executables or shared objects are built, AIX ld can
6192 # have problems creating the table of contents. If linking a library
6193 # or program results in "error TOC overflow" add -mminimal-toc to
6194 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6195 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6199 hardcode_libdir_separator=':'
6200 link_all_deplibs=yes
6202 if test "$GCC" = yes; then
6203 case $host_os in aix4.012|aix4.012.*)
6204 # We only want to do this on AIX 4.2 and lower, the check
6205 # below for broken collect2 doesn't work under 4.3+
6206 collect2name=`${CC} -print-prog-name=collect2`
6207 if test -f "$collect2name" && \
6208 strings "$collect2name" | grep resolve_lib_name >/dev/null
6210 # We have reworked collect2
6213 # We have old collect2
6214 hardcode_direct=unsupported
6215 # It fails to find uninstalled libraries when the uninstalled
6216 # path is not listed in the libpath. Setting hardcode_minus_L
6217 # to unsupported forces relinking
6218 hardcode_minus_L=yes
6219 hardcode_libdir_flag_spec='-L$libdir'
6220 hardcode_libdir_separator=
6223 shared_flag='-shared'
6226 if test "$host_cpu" = ia64; then
6227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6228 # chokes on -Wl,-G. The following line is correct:
6231 if test "$aix_use_runtimelinking" = yes; then
6232 shared_flag='${wl}-G'
6234 shared_flag='${wl}-bM:SRE'
6239 # It seems that -bexpall does not export symbols beginning with
6240 # underscore (_), so it is better to generate a list of symbols to export.
6241 always_export_symbols=yes
6242 if test "$aix_use_runtimelinking" = yes; then
6243 # Warning - without using the other runtime loading flags (-brtl),
6244 # -berok will link without error, but may produce a broken library.
6245 allow_undefined_flag='-berok'
6246 # Determine the default libpath from the value encoded in an empty executable.
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_c_werror_flag"
6272 || test ! -s conftest.err'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; } &&
6278 { ac_try='test -s conftest$ac_exeext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6287 # Check for a 64-bit object if we didn't find anything.
6288 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; }
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6295 rm -f conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6299 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6300 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"
6302 if test "$host_cpu" = ia64; then
6303 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6304 allow_undefined_flag="-z nodefs"
6305 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"
6307 # Determine the default libpath from the value encoded in an empty executable.
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -z "$ac_c_werror_flag"
6333 || test ! -s conftest.err'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest$ac_exeext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6348 # Check for a 64-bit object if we didn't find anything.
6349 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; }
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6356 rm -f conftest.err conftest.$ac_objext \
6357 conftest$ac_exeext conftest.$ac_ext
6358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6361 # Warning - without using the other run time loading flags,
6362 # -berok will link without error, but may produce a broken library.
6363 no_undefined_flag=' ${wl}-bernotok'
6364 allow_undefined_flag=' ${wl}-berok'
6365 # -bexpall does not export symbols beginning with underscore (_)
6366 always_export_symbols=yes
6367 # Exported symbols can be pulled into shared objects from archives
6368 whole_archive_flag_spec=' '
6369 archive_cmds_need_lc=yes
6370 # This is similar to how AIX traditionally builds it's shared libraries.
6371 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'
6377 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)'
6378 hardcode_libdir_flag_spec='-L$libdir'
6379 hardcode_minus_L=yes
6380 # see comment about different semantics on the GNU ld section
6385 export_dynamic_flag_spec=-rdynamic
6388 cygwin* | mingw* | pw32*)
6389 # When not using gcc, we currently assume that we are using
6390 # Microsoft Visual C++.
6391 # hardcode_libdir_flag_spec is actually meaningless, as there is
6392 # no search path for DLLs.
6393 hardcode_libdir_flag_spec=' '
6394 allow_undefined_flag=unsupported
6395 # Tell ltmain to make .lib files, not .a files.
6397 # Tell ltmain to make .dll files, not .so files.
6399 # FIXME: Setting linknames here is a bad hack.
6400 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6401 # The linker will automatically build a .lib file if we build a DLL.
6402 old_archive_From_new_cmds='true'
6403 # FIXME: Should let the user specify the lib program.
6404 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6405 fix_srcfile_path='`cygpath -w "$srcfile"`'
6406 enable_shared_with_static_runtimes=yes
6409 darwin* | rhapsody*)
6410 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6411 archive_cmds_need_lc=no
6413 rhapsody* | darwin1.[012])
6414 allow_undefined_flag='-undefined suppress'
6417 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6420 # FIXME: Relying on posixy $() will cause problems for
6421 # cross-compilation, but unfortunately the echo tests do not
6422 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6423 # `"' quotes if we put them in here... so don't!
6424 lt_int_apple_cc_single_mod=no
6425 output_verbose_link_cmd='echo'
6426 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6427 lt_int_apple_cc_single_mod=yes
6429 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6430 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6432 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'
6434 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6436 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6437 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}'
6439 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}'
6441 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}'
6443 hardcode_automatic=yes
6444 hardcode_shlibpath_var=unsupported
6445 whole_archive_flag_spec='-all_load $convenience'
6446 link_all_deplibs=yes
6451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6452 hardcode_libdir_flag_spec='-L$libdir'
6453 hardcode_shlibpath_var=no
6460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6461 # support. Future versions do this automatically, but an explicit c++rt0.o
6462 # does not break anything, and helps significantly (at the cost of a little
6465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6466 hardcode_libdir_flag_spec='-R$libdir'
6468 hardcode_shlibpath_var=no
6471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6475 hardcode_minus_L=yes
6476 hardcode_shlibpath_var=no
6479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6481 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6482 hardcode_libdir_flag_spec='-R$libdir'
6484 hardcode_shlibpath_var=no
6488 if test "$GCC" = yes; then
6489 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'
6491 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'
6493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6494 hardcode_libdir_separator=:
6497 # hardcode_minus_L: Not really in the search PATH,
6498 # but as the default location of the library.
6499 hardcode_minus_L=yes
6500 export_dynamic_flag_spec='${wl}-E'
6504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6507 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6510 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6516 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6523 if test "$with_gnu_ld" = no; then
6526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6527 hardcode_libdir_flag_spec_ld='+b $libdir'
6528 hardcode_libdir_separator=:
6530 hardcode_shlibpath_var=no
6533 hardcode_libdir_flag_spec='-L$libdir'
6535 hardcode_shlibpath_var=no
6537 # hardcode_minus_L: Not really in the search PATH,
6538 # but as the default location of the library.
6539 hardcode_minus_L=yes
6542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6543 hardcode_libdir_separator=:
6545 export_dynamic_flag_spec='${wl}-E'
6547 # hardcode_minus_L: Not really in the search PATH,
6548 # but as the default location of the library.
6549 hardcode_minus_L=yes
6555 irix5* | irix6* | nonstopux*)
6556 if test "$GCC" = yes; then
6557 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'
6559 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'
6560 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6563 hardcode_libdir_separator=:
6564 link_all_deplibs=yes
6568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6573 hardcode_libdir_flag_spec='-R$libdir'
6575 hardcode_shlibpath_var=no
6579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6582 hardcode_libdir_separator=:
6583 hardcode_shlibpath_var=no
6588 hardcode_shlibpath_var=no
6589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6592 export_dynamic_flag_spec='${wl}-E'
6595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6597 hardcode_libdir_flag_spec='-R$libdir'
6600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6608 hardcode_libdir_flag_spec='-L$libdir'
6609 hardcode_minus_L=yes
6610 allow_undefined_flag=unsupported
6611 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'
6612 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6616 if test "$GCC" = yes; then
6617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6618 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'
6620 allow_undefined_flag=' -expect_unresolved \*'
6621 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'
6623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6624 hardcode_libdir_separator=:
6627 osf4* | osf5*) # as osf3* with the addition of -msym flag
6628 if test "$GCC" = yes; then
6629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6630 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'
6631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6633 allow_undefined_flag=' -expect_unresolved \*'
6634 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'
6635 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6636 $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'
6638 # Both c and cxx compiler support -rpath directly
6639 hardcode_libdir_flag_spec='-rpath $libdir'
6641 hardcode_libdir_separator=:
6645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6646 hardcode_shlibpath_var=no
6647 export_dynamic_flag_spec='${wl}-Bexport'
6648 runpath_var=LD_RUN_PATH
6649 hardcode_runpath_var=yes
6653 no_undefined_flag=' -z text'
6654 if test "$GCC" = yes; then
6655 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6656 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6657 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6663 hardcode_libdir_flag_spec='-R$libdir'
6664 hardcode_shlibpath_var=no
6666 solaris2.[0-5] | solaris2.[0-5].*) ;;
6667 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6670 link_all_deplibs=yes
6674 if test "x$host_vendor" = xsequent; then
6675 # Use $CC to link under sequent, because it throws in some extra .o
6676 # files that make .init and .fini sections work.
6677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6681 hardcode_libdir_flag_spec='-L$libdir'
6683 hardcode_minus_L=yes
6684 hardcode_shlibpath_var=no
6688 case $host_vendor in
6690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6691 hardcode_direct=yes # is this really true???
6694 ## LD is ld it makes a PLAMLIB
6695 ## CC just makes a GrossModule.
6696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6697 reload_cmds='$CC -r -o $output$reload_objs'
6701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6705 runpath_var='LD_RUN_PATH'
6706 hardcode_shlibpath_var=no
6710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6711 hardcode_shlibpath_var=no
6712 export_dynamic_flag_spec='-Bexport'
6716 if test -d /usr/nec; then
6717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6718 hardcode_shlibpath_var=no
6719 runpath_var=LD_RUN_PATH
6720 hardcode_runpath_var=yes
6726 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6729 hardcode_shlibpath_var=no
6730 hardcode_runpath_var=yes
6731 runpath_var=LD_RUN_PATH
6734 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6735 no_undefined_flag='${wl}-z ${wl}text'
6736 if test "$GCC" = yes; then
6737 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6739 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6741 runpath_var='LD_RUN_PATH'
6742 hardcode_shlibpath_var=no
6746 no_undefined_flag=' -z text'
6747 # $CC -shared without GNU ld will not create a library from C++
6748 # object files and a static libstdc++, better avoid it by now
6749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6750 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6752 hardcode_libdir_flag_spec=
6753 hardcode_shlibpath_var=no
6754 runpath_var='LD_RUN_PATH'
6758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6759 hardcode_libdir_flag_spec='-L$libdir'
6760 hardcode_shlibpath_var=no
6769 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6770 echo "${ECHO_T}$ld_shlibs" >&6
6771 test "$ld_shlibs" = no && can_build_shared=no
6773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6774 if test "$GCC" = yes; then
6775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6779 # Do we need to explicitly link libc?
6781 case "x$archive_cmds_need_lc" in
6783 # Assume -lc should be added
6784 archive_cmds_need_lc=yes
6786 if test "$enable_shared" = yes && test "$GCC" = yes; then
6787 case $archive_cmds in
6789 # FIXME: we may have to deal with multi-command sequences.
6792 # Test whether the compiler implicitly links with -lc since on some
6793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6794 # to ld, don't add -lc before -lgcc.
6795 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } 2>conftest.err; then
6807 libobjs=conftest.$ac_objext
6809 wl=$lt_prog_compiler_wl
6815 lt_save_allow_undefined_flag=$allow_undefined_flag
6816 allow_undefined_flag=
6817 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6818 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }
6823 archive_cmds_need_lc=no
6825 archive_cmds_need_lc=yes
6827 allow_undefined_flag=$lt_save_allow_undefined_flag
6829 cat conftest.err 1>&5
6832 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6833 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6840 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6841 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6843 if test -n "$hardcode_libdir_flag_spec" || \
6844 test -n "$runpath_var " || \
6845 test "X$hardcode_automatic"="Xyes" ; then
6847 # We can hardcode non-existant directories.
6848 if test "$hardcode_direct" != no &&
6849 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6850 # have to relink, otherwise we might link with an installed library
6851 # when we should be linking with a yet-to-be-installed one
6852 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6853 test "$hardcode_minus_L" != no; then
6854 # Linking always hardcodes the temporary library directory.
6855 hardcode_action=relink
6857 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6858 hardcode_action=immediate
6861 # We cannot hardcode anything, or else we can only hardcode existing
6863 hardcode_action=unsupported
6865 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6866 echo "${ECHO_T}$hardcode_action" >&6
6868 if test "$hardcode_action" = relink; then
6869 # Fast installation is not supported
6870 enable_fast_install=no
6871 elif test "$shlibpath_overrides_runpath" = yes ||
6872 test "$enable_shared" = no; then
6873 # Fast installation is not necessary
6874 enable_fast_install=needless
6879 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6880 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6881 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6882 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6883 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6884 echo "$as_me:$LINENO: result: yes" >&5
6885 echo "${ECHO_T}yes" >&6
6887 # FIXME - insert some real tests, host_os isn't really good enough
6890 if test -n "$STRIP" ; then
6891 striplib="$STRIP -x"
6892 echo "$as_me:$LINENO: result: yes" >&5
6893 echo "${ECHO_T}yes" >&6
6895 echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6
6900 echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6
6906 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6907 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6909 libname_spec='lib$name'
6917 shlibpath_overrides_runpath=unknown
6919 dynamic_linker="$host_os ld.so"
6920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6921 if test "$GCC" = yes; then
6922 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6923 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6924 # if the path contains ";" then we assume it to be the separator
6925 # otherwise default to the standard path separator (i.e. ":") - it is
6926 # assumed that no part of a normal pathname contains ";" but that should
6927 # okay in the real world where ";" in dirpaths is itself problematic.
6928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6935 need_lib_prefix=unknown
6936 hardcode_into_libs=no
6938 # when you set need_version to no, make sure it does not cause -set_version
6939 # flags to be left without arguments
6940 need_version=unknown
6945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6946 shlibpath_var=LIBPATH
6948 # AIX 3 has no versioning support, so we append a major version to the name.
6949 soname_spec='${libname}${release}${shared_ext}$major'
6956 hardcode_into_libs=yes
6957 if test "$host_cpu" = ia64; then
6958 # AIX 5 supports IA64
6959 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6960 shlibpath_var=LD_LIBRARY_PATH
6962 # With GCC up to 2.95.x, collect2 would create an import file
6963 # for dependence libraries. The import file would start with
6964 # the line `#! .'. This would cause the generated library to
6965 # depend on `.', always an invalid library. This was fixed in
6966 # development snapshots of GCC prior to 3.0.
6968 aix4 | aix4.[01] | aix4.[01].*)
6969 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6971 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6978 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6979 # soname into executable. Probably we can add versioning support to
6980 # collect2, so additional links can be useful in future.
6981 if test "$aix_use_runtimelinking" = yes; then
6982 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6983 # instead of lib<name>.a to let people know that these are not
6984 # typical AIX shared libraries.
6985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6987 # We preserve .a as extension for shared libraries through AIX4.2
6988 # and later when we are not doing run time linking.
6989 library_names_spec='${libname}${release}.a $libname.a'
6990 soname_spec='${libname}${release}${shared_ext}$major'
6992 shlibpath_var=LIBPATH
6997 library_names_spec='$libname.ixlibrary $libname.a'
6998 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6999 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'
7003 library_names_spec='${libname}${shared_ext}'
7004 dynamic_linker="$host_os ld.so"
7005 shlibpath_var=LIBRARY_PATH
7011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7014 shlibpath_var=LD_LIBRARY_PATH
7015 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7016 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7017 # the default ld.so.conf also contains /usr/contrib/lib and
7018 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7019 # libtool to hard-code these into programs
7022 cygwin* | mingw* | pw32*)
7023 version_type=windows
7028 case $GCC,$host_os in
7029 yes,cygwin* | yes,mingw* | yes,pw32*)
7030 library_names_spec='$libname.dll.a'
7031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7032 postinstall_cmds='base_file=`basename \${file}`~
7033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7034 dldir=$destdir/`dirname \$dlpath`~
7035 test -d \$dldir || mkdir -p \$dldir~
7036 $install_prog $dir/$dlname \$dldir/$dlname'
7037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7038 dlpath=$dir/\$dldll~
7040 shlibpath_overrides_runpath=yes
7044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7045 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7046 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7049 # MinGW DLLs use traditional 'lib' prefix
7050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7052 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7053 # It is most probably a Windows format PATH printed by
7054 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7055 # path with ; separators, and with drive letters. We can handle the
7056 # drive letters (cygwin fileutils understands them), so leave them,
7057 # especially as we might pass files found there to a mingw objdump,
7058 # which wouldn't understand a cygwinified path. Ahh.
7059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7065 # pw32 DLLs use 'pw' prefix rather than 'lib'
7066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7075 dynamic_linker='Win32 ld.exe'
7076 # FIXME: first we should search . and the directory the executable is in
7080 darwin* | rhapsody*)
7081 dynamic_linker="$host_os dyld"
7085 # FIXME: Relying on posixy $() will cause problems for
7086 # cross-compilation, but unfortunately the echo tests do not
7087 # yet detect zsh echo's removal of \ escapes.
7088 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7089 soname_spec='${libname}${release}${major}$shared_ext'
7090 shlibpath_overrides_runpath=yes
7091 shlibpath_var=DYLD_LIBRARY_PATH
7092 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7093 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7094 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7095 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"`
7097 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 shlibpath_var=LD_LIBRARY_PATH
7114 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7115 version_type=freebsd-$objformat
7116 case $version_type in
7118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7127 shlibpath_var=LD_LIBRARY_PATH
7130 shlibpath_overrides_runpath=yes
7132 freebsd3.01* | freebsdelf3.01*)
7133 shlibpath_overrides_runpath=yes
7134 hardcode_into_libs=yes
7137 shlibpath_overrides_runpath=no
7138 hardcode_into_libs=yes
7147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7148 soname_spec='${libname}${release}${shared_ext}$major'
7149 shlibpath_var=LD_LIBRARY_PATH
7150 hardcode_into_libs=yes
7153 hpux9* | hpux10* | hpux11*)
7154 # Give a soname corresponding to the major version so that dld.sl refuses to
7155 # link against other versions.
7162 hardcode_into_libs=yes
7163 dynamic_linker="$host_os dld.so"
7164 shlibpath_var=LD_LIBRARY_PATH
7165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7167 soname_spec='${libname}${release}${shared_ext}$major'
7168 if test "X$HPUX_IA64_MODE" = X32; then
7169 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7177 hardcode_into_libs=yes
7178 dynamic_linker="$host_os dld.sl"
7179 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7182 soname_spec='${libname}${release}${shared_ext}$major'
7183 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7188 dynamic_linker="$host_os dld.sl"
7189 shlibpath_var=SHLIB_PATH
7190 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7192 soname_spec='${libname}${release}${shared_ext}$major'
7195 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7196 postinstall_cmds='chmod 555 $lib'
7199 irix5* | irix6* | nonstopux*)
7201 nonstopux*) version_type=nonstopux ;;
7203 if test "$lt_cv_prog_gnu_ld" = yes; then
7211 soname_spec='${libname}${release}${shared_ext}$major'
7212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7214 irix5* | nonstopux*)
7218 case $LD in # libtool.m4 will add one of these switches to LD
7219 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7220 libsuff= shlibsuff= libmagic=32-bit;;
7221 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7222 libsuff=32 shlibsuff=N32 libmagic=N32;;
7223 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7224 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7225 *) libsuff= shlibsuff= libmagic=never-match;;
7229 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7230 shlibpath_overrides_runpath=no
7231 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7232 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7233 hardcode_into_libs=yes
7236 # No shared lib support for Linux oldld, aout, or coff.
7237 linux*oldld* | linux*aout* | linux*coff*)
7241 # This must be Linux ELF.
7246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7247 soname_spec='${libname}${release}${shared_ext}$major'
7248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7249 shlibpath_var=LD_LIBRARY_PATH
7250 shlibpath_overrides_runpath=no
7251 # This implies no fast_install, which is unacceptable.
7252 # Some rework will be needed to allow for fast_install
7253 # before this can be enabled.
7254 hardcode_into_libs=yes
7256 # We used to test for /lib/ld.so.1 and disable shared libraries on
7257 # powerpc, because MkLinux only supported shared libraries with the
7258 # GNU dynamic linker. Since this was broken with cross compilers,
7259 # most powerpc-linux boxes support dynamic linking these days and
7260 # people can always --disable-shared, the test was removed, and we
7261 # assume the GNU/Linux dynamic linker is in use.
7262 dynamic_linker='GNU/Linux ld.so'
7269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7272 dynamic_linker='NetBSD (a.out) ld.so'
7274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7275 soname_spec='${libname}${release}${shared_ext}$major'
7276 dynamic_linker='NetBSD ld.elf_so'
7278 shlibpath_var=LD_LIBRARY_PATH
7279 shlibpath_overrides_runpath=yes
7280 hardcode_into_libs=yes
7285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7286 shlibpath_var=LD_LIBRARY_PATH
7287 shlibpath_overrides_runpath=yes
7294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7295 soname_spec='${libname}${release}${shared_ext}$major'
7296 shlibpath_var=LD_LIBRARY_PATH
7297 shlibpath_overrides_runpath=yes
7304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7306 shlibpath_var=LD_LIBRARY_PATH
7307 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7309 openbsd2.[89] | openbsd2.[89].*)
7310 shlibpath_overrides_runpath=no
7313 shlibpath_overrides_runpath=yes
7317 shlibpath_overrides_runpath=yes
7322 libname_spec='$name'
7325 library_names_spec='$libname${shared_ext} $libname.a'
7326 dynamic_linker='OS/2 ld.exe'
7327 shlibpath_var=LIBPATH
7330 osf3* | osf4* | osf5*)
7334 soname_spec='${libname}${release}${shared_ext}$major'
7335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7336 shlibpath_var=LD_LIBRARY_PATH
7337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7343 soname_spec='${libname}${release}${shared_ext}$major'
7344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345 shlibpath_var=LD_LIBRARY_PATH
7352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7353 soname_spec='${libname}${release}${shared_ext}$major'
7354 shlibpath_var=LD_LIBRARY_PATH
7355 shlibpath_overrides_runpath=yes
7356 hardcode_into_libs=yes
7357 # ldd complains unless libraries are executable
7358 postinstall_cmds='chmod +x $lib'
7363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7365 shlibpath_var=LD_LIBRARY_PATH
7366 shlibpath_overrides_runpath=yes
7367 if test "$with_gnu_ld" = yes; then
7373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7376 soname_spec='${libname}${release}${shared_ext}$major'
7377 shlibpath_var=LD_LIBRARY_PATH
7378 case $host_vendor in
7380 shlibpath_overrides_runpath=no
7382 export_dynamic_flag_spec='${wl}-Blargedynsym'
7383 runpath_var=LD_RUN_PATH
7391 shlibpath_overrides_runpath=no
7392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7398 if test -d /usr/nec ;then
7400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7401 soname_spec='$libname${shared_ext}.$major'
7402 shlibpath_var=LD_LIBRARY_PATH
7408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7409 soname_spec='${libname}${release}${shared_ext}$major'
7410 shlibpath_var=LD_LIBRARY_PATH
7417 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7418 echo "${ECHO_T}$dynamic_linker" >&6
7419 test "$dynamic_linker" = no && can_build_shared=no
7421 if test "x$enable_dlopen" != xyes; then
7422 enable_dlopen=unknown
7423 enable_dlopen_self=unknown
7424 enable_dlopen_self_static=unknown
7431 lt_cv_dlopen="load_add_on"
7433 lt_cv_dlopen_self=yes
7437 lt_cv_dlopen="LoadLibrary"
7442 lt_cv_dlopen="dlopen"
7447 # if libdl is installed we need to link against it
7448 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7449 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7450 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_check_lib_save_LIBS=$LIBS
7455 cat >conftest.$ac_ext <<_ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7462 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>conftest.er1
7481 grep -v '^ *+' conftest.er1 >conftest.err
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -z "$ac_c_werror_flag"
7487 || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try='test -s conftest$ac_exeext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 ac_cv_lib_dl_dlopen=yes
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_cv_lib_dl_dlopen=no
7506 rm -f conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7508 LIBS=$ac_check_lib_save_LIBS
7510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7511 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7512 if test $ac_cv_lib_dl_dlopen = yes; then
7513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7518 lt_cv_dlopen_self=yes
7525 echo "$as_me:$LINENO: checking for shl_load" >&5
7526 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7527 if test "${ac_cv_func_shl_load+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7538 #define shl_load innocuous_shl_load
7540 /* System header to define __stub macros and hopefully few prototypes,
7541 which can conflict with char shl_load (); below.
7542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7543 <limits.h> exists even on freestanding compilers. */
7546 # include <limits.h>
7548 # include <assert.h>
7553 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7561 /* The GNU C library defines this for functions which it implements
7562 to always fail with ENOSYS. Some functions are actually named
7563 something starting with __ and the normal name is an alias. */
7564 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7567 char (*f) () = shl_load;
7576 return f != shl_load;
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>conftest.er1
7585 grep -v '^ *+' conftest.er1 >conftest.err
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag"
7591 || test ! -s conftest.err'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try='test -s conftest$ac_exeext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_func_shl_load=yes
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 ac_cv_func_shl_load=no
7610 rm -f conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
7613 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7614 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7615 if test $ac_cv_func_shl_load = yes; then
7616 lt_cv_dlopen="shl_load"
7618 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7619 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_check_lib_save_LIBS=$LIBS
7625 cat >conftest.$ac_ext <<_ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7632 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */
7647 rm -f conftest.$ac_objext conftest$ac_exeext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7649 (eval $ac_link) 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag"
7657 || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest$ac_exeext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_lib_dld_shl_load=yes
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_cv_lib_dld_shl_load=no
7676 rm -f conftest.err conftest.$ac_objext \
7677 conftest$ac_exeext conftest.$ac_ext
7678 LIBS=$ac_check_lib_save_LIBS
7680 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7682 if test $ac_cv_lib_dld_shl_load = yes; then
7683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7685 echo "$as_me:$LINENO: checking for dlopen" >&5
7686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7687 if test "${ac_cv_func_dlopen+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7698 #define dlopen innocuous_dlopen
7700 /* System header to define __stub macros and hopefully few prototypes,
7701 which can conflict with char dlopen (); below.
7702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7703 <limits.h> exists even on freestanding compilers. */
7706 # include <limits.h>
7708 # include <assert.h>
7713 /* Override any gcc2 internal prototype to avoid an error. */
7718 /* We use char because int might match the return type of a gcc2
7719 builtin and then its argument prototype would still apply. */
7721 /* The GNU C library defines this for functions which it implements
7722 to always fail with ENOSYS. Some functions are actually named
7723 something starting with __ and the normal name is an alias. */
7724 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7727 char (*f) () = dlopen;
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_cv_func_dlopen=yes
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_cv_func_dlopen=no
7770 rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7774 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7775 if test $ac_cv_func_dlopen = yes; then
7776 lt_cv_dlopen="dlopen"
7778 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7779 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7780 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_check_lib_save_LIBS=$LIBS
7785 cat >conftest.$ac_ext <<_ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7792 /* Override any gcc2 internal prototype to avoid an error. */
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>conftest.er1
7811 grep -v '^ *+' conftest.er1 >conftest.err
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -z "$ac_c_werror_flag"
7817 || test ! -s conftest.err'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; } &&
7823 { ac_try='test -s conftest$ac_exeext'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7829 ac_cv_lib_dl_dlopen=yes
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ac_cv_lib_dl_dlopen=no
7836 rm -f conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 LIBS=$ac_check_lib_save_LIBS
7840 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7841 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7842 if test $ac_cv_lib_dl_dlopen = yes; then
7843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7845 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7846 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 ac_check_lib_save_LIBS=$LIBS
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7859 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_svld_dlopen=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_lib_svld_dlopen=no
7903 rm -f conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7909 if test $ac_cv_lib_svld_dlopen = yes; then
7910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7912 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7913 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7914 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 ac_check_lib_save_LIBS=$LIBS
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7926 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag"
7951 || test ! -s conftest.err'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 ac_cv_lib_dld_dld_link=yes
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_lib_dld_dld_link=no
7970 rm -f conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 LIBS=$ac_check_lib_save_LIBS
7974 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7975 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7976 if test $ac_cv_lib_dld_dld_link = yes; then
7977 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7998 if test "x$lt_cv_dlopen" != xno; then
8004 case $lt_cv_dlopen in
8006 save_CPPFLAGS="$CPPFLAGS"
8007 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8009 save_LDFLAGS="$LDFLAGS"
8010 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8013 LIBS="$lt_cv_dlopen_libs $LIBS"
8015 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8016 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8017 if test "${lt_cv_dlopen_self+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 if test "$cross_compiling" = yes; then :
8021 lt_cv_dlopen_self=cross
8023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8024 lt_status=$lt_dlunknown
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8026 "configure"
8027 #include "confdefs.h"
8036 # define LT_DLGLOBAL RTLD_GLOBAL
8039 # define LT_DLGLOBAL DL_GLOBAL
8041 # define LT_DLGLOBAL 0
8045 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8046 find out it does not work in some platform. */
8047 #ifndef LT_DLLAZY_OR_NOW
8049 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8052 # define LT_DLLAZY_OR_NOW DL_LAZY
8055 # define LT_DLLAZY_OR_NOW RTLD_NOW
8058 # define LT_DLLAZY_OR_NOW DL_NOW
8060 # define LT_DLLAZY_OR_NOW 0
8068 extern "C" void exit (int);
8071 void fnord() { int i=42;}
8074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8075 int status = $lt_dlunknown;
8079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8080 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8081 /* dlclose (self); */
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8092 (./conftest; exit; ) 2>/dev/null
8095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8097 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8100 # compilation failed
8101 lt_cv_dlopen_self=no
8108 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8109 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8111 if test "x$lt_cv_dlopen_self" = xyes; then
8112 LDFLAGS="$LDFLAGS $link_static_flag"
8113 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8114 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8115 if test "${lt_cv_dlopen_self_static+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 if test "$cross_compiling" = yes; then :
8119 lt_cv_dlopen_self_static=cross
8121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8122 lt_status=$lt_dlunknown
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8124 "configure"
8125 #include "confdefs.h"
8134 # define LT_DLGLOBAL RTLD_GLOBAL
8137 # define LT_DLGLOBAL DL_GLOBAL
8139 # define LT_DLGLOBAL 0
8143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8144 find out it does not work in some platform. */
8145 #ifndef LT_DLLAZY_OR_NOW
8147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8150 # define LT_DLLAZY_OR_NOW DL_LAZY
8153 # define LT_DLLAZY_OR_NOW RTLD_NOW
8156 # define LT_DLLAZY_OR_NOW DL_NOW
8158 # define LT_DLLAZY_OR_NOW 0
8166 extern "C" void exit (int);
8169 void fnord() { int i=42;}
8172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8173 int status = $lt_dlunknown;
8177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8179 /* dlclose (self); */
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8190 (./conftest; exit; ) 2>/dev/null
8193 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8194 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8195 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8198 # compilation failed
8199 lt_cv_dlopen_self_static=no
8206 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8207 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8210 CPPFLAGS="$save_CPPFLAGS"
8211 LDFLAGS="$save_LDFLAGS"
8216 case $lt_cv_dlopen_self in
8217 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8218 *) enable_dlopen_self=unknown ;;
8221 case $lt_cv_dlopen_self_static in
8222 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8223 *) enable_dlopen_self_static=unknown ;;
8228 # Report which librarie types wil actually be built
8229 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8230 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8231 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8232 echo "${ECHO_T}$can_build_shared" >&6
8234 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8235 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8236 test "$can_build_shared" = "no" && enable_shared=no
8238 # On AIX, shared libraries and static libraries use the same namespace, and
8239 # are all built from PIC.
8242 test "$enable_shared" = yes && enable_static=no
8243 if test -n "$RANLIB"; then
8244 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8245 postinstall_cmds='$RANLIB $lib'
8250 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8251 test "$enable_shared" = yes && enable_static=no
8254 darwin* | rhapsody*)
8255 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8256 archive_cmds_need_lc=no
8258 rhapsody* | darwin1.[012])
8259 allow_undefined_flag='-undefined suppress'
8262 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8265 # FIXME: Relying on posixy $() will cause problems for
8266 # cross-compilation, but unfortunately the echo tests do not
8267 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8268 # `"' quotes if we put them in here... so don't!
8269 output_verbose_link_cmd='echo'
8270 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8271 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8273 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}'
8274 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}'
8276 hardcode_automatic=yes
8277 hardcode_shlibpath_var=unsupported
8278 whole_archive_flag_spec='-all_load $convenience'
8279 link_all_deplibs=yes
8283 echo "$as_me:$LINENO: result: $enable_shared" >&5
8284 echo "${ECHO_T}$enable_shared" >&6
8286 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8287 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8288 # Make sure either enable_shared or enable_static is yes.
8289 test "$enable_shared" = yes || enable_static=yes
8290 echo "$as_me:$LINENO: result: $enable_static" >&5
8291 echo "${ECHO_T}$enable_static" >&6
8293 # The else clause should only fire when bootstrapping the
8294 # libtool distribution, otherwise you forgot to ship ltmain.sh
8295 # with your package, and you will get complaints that there are
8296 # no rules to generate ltmain.sh.
8297 if test -f "$ltmain"; then
8298 # See if we are running on zsh, and set the options which allow our commands through
8299 # without removal of \ escapes.
8300 if test -n "${ZSH_VERSION+set}" ; then
8301 setopt NO_GLOB_SUBST
8303 # Now quote all the things that may contain metacharacters while being
8304 # careful not to overquote the AC_SUBSTed values. We take copies of the
8305 # variables and quote the copies for generation of the libtool script.
8306 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8309 deplibs_check_method reload_flag reload_cmds need_locks \
8310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8311 lt_cv_sys_global_symbol_to_c_name_address \
8312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8313 old_postinstall_cmds old_postuninstall_cmds \
8317 lt_prog_compiler_wl \
8318 lt_prog_compiler_pic \
8319 lt_prog_compiler_static \
8320 lt_prog_compiler_no_builtin_flag \
8321 export_dynamic_flag_spec \
8322 thread_safe_flag_spec \
8323 whole_archive_flag_spec \
8324 enable_shared_with_static_runtimes \
8326 old_archive_from_new_cmds \
8331 compiler_lib_search_path \
8333 archive_expsym_cmds \
8335 postuninstall_cmds \
8336 old_archive_from_expsyms_cmds \
8337 allow_undefined_flag \
8339 export_symbols_cmds \
8340 hardcode_libdir_flag_spec \
8341 hardcode_libdir_flag_spec_ld \
8342 hardcode_libdir_separator \
8343 hardcode_automatic \
8345 module_expsym_cmds \
8346 lt_cv_prog_compiler_c_o \
8351 old_archive_cmds | \
8352 old_archive_from_new_cmds | \
8354 archive_expsym_cmds | \
8356 module_expsym_cmds | \
8357 old_archive_from_expsyms_cmds | \
8358 export_symbols_cmds | \
8359 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8360 postinstall_cmds | postuninstall_cmds | \
8361 old_postinstall_cmds | old_postuninstall_cmds | \
8362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8363 # Double-quote double-evaled strings.
8364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8373 *'\$0 --fallback-echo"')
8374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8379 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8381 { echo "$as_me:$LINENO: creating $ofile" >&5
8382 echo "$as_me: creating $ofile" >&6;}
8384 cat <<__EOF__ >> "$cfgfile"
8387 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8388 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8391 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8392 # Free Software Foundation, Inc.
8394 # This file is part of GNU Libtool:
8395 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8397 # This program is free software; you can redistribute it and/or modify
8398 # it under the terms of the GNU General Public License as published by
8399 # the Free Software Foundation; either version 2 of the License, or
8400 # (at your option) any later version.
8402 # This program is distributed in the hope that it will be useful, but
8403 # WITHOUT ANY WARRANTY; without even the implied warranty of
8404 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8405 # General Public License for more details.
8407 # You should have received a copy of the GNU General Public License
8408 # along with this program; if not, write to the Free Software
8409 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8411 # As a special exception to the GNU General Public License, if you
8412 # distribute this file as part of a program that contains a
8413 # configuration script generated by Autoconf, you may include it under
8414 # the same distribution terms that you use for the rest of that program.
8416 # A sed program that does not truncate output.
8419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8420 Xsed="$SED -e s/^X//"
8422 # The HP-UX ksh and POSIX shell print the target directory to stdout
8424 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8426 # The names of the tagged configurations supported by this script.
8429 # ### BEGIN LIBTOOL CONFIG
8431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8433 # Shell to use when invoking shell scripts.
8436 # Whether or not to build shared libraries.
8437 build_libtool_libs=$enable_shared
8439 # Whether or not to build static libraries.
8440 build_old_libs=$enable_static
8442 # Whether or not to add -lc for building shared libraries.
8443 build_libtool_need_lc=$archive_cmds_need_lc
8445 # Whether or not to disallow shared libs when runtime libs are static
8446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8448 # Whether or not to optimize for fast installation.
8449 fast_install=$enable_fast_install
8452 host_alias=$host_alias
8455 # An echo program that does not interpret backslashes.
8460 AR_FLAGS=$lt_AR_FLAGS
8465 # A language-specific compiler.
8468 # Is the compiler the GNU C compiler?
8474 # The linker used to build libraries.
8477 # Whether we need hard or soft links.
8480 # A BSD-compatible nm program.
8483 # A symbol stripping program
8486 # Used to examine libraries when file_magic_cmd begins "file"
8487 MAGIC_CMD=$MAGIC_CMD
8489 # Used on cygwin: DLL creation program.
8492 # Used on cygwin: object dumper.
8495 # Used on cygwin: assembler.
8498 # The name of the directory that contains temporary libtool files.
8501 # How to create reloadable object files.
8502 reload_flag=$lt_reload_flag
8503 reload_cmds=$lt_reload_cmds
8505 # How to pass a linker flag through the compiler.
8506 wl=$lt_lt_prog_compiler_wl
8508 # Object file suffix (normally "o").
8511 # Old archive suffix (normally "a").
8514 # Shared library suffix (normally ".so").
8517 # Executable file suffix (normally "").
8520 # Additional compiler flags for building library objects.
8521 pic_flag=$lt_lt_prog_compiler_pic
8524 # What is the maximum length of a command?
8525 max_cmd_len=$lt_cv_sys_max_cmd_len
8527 # Does compiler simultaneously support -c and -o options?
8528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8530 # Must we lock files when doing compilation ?
8531 need_locks=$lt_need_locks
8533 # Do we need the lib prefix for modules?
8534 need_lib_prefix=$need_lib_prefix
8536 # Do we need a version for libraries?
8537 need_version=$need_version
8539 # Whether dlopen is supported.
8540 dlopen_support=$enable_dlopen
8542 # Whether dlopen of programs is supported.
8543 dlopen_self=$enable_dlopen_self
8545 # Whether dlopen of statically linked programs is supported.
8546 dlopen_self_static=$enable_dlopen_self_static
8548 # Compiler flag to prevent dynamic linking.
8549 link_static_flag=$lt_lt_prog_compiler_static
8551 # Compiler flag to turn off builtin functions.
8552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8554 # Compiler flag to allow reflexive dlopens.
8555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8557 # Compiler flag to generate shared objects directly from archives.
8558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8560 # Compiler flag to generate thread-safe objects.
8561 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8563 # Library versioning type.
8564 version_type=$version_type
8566 # Format of library name prefix.
8567 libname_spec=$lt_libname_spec
8569 # List of archive names. First name is the real one, the rest are links.
8570 # The last name is the one that the linker finds with -lNAME.
8571 library_names_spec=$lt_library_names_spec
8573 # The coded name of the library, if different from the real name.
8574 soname_spec=$lt_soname_spec
8576 # Commands used to build and install an old-style archive.
8578 old_archive_cmds=$lt_old_archive_cmds
8579 old_postinstall_cmds=$lt_old_postinstall_cmds
8580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8582 # Create an old-style archive from a shared archive.
8583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8585 # Create a temporary old-style archive to link instead of a shared archive.
8586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8588 # Commands used to build and install a shared archive.
8589 archive_cmds=$lt_archive_cmds
8590 archive_expsym_cmds=$lt_archive_expsym_cmds
8591 postinstall_cmds=$lt_postinstall_cmds
8592 postuninstall_cmds=$lt_postuninstall_cmds
8594 # Commands used to build a loadable module (assumed same as above if empty)
8595 module_cmds=$lt_module_cmds
8596 module_expsym_cmds=$lt_module_expsym_cmds
8598 # Commands to strip libraries.
8599 old_striplib=$lt_old_striplib
8600 striplib=$lt_striplib
8602 # Dependencies to place before the objects being linked to create a
8604 predep_objects=$lt_predep_objects
8606 # Dependencies to place after the objects being linked to create a
8608 postdep_objects=$lt_postdep_objects
8610 # Dependencies to place before the objects being linked to create a
8614 # Dependencies to place after the objects being linked to create a
8616 postdeps=$lt_postdeps
8618 # The library search path used internally by the compiler when linking
8620 compiler_lib_search_path=$lt_compiler_lib_search_path
8622 # Method to check whether dependent libraries are shared objects.
8623 deplibs_check_method=$lt_deplibs_check_method
8625 # Command to use when deplibs_check_method == file_magic.
8626 file_magic_cmd=$lt_file_magic_cmd
8628 # Flag that allows shared libraries with undefined symbols to be built.
8629 allow_undefined_flag=$lt_allow_undefined_flag
8631 # Flag that forces no undefined symbols.
8632 no_undefined_flag=$lt_no_undefined_flag
8634 # Commands used to finish a libtool library installation in a directory.
8635 finish_cmds=$lt_finish_cmds
8637 # Same as above, but a single script fragment to be evaled but not shown.
8638 finish_eval=$lt_finish_eval
8640 # Take the output of nm and produce a listing of raw symbols and C names.
8641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8643 # Transform the output of nm in a proper C declaration
8644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8646 # Transform the output of nm in a C name address pair
8647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8649 # This is the shared library runtime path variable.
8650 runpath_var=$runpath_var
8652 # This is the shared library path variable.
8653 shlibpath_var=$shlibpath_var
8655 # Is shlibpath searched before the hard-coded library search path?
8656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8658 # How to hardcode a shared library path into an executable.
8659 hardcode_action=$hardcode_action
8661 # Whether we should hardcode library paths into libraries.
8662 hardcode_into_libs=$hardcode_into_libs
8664 # Flag to hardcode \$libdir into a binary during linking.
8665 # This must work even if \$libdir does not exist.
8666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8668 # If ld is used when linking, flag to hardcode \$libdir into
8669 # a binary during linking. This must work even if \$libdir does
8671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8673 # Whether we need a single -rpath flag with a separated argument.
8674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8678 hardcode_direct=$hardcode_direct
8680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8682 hardcode_minus_L=$hardcode_minus_L
8684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8685 # the resulting binary.
8686 hardcode_shlibpath_var=$hardcode_shlibpath_var
8688 # Set to yes if building a shared library automatically hardcodes DIR into the library
8689 # and all subsequent libraries and executables linked against it.
8690 hardcode_automatic=$hardcode_automatic
8692 # Variables whose values should be saved in libtool wrapper scripts and
8693 # restored at relink time.
8694 variables_saved_for_relink="$variables_saved_for_relink"
8696 # Whether libtool must link a program against all its dependency libraries.
8697 link_all_deplibs=$link_all_deplibs
8699 # Compile-time system search path for libraries
8700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8702 # Run-time system search path for libraries
8703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8705 # Fix the shell variable \$srcfile for the compiler.
8706 fix_srcfile_path="$fix_srcfile_path"
8708 # Set to yes if exported symbols are required.
8709 always_export_symbols=$always_export_symbols
8711 # The commands to list exported symbols.
8712 export_symbols_cmds=$lt_export_symbols_cmds
8714 # The commands to extract the exported symbol list from a shared archive.
8715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8717 # Symbols that should not be listed in the preloaded symbols.
8718 exclude_expsyms=$lt_exclude_expsyms
8720 # Symbols that must always be exported.
8721 include_expsyms=$lt_include_expsyms
8723 # ### END LIBTOOL CONFIG
8730 cat <<\EOF >> "$cfgfile"
8732 # AIX sometimes has problems with the GCC collect2 program. For some
8733 # reason, if we set the COLLECT_NAMES environment variable, the problems
8734 # vanish in a puff of smoke.
8735 if test "X${COLLECT_NAMES+set}" != Xset; then
8737 export COLLECT_NAMES
8743 # We use sed instead of cat because bash on DJGPP gets confused if
8744 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8745 # text mode, it properly converts lines to CR/LF. This bash problem
8746 # is reportedly fixed, but why not run on old versions too?
8747 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8749 mv -f "$cfgfile" "$ofile" || \
8750 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8754 # If there is no Makefile yet, we rely on a make rule to execute
8755 # `config.status --recheck' to rerun these tests and create the
8756 # libtool script then.
8757 test -f Makefile && make "$ltmain"
8762 ac_cpp='$CPP $CPPFLAGS'
8763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8770 # Check whether --with-tags or --without-tags was given.
8771 if test "${with_tags+set}" = set; then
8772 withval="$with_tags"
8776 if test -f "$ltmain" && test -n "$tagnames"; then
8777 if test ! -f "${ofile}"; then
8778 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8779 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8782 if test -z "$LTCC"; then
8783 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8784 if test -z "$LTCC"; then
8785 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8786 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8789 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8793 # Extract list of available tagged configurations in $ofile.
8794 # Note that this assumes the entire list is on one line.
8795 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8797 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8798 for tagname in $tagnames; do
8800 # Check whether tagname contains only valid characters
8801 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8803 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8804 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8805 { (exit 1); exit 1; }; }
8809 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8811 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8812 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8813 { (exit 1); exit 1; }; }
8816 # Update the list of available tags.
8817 if test -n "$tagname"; then
8818 echo appending configuration tag \"$tagname\" to $ofile
8822 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8824 ac_cpp='$CXXCPP $CPPFLAGS'
8825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8832 archive_cmds_need_lc_CXX=no
8833 allow_undefined_flag_CXX=
8834 always_export_symbols_CXX=no
8835 archive_expsym_cmds_CXX=
8836 export_dynamic_flag_spec_CXX=
8837 hardcode_direct_CXX=no
8838 hardcode_libdir_flag_spec_CXX=
8839 hardcode_libdir_flag_spec_ld_CXX=
8840 hardcode_libdir_separator_CXX=
8841 hardcode_minus_L_CXX=no
8842 hardcode_automatic_CXX=no
8844 module_expsym_cmds_CXX=
8845 link_all_deplibs_CXX=unknown
8846 old_archive_cmds_CXX=$old_archive_cmds
8847 no_undefined_flag_CXX=
8848 whole_archive_flag_spec_CXX=
8849 enable_shared_with_static_runtimes_CXX=no
8851 # Dependencies to place before and after the object being linked:
8853 postdep_objects_CXX=
8856 compiler_lib_search_path_CXX=
8858 # Source file extension for C++ test sources.
8861 # Object file extension for compiled C++ test sources.
8865 # Code to be used in simple compile tests
8866 lt_simple_compile_test_code="int some_variable = 0;\n"
8868 # Code to be used in simple link tests
8869 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8873 # If no C compiler was specified, use CC.
8876 # Allow CC to be a program name with arguments.
8880 # Allow CC to be a program name with arguments.
8885 lt_save_with_gnu_ld=$with_gnu_ld
8886 lt_save_path_LD=$lt_cv_path_LD
8887 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8888 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8890 unset lt_cv_prog_gnu_ld
8892 if test -n "${lt_cv_path_LDCXX+set}"; then
8893 lt_cv_path_LD=$lt_cv_path_LDCXX
8897 test -z "${LDCXX+set}" || LD=$LDCXX
8901 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8903 # We don't want -fno-exception wen compiling C++ code, so set the
8904 # no_builtin_flag separately
8905 if test "$GXX" = yes; then
8906 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8908 lt_prog_compiler_no_builtin_flag_CXX=
8911 if test "$GXX" = yes; then
8912 # Set up default GNU C++ configuration
8915 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8916 if test "${with_gnu_ld+set}" = set; then
8917 withval="$with_gnu_ld"
8918 test "$withval" = no || with_gnu_ld=yes
8923 if test "$GCC" = yes; then
8924 # Check if gcc -print-prog-name=ld gives a path.
8925 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8926 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8929 # gcc leaves a trailing carriage return which upsets mingw
8930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8935 # Accept absolute paths.
8937 re_direlt='/[^/][^/]*/\.\./'
8938 # Canonicalize the path of ld
8939 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8940 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8941 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8943 test -z "$LD" && LD="$ac_prog"
8946 # If it fails, then pretend we aren't using GCC.
8950 # If it is relative, then search for the first ld in PATH.
8954 elif test "$with_gnu_ld" = yes; then
8955 echo "$as_me:$LINENO: checking for GNU ld" >&5
8956 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8958 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8959 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8961 if test "${lt_cv_path_LD+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 if test -z "$LD"; then
8965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8966 for ac_dir in $PATH; do
8968 test -z "$ac_dir" && ac_dir=.
8969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8970 lt_cv_path_LD="$ac_dir/$ac_prog"
8971 # Check to see if the program is GNU ld. I'd rather use --version,
8972 # but apparently some GNU ld's only accept -v.
8973 # Break only if it was the GNU/non-GNU ld that we prefer.
8974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8975 *GNU* | *'with BFD'*)
8976 test "$with_gnu_ld" != no && break
8979 test "$with_gnu_ld" != yes && break
8986 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8991 if test -n "$LD"; then
8992 echo "$as_me:$LINENO: result: $LD" >&5
8993 echo "${ECHO_T}$LD" >&6
8995 echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9000 { (exit 1); exit 1; }; }
9001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9003 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9007 case `"$LD" -v 2>&1 </dev/null` in
9008 *GNU* | *'with BFD'*)
9009 lt_cv_prog_gnu_ld=yes
9012 lt_cv_prog_gnu_ld=no
9016 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9017 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9018 with_gnu_ld=$lt_cv_prog_gnu_ld
9022 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9023 # archiving commands below assume that GNU ld is being used.
9024 if test "$with_gnu_ld" = yes; then
9025 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026 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'
9028 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9031 # If archive_cmds runs LD, not CC, wlarc should be empty
9032 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9033 # investigate it a little bit more. (MM)
9036 # ancient GNU ld didn't support --whole-archive et. al.
9037 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9038 grep 'no-whole-archive' > /dev/null; then
9039 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9041 whole_archive_flag_spec_CXX=
9047 # A generic and very simple default shared library creation
9048 # command for GNU C++ for the case where it uses the native
9049 # linker, instead of GNU ld. If possible, this setting should
9050 # overridden to take advantage of the native linker features on
9051 # the platform it is being used on.
9052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9055 # Commands to make compiler produce verbose output that lists
9056 # what "hidden" libraries, object files and flags are used when
9057 # linking a shared library.
9058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9066 # PORTME: fill in a description of your system's C++ link characteristics
9067 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9072 # FIXME: insert proper C++ library support
9076 if test "$host_cpu" = ia64; then
9077 # On IA64, the linker does run time linking by default, so we don't
9078 # have to do anything special.
9079 aix_use_runtimelinking=no
9080 exp_sym_flag='-Bexport'
9083 aix_use_runtimelinking=no
9085 # Test if we are trying to use run time linking or normal
9086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9087 # need to do runtime linking.
9088 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9089 for ld_flag in $LDFLAGS; do
9092 aix_use_runtimelinking=yes
9099 exp_sym_flag='-bexport'
9100 no_entry_flag='-bnoentry'
9103 # When large executables or shared objects are built, AIX ld can
9104 # have problems creating the table of contents. If linking a library
9105 # or program results in "error TOC overflow" add -mminimal-toc to
9106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9110 hardcode_direct_CXX=yes
9111 hardcode_libdir_separator_CXX=':'
9112 link_all_deplibs_CXX=yes
9114 if test "$GXX" = yes; then
9115 case $host_os in aix4.012|aix4.012.*)
9116 # We only want to do this on AIX 4.2 and lower, the check
9117 # below for broken collect2 doesn't work under 4.3+
9118 collect2name=`${CC} -print-prog-name=collect2`
9119 if test -f "$collect2name" && \
9120 strings "$collect2name" | grep resolve_lib_name >/dev/null
9122 # We have reworked collect2
9123 hardcode_direct_CXX=yes
9125 # We have old collect2
9126 hardcode_direct_CXX=unsupported
9127 # It fails to find uninstalled libraries when the uninstalled
9128 # path is not listed in the libpath. Setting hardcode_minus_L
9129 # to unsupported forces relinking
9130 hardcode_minus_L_CXX=yes
9131 hardcode_libdir_flag_spec_CXX='-L$libdir'
9132 hardcode_libdir_separator_CXX=
9135 shared_flag='-shared'
9138 if test "$host_cpu" = ia64; then
9139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140 # chokes on -Wl,-G. The following line is correct:
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag='${wl}-G'
9146 shared_flag='${wl}-bM:SRE'
9151 # It seems that -bexpall does not export symbols beginning with
9152 # underscore (_), so it is better to generate a list of symbols to export.
9153 always_export_symbols_CXX=yes
9154 if test "$aix_use_runtimelinking" = yes; then
9155 # Warning - without using the other runtime loading flags (-brtl),
9156 # -berok will link without error, but may produce a broken library.
9157 allow_undefined_flag_CXX='-berok'
9158 # Determine the default libpath from the value encoded in an empty executable.
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -z "$ac_cxx_werror_flag"
9184 || test ! -s conftest.err'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; } &&
9190 { ac_try='test -s conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9199 # Check for a 64-bit object if we didn't find anything.
9200 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; }
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9207 rm -f conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9211 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9213 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"
9215 if test "$host_cpu" = ia64; then
9216 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9217 allow_undefined_flag_CXX="-z nodefs"
9218 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"
9220 # Determine the default libpath from the value encoded in an empty executable.
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_cxx_werror_flag"
9246 || test ! -s conftest.err'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9261 # Check for a 64-bit object if we didn't find anything.
9262 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; }
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9269 rm -f conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9273 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9274 # Warning - without using the other run time loading flags,
9275 # -berok will link without error, but may produce a broken library.
9276 no_undefined_flag_CXX=' ${wl}-bernotok'
9277 allow_undefined_flag_CXX=' ${wl}-berok'
9278 # -bexpall does not export symbols beginning with underscore (_)
9279 always_export_symbols_CXX=yes
9280 # Exported symbols can be pulled into shared objects from archives
9281 whole_archive_flag_spec_CXX=' '
9282 archive_cmds_need_lc_CXX=yes
9283 # This is similar to how AIX traditionally builds it's shared libraries.
9284 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'
9289 case $cc_basename in
9291 # FIXME: insert proper C++ library support
9297 cygwin* | mingw* | pw32*)
9298 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9299 # as there is no search path for DLLs.
9300 hardcode_libdir_flag_spec_CXX='-L$libdir'
9301 allow_undefined_flag_CXX=unsupported
9302 always_export_symbols_CXX=no
9303 enable_shared_with_static_runtimes_CXX=yes
9305 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9306 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'
9307 # If the export-symbols file already is a .def file (1st line
9308 # is EXPORTS), use it as is; otherwise, prepend...
9309 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9310 cp $export_symbols $output_objdir/$soname.def;
9312 echo EXPORTS > $output_objdir/$soname.def;
9313 cat $export_symbols >> $output_objdir/$soname.def;
9315 $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'
9321 darwin* | rhapsody*)
9322 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9323 archive_cmds_need_lc_CXX=no
9325 rhapsody* | darwin1.[012])
9326 allow_undefined_flag_CXX='-undefined suppress'
9329 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9332 lt_int_apple_cc_single_mod=no
9333 output_verbose_link_cmd='echo'
9334 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9335 lt_int_apple_cc_single_mod=yes
9337 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9338 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9340 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'
9342 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9345 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9346 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}'
9348 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}'
9350 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}'
9351 hardcode_direct_CXX=no
9352 hardcode_automatic_CXX=yes
9353 hardcode_shlibpath_var_CXX=unsupported
9354 whole_archive_flag_spec_CXX='-all_load $convenience'
9355 link_all_deplibs_CXX=yes
9360 case $cc_basename in
9362 # FIXME: insert proper C++ library support
9366 # Green Hills C++ Compiler
9367 # FIXME: insert proper C++ library support
9371 # FIXME: insert proper C++ library support
9377 # C++ shared libraries reported to be fairly broken before switch to ELF
9381 archive_cmds_need_lc_CXX=no
9384 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9391 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9392 hardcode_libdir_separator_CXX=:
9393 export_dynamic_flag_spec_CXX='${wl}-E'
9394 hardcode_direct_CXX=yes
9395 hardcode_minus_L_CXX=yes # Not in the search PATH,
9396 # but as the default
9397 # location of the library.
9399 case $cc_basename in
9401 # FIXME: insert proper C++ library support
9405 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'
9406 # Commands to make compiler produce verbose output that lists
9407 # what "hidden" libraries, object files and flags are used when
9408 # linking a shared library.
9410 # There doesn't appear to be a way to prevent this compiler from
9411 # explicitly linking system object files so we need to strip them
9412 # from the output so that they don't get included in the library
9414 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'
9417 if test "$GXX" = yes; then
9418 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'
9420 # FIXME: insert proper C++ library support
9427 if test $with_gnu_ld = no; then
9430 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9431 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9432 hardcode_libdir_separator_CXX=:
9435 hardcode_libdir_flag_spec_CXX='-L$libdir'
9438 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9439 hardcode_libdir_separator_CXX=:
9440 export_dynamic_flag_spec_CXX='${wl}-E'
9446 hardcode_direct_CXX=no
9447 hardcode_shlibpath_var_CXX=no
9450 hardcode_direct_CXX=no
9451 hardcode_shlibpath_var_CXX=no
9452 hardcode_minus_L_CXX=yes # Not in the search PATH,
9453 # but as the default
9454 # location of the library.
9457 hardcode_direct_CXX=yes
9458 hardcode_minus_L_CXX=yes # Not in the search PATH,
9459 # but as the default
9460 # location of the library.
9464 case $cc_basename in
9466 # FIXME: insert proper C++ library support
9472 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9478 # Commands to make compiler produce verbose output that lists
9479 # what "hidden" libraries, object files and flags are used when
9480 # linking a shared library.
9482 # There doesn't appear to be a way to prevent this compiler from
9483 # explicitly linking system object files so we need to strip them
9484 # from the output so that they don't get included in the library
9486 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'
9489 if test "$GXX" = yes; then
9490 if test $with_gnu_ld = no; then
9493 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9496 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'
9501 # FIXME: insert proper C++ library support
9508 case $cc_basename in
9511 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'
9513 # Archives containing C++ object files must be created using
9514 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9515 # necessary to make sure instantiated templates are included
9517 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9520 if test "$GXX" = yes; then
9521 if test "$with_gnu_ld" = no; then
9522 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'
9524 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'
9527 link_all_deplibs_CXX=yes
9530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9531 hardcode_libdir_separator_CXX=:
9534 case $cc_basename in
9536 # Kuck and Associates, Inc. (KAI) C++ Compiler
9538 # KCC will only create a shared library if the output file
9539 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9540 # to its proper name (with version) after linking.
9541 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'
9542 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'
9543 # Commands to make compiler produce verbose output that lists
9544 # what "hidden" libraries, object files and flags are used when
9545 # linking a shared library.
9547 # There doesn't appear to be a way to prevent this compiler from
9548 # explicitly linking system object files so we need to strip them
9549 # from the output so that they don't get included in the library
9551 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'
9553 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9556 # Archives containing C++ object files must be created using
9557 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9558 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9563 archive_cmds_need_lc_CXX=no
9564 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 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'
9566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9567 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9568 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 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'
9575 runpath_var=LD_RUN_PATH
9576 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9577 hardcode_libdir_separator_CXX=:
9579 # Commands to make compiler produce verbose output that lists
9580 # what "hidden" libraries, object files and flags are used when
9581 # linking a shared library.
9583 # There doesn't appear to be a way to prevent this compiler from
9584 # explicitly linking system object files so we need to strip them
9585 # from the output so that they don't get included in the library
9587 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'
9592 # FIXME: insert proper C++ library support
9596 # FIXME: insert proper C++ library support
9600 case $cc_basename in
9602 # FIXME: insert proper C++ library support
9606 # FIXME: insert proper C++ library support
9612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9613 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9615 hardcode_libdir_flag_spec_CXX='-R$libdir'
9616 hardcode_direct_CXX=yes
9617 hardcode_shlibpath_var_CXX=no
9619 # Workaround some broken pre-1.5 toolchains
9620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9623 case $cc_basename in
9625 # Kuck and Associates, Inc. (KAI) C++ Compiler
9627 # KCC will only create a shared library if the output file
9628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9629 # to its proper name (with version) after linking.
9630 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'
9632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9633 hardcode_libdir_separator_CXX=:
9635 # Archives containing C++ object files must be created using
9636 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9637 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9641 # Rational C++ 2.4.1
9642 # FIXME: insert proper C++ library support
9646 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9647 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'
9649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9650 hardcode_libdir_separator_CXX=:
9652 # Commands to make compiler produce verbose output that lists
9653 # what "hidden" libraries, object files and flags are used when
9654 # linking a shared library.
9656 # There doesn't appear to be a way to prevent this compiler from
9657 # explicitly linking system object files so we need to strip them
9658 # from the output so that they don't get included in the library
9660 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'
9663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9664 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9665 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'
9667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9668 hardcode_libdir_separator_CXX=:
9670 # Commands to make compiler produce verbose output that lists
9671 # what "hidden" libraries, object files and flags are used when
9672 # linking a shared library.
9673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9676 # FIXME: insert proper C++ library support
9683 case $cc_basename in
9685 # Kuck and Associates, Inc. (KAI) C++ Compiler
9687 # KCC will only create a shared library if the output file
9688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9689 # to its proper name (with version) after linking.
9690 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'
9692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9693 hardcode_libdir_separator_CXX=:
9695 # Archives containing C++ object files must be created using
9696 # the KAI C++ compiler.
9697 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9700 # Rational C++ 2.4.1
9701 # FIXME: insert proper C++ library support
9705 allow_undefined_flag_CXX=' -expect_unresolved \*'
9706 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'
9707 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9708 echo "-hidden">> $lib.exp~
9709 $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~
9712 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9713 hardcode_libdir_separator_CXX=:
9715 # Commands to make compiler produce verbose output that lists
9716 # what "hidden" libraries, object files and flags are used when
9717 # linking a shared library.
9719 # There doesn't appear to be a way to prevent this compiler from
9720 # explicitly linking system object files so we need to strip them
9721 # from the output so that they don't get included in the library
9723 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'
9726 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9727 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9728 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'
9730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9731 hardcode_libdir_separator_CXX=:
9733 # Commands to make compiler produce verbose output that lists
9734 # what "hidden" libraries, object files and flags are used when
9735 # linking a shared library.
9736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9739 # FIXME: insert proper C++ library support
9746 # FIXME: insert proper C++ library support
9750 archive_cmds_need_lc_CXX=no
9751 case $cc_basename in
9753 # FIXME: insert proper C++ library support
9757 # FIXME: insert proper C++ library support
9763 case $cc_basename in
9766 # FIXME: insert proper C++ library support
9771 # FIXME: insert proper C++ library support
9775 # FIXME: insert proper C++ library support
9781 case $cc_basename in
9783 # Sun C++ 4.2, 5.x and Centerline C++
9784 no_undefined_flag_CXX=' -zdefs'
9785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9786 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9787 $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'
9789 hardcode_libdir_flag_spec_CXX='-R$libdir'
9790 hardcode_shlibpath_var_CXX=no
9792 solaris2.0-5 | solaris2.0-5.*) ;;
9794 # The C++ compiler is used as linker so we must use $wl
9795 # flag to pass the commands to the underlying system
9797 # Supported since Solaris 2.6 (maybe 2.5.1?)
9798 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9801 link_all_deplibs_CXX=yes
9803 # Commands to make compiler produce verbose output that lists
9804 # what "hidden" libraries, object files and flags are used when
9805 # linking a shared library.
9807 # There doesn't appear to be a way to prevent this compiler from
9808 # explicitly linking system object files so we need to strip them
9809 # from the output so that they don't get included in the library
9811 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'
9813 # Archives containing C++ object files must be created using
9814 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9815 # necessary to make sure instantiated templates are included
9817 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9820 # Green Hills C++ Compiler
9821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9823 # The C++ compiler must be used to create the archive.
9824 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9827 # GNU C++ compiler with Solaris linker
9828 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9829 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9830 if $CC --version | grep -v '^2\.7' > /dev/null; then
9831 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9832 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9833 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9835 # Commands to make compiler produce verbose output that lists
9836 # what "hidden" libraries, object files and flags are used when
9837 # linking a shared library.
9838 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9840 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9842 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9843 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9844 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9846 # Commands to make compiler produce verbose output that lists
9847 # what "hidden" libraries, object files and flags are used when
9848 # linking a shared library.
9849 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9852 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9857 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9858 archive_cmds_need_lc_CXX=no
9861 case $cc_basename in
9863 # NonStop-UX NCC 3.20
9864 # FIXME: insert proper C++ library support
9868 # FIXME: insert proper C++ library support
9874 # FIXME: insert proper C++ library support
9878 # FIXME: insert proper C++ library support
9882 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9883 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9884 test "$ld_shlibs_CXX" = no && can_build_shared=no
9890 ## There is no encapsulation within the following macros, do not change
9891 ## the running order or otherwise move them around unless you know exactly
9892 ## what you are doing...
9894 cat > conftest.$ac_ext <<EOF
9898 Foo (void) { a = 0; }
9904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905 (eval $ac_compile) 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; then
9909 # Parse the compiler output and extract the necessary
9910 # objects, libraries and library flags.
9912 # Sentinel used to keep track of whether or not we are before
9913 # the conftest object file.
9914 pre_test_object_deps_done=no
9916 # The `*' in the case matches for architectures that use `case' in
9917 # $output_verbose_cmd can trigger glob expansion during the loop
9918 # eval without this substitution.
9919 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9921 for p in `eval $output_verbose_link_cmd`; do
9925 # Some compilers place space between "-{L,R}" and the path.
9928 || test $p = "-R"; then
9935 if test "$pre_test_object_deps_done" = no; then
9938 # Internal compiler library paths should come after those
9939 # provided the user. The postdeps already come after the
9940 # user supplied libs so there is no need to process them.
9941 if test -z "$compiler_lib_search_path_CXX"; then
9942 compiler_lib_search_path_CXX="${prev}${p}"
9944 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9947 # The "-l" case would never come before the object being
9948 # linked, so don't bother handling this case.
9951 if test -z "$postdeps_CXX"; then
9952 postdeps_CXX="${prev}${p}"
9954 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9960 # This assumes that the test object file only shows up
9961 # once in the compiler output.
9962 if test "$p" = "conftest.$objext"; then
9963 pre_test_object_deps_done=yes
9967 if test "$pre_test_object_deps_done" = no; then
9968 if test -z "$predep_objects_CXX"; then
9969 predep_objects_CXX="$p"
9971 predep_objects_CXX="$predep_objects_CXX $p"
9974 if test -z "$postdep_objects_CXX"; then
9975 postdep_objects_CXX="$p"
9977 postdep_objects_CXX="$postdep_objects_CXX $p"
9982 *) ;; # Ignore the rest.
9990 echo "libtool.m4: error: problem compiling CXX test program"
9993 $rm -f confest.$objext
9995 case " $postdeps_CXX " in
9996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9999 lt_prog_compiler_wl_CXX=
10000 lt_prog_compiler_pic_CXX=
10001 lt_prog_compiler_static_CXX=
10003 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10006 # C++ specific cases for pic, static, wl, etc.
10007 if test "$GXX" = yes; then
10008 lt_prog_compiler_wl_CXX='-Wl,'
10009 lt_prog_compiler_static_CXX='-static'
10013 # All AIX code is PIC.
10014 if test "$host_cpu" = ia64; then
10015 # AIX 5 now supports IA64 processor
10016 lt_prog_compiler_static_CXX='-Bstatic'
10020 # FIXME: we need at least 68020 code to build shared libraries, but
10021 # adding the `-m68020' flag to GCC prevents building anything better,
10023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10025 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10026 # PIC is the default for these OSes.
10028 mingw* | os2* | pw32*)
10029 # This hack is so that the source file can tell whether it is being
10030 # built for inclusion in a dll (and should export symbols for example).
10031 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10033 darwin* | rhapsody*)
10034 # PIC is the default on this platform
10035 # Common symbols not allowed in MH_DYLIB files
10036 lt_prog_compiler_pic_CXX='-fno-common'
10039 # DJGPP does not support shared libraries at all
10040 lt_prog_compiler_pic_CXX=
10043 if test -d /usr/nec; then
10044 lt_prog_compiler_pic_CXX=-Kconform_pic
10048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10049 # not for PA HP-UX.
10050 case "$host_cpu" in
10054 lt_prog_compiler_pic_CXX='-fPIC'
10059 lt_prog_compiler_pic_CXX='-fPIC'
10065 # All AIX code is PIC.
10066 if test "$host_cpu" = ia64; then
10067 # AIX 5 now supports IA64 processor
10068 lt_prog_compiler_static_CXX='-Bstatic'
10070 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10074 case $cc_basename in
10076 # Green Hills C++ Compiler
10077 # _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"
10082 case $cc_basename in
10084 lt_prog_compiler_pic_CXX='-KPIC'
10087 # Green Hills C++ Compiler
10088 lt_prog_compiler_pic_CXX='-pic'
10095 # FreeBSD uses GNU C++
10097 hpux9* | hpux10* | hpux11*)
10098 case $cc_basename in
10100 lt_prog_compiler_wl_CXX='-Wl,'
10101 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10102 if test "$host_cpu" != ia64; then
10103 lt_prog_compiler_pic_CXX='+Z'
10107 lt_prog_compiler_wl_CXX='-Wl,'
10108 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10109 case "$host_cpu" in
10114 lt_prog_compiler_pic_CXX='+Z'
10122 irix5* | irix6* | nonstopux*)
10123 case $cc_basename in
10125 lt_prog_compiler_wl_CXX='-Wl,'
10126 lt_prog_compiler_static_CXX='-non_shared'
10127 # CC pic flag -KPIC is the default.
10134 case $cc_basename in
10137 lt_prog_compiler_wl_CXX='--backend -Wl,'
10138 lt_prog_compiler_pic_CXX='-fPIC'
10142 lt_prog_compiler_wl_CXX='-Wl,'
10143 lt_prog_compiler_pic_CXX='-KPIC'
10144 lt_prog_compiler_static_CXX='-static'
10148 # Make sure the PIC flag is empty. It appears that all Alpha
10149 # Linux and Compaq Tru64 Unix objects are PIC.
10150 lt_prog_compiler_pic_CXX=
10151 lt_prog_compiler_static_CXX='-non_shared'
10162 case $cc_basename in
10164 lt_prog_compiler_pic_CXX='-W c,exportall'
10172 osf3* | osf4* | osf5*)
10173 case $cc_basename in
10175 lt_prog_compiler_wl_CXX='--backend -Wl,'
10178 # Rational C++ 2.4.1
10179 lt_prog_compiler_pic_CXX='-pic'
10182 # Digital/Compaq C++
10183 lt_prog_compiler_wl_CXX='-Wl,'
10184 # Make sure the PIC flag is empty. It appears that all Alpha
10185 # Linux and Compaq Tru64 Unix objects are PIC.
10186 lt_prog_compiler_pic_CXX=
10187 lt_prog_compiler_static_CXX='-non_shared'
10196 case $cc_basename in
10198 lt_prog_compiler_pic_CXX='-fPIC'
10205 case $cc_basename in
10207 # Sun C++ 4.2, 5.x and Centerline C++
10208 lt_prog_compiler_pic_CXX='-KPIC'
10209 lt_prog_compiler_static_CXX='-Bstatic'
10210 lt_prog_compiler_wl_CXX='-Qoption ld '
10213 # Green Hills C++ Compiler
10214 lt_prog_compiler_pic_CXX='-PIC'
10221 case $cc_basename in
10224 lt_prog_compiler_pic_CXX='-pic'
10225 lt_prog_compiler_static_CXX='-Bstatic'
10229 lt_prog_compiler_pic_CXX='-pic'
10236 case $cc_basename in
10238 # NonStop-UX NCC 3.20
10239 lt_prog_compiler_pic_CXX='-KPIC'
10250 lt_prog_compiler_can_build_shared_CXX=no
10255 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10256 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10259 # Check to make sure the PIC flag actually works.
10261 if test -n "$lt_prog_compiler_pic_CXX"; then
10262 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10264 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 lt_prog_compiler_pic_works_CXX=no
10268 ac_outfile=conftest.$ac_objext
10269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10270 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10271 # Insert the option either (1) after the last *FLAGS variable, or
10272 # (2) before a word containing "conftest.", or (3) at the end.
10273 # Note that $ac_compile itself does not contain backslashes and begins
10274 # with a dollar sign (not a hyphen), so the echo should work correctly.
10275 # The option is referenced via a variable to avoid confusing sed.
10276 lt_compile=`echo "$ac_compile" | $SED \
10277 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10279 -e 's:$: $lt_compiler_flag:'`
10280 (eval echo "\"\$as_me:10280: $lt_compile\"" >&5)
10281 (eval "$lt_compile" 2>conftest.err)
10283 cat conftest.err >&5
10284 echo "$as_me:10284: \$? = $ac_status" >&5
10285 if (exit $ac_status) && test -s "$ac_outfile"; then
10286 # The compiler can only warn and ignore the option if not recognized
10287 # So say no if there are warnings
10288 if test ! -s conftest.err; then
10289 lt_prog_compiler_pic_works_CXX=yes
10295 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10296 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10298 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10299 case $lt_prog_compiler_pic_CXX in
10301 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10304 lt_prog_compiler_pic_CXX=
10305 lt_prog_compiler_can_build_shared_CXX=no
10310 # For platforms which do not support PIC, -DPIC is meaningless:
10312 lt_prog_compiler_pic_CXX=
10315 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10319 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10320 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10321 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 lt_cv_prog_compiler_c_o_CXX=no
10325 $rm -r conftest 2>/dev/null
10329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10331 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10332 # that will create temporary files in the current directory regardless of
10333 # the output directory. Thus, making CWD read-only will cause this test
10334 # to fail, enabling locking or at least warning the user not to do parallel
10338 lt_compiler_flag="-o out/conftest2.$ac_objext"
10339 # Insert the option either (1) after the last *FLAGS variable, or
10340 # (2) before a word containing "conftest.", or (3) at the end.
10341 # Note that $ac_compile itself does not contain backslashes and begins
10342 # with a dollar sign (not a hyphen), so the echo should work correctly.
10343 lt_compile=`echo "$ac_compile" | $SED \
10344 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10346 -e 's:$: $lt_compiler_flag:'`
10347 (eval echo "\"\$as_me:10347: $lt_compile\"" >&5)
10348 (eval "$lt_compile" 2>out/conftest.err)
10350 cat out/conftest.err >&5
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10354 # The compiler can only warn and ignore the option if not recognized
10355 # So say no if there are warnings
10356 if test ! -s out/conftest.err; then
10357 lt_cv_prog_compiler_c_o_CXX=yes
10361 $rm conftest* out/*
10368 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10369 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10372 hard_links="nottested"
10373 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10374 # do not overwrite the value of need_locks provided by the user
10375 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10376 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10381 ln conftest.a conftest.b 2>&5 || hard_links=no
10382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10383 echo "$as_me:$LINENO: result: $hard_links" >&5
10384 echo "${ECHO_T}$hard_links" >&6
10385 if test "$hard_links" = no; then
10386 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10387 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10394 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10395 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10397 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10400 # If we're using GNU nm, then we don't want the "-C" option.
10401 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10402 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10403 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'
10405 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'
10409 export_symbols_cmds_CXX="$ltdll_cmds"
10412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10419 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10420 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10421 test "$ld_shlibs_CXX" = no && can_build_shared=no
10423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10424 if test "$GCC" = yes; then
10425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10429 # Do we need to explicitly link libc?
10431 case "x$archive_cmds_need_lc_CXX" in
10433 # Assume -lc should be added
10434 archive_cmds_need_lc_CXX=yes
10436 if test "$enable_shared" = yes && test "$GCC" = yes; then
10437 case $archive_cmds_CXX in
10439 # FIXME: we may have to deal with multi-command sequences.
10442 # Test whether the compiler implicitly links with -lc since on some
10443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10444 # to ld, don't add -lc before -lgcc.
10445 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10446 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451 (eval $ac_compile) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } 2>conftest.err; then
10457 libobjs=conftest.$ac_objext
10459 wl=$lt_prog_compiler_wl_CXX
10465 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10466 allow_undefined_flag_CXX=
10467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10468 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }
10473 archive_cmds_need_lc_CXX=no
10475 archive_cmds_need_lc_CXX=yes
10477 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10479 cat conftest.err 1>&5
10482 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10483 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10490 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10491 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10492 hardcode_action_CXX=
10493 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10494 test -n "$runpath_var CXX" || \
10495 test "X$hardcode_automatic_CXX"="Xyes" ; then
10497 # We can hardcode non-existant directories.
10498 if test "$hardcode_direct_CXX" != no &&
10499 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10500 # have to relink, otherwise we might link with an installed library
10501 # when we should be linking with a yet-to-be-installed one
10502 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10503 test "$hardcode_minus_L_CXX" != no; then
10504 # Linking always hardcodes the temporary library directory.
10505 hardcode_action_CXX=relink
10507 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10508 hardcode_action_CXX=immediate
10511 # We cannot hardcode anything, or else we can only hardcode existing
10513 hardcode_action_CXX=unsupported
10515 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10516 echo "${ECHO_T}$hardcode_action_CXX" >&6
10518 if test "$hardcode_action_CXX" = relink; then
10519 # Fast installation is not supported
10520 enable_fast_install=no
10521 elif test "$shlibpath_overrides_runpath" = yes ||
10522 test "$enable_shared" = no; then
10523 # Fast installation is not necessary
10524 enable_fast_install=needless
10529 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10530 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10531 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10532 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10533 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10534 echo "$as_me:$LINENO: result: yes" >&5
10535 echo "${ECHO_T}yes" >&6
10537 # FIXME - insert some real tests, host_os isn't really good enough
10540 if test -n "$STRIP" ; then
10541 striplib="$STRIP -x"
10542 echo "$as_me:$LINENO: result: yes" >&5
10543 echo "${ECHO_T}yes" >&6
10545 echo "$as_me:$LINENO: result: no" >&5
10546 echo "${ECHO_T}no" >&6
10550 echo "$as_me:$LINENO: result: no" >&5
10551 echo "${ECHO_T}no" >&6
10556 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10557 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10558 library_names_spec=
10559 libname_spec='lib$name'
10563 postuninstall_cmds=
10567 shlibpath_overrides_runpath=unknown
10569 dynamic_linker="$host_os ld.so"
10570 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10571 if test "$GCC" = yes; then
10572 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10573 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10574 # if the path contains ";" then we assume it to be the separator
10575 # otherwise default to the standard path separator (i.e. ":") - it is
10576 # assumed that no part of a normal pathname contains ";" but that should
10577 # okay in the real world where ";" in dirpaths is itself problematic.
10578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10583 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10585 need_lib_prefix=unknown
10586 hardcode_into_libs=no
10588 # when you set need_version to no, make sure it does not cause -set_version
10589 # flags to be left without arguments
10590 need_version=unknown
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10596 shlibpath_var=LIBPATH
10598 # AIX 3 has no versioning support, so we append a major version to the name.
10599 soname_spec='${libname}${release}${shared_ext}$major'
10606 hardcode_into_libs=yes
10607 if test "$host_cpu" = ia64; then
10608 # AIX 5 supports IA64
10609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10610 shlibpath_var=LD_LIBRARY_PATH
10612 # With GCC up to 2.95.x, collect2 would create an import file
10613 # for dependence libraries. The import file would start with
10614 # the line `#! .'. This would cause the generated library to
10615 # depend on `.', always an invalid library. This was fixed in
10616 # development snapshots of GCC prior to 3.0.
10618 aix4 | aix4.[01] | aix4.[01].*)
10619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10621 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10624 can_build_shared=no
10628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10629 # soname into executable. Probably we can add versioning support to
10630 # collect2, so additional links can be useful in future.
10631 if test "$aix_use_runtimelinking" = yes; then
10632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10633 # instead of lib<name>.a to let people know that these are not
10634 # typical AIX shared libraries.
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637 # We preserve .a as extension for shared libraries through AIX4.2
10638 # and later when we are not doing run time linking.
10639 library_names_spec='${libname}${release}.a $libname.a'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LIBPATH
10647 library_names_spec='$libname.ixlibrary $libname.a'
10648 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10649 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'
10653 library_names_spec='${libname}${shared_ext}'
10654 dynamic_linker="$host_os ld.so"
10655 shlibpath_var=LIBRARY_PATH
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10667 # the default ld.so.conf also contains /usr/contrib/lib and
10668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10669 # libtool to hard-code these into programs
10672 cygwin* | mingw* | pw32*)
10673 version_type=windows
10678 case $GCC,$host_os in
10679 yes,cygwin* | yes,mingw* | yes,pw32*)
10680 library_names_spec='$libname.dll.a'
10681 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10682 postinstall_cmds='base_file=`basename \${file}`~
10683 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10684 dldir=$destdir/`dirname \$dlpath`~
10685 test -d \$dldir || mkdir -p \$dldir~
10686 $install_prog $dir/$dlname \$dldir/$dlname'
10687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10688 dlpath=$dir/\$dldll~
10690 shlibpath_overrides_runpath=yes
10694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10699 # MinGW DLLs use traditional 'lib' prefix
10700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10702 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10703 # It is most probably a Windows format PATH printed by
10704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10705 # path with ; separators, and with drive letters. We can handle the
10706 # drive letters (cygwin fileutils understands them), so leave them,
10707 # especially as we might pass files found there to a mingw objdump,
10708 # which wouldn't understand a cygwinified path. Ahh.
10709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715 # pw32 DLLs use 'pw' prefix rather than 'lib'
10716 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10725 dynamic_linker='Win32 ld.exe'
10726 # FIXME: first we should search . and the directory the executable is in
10730 darwin* | rhapsody*)
10731 dynamic_linker="$host_os dyld"
10732 version_type=darwin
10735 # FIXME: Relying on posixy $() will cause problems for
10736 # cross-compilation, but unfortunately the echo tests do not
10737 # yet detect zsh echo's removal of \ escapes.
10738 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10739 soname_spec='${libname}${release}${major}$shared_ext'
10740 shlibpath_overrides_runpath=yes
10741 shlibpath_var=DYLD_LIBRARY_PATH
10742 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10743 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10744 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10745 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"`
10747 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10764 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10765 version_type=freebsd-$objformat
10766 case $version_type in
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10777 shlibpath_var=LD_LIBRARY_PATH
10780 shlibpath_overrides_runpath=yes
10782 freebsd3.01* | freebsdelf3.01*)
10783 shlibpath_overrides_runpath=yes
10784 hardcode_into_libs=yes
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 hardcode_into_libs=yes
10803 hpux9* | hpux10* | hpux11*)
10804 # Give a soname corresponding to the major version so that dld.sl refuses to
10805 # link against other versions.
10809 case "$host_cpu" in
10812 hardcode_into_libs=yes
10813 dynamic_linker="$host_os dld.so"
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 if test "X$HPUX_IA64_MODE" = X32; then
10819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10827 hardcode_into_libs=yes
10828 dynamic_linker="$host_os dld.sl"
10829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 soname_spec='${libname}${release}${shared_ext}$major'
10833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10838 dynamic_linker="$host_os dld.sl"
10839 shlibpath_var=SHLIB_PATH
10840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10846 postinstall_cmds='chmod 555 $lib'
10849 irix5* | irix6* | nonstopux*)
10851 nonstopux*) version_type=nonstopux ;;
10853 if test "$lt_cv_prog_gnu_ld" = yes; then
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10864 irix5* | nonstopux*)
10865 libsuff= shlibsuff=
10868 case $LD in # libtool.m4 will add one of these switches to LD
10869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10870 libsuff= shlibsuff= libmagic=32-bit;;
10871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10872 libsuff=32 shlibsuff=N32 libmagic=N32;;
10873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10875 *) libsuff= shlibsuff= libmagic=never-match;;
10879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10880 shlibpath_overrides_runpath=no
10881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10883 hardcode_into_libs=yes
10886 # No shared lib support for Linux oldld, aout, or coff.
10887 linux*oldld* | linux*aout* | linux*coff*)
10891 # This must be Linux ELF.
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 # This implies no fast_install, which is unacceptable.
10902 # Some rework will be needed to allow for fast_install
10903 # before this can be enabled.
10904 hardcode_into_libs=yes
10906 # We used to test for /lib/ld.so.1 and disable shared libraries on
10907 # powerpc, because MkLinux only supported shared libraries with the
10908 # GNU dynamic linker. Since this was broken with cross compilers,
10909 # most powerpc-linux boxes support dynamic linking these days and
10910 # people can always --disable-shared, the test was removed, and we
10911 # assume the GNU/Linux dynamic linker is in use.
10912 dynamic_linker='GNU/Linux ld.so'
10919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10922 dynamic_linker='NetBSD (a.out) ld.so'
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 dynamic_linker='NetBSD ld.elf_so'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 shlibpath_overrides_runpath=yes
10930 hardcode_into_libs=yes
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=yes
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=yes
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10959 openbsd2.[89] | openbsd2.[89].*)
10960 shlibpath_overrides_runpath=no
10963 shlibpath_overrides_runpath=yes
10967 shlibpath_overrides_runpath=yes
10972 libname_spec='$name'
10975 library_names_spec='$libname${shared_ext} $libname.a'
10976 dynamic_linker='OS/2 ld.exe'
10977 shlibpath_var=LIBPATH
10980 osf3* | osf4* | osf5*)
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10988 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 shlibpath_var=LD_LIBRARY_PATH
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes
11006 hardcode_into_libs=yes
11007 # ldd complains unless libraries are executable
11008 postinstall_cmds='chmod +x $lib'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=yes
11017 if test "$with_gnu_ld" = yes; then
11023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 case $host_vendor in
11030 shlibpath_overrides_runpath=no
11032 export_dynamic_flag_spec='${wl}-Blargedynsym'
11033 runpath_var=LD_RUN_PATH
11041 shlibpath_overrides_runpath=no
11042 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11048 if test -d /usr/nec ;then
11050 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11051 soname_spec='$libname${shared_ext}.$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 shlibpath_var=LD_LIBRARY_PATH
11067 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11068 echo "${ECHO_T}$dynamic_linker" >&6
11069 test "$dynamic_linker" = no && can_build_shared=no
11071 if test "x$enable_dlopen" != xyes; then
11072 enable_dlopen=unknown
11073 enable_dlopen_self=unknown
11074 enable_dlopen_self_static=unknown
11081 lt_cv_dlopen="load_add_on"
11083 lt_cv_dlopen_self=yes
11087 lt_cv_dlopen="LoadLibrary"
11092 lt_cv_dlopen="dlopen"
11097 # if libdl is installed we need to link against it
11098 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11099 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11100 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 ac_check_lib_save_LIBS=$LIBS
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11112 /* Override any gcc2 internal prototype to avoid an error. */
11116 /* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 (eval $ac_link) 2>conftest.er1
11131 grep -v '^ *+' conftest.er1 >conftest.err
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try='test -z "$ac_cxx_werror_flag"
11137 || test ! -s conftest.err'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest$ac_exeext'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 ac_cv_lib_dl_dlopen=yes
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11154 ac_cv_lib_dl_dlopen=no
11156 rm -f conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11162 if test $ac_cv_lib_dl_dlopen = yes; then
11163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11166 lt_cv_dlopen="dyld"
11168 lt_cv_dlopen_self=yes
11175 echo "$as_me:$LINENO: checking for shl_load" >&5
11176 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11177 if test "${ac_cv_func_shl_load+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11188 #define shl_load innocuous_shl_load
11190 /* System header to define __stub macros and hopefully few prototypes,
11191 which can conflict with char shl_load (); below.
11192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11193 <limits.h> exists even on freestanding compilers. */
11196 # include <limits.h>
11198 # include <assert.h>
11203 /* Override any gcc2 internal prototype to avoid an error. */
11208 /* We use char because int might match the return type of a gcc2
11209 builtin and then its argument prototype would still apply. */
11211 /* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11217 char (*f) () = shl_load;
11226 return f != shl_load;
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_cxx_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_func_shl_load=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_cv_func_shl_load=no
11260 rm -f conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11264 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11265 if test $ac_cv_func_shl_load = yes; then
11266 lt_cv_dlopen="shl_load"
11268 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_check_lib_save_LIBS=$LIBS
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11282 /* Override any gcc2 internal prototype to avoid an error. */
11286 /* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_cxx_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_cv_lib_dld_shl_load=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_cv_lib_dld_shl_load=no
11326 rm -f conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11330 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11332 if test $ac_cv_lib_dld_shl_load = yes; then
11333 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11335 echo "$as_me:$LINENO: checking for dlopen" >&5
11336 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11337 if test "${ac_cv_func_dlopen+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 cat >conftest.$ac_ext <<_ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11348 #define dlopen innocuous_dlopen
11350 /* System header to define __stub macros and hopefully few prototypes,
11351 which can conflict with char dlopen (); below.
11352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11353 <limits.h> exists even on freestanding compilers. */
11356 # include <limits.h>
11358 # include <assert.h>
11363 /* Override any gcc2 internal prototype to avoid an error. */
11368 /* We use char because int might match the return type of a gcc2
11369 builtin and then its argument prototype would still apply. */
11371 /* The GNU C library defines this for functions which it implements
11372 to always fail with ENOSYS. Some functions are actually named
11373 something starting with __ and the normal name is an alias. */
11374 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11377 char (*f) () = dlopen;
11386 return f != dlopen;
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393 (eval $ac_link) 2>conftest.er1
11395 grep -v '^ *+' conftest.er1 >conftest.err
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_cxx_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest$ac_exeext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_cv_func_dlopen=yes
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_cv_func_dlopen=no
11420 rm -f conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11424 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11425 if test $ac_cv_func_dlopen = yes; then
11426 lt_cv_dlopen="dlopen"
11428 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11429 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11430 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 ac_check_lib_save_LIBS=$LIBS
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11442 /* Override any gcc2 internal prototype to avoid an error. */
11446 /* We use char because int might match the return type of a gcc2
11447 builtin and then its argument prototype would still apply. */
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_cxx_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_cv_lib_dl_dlopen=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_lib_dl_dlopen=no
11486 rm -f conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11490 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11491 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11492 if test $ac_cv_lib_dl_dlopen = yes; then
11493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11495 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11496 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11497 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lsvld $LIBS"
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11509 /* Override any gcc2 internal prototype to avoid an error. */
11513 /* We use char because int might match the return type of a gcc2
11514 builtin and then its argument prototype would still apply. */
11524 rm -f conftest.$ac_objext conftest$ac_exeext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11526 (eval $ac_link) 2>conftest.er1
11528 grep -v '^ *+' conftest.er1 >conftest.err
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } &&
11533 { ac_try='test -z "$ac_cxx_werror_flag"
11534 || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest$ac_exeext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_lib_svld_dlopen=yes
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ac_cv_lib_svld_dlopen=no
11553 rm -f conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11557 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11558 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11559 if test $ac_cv_lib_svld_dlopen = yes; then
11560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11562 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11563 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11564 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 ac_check_lib_save_LIBS=$LIBS
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_cxx_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_lib_dld_dld_link=yes
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 ac_cv_lib_dld_dld_link=no
11620 rm -f conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11624 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11625 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11626 if test $ac_cv_lib_dld_dld_link = yes; then
11627 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11648 if test "x$lt_cv_dlopen" != xno; then
11654 case $lt_cv_dlopen in
11656 save_CPPFLAGS="$CPPFLAGS"
11657 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11659 save_LDFLAGS="$LDFLAGS"
11660 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11663 LIBS="$lt_cv_dlopen_libs $LIBS"
11665 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11666 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11667 if test "${lt_cv_dlopen_self+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 if test "$cross_compiling" = yes; then :
11671 lt_cv_dlopen_self=cross
11673 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11674 lt_status=$lt_dlunknown
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11676 "configure"
11677 #include "confdefs.h"
11686 # define LT_DLGLOBAL RTLD_GLOBAL
11689 # define LT_DLGLOBAL DL_GLOBAL
11691 # define LT_DLGLOBAL 0
11695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11696 find out it does not work in some platform. */
11697 #ifndef LT_DLLAZY_OR_NOW
11699 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11702 # define LT_DLLAZY_OR_NOW DL_LAZY
11705 # define LT_DLLAZY_OR_NOW RTLD_NOW
11708 # define LT_DLLAZY_OR_NOW DL_NOW
11710 # define LT_DLLAZY_OR_NOW 0
11718 extern "C" void exit (int);
11721 void fnord() { int i=42;}
11724 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11725 int status = $lt_dlunknown;
11729 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11730 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11731 /* dlclose (self); */
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11742 (./conftest; exit; ) 2>/dev/null
11744 case x$lt_status in
11745 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11746 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11747 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11750 # compilation failed
11751 lt_cv_dlopen_self=no
11758 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11759 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11761 if test "x$lt_cv_dlopen_self" = xyes; then
11762 LDFLAGS="$LDFLAGS $link_static_flag"
11763 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11764 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11765 if test "${lt_cv_dlopen_self_static+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 if test "$cross_compiling" = yes; then :
11769 lt_cv_dlopen_self_static=cross
11771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11772 lt_status=$lt_dlunknown
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11774 "configure"
11775 #include "confdefs.h"
11784 # define LT_DLGLOBAL RTLD_GLOBAL
11787 # define LT_DLGLOBAL DL_GLOBAL
11789 # define LT_DLGLOBAL 0
11793 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11794 find out it does not work in some platform. */
11795 #ifndef LT_DLLAZY_OR_NOW
11797 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11800 # define LT_DLLAZY_OR_NOW DL_LAZY
11803 # define LT_DLLAZY_OR_NOW RTLD_NOW
11806 # define LT_DLLAZY_OR_NOW DL_NOW
11808 # define LT_DLLAZY_OR_NOW 0
11816 extern "C" void exit (int);
11819 void fnord() { int i=42;}
11822 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11823 int status = $lt_dlunknown;
11827 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11828 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11829 /* dlclose (self); */
11835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836 (eval $ac_link) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11840 (./conftest; exit; ) 2>/dev/null
11842 case x$lt_status in
11843 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11844 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11845 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11848 # compilation failed
11849 lt_cv_dlopen_self_static=no
11856 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11857 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11860 CPPFLAGS="$save_CPPFLAGS"
11861 LDFLAGS="$save_LDFLAGS"
11866 case $lt_cv_dlopen_self in
11867 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11868 *) enable_dlopen_self=unknown ;;
11871 case $lt_cv_dlopen_self_static in
11872 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11873 *) enable_dlopen_self_static=unknown ;;
11878 # The else clause should only fire when bootstrapping the
11879 # libtool distribution, otherwise you forgot to ship ltmain.sh
11880 # with your package, and you will get complaints that there are
11881 # no rules to generate ltmain.sh.
11882 if test -f "$ltmain"; then
11883 # See if we are running on zsh, and set the options which allow our commands through
11884 # without removal of \ escapes.
11885 if test -n "${ZSH_VERSION+set}" ; then
11886 setopt NO_GLOB_SUBST
11888 # Now quote all the things that may contain metacharacters while being
11889 # careful not to overquote the AC_SUBSTed values. We take copies of the
11890 # variables and quote the copies for generation of the libtool script.
11891 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11892 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11893 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11894 deplibs_check_method reload_flag reload_cmds need_locks \
11895 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11896 lt_cv_sys_global_symbol_to_c_name_address \
11897 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11898 old_postinstall_cmds old_postuninstall_cmds \
11902 lt_prog_compiler_wl_CXX \
11903 lt_prog_compiler_pic_CXX \
11904 lt_prog_compiler_static_CXX \
11905 lt_prog_compiler_no_builtin_flag_CXX \
11906 export_dynamic_flag_spec_CXX \
11907 thread_safe_flag_spec_CXX \
11908 whole_archive_flag_spec_CXX \
11909 enable_shared_with_static_runtimes_CXX \
11910 old_archive_cmds_CXX \
11911 old_archive_from_new_cmds_CXX \
11912 predep_objects_CXX \
11913 postdep_objects_CXX \
11916 compiler_lib_search_path_CXX \
11918 archive_expsym_cmds_CXX \
11919 postinstall_cmds_CXX \
11920 postuninstall_cmds_CXX \
11921 old_archive_from_expsyms_cmds_CXX \
11922 allow_undefined_flag_CXX \
11923 no_undefined_flag_CXX \
11924 export_symbols_cmds_CXX \
11925 hardcode_libdir_flag_spec_CXX \
11926 hardcode_libdir_flag_spec_ld_CXX \
11927 hardcode_libdir_separator_CXX \
11928 hardcode_automatic_CXX \
11930 module_expsym_cmds_CXX \
11931 lt_cv_prog_compiler_c_o_CXX \
11932 exclude_expsyms_CXX \
11933 include_expsyms_CXX; do
11936 old_archive_cmds_CXX | \
11937 old_archive_from_new_cmds_CXX | \
11938 archive_cmds_CXX | \
11939 archive_expsym_cmds_CXX | \
11940 module_cmds_CXX | \
11941 module_expsym_cmds_CXX | \
11942 old_archive_from_expsyms_cmds_CXX | \
11943 export_symbols_cmds_CXX | \
11944 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11945 postinstall_cmds | postuninstall_cmds | \
11946 old_postinstall_cmds | old_postuninstall_cmds | \
11947 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11948 # Double-quote double-evaled strings.
11949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11958 *'\$0 --fallback-echo"')
11959 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11965 cat <<__EOF__ >> "$cfgfile"
11966 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11970 # Shell to use when invoking shell scripts.
11973 # Whether or not to build shared libraries.
11974 build_libtool_libs=$enable_shared
11976 # Whether or not to build static libraries.
11977 build_old_libs=$enable_static
11979 # Whether or not to add -lc for building shared libraries.
11980 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11982 # Whether or not to disallow shared libs when runtime libs are static
11983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11985 # Whether or not to optimize for fast installation.
11986 fast_install=$enable_fast_install
11989 host_alias=$host_alias
11992 # An echo program that does not interpret backslashes.
11997 AR_FLAGS=$lt_AR_FLAGS
12002 # A language-specific compiler.
12003 CC=$lt_compiler_CXX
12005 # Is the compiler the GNU C compiler?
12011 # The linker used to build libraries.
12014 # Whether we need hard or soft links.
12017 # A BSD-compatible nm program.
12020 # A symbol stripping program
12023 # Used to examine libraries when file_magic_cmd begins "file"
12024 MAGIC_CMD=$MAGIC_CMD
12026 # Used on cygwin: DLL creation program.
12029 # Used on cygwin: object dumper.
12032 # Used on cygwin: assembler.
12035 # The name of the directory that contains temporary libtool files.
12038 # How to create reloadable object files.
12039 reload_flag=$lt_reload_flag
12040 reload_cmds=$lt_reload_cmds
12042 # How to pass a linker flag through the compiler.
12043 wl=$lt_lt_prog_compiler_wl_CXX
12045 # Object file suffix (normally "o").
12046 objext="$ac_objext"
12048 # Old archive suffix (normally "a").
12051 # Shared library suffix (normally ".so").
12054 # Executable file suffix (normally "").
12057 # Additional compiler flags for building library objects.
12058 pic_flag=$lt_lt_prog_compiler_pic_CXX
12061 # What is the maximum length of a command?
12062 max_cmd_len=$lt_cv_sys_max_cmd_len
12064 # Does compiler simultaneously support -c and -o options?
12065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12067 # Must we lock files when doing compilation ?
12068 need_locks=$lt_need_locks
12070 # Do we need the lib prefix for modules?
12071 need_lib_prefix=$need_lib_prefix
12073 # Do we need a version for libraries?
12074 need_version=$need_version
12076 # Whether dlopen is supported.
12077 dlopen_support=$enable_dlopen
12079 # Whether dlopen of programs is supported.
12080 dlopen_self=$enable_dlopen_self
12082 # Whether dlopen of statically linked programs is supported.
12083 dlopen_self_static=$enable_dlopen_self_static
12085 # Compiler flag to prevent dynamic linking.
12086 link_static_flag=$lt_lt_prog_compiler_static_CXX
12088 # Compiler flag to turn off builtin functions.
12089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12091 # Compiler flag to allow reflexive dlopens.
12092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12094 # Compiler flag to generate shared objects directly from archives.
12095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12097 # Compiler flag to generate thread-safe objects.
12098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12100 # Library versioning type.
12101 version_type=$version_type
12103 # Format of library name prefix.
12104 libname_spec=$lt_libname_spec
12106 # List of archive names. First name is the real one, the rest are links.
12107 # The last name is the one that the linker finds with -lNAME.
12108 library_names_spec=$lt_library_names_spec
12110 # The coded name of the library, if different from the real name.
12111 soname_spec=$lt_soname_spec
12113 # Commands used to build and install an old-style archive.
12115 old_archive_cmds=$lt_old_archive_cmds_CXX
12116 old_postinstall_cmds=$lt_old_postinstall_cmds
12117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12119 # Create an old-style archive from a shared archive.
12120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12122 # Create a temporary old-style archive to link instead of a shared archive.
12123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12125 # Commands used to build and install a shared archive.
12126 archive_cmds=$lt_archive_cmds_CXX
12127 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12128 postinstall_cmds=$lt_postinstall_cmds
12129 postuninstall_cmds=$lt_postuninstall_cmds
12131 # Commands used to build a loadable module (assumed same as above if empty)
12132 module_cmds=$lt_module_cmds_CXX
12133 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12135 # Commands to strip libraries.
12136 old_striplib=$lt_old_striplib
12137 striplib=$lt_striplib
12139 # Dependencies to place before the objects being linked to create a
12141 predep_objects=$lt_predep_objects_CXX
12143 # Dependencies to place after the objects being linked to create a
12145 postdep_objects=$lt_postdep_objects_CXX
12147 # Dependencies to place before the objects being linked to create a
12149 predeps=$lt_predeps_CXX
12151 # Dependencies to place after the objects being linked to create a
12153 postdeps=$lt_postdeps_CXX
12155 # The library search path used internally by the compiler when linking
12156 # a shared library.
12157 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12159 # Method to check whether dependent libraries are shared objects.
12160 deplibs_check_method=$lt_deplibs_check_method
12162 # Command to use when deplibs_check_method == file_magic.
12163 file_magic_cmd=$lt_file_magic_cmd
12165 # Flag that allows shared libraries with undefined symbols to be built.
12166 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12168 # Flag that forces no undefined symbols.
12169 no_undefined_flag=$lt_no_undefined_flag_CXX
12171 # Commands used to finish a libtool library installation in a directory.
12172 finish_cmds=$lt_finish_cmds
12174 # Same as above, but a single script fragment to be evaled but not shown.
12175 finish_eval=$lt_finish_eval
12177 # Take the output of nm and produce a listing of raw symbols and C names.
12178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12180 # Transform the output of nm in a proper C declaration
12181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12183 # Transform the output of nm in a C name address pair
12184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12186 # This is the shared library runtime path variable.
12187 runpath_var=$runpath_var
12189 # This is the shared library path variable.
12190 shlibpath_var=$shlibpath_var
12192 # Is shlibpath searched before the hard-coded library search path?
12193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12195 # How to hardcode a shared library path into an executable.
12196 hardcode_action=$hardcode_action_CXX
12198 # Whether we should hardcode library paths into libraries.
12199 hardcode_into_libs=$hardcode_into_libs
12201 # Flag to hardcode \$libdir into a binary during linking.
12202 # This must work even if \$libdir does not exist.
12203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12205 # If ld is used when linking, flag to hardcode \$libdir into
12206 # a binary during linking. This must work even if \$libdir does
12208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12210 # Whether we need a single -rpath flag with a separated argument.
12211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12214 # resulting binary.
12215 hardcode_direct=$hardcode_direct_CXX
12217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12218 # resulting binary.
12219 hardcode_minus_L=$hardcode_minus_L_CXX
12221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12222 # the resulting binary.
12223 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12225 # Set to yes if building a shared library automatically hardcodes DIR into the library
12226 # and all subsequent libraries and executables linked against it.
12227 hardcode_automatic=$hardcode_automatic_CXX
12229 # Variables whose values should be saved in libtool wrapper scripts and
12230 # restored at relink time.
12231 variables_saved_for_relink="$variables_saved_for_relink"
12233 # Whether libtool must link a program against all its dependency libraries.
12234 link_all_deplibs=$link_all_deplibs_CXX
12236 # Compile-time system search path for libraries
12237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12239 # Run-time system search path for libraries
12240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12242 # Fix the shell variable \$srcfile for the compiler.
12243 fix_srcfile_path="$fix_srcfile_path_CXX"
12245 # Set to yes if exported symbols are required.
12246 always_export_symbols=$always_export_symbols_CXX
12248 # The commands to list exported symbols.
12249 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12251 # The commands to extract the exported symbol list from a shared archive.
12252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12254 # Symbols that should not be listed in the preloaded symbols.
12255 exclude_expsyms=$lt_exclude_expsyms_CXX
12257 # Symbols that must always be exported.
12258 include_expsyms=$lt_include_expsyms_CXX
12260 # ### END LIBTOOL TAG CONFIG: $tagname
12266 # If there is no Makefile yet, we rely on a make rule to execute
12267 # `config.status --recheck' to rerun these tests and create the
12268 # libtool script then.
12269 test -f Makefile && make "$ltmain"
12274 ac_cpp='$CPP $CPPFLAGS'
12275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12283 with_gnu_ldcxx=$with_gnu_ld
12284 with_gnu_ld=$lt_save_with_gnu_ld
12285 lt_cv_path_LDCXX=$lt_cv_path_LD
12286 lt_cv_path_LD=$lt_save_path_LD
12287 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12288 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12296 if test -n "$F77" && test "X$F77" != "Xno"; then
12299 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12300 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12301 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12304 archive_cmds_need_lc_F77=no
12305 allow_undefined_flag_F77=
12306 always_export_symbols_F77=no
12307 archive_expsym_cmds_F77=
12308 export_dynamic_flag_spec_F77=
12309 hardcode_direct_F77=no
12310 hardcode_libdir_flag_spec_F77=
12311 hardcode_libdir_flag_spec_ld_F77=
12312 hardcode_libdir_separator_F77=
12313 hardcode_minus_L_F77=no
12314 hardcode_automatic_F77=no
12316 module_expsym_cmds_F77=
12317 link_all_deplibs_F77=unknown
12318 old_archive_cmds_F77=$old_archive_cmds
12319 no_undefined_flag_F77=
12320 whole_archive_flag_spec_F77=
12321 enable_shared_with_static_runtimes_F77=no
12323 # Source file extension for f77 test sources.
12326 # Object file extension for compiled f77 test sources.
12330 # Code to be used in simple compile tests
12331 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12333 # Code to be used in simple link tests
12334 lt_simple_link_test_code=" program t\n end\n"
12336 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12338 # If no C compiler was specified, use CC.
12341 # Allow CC to be a program name with arguments.
12345 # Allow CC to be a program name with arguments.
12350 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12352 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12353 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12354 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12355 echo "${ECHO_T}$can_build_shared" >&6
12357 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12358 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12359 test "$can_build_shared" = "no" && enable_shared=no
12361 # On AIX, shared libraries and static libraries use the same namespace, and
12362 # are all built from PIC.
12365 test "$enable_shared" = yes && enable_static=no
12366 if test -n "$RANLIB"; then
12367 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12368 postinstall_cmds='$RANLIB $lib'
12372 test "$enable_shared" = yes && enable_static=no
12375 echo "$as_me:$LINENO: result: $enable_shared" >&5
12376 echo "${ECHO_T}$enable_shared" >&6
12378 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12379 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12380 # Make sure either enable_shared or enable_static is yes.
12381 test "$enable_shared" = yes || enable_static=yes
12382 echo "$as_me:$LINENO: result: $enable_static" >&5
12383 echo "${ECHO_T}$enable_static" >&6
12385 test "$ld_shlibs_F77" = no && can_build_shared=no
12390 lt_prog_compiler_wl_F77=
12391 lt_prog_compiler_pic_F77=
12392 lt_prog_compiler_static_F77=
12394 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12395 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12397 if test "$GCC" = yes; then
12398 lt_prog_compiler_wl_F77='-Wl,'
12399 lt_prog_compiler_static_F77='-static'
12403 # All AIX code is PIC.
12404 if test "$host_cpu" = ia64; then
12405 # AIX 5 now supports IA64 processor
12406 lt_prog_compiler_static_F77='-Bstatic'
12411 # FIXME: we need at least 68020 code to build shared libraries, but
12412 # adding the `-m68020' flag to GCC prevents building anything better,
12414 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12417 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12418 # PIC is the default for these OSes.
12421 mingw* | pw32* | os2*)
12422 # This hack is so that the source file can tell whether it is being
12423 # built for inclusion in a dll (and should export symbols for example).
12424 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12427 darwin* | rhapsody*)
12428 # PIC is the default on this platform
12429 # Common symbols not allowed in MH_DYLIB files
12430 lt_prog_compiler_pic_F77='-fno-common'
12434 # Just because we use GCC doesn't mean we suddenly get shared libraries
12435 # on systems that don't support them.
12436 lt_prog_compiler_can_build_shared_F77=no
12441 if test -d /usr/nec; then
12442 lt_prog_compiler_pic_F77=-Kconform_pic
12447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12448 # not for PA HP-UX.
12449 case "$host_cpu" in
12454 lt_prog_compiler_pic_F77='-fPIC'
12460 lt_prog_compiler_pic_F77='-fPIC'
12464 # PORTME Check for flag to pass linker flags through the system compiler.
12467 lt_prog_compiler_wl_F77='-Wl,'
12468 if test "$host_cpu" = ia64; then
12469 # AIX 5 now supports IA64 processor
12470 lt_prog_compiler_static_F77='-Bstatic'
12472 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12476 mingw* | pw32* | os2*)
12477 # This hack is so that the source file can tell whether it is being
12478 # built for inclusion in a dll (and should export symbols for example).
12479 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12482 hpux9* | hpux10* | hpux11*)
12483 lt_prog_compiler_wl_F77='-Wl,'
12484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12485 # not for PA HP-UX.
12486 case "$host_cpu" in
12491 lt_prog_compiler_pic_F77='+Z'
12494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12495 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12498 irix5* | irix6* | nonstopux*)
12499 lt_prog_compiler_wl_F77='-Wl,'
12500 # PIC (with -KPIC) is the default.
12501 lt_prog_compiler_static_F77='-non_shared'
12505 lt_prog_compiler_pic_F77='-KPIC'
12506 lt_prog_compiler_static_F77='-Bstatic'
12512 lt_prog_compiler_wl_F77='-Wl,'
12513 lt_prog_compiler_pic_F77='-KPIC'
12514 lt_prog_compiler_static_F77='-static'
12517 lt_prog_compiler_wl_F77='-Wl,'
12518 # All Alpha code is PIC.
12519 lt_prog_compiler_static_F77='-non_shared'
12524 osf3* | osf4* | osf5*)
12525 lt_prog_compiler_wl_F77='-Wl,'
12526 # All OSF/1 code is PIC.
12527 lt_prog_compiler_static_F77='-non_shared'
12531 lt_prog_compiler_pic_F77='-Kpic'
12532 lt_prog_compiler_static_F77='-dn'
12536 lt_prog_compiler_wl_F77='-Wl,'
12537 lt_prog_compiler_pic_F77='-KPIC'
12538 lt_prog_compiler_static_F77='-Bstatic'
12542 lt_prog_compiler_wl_F77='-Qoption ld '
12543 lt_prog_compiler_pic_F77='-PIC'
12544 lt_prog_compiler_static_F77='-Bstatic'
12547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12548 lt_prog_compiler_wl_F77='-Wl,'
12549 lt_prog_compiler_pic_F77='-KPIC'
12550 lt_prog_compiler_static_F77='-Bstatic'
12554 if test -d /usr/nec ;then
12555 lt_prog_compiler_pic_F77='-Kconform_pic'
12556 lt_prog_compiler_static_F77='-Bstatic'
12561 lt_prog_compiler_pic_F77='-pic'
12562 lt_prog_compiler_static_F77='-Bstatic'
12566 lt_prog_compiler_can_build_shared_F77=no
12571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12572 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12575 # Check to make sure the PIC flag actually works.
12577 if test -n "$lt_prog_compiler_pic_F77"; then
12578 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12580 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 lt_prog_compiler_pic_works_F77=no
12584 ac_outfile=conftest.$ac_objext
12585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12586 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12587 # Insert the option either (1) after the last *FLAGS variable, or
12588 # (2) before a word containing "conftest.", or (3) at the end.
12589 # Note that $ac_compile itself does not contain backslashes and begins
12590 # with a dollar sign (not a hyphen), so the echo should work correctly.
12591 # The option is referenced via a variable to avoid confusing sed.
12592 lt_compile=`echo "$ac_compile" | $SED \
12593 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12595 -e 's:$: $lt_compiler_flag:'`
12596 (eval echo "\"\$as_me:12596: $lt_compile\"" >&5)
12597 (eval "$lt_compile" 2>conftest.err)
12599 cat conftest.err >&5
12600 echo "$as_me:12600: \$? = $ac_status" >&5
12601 if (exit $ac_status) && test -s "$ac_outfile"; then
12602 # The compiler can only warn and ignore the option if not recognized
12603 # So say no if there are warnings
12604 if test ! -s conftest.err; then
12605 lt_prog_compiler_pic_works_F77=yes
12611 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12612 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12614 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12615 case $lt_prog_compiler_pic_F77 in
12617 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12620 lt_prog_compiler_pic_F77=
12621 lt_prog_compiler_can_build_shared_F77=no
12626 # For platforms which do not support PIC, -DPIC is meaningless:
12628 lt_prog_compiler_pic_F77=
12631 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12635 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12636 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12637 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 lt_cv_prog_compiler_c_o_F77=no
12641 $rm -r conftest 2>/dev/null
12645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12647 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12648 # that will create temporary files in the current directory regardless of
12649 # the output directory. Thus, making CWD read-only will cause this test
12650 # to fail, enabling locking or at least warning the user not to do parallel
12654 lt_compiler_flag="-o out/conftest2.$ac_objext"
12655 # Insert the option either (1) after the last *FLAGS variable, or
12656 # (2) before a word containing "conftest.", or (3) at the end.
12657 # Note that $ac_compile itself does not contain backslashes and begins
12658 # with a dollar sign (not a hyphen), so the echo should work correctly.
12659 lt_compile=`echo "$ac_compile" | $SED \
12660 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12662 -e 's:$: $lt_compiler_flag:'`
12663 (eval echo "\"\$as_me:12663: $lt_compile\"" >&5)
12664 (eval "$lt_compile" 2>out/conftest.err)
12666 cat out/conftest.err >&5
12667 echo "$as_me:12667: \$? = $ac_status" >&5
12668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12670 # The compiler can only warn and ignore the option if not recognized
12671 # So say no if there are warnings
12672 if test ! -s out/conftest.err; then
12673 lt_cv_prog_compiler_c_o_F77=yes
12677 $rm conftest* out/*
12684 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12685 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12688 hard_links="nottested"
12689 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12690 # do not overwrite the value of need_locks provided by the user
12691 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12692 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12697 ln conftest.a conftest.b 2>&5 || hard_links=no
12698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12699 echo "$as_me:$LINENO: result: $hard_links" >&5
12700 echo "${ECHO_T}$hard_links" >&6
12701 if test "$hard_links" = no; then
12702 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12703 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12710 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12711 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12714 allow_undefined_flag_F77=
12715 enable_shared_with_static_runtimes_F77=no
12717 archive_expsym_cmds_F77=
12718 old_archive_From_new_cmds_F77=
12719 old_archive_from_expsyms_cmds_F77=
12720 export_dynamic_flag_spec_F77=
12721 whole_archive_flag_spec_F77=
12722 thread_safe_flag_spec_F77=
12723 hardcode_libdir_flag_spec_F77=
12724 hardcode_libdir_flag_spec_ld_F77=
12725 hardcode_libdir_separator_F77=
12726 hardcode_direct_F77=no
12727 hardcode_minus_L_F77=no
12728 hardcode_shlibpath_var_F77=unsupported
12729 link_all_deplibs_F77=unknown
12730 hardcode_automatic_F77=no
12732 module_expsym_cmds_F77=
12733 always_export_symbols_F77=no
12734 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12735 # include_expsyms should be a list of space-separated symbols to be *always*
12736 # included in the symbol list
12737 include_expsyms_F77=
12738 # exclude_expsyms can be an extended regexp of symbols to exclude
12739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12741 # as well as any symbol that contains `d'.
12742 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12744 # platforms (ab)use it in PIC code, but their linkers get confused if
12745 # the symbol is explicitly referenced. Since portable code cannot
12746 # rely on this symbol name, it's probably fine to never include it in
12747 # preloaded symbol tables.
12748 extract_expsyms_cmds=
12751 cygwin* | mingw* | pw32*)
12752 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12753 # When not using gcc, we currently assume that we are using
12754 # Microsoft Visual C++.
12755 if test "$GCC" != yes; then
12765 if test "$with_gnu_ld" = yes; then
12766 # If archive_cmds runs LD, not CC, wlarc should be empty
12769 # See if GNU ld supports shared libraries.
12771 aix3* | aix4* | aix5*)
12772 # On AIX/PPC, the GNU linker is very broken
12773 if test "$host_cpu" != ia64; then
12777 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12778 *** to be unable to reliably create shared libraries on AIX.
12779 *** Therefore, libtool is disabling shared libraries support. If you
12780 *** really care for shared libraries, you may want to modify your PATH
12781 *** so that a non-GNU linker is found, and then restart.
12788 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)'
12789 hardcode_libdir_flag_spec_F77='-L$libdir'
12790 hardcode_minus_L_F77=yes
12792 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12793 # that the semantics of dynamic libraries on AmigaOS, at least up
12794 # to version 4, is to share data among multiple programs linked
12795 # with the same dynamic library. Since this doesn't match the
12796 # behavior of shared libraries on other platforms, we can't use
12802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12803 allow_undefined_flag_F77=unsupported
12804 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12805 # support --undefined. This deserves some investigation. FIXME
12806 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812 cygwin* | mingw* | pw32*)
12813 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12814 # as there is no search path for DLLs.
12815 hardcode_libdir_flag_spec_F77='-L$libdir'
12816 allow_undefined_flag_F77=unsupported
12817 always_export_symbols_F77=no
12818 enable_shared_with_static_runtimes_F77=yes
12819 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12821 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12822 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12823 # If the export-symbols file already is a .def file (1st line
12824 # is EXPORTS), use it as is; otherwise, prepend...
12825 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12826 cp $export_symbols $output_objdir/$soname.def;
12828 echo EXPORTS > $output_objdir/$soname.def;
12829 cat $export_symbols >> $output_objdir/$soname.def;
12831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12839 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12843 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12848 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12852 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12853 *** create shared libraries on Solaris systems. Therefore, libtool
12854 *** is disabling shared libraries support. We urge you to upgrade GNU
12855 *** binutils to release 2.9.1 or newer. Another option is to modify
12856 *** your PATH or compiler configuration so that the native linker is
12857 *** used, and then restart.
12860 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12861 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12869 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12871 hardcode_direct_F77=yes
12872 hardcode_shlibpath_var_F77=no
12876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12885 if test "$ld_shlibs_F77" = yes; then
12886 runpath_var=LD_RUN_PATH
12887 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12888 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12889 # ancient GNU ld didn't support --whole-archive et. al.
12890 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12891 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12893 whole_archive_flag_spec_F77=
12897 # PORTME fill in a description of your system's linker (not GNU ld)
12900 allow_undefined_flag_F77=unsupported
12901 always_export_symbols_F77=yes
12902 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'
12903 # Note: this linker hardcodes the directories in LIBPATH if there
12904 # are no directories specified by -L.
12905 hardcode_minus_L_F77=yes
12906 if test "$GCC" = yes && test -z "$link_static_flag"; then
12907 # Neither direct hardcoding nor static linking is supported with a
12909 hardcode_direct_F77=unsupported
12914 if test "$host_cpu" = ia64; then
12915 # On IA64, the linker does run time linking by default, so we don't
12916 # have to do anything special.
12917 aix_use_runtimelinking=no
12918 exp_sym_flag='-Bexport'
12921 # If we're using GNU nm, then we don't want the "-C" option.
12922 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12923 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12924 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'
12926 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'
12928 aix_use_runtimelinking=no
12930 # Test if we are trying to use run time linking or normal
12931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12932 # need to do runtime linking.
12933 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12934 for ld_flag in $LDFLAGS; do
12935 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12936 aix_use_runtimelinking=yes
12942 exp_sym_flag='-bexport'
12943 no_entry_flag='-bnoentry'
12946 # When large executables or shared objects are built, AIX ld can
12947 # have problems creating the table of contents. If linking a library
12948 # or program results in "error TOC overflow" add -mminimal-toc to
12949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12952 archive_cmds_F77=''
12953 hardcode_direct_F77=yes
12954 hardcode_libdir_separator_F77=':'
12955 link_all_deplibs_F77=yes
12957 if test "$GCC" = yes; then
12958 case $host_os in aix4.012|aix4.012.*)
12959 # We only want to do this on AIX 4.2 and lower, the check
12960 # below for broken collect2 doesn't work under 4.3+
12961 collect2name=`${CC} -print-prog-name=collect2`
12962 if test -f "$collect2name" && \
12963 strings "$collect2name" | grep resolve_lib_name >/dev/null
12965 # We have reworked collect2
12966 hardcode_direct_F77=yes
12968 # We have old collect2
12969 hardcode_direct_F77=unsupported
12970 # It fails to find uninstalled libraries when the uninstalled
12971 # path is not listed in the libpath. Setting hardcode_minus_L
12972 # to unsupported forces relinking
12973 hardcode_minus_L_F77=yes
12974 hardcode_libdir_flag_spec_F77='-L$libdir'
12975 hardcode_libdir_separator_F77=
12978 shared_flag='-shared'
12981 if test "$host_cpu" = ia64; then
12982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12983 # chokes on -Wl,-G. The following line is correct:
12986 if test "$aix_use_runtimelinking" = yes; then
12987 shared_flag='${wl}-G'
12989 shared_flag='${wl}-bM:SRE'
12994 # It seems that -bexpall does not export symbols beginning with
12995 # underscore (_), so it is better to generate a list of symbols to export.
12996 always_export_symbols_F77=yes
12997 if test "$aix_use_runtimelinking" = yes; then
12998 # Warning - without using the other runtime loading flags (-brtl),
12999 # -berok will link without error, but may produce a broken library.
13000 allow_undefined_flag_F77='-berok'
13001 # Determine the default libpath from the value encoded in an empty executable.
13002 cat >conftest.$ac_ext <<_ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>conftest.er1
13011 grep -v '^ *+' conftest.er1 >conftest.err
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_f77_werror_flag"
13017 || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13032 # Check for a 64-bit object if we didn't find anything.
13033 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; }
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13040 rm -f conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13044 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13045 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"
13047 if test "$host_cpu" = ia64; then
13048 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13049 allow_undefined_flag_F77="-z nodefs"
13050 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"
13052 # Determine the default libpath from the value encoded in an empty executable.
13053 cat >conftest.$ac_ext <<_ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060 (eval $ac_link) 2>conftest.er1
13062 grep -v '^ *+' conftest.er1 >conftest.err
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -z "$ac_f77_werror_flag"
13068 || test ! -s conftest.err'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13083 # Check for a 64-bit object if we didn't find anything.
13084 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; }
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13091 rm -f conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13095 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13096 # Warning - without using the other run time loading flags,
13097 # -berok will link without error, but may produce a broken library.
13098 no_undefined_flag_F77=' ${wl}-bernotok'
13099 allow_undefined_flag_F77=' ${wl}-berok'
13100 # -bexpall does not export symbols beginning with underscore (_)
13101 always_export_symbols_F77=yes
13102 # Exported symbols can be pulled into shared objects from archives
13103 whole_archive_flag_spec_F77=' '
13104 archive_cmds_need_lc_F77=yes
13105 # This is similar to how AIX traditionally builds it's shared libraries.
13106 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'
13112 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)'
13113 hardcode_libdir_flag_spec_F77='-L$libdir'
13114 hardcode_minus_L_F77=yes
13115 # see comment about different semantics on the GNU ld section
13120 export_dynamic_flag_spec_F77=-rdynamic
13123 cygwin* | mingw* | pw32*)
13124 # When not using gcc, we currently assume that we are using
13125 # Microsoft Visual C++.
13126 # hardcode_libdir_flag_spec is actually meaningless, as there is
13127 # no search path for DLLs.
13128 hardcode_libdir_flag_spec_F77=' '
13129 allow_undefined_flag_F77=unsupported
13130 # Tell ltmain to make .lib files, not .a files.
13132 # Tell ltmain to make .dll files, not .so files.
13134 # FIXME: Setting linknames here is a bad hack.
13135 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13136 # The linker will automatically build a .lib file if we build a DLL.
13137 old_archive_From_new_cmds_F77='true'
13138 # FIXME: Should let the user specify the lib program.
13139 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13140 fix_srcfile_path='`cygpath -w "$srcfile"`'
13141 enable_shared_with_static_runtimes_F77=yes
13144 darwin* | rhapsody*)
13145 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13146 archive_cmds_need_lc_F77=no
13148 rhapsody* | darwin1.[012])
13149 allow_undefined_flag_F77='-undefined suppress'
13152 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13155 # FIXME: Relying on posixy $() will cause problems for
13156 # cross-compilation, but unfortunately the echo tests do not
13157 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13158 # `"' quotes if we put them in here... so don't!
13159 lt_int_apple_cc_single_mod=no
13160 output_verbose_link_cmd='echo'
13161 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13162 lt_int_apple_cc_single_mod=yes
13164 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13165 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13167 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'
13169 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13170 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13171 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13172 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}'
13174 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}'
13176 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}'
13177 hardcode_direct_F77=no
13178 hardcode_automatic_F77=yes
13179 hardcode_shlibpath_var_F77=unsupported
13180 whole_archive_flag_spec_F77='-all_load $convenience'
13181 link_all_deplibs_F77=yes
13186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13187 hardcode_libdir_flag_spec_F77='-L$libdir'
13188 hardcode_shlibpath_var_F77=no
13195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13196 # support. Future versions do this automatically, but an explicit c++rt0.o
13197 # does not break anything, and helps significantly (at the cost of a little
13200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13201 hardcode_libdir_flag_spec_F77='-R$libdir'
13202 hardcode_direct_F77=yes
13203 hardcode_shlibpath_var_F77=no
13206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13208 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13209 hardcode_direct_F77=yes
13210 hardcode_minus_L_F77=yes
13211 hardcode_shlibpath_var_F77=no
13214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13216 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13217 hardcode_libdir_flag_spec_F77='-R$libdir'
13218 hardcode_direct_F77=yes
13219 hardcode_shlibpath_var_F77=no
13223 if test "$GCC" = yes; then
13224 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'
13226 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'
13228 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13229 hardcode_libdir_separator_F77=:
13230 hardcode_direct_F77=yes
13232 # hardcode_minus_L: Not really in the search PATH,
13233 # but as the default location of the library.
13234 hardcode_minus_L_F77=yes
13235 export_dynamic_flag_spec_F77='${wl}-E'
13239 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13240 case "$host_cpu" in
13242 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13245 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13249 case "$host_cpu" in
13251 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13254 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13258 if test "$with_gnu_ld" = no; then
13259 case "$host_cpu" in
13261 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13262 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13263 hardcode_libdir_separator_F77=:
13264 hardcode_direct_F77=no
13265 hardcode_shlibpath_var_F77=no
13268 hardcode_libdir_flag_spec_F77='-L$libdir'
13269 hardcode_direct_F77=no
13270 hardcode_shlibpath_var_F77=no
13272 # hardcode_minus_L: Not really in the search PATH,
13273 # but as the default location of the library.
13274 hardcode_minus_L_F77=yes
13277 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13278 hardcode_libdir_separator_F77=:
13279 hardcode_direct_F77=yes
13280 export_dynamic_flag_spec_F77='${wl}-E'
13282 # hardcode_minus_L: Not really in the search PATH,
13283 # but as the default location of the library.
13284 hardcode_minus_L_F77=yes
13290 irix5* | irix6* | nonstopux*)
13291 if test "$GCC" = yes; then
13292 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'
13294 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'
13295 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13297 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13298 hardcode_libdir_separator_F77=:
13299 link_all_deplibs_F77=yes
13303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13304 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13306 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13308 hardcode_libdir_flag_spec_F77='-R$libdir'
13309 hardcode_direct_F77=yes
13310 hardcode_shlibpath_var_F77=no
13314 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13315 hardcode_direct_F77=yes
13316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13317 hardcode_libdir_separator_F77=:
13318 hardcode_shlibpath_var_F77=no
13322 hardcode_direct_F77=yes
13323 hardcode_shlibpath_var_F77=no
13324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13325 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13326 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13327 export_dynamic_flag_spec_F77='${wl}-E'
13330 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13331 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13332 hardcode_libdir_flag_spec_F77='-R$libdir'
13335 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13336 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13343 hardcode_libdir_flag_spec_F77='-L$libdir'
13344 hardcode_minus_L_F77=yes
13345 allow_undefined_flag_F77=unsupported
13346 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'
13347 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13351 if test "$GCC" = yes; then
13352 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13353 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'
13355 allow_undefined_flag_F77=' -expect_unresolved \*'
13356 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'
13358 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13359 hardcode_libdir_separator_F77=:
13362 osf4* | osf5*) # as osf3* with the addition of -msym flag
13363 if test "$GCC" = yes; then
13364 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13365 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'
13366 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13368 allow_undefined_flag_F77=' -expect_unresolved \*'
13369 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'
13370 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~
13371 $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'
13373 # Both c and cxx compiler support -rpath directly
13374 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13376 hardcode_libdir_separator_F77=:
13380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13381 hardcode_shlibpath_var_F77=no
13382 export_dynamic_flag_spec_F77='${wl}-Bexport'
13383 runpath_var=LD_RUN_PATH
13384 hardcode_runpath_var=yes
13388 no_undefined_flag_F77=' -z text'
13389 if test "$GCC" = yes; then
13390 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13394 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13395 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13398 hardcode_libdir_flag_spec_F77='-R$libdir'
13399 hardcode_shlibpath_var_F77=no
13401 solaris2.[0-5] | solaris2.[0-5].*) ;;
13402 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13403 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13405 link_all_deplibs_F77=yes
13409 if test "x$host_vendor" = xsequent; then
13410 # Use $CC to link under sequent, because it throws in some extra .o
13411 # files that make .init and .fini sections work.
13412 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13414 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13416 hardcode_libdir_flag_spec_F77='-L$libdir'
13417 hardcode_direct_F77=yes
13418 hardcode_minus_L_F77=yes
13419 hardcode_shlibpath_var_F77=no
13423 case $host_vendor in
13425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426 hardcode_direct_F77=yes # is this really true???
13429 ## LD is ld it makes a PLAMLIB
13430 ## CC just makes a GrossModule.
13431 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13432 reload_cmds_F77='$CC -r -o $output$reload_objs'
13433 hardcode_direct_F77=no
13436 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13440 runpath_var='LD_RUN_PATH'
13441 hardcode_shlibpath_var_F77=no
13445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_shlibpath_var_F77=no
13447 export_dynamic_flag_spec_F77='-Bexport'
13451 if test -d /usr/nec; then
13452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453 hardcode_shlibpath_var_F77=no
13454 runpath_var=LD_RUN_PATH
13455 hardcode_runpath_var=yes
13461 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13462 hardcode_direct_F77=yes
13463 hardcode_minus_L_F77=no
13464 hardcode_shlibpath_var_F77=no
13465 hardcode_runpath_var=yes
13466 runpath_var=LD_RUN_PATH
13469 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13470 no_undefined_flag_F77='${wl}-z ${wl}text'
13471 if test "$GCC" = yes; then
13472 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13474 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13476 runpath_var='LD_RUN_PATH'
13477 hardcode_shlibpath_var_F77=no
13481 no_undefined_flag_F77=' -z text'
13482 # $CC -shared without GNU ld will not create a library from C++
13483 # object files and a static libstdc++, better avoid it by now
13484 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13485 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13486 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13487 hardcode_libdir_flag_spec_F77=
13488 hardcode_shlibpath_var_F77=no
13489 runpath_var='LD_RUN_PATH'
13493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13494 hardcode_libdir_flag_spec_F77='-L$libdir'
13495 hardcode_shlibpath_var_F77=no
13504 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13505 echo "${ECHO_T}$ld_shlibs_F77" >&6
13506 test "$ld_shlibs_F77" = no && can_build_shared=no
13508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13509 if test "$GCC" = yes; then
13510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13514 # Do we need to explicitly link libc?
13516 case "x$archive_cmds_need_lc_F77" in
13518 # Assume -lc should be added
13519 archive_cmds_need_lc_F77=yes
13521 if test "$enable_shared" = yes && test "$GCC" = yes; then
13522 case $archive_cmds_F77 in
13524 # FIXME: we may have to deal with multi-command sequences.
13527 # Test whether the compiler implicitly links with -lc since on some
13528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13529 # to ld, don't add -lc before -lgcc.
13530 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } 2>conftest.err; then
13542 libobjs=conftest.$ac_objext
13544 wl=$lt_prog_compiler_wl_F77
13550 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13551 allow_undefined_flag_F77=
13552 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13553 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }
13558 archive_cmds_need_lc_F77=no
13560 archive_cmds_need_lc_F77=yes
13562 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13564 cat conftest.err 1>&5
13567 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13568 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13575 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13576 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13577 hardcode_action_F77=
13578 if test -n "$hardcode_libdir_flag_spec_F77" || \
13579 test -n "$runpath_var F77" || \
13580 test "X$hardcode_automatic_F77"="Xyes" ; then
13582 # We can hardcode non-existant directories.
13583 if test "$hardcode_direct_F77" != no &&
13584 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13585 # have to relink, otherwise we might link with an installed library
13586 # when we should be linking with a yet-to-be-installed one
13587 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13588 test "$hardcode_minus_L_F77" != no; then
13589 # Linking always hardcodes the temporary library directory.
13590 hardcode_action_F77=relink
13592 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13593 hardcode_action_F77=immediate
13596 # We cannot hardcode anything, or else we can only hardcode existing
13598 hardcode_action_F77=unsupported
13600 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13601 echo "${ECHO_T}$hardcode_action_F77" >&6
13603 if test "$hardcode_action_F77" = relink; then
13604 # Fast installation is not supported
13605 enable_fast_install=no
13606 elif test "$shlibpath_overrides_runpath" = yes ||
13607 test "$enable_shared" = no; then
13608 # Fast installation is not necessary
13609 enable_fast_install=needless
13614 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13615 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13616 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13618 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13619 echo "$as_me:$LINENO: result: yes" >&5
13620 echo "${ECHO_T}yes" >&6
13622 # FIXME - insert some real tests, host_os isn't really good enough
13625 if test -n "$STRIP" ; then
13626 striplib="$STRIP -x"
13627 echo "$as_me:$LINENO: result: yes" >&5
13628 echo "${ECHO_T}yes" >&6
13630 echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6
13635 echo "$as_me:$LINENO: result: no" >&5
13636 echo "${ECHO_T}no" >&6
13641 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13643 library_names_spec=
13644 libname_spec='lib$name'
13648 postuninstall_cmds=
13652 shlibpath_overrides_runpath=unknown
13654 dynamic_linker="$host_os ld.so"
13655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13656 if test "$GCC" = yes; then
13657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13659 # if the path contains ";" then we assume it to be the separator
13660 # otherwise default to the standard path separator (i.e. ":") - it is
13661 # assumed that no part of a normal pathname contains ";" but that should
13662 # okay in the real world where ";" in dirpaths is itself problematic.
13663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13670 need_lib_prefix=unknown
13671 hardcode_into_libs=no
13673 # when you set need_version to no, make sure it does not cause -set_version
13674 # flags to be left without arguments
13675 need_version=unknown
13680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13681 shlibpath_var=LIBPATH
13683 # AIX 3 has no versioning support, so we append a major version to the name.
13684 soname_spec='${libname}${release}${shared_ext}$major'
13691 hardcode_into_libs=yes
13692 if test "$host_cpu" = ia64; then
13693 # AIX 5 supports IA64
13694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13695 shlibpath_var=LD_LIBRARY_PATH
13697 # With GCC up to 2.95.x, collect2 would create an import file
13698 # for dependence libraries. The import file would start with
13699 # the line `#! .'. This would cause the generated library to
13700 # depend on `.', always an invalid library. This was fixed in
13701 # development snapshots of GCC prior to 3.0.
13703 aix4 | aix4.[01] | aix4.[01].*)
13704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13709 can_build_shared=no
13713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13714 # soname into executable. Probably we can add versioning support to
13715 # collect2, so additional links can be useful in future.
13716 if test "$aix_use_runtimelinking" = yes; then
13717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13718 # instead of lib<name>.a to let people know that these are not
13719 # typical AIX shared libraries.
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13722 # We preserve .a as extension for shared libraries through AIX4.2
13723 # and later when we are not doing run time linking.
13724 library_names_spec='${libname}${release}.a $libname.a'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13727 shlibpath_var=LIBPATH
13732 library_names_spec='$libname.ixlibrary $libname.a'
13733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13734 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'
13738 library_names_spec='${libname}${shared_ext}'
13739 dynamic_linker="$host_os ld.so"
13740 shlibpath_var=LIBRARY_PATH
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13749 shlibpath_var=LD_LIBRARY_PATH
13750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13752 # the default ld.so.conf also contains /usr/contrib/lib and
13753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13754 # libtool to hard-code these into programs
13757 cygwin* | mingw* | pw32*)
13758 version_type=windows
13763 case $GCC,$host_os in
13764 yes,cygwin* | yes,mingw* | yes,pw32*)
13765 library_names_spec='$libname.dll.a'
13766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13767 postinstall_cmds='base_file=`basename \${file}`~
13768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13769 dldir=$destdir/`dirname \$dlpath`~
13770 test -d \$dldir || mkdir -p \$dldir~
13771 $install_prog $dir/$dlname \$dldir/$dlname'
13772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13773 dlpath=$dir/\$dldll~
13775 shlibpath_overrides_runpath=yes
13779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13781 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13784 # MinGW DLLs use traditional 'lib' prefix
13785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13788 # It is most probably a Windows format PATH printed by
13789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13790 # path with ; separators, and with drive letters. We can handle the
13791 # drive letters (cygwin fileutils understands them), so leave them,
13792 # especially as we might pass files found there to a mingw objdump,
13793 # which wouldn't understand a cygwinified path. Ahh.
13794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13800 # pw32 DLLs use 'pw' prefix rather than 'lib'
13801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13810 dynamic_linker='Win32 ld.exe'
13811 # FIXME: first we should search . and the directory the executable is in
13815 darwin* | rhapsody*)
13816 dynamic_linker="$host_os dyld"
13817 version_type=darwin
13820 # FIXME: Relying on posixy $() will cause problems for
13821 # cross-compilation, but unfortunately the echo tests do not
13822 # yet detect zsh echo's removal of \ escapes.
13823 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13824 soname_spec='${libname}${release}${major}$shared_ext'
13825 shlibpath_overrides_runpath=yes
13826 shlibpath_var=DYLD_LIBRARY_PATH
13827 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13828 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13829 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13830 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"`
13832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13840 soname_spec='${libname}${release}${shared_ext}$major'
13841 shlibpath_var=LD_LIBRARY_PATH
13849 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13850 version_type=freebsd-$objformat
13851 case $version_type in
13853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13862 shlibpath_var=LD_LIBRARY_PATH
13865 shlibpath_overrides_runpath=yes
13867 freebsd3.01* | freebsdelf3.01*)
13868 shlibpath_overrides_runpath=yes
13869 hardcode_into_libs=yes
13872 shlibpath_overrides_runpath=no
13873 hardcode_into_libs=yes
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13883 soname_spec='${libname}${release}${shared_ext}$major'
13884 shlibpath_var=LD_LIBRARY_PATH
13885 hardcode_into_libs=yes
13888 hpux9* | hpux10* | hpux11*)
13889 # Give a soname corresponding to the major version so that dld.sl refuses to
13890 # link against other versions.
13894 case "$host_cpu" in
13897 hardcode_into_libs=yes
13898 dynamic_linker="$host_os dld.so"
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902 soname_spec='${libname}${release}${shared_ext}$major'
13903 if test "X$HPUX_IA64_MODE" = X32; then
13904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13912 hardcode_into_libs=yes
13913 dynamic_linker="$host_os dld.sl"
13914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917 soname_spec='${libname}${release}${shared_ext}$major'
13918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13923 dynamic_linker="$host_os dld.sl"
13924 shlibpath_var=SHLIB_PATH
13925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927 soname_spec='${libname}${release}${shared_ext}$major'
13930 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13931 postinstall_cmds='chmod 555 $lib'
13934 irix5* | irix6* | nonstopux*)
13936 nonstopux*) version_type=nonstopux ;;
13938 if test "$lt_cv_prog_gnu_ld" = yes; then
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13949 irix5* | nonstopux*)
13950 libsuff= shlibsuff=
13953 case $LD in # libtool.m4 will add one of these switches to LD
13954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13955 libsuff= shlibsuff= libmagic=32-bit;;
13956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13957 libsuff=32 shlibsuff=N32 libmagic=N32;;
13958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13960 *) libsuff= shlibsuff= libmagic=never-match;;
13964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13965 shlibpath_overrides_runpath=no
13966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13968 hardcode_into_libs=yes
13971 # No shared lib support for Linux oldld, aout, or coff.
13972 linux*oldld* | linux*aout* | linux*coff*)
13976 # This must be Linux ELF.
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13982 soname_spec='${libname}${release}${shared_ext}$major'
13983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 shlibpath_overrides_runpath=no
13986 # This implies no fast_install, which is unacceptable.
13987 # Some rework will be needed to allow for fast_install
13988 # before this can be enabled.
13989 hardcode_into_libs=yes
13991 # We used to test for /lib/ld.so.1 and disable shared libraries on
13992 # powerpc, because MkLinux only supported shared libraries with the
13993 # GNU dynamic linker. Since this was broken with cross compilers,
13994 # most powerpc-linux boxes support dynamic linking these days and
13995 # people can always --disable-shared, the test was removed, and we
13996 # assume the GNU/Linux dynamic linker is in use.
13997 dynamic_linker='GNU/Linux ld.so'
14004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14007 dynamic_linker='NetBSD (a.out) ld.so'
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14010 soname_spec='${libname}${release}${shared_ext}$major'
14011 dynamic_linker='NetBSD ld.elf_so'
14013 shlibpath_var=LD_LIBRARY_PATH
14014 shlibpath_overrides_runpath=yes
14015 hardcode_into_libs=yes
14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14021 shlibpath_var=LD_LIBRARY_PATH
14022 shlibpath_overrides_runpath=yes
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14030 soname_spec='${libname}${release}${shared_ext}$major'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=yes
14039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14041 shlibpath_var=LD_LIBRARY_PATH
14042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14044 openbsd2.[89] | openbsd2.[89].*)
14045 shlibpath_overrides_runpath=no
14048 shlibpath_overrides_runpath=yes
14052 shlibpath_overrides_runpath=yes
14057 libname_spec='$name'
14060 library_names_spec='$libname${shared_ext} $libname.a'
14061 dynamic_linker='OS/2 ld.exe'
14062 shlibpath_var=LIBPATH
14065 osf3* | osf4* | osf5*)
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14078 soname_spec='${libname}${release}${shared_ext}$major'
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 shlibpath_var=LD_LIBRARY_PATH
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14088 soname_spec='${libname}${release}${shared_ext}$major'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14091 hardcode_into_libs=yes
14092 # ldd complains unless libraries are executable
14093 postinstall_cmds='chmod +x $lib'
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 shlibpath_overrides_runpath=yes
14102 if test "$with_gnu_ld" = yes; then
14108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 case $host_vendor in
14115 shlibpath_overrides_runpath=no
14117 export_dynamic_flag_spec='${wl}-Blargedynsym'
14118 runpath_var=LD_RUN_PATH
14126 shlibpath_overrides_runpath=no
14127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14133 if test -d /usr/nec ;then
14135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14136 soname_spec='$libname${shared_ext}.$major'
14137 shlibpath_var=LD_LIBRARY_PATH
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144 soname_spec='${libname}${release}${shared_ext}$major'
14145 shlibpath_var=LD_LIBRARY_PATH
14152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14153 echo "${ECHO_T}$dynamic_linker" >&6
14154 test "$dynamic_linker" = no && can_build_shared=no
14157 # The else clause should only fire when bootstrapping the
14158 # libtool distribution, otherwise you forgot to ship ltmain.sh
14159 # with your package, and you will get complaints that there are
14160 # no rules to generate ltmain.sh.
14161 if test -f "$ltmain"; then
14162 # See if we are running on zsh, and set the options which allow our commands through
14163 # without removal of \ escapes.
14164 if test -n "${ZSH_VERSION+set}" ; then
14165 setopt NO_GLOB_SUBST
14167 # Now quote all the things that may contain metacharacters while being
14168 # careful not to overquote the AC_SUBSTed values. We take copies of the
14169 # variables and quote the copies for generation of the libtool script.
14170 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14171 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14172 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14173 deplibs_check_method reload_flag reload_cmds need_locks \
14174 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14175 lt_cv_sys_global_symbol_to_c_name_address \
14176 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14177 old_postinstall_cmds old_postuninstall_cmds \
14181 lt_prog_compiler_wl_F77 \
14182 lt_prog_compiler_pic_F77 \
14183 lt_prog_compiler_static_F77 \
14184 lt_prog_compiler_no_builtin_flag_F77 \
14185 export_dynamic_flag_spec_F77 \
14186 thread_safe_flag_spec_F77 \
14187 whole_archive_flag_spec_F77 \
14188 enable_shared_with_static_runtimes_F77 \
14189 old_archive_cmds_F77 \
14190 old_archive_from_new_cmds_F77 \
14191 predep_objects_F77 \
14192 postdep_objects_F77 \
14195 compiler_lib_search_path_F77 \
14197 archive_expsym_cmds_F77 \
14198 postinstall_cmds_F77 \
14199 postuninstall_cmds_F77 \
14200 old_archive_from_expsyms_cmds_F77 \
14201 allow_undefined_flag_F77 \
14202 no_undefined_flag_F77 \
14203 export_symbols_cmds_F77 \
14204 hardcode_libdir_flag_spec_F77 \
14205 hardcode_libdir_flag_spec_ld_F77 \
14206 hardcode_libdir_separator_F77 \
14207 hardcode_automatic_F77 \
14209 module_expsym_cmds_F77 \
14210 lt_cv_prog_compiler_c_o_F77 \
14211 exclude_expsyms_F77 \
14212 include_expsyms_F77; do
14215 old_archive_cmds_F77 | \
14216 old_archive_from_new_cmds_F77 | \
14217 archive_cmds_F77 | \
14218 archive_expsym_cmds_F77 | \
14219 module_cmds_F77 | \
14220 module_expsym_cmds_F77 | \
14221 old_archive_from_expsyms_cmds_F77 | \
14222 export_symbols_cmds_F77 | \
14223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14224 postinstall_cmds | postuninstall_cmds | \
14225 old_postinstall_cmds | old_postuninstall_cmds | \
14226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14227 # Double-quote double-evaled strings.
14228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14237 *'\$0 --fallback-echo"')
14238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14244 cat <<__EOF__ >> "$cfgfile"
14245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14249 # Shell to use when invoking shell scripts.
14252 # Whether or not to build shared libraries.
14253 build_libtool_libs=$enable_shared
14255 # Whether or not to build static libraries.
14256 build_old_libs=$enable_static
14258 # Whether or not to add -lc for building shared libraries.
14259 build_libtool_need_lc=$archive_cmds_need_lc_F77
14261 # Whether or not to disallow shared libs when runtime libs are static
14262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14264 # Whether or not to optimize for fast installation.
14265 fast_install=$enable_fast_install
14268 host_alias=$host_alias
14271 # An echo program that does not interpret backslashes.
14276 AR_FLAGS=$lt_AR_FLAGS
14281 # A language-specific compiler.
14282 CC=$lt_compiler_F77
14284 # Is the compiler the GNU C compiler?
14290 # The linker used to build libraries.
14293 # Whether we need hard or soft links.
14296 # A BSD-compatible nm program.
14299 # A symbol stripping program
14302 # Used to examine libraries when file_magic_cmd begins "file"
14303 MAGIC_CMD=$MAGIC_CMD
14305 # Used on cygwin: DLL creation program.
14308 # Used on cygwin: object dumper.
14311 # Used on cygwin: assembler.
14314 # The name of the directory that contains temporary libtool files.
14317 # How to create reloadable object files.
14318 reload_flag=$lt_reload_flag
14319 reload_cmds=$lt_reload_cmds
14321 # How to pass a linker flag through the compiler.
14322 wl=$lt_lt_prog_compiler_wl_F77
14324 # Object file suffix (normally "o").
14325 objext="$ac_objext"
14327 # Old archive suffix (normally "a").
14330 # Shared library suffix (normally ".so").
14333 # Executable file suffix (normally "").
14336 # Additional compiler flags for building library objects.
14337 pic_flag=$lt_lt_prog_compiler_pic_F77
14340 # What is the maximum length of a command?
14341 max_cmd_len=$lt_cv_sys_max_cmd_len
14343 # Does compiler simultaneously support -c and -o options?
14344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14346 # Must we lock files when doing compilation ?
14347 need_locks=$lt_need_locks
14349 # Do we need the lib prefix for modules?
14350 need_lib_prefix=$need_lib_prefix
14352 # Do we need a version for libraries?
14353 need_version=$need_version
14355 # Whether dlopen is supported.
14356 dlopen_support=$enable_dlopen
14358 # Whether dlopen of programs is supported.
14359 dlopen_self=$enable_dlopen_self
14361 # Whether dlopen of statically linked programs is supported.
14362 dlopen_self_static=$enable_dlopen_self_static
14364 # Compiler flag to prevent dynamic linking.
14365 link_static_flag=$lt_lt_prog_compiler_static_F77
14367 # Compiler flag to turn off builtin functions.
14368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14370 # Compiler flag to allow reflexive dlopens.
14371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14373 # Compiler flag to generate shared objects directly from archives.
14374 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14376 # Compiler flag to generate thread-safe objects.
14377 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14379 # Library versioning type.
14380 version_type=$version_type
14382 # Format of library name prefix.
14383 libname_spec=$lt_libname_spec
14385 # List of archive names. First name is the real one, the rest are links.
14386 # The last name is the one that the linker finds with -lNAME.
14387 library_names_spec=$lt_library_names_spec
14389 # The coded name of the library, if different from the real name.
14390 soname_spec=$lt_soname_spec
14392 # Commands used to build and install an old-style archive.
14394 old_archive_cmds=$lt_old_archive_cmds_F77
14395 old_postinstall_cmds=$lt_old_postinstall_cmds
14396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14398 # Create an old-style archive from a shared archive.
14399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14401 # Create a temporary old-style archive to link instead of a shared archive.
14402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14404 # Commands used to build and install a shared archive.
14405 archive_cmds=$lt_archive_cmds_F77
14406 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14407 postinstall_cmds=$lt_postinstall_cmds
14408 postuninstall_cmds=$lt_postuninstall_cmds
14410 # Commands used to build a loadable module (assumed same as above if empty)
14411 module_cmds=$lt_module_cmds_F77
14412 module_expsym_cmds=$lt_module_expsym_cmds_F77
14414 # Commands to strip libraries.
14415 old_striplib=$lt_old_striplib
14416 striplib=$lt_striplib
14418 # Dependencies to place before the objects being linked to create a
14420 predep_objects=$lt_predep_objects_F77
14422 # Dependencies to place after the objects being linked to create a
14424 postdep_objects=$lt_postdep_objects_F77
14426 # Dependencies to place before the objects being linked to create a
14428 predeps=$lt_predeps_F77
14430 # Dependencies to place after the objects being linked to create a
14432 postdeps=$lt_postdeps_F77
14434 # The library search path used internally by the compiler when linking
14435 # a shared library.
14436 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14438 # Method to check whether dependent libraries are shared objects.
14439 deplibs_check_method=$lt_deplibs_check_method
14441 # Command to use when deplibs_check_method == file_magic.
14442 file_magic_cmd=$lt_file_magic_cmd
14444 # Flag that allows shared libraries with undefined symbols to be built.
14445 allow_undefined_flag=$lt_allow_undefined_flag_F77
14447 # Flag that forces no undefined symbols.
14448 no_undefined_flag=$lt_no_undefined_flag_F77
14450 # Commands used to finish a libtool library installation in a directory.
14451 finish_cmds=$lt_finish_cmds
14453 # Same as above, but a single script fragment to be evaled but not shown.
14454 finish_eval=$lt_finish_eval
14456 # Take the output of nm and produce a listing of raw symbols and C names.
14457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14459 # Transform the output of nm in a proper C declaration
14460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14462 # Transform the output of nm in a C name address pair
14463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14465 # This is the shared library runtime path variable.
14466 runpath_var=$runpath_var
14468 # This is the shared library path variable.
14469 shlibpath_var=$shlibpath_var
14471 # Is shlibpath searched before the hard-coded library search path?
14472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14474 # How to hardcode a shared library path into an executable.
14475 hardcode_action=$hardcode_action_F77
14477 # Whether we should hardcode library paths into libraries.
14478 hardcode_into_libs=$hardcode_into_libs
14480 # Flag to hardcode \$libdir into a binary during linking.
14481 # This must work even if \$libdir does not exist.
14482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14484 # If ld is used when linking, flag to hardcode \$libdir into
14485 # a binary during linking. This must work even if \$libdir does
14487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14489 # Whether we need a single -rpath flag with a separated argument.
14490 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14493 # resulting binary.
14494 hardcode_direct=$hardcode_direct_F77
14496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14497 # resulting binary.
14498 hardcode_minus_L=$hardcode_minus_L_F77
14500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14501 # the resulting binary.
14502 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14504 # Set to yes if building a shared library automatically hardcodes DIR into the library
14505 # and all subsequent libraries and executables linked against it.
14506 hardcode_automatic=$hardcode_automatic_F77
14508 # Variables whose values should be saved in libtool wrapper scripts and
14509 # restored at relink time.
14510 variables_saved_for_relink="$variables_saved_for_relink"
14512 # Whether libtool must link a program against all its dependency libraries.
14513 link_all_deplibs=$link_all_deplibs_F77
14515 # Compile-time system search path for libraries
14516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14518 # Run-time system search path for libraries
14519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14521 # Fix the shell variable \$srcfile for the compiler.
14522 fix_srcfile_path="$fix_srcfile_path_F77"
14524 # Set to yes if exported symbols are required.
14525 always_export_symbols=$always_export_symbols_F77
14527 # The commands to list exported symbols.
14528 export_symbols_cmds=$lt_export_symbols_cmds_F77
14530 # The commands to extract the exported symbol list from a shared archive.
14531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14533 # Symbols that should not be listed in the preloaded symbols.
14534 exclude_expsyms=$lt_exclude_expsyms_F77
14536 # Symbols that must always be exported.
14537 include_expsyms=$lt_include_expsyms_F77
14539 # ### END LIBTOOL TAG CONFIG: $tagname
14545 # If there is no Makefile yet, we rely on a make rule to execute
14546 # `config.status --recheck' to rerun these tests and create the
14547 # libtool script then.
14548 test -f Makefile && make "$ltmain"
14553 ac_cpp='$CPP $CPPFLAGS'
14554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14566 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14570 # Source file extension for Java test sources.
14573 # Object file extension for compiled Java test sources.
14577 # Code to be used in simple compile tests
14578 lt_simple_compile_test_code="class foo {}\n"
14580 # Code to be used in simple link tests
14581 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14585 # If no C compiler was specified, use CC.
14588 # Allow CC to be a program name with arguments.
14592 # Allow CC to be a program name with arguments.
14598 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14599 archive_cmds_need_lc_GCJ=no
14602 ## There is no encapsulation within the following macros, do not change
14603 ## the running order or otherwise move them around unless you know exactly
14604 ## what you are doing...
14606 lt_prog_compiler_no_builtin_flag_GCJ=
14608 if test "$GCC" = yes; then
14609 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14611 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14612 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14613 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 lt_cv_prog_compiler_rtti_exceptions=no
14617 ac_outfile=conftest.$ac_objext
14618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14619 lt_compiler_flag="-fno-rtti -fno-exceptions"
14620 # Insert the option either (1) after the last *FLAGS variable, or
14621 # (2) before a word containing "conftest.", or (3) at the end.
14622 # Note that $ac_compile itself does not contain backslashes and begins
14623 # with a dollar sign (not a hyphen), so the echo should work correctly.
14624 # The option is referenced via a variable to avoid confusing sed.
14625 lt_compile=`echo "$ac_compile" | $SED \
14626 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14628 -e 's:$: $lt_compiler_flag:'`
14629 (eval echo "\"\$as_me:14629: $lt_compile\"" >&5)
14630 (eval "$lt_compile" 2>conftest.err)
14632 cat conftest.err >&5
14633 echo "$as_me:14633: \$? = $ac_status" >&5
14634 if (exit $ac_status) && test -s "$ac_outfile"; then
14635 # The compiler can only warn and ignore the option if not recognized
14636 # So say no if there are warnings
14637 if test ! -s conftest.err; then
14638 lt_cv_prog_compiler_rtti_exceptions=yes
14644 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14645 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14647 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14648 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14655 lt_prog_compiler_wl_GCJ=
14656 lt_prog_compiler_pic_GCJ=
14657 lt_prog_compiler_static_GCJ=
14659 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14660 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14662 if test "$GCC" = yes; then
14663 lt_prog_compiler_wl_GCJ='-Wl,'
14664 lt_prog_compiler_static_GCJ='-static'
14668 # All AIX code is PIC.
14669 if test "$host_cpu" = ia64; then
14670 # AIX 5 now supports IA64 processor
14671 lt_prog_compiler_static_GCJ='-Bstatic'
14676 # FIXME: we need at least 68020 code to build shared libraries, but
14677 # adding the `-m68020' flag to GCC prevents building anything better,
14679 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14682 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14683 # PIC is the default for these OSes.
14686 mingw* | pw32* | os2*)
14687 # This hack is so that the source file can tell whether it is being
14688 # built for inclusion in a dll (and should export symbols for example).
14689 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14692 darwin* | rhapsody*)
14693 # PIC is the default on this platform
14694 # Common symbols not allowed in MH_DYLIB files
14695 lt_prog_compiler_pic_GCJ='-fno-common'
14699 # Just because we use GCC doesn't mean we suddenly get shared libraries
14700 # on systems that don't support them.
14701 lt_prog_compiler_can_build_shared_GCJ=no
14706 if test -d /usr/nec; then
14707 lt_prog_compiler_pic_GCJ=-Kconform_pic
14712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14713 # not for PA HP-UX.
14714 case "$host_cpu" in
14719 lt_prog_compiler_pic_GCJ='-fPIC'
14725 lt_prog_compiler_pic_GCJ='-fPIC'
14729 # PORTME Check for flag to pass linker flags through the system compiler.
14732 lt_prog_compiler_wl_GCJ='-Wl,'
14733 if test "$host_cpu" = ia64; then
14734 # AIX 5 now supports IA64 processor
14735 lt_prog_compiler_static_GCJ='-Bstatic'
14737 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14741 mingw* | pw32* | os2*)
14742 # This hack is so that the source file can tell whether it is being
14743 # built for inclusion in a dll (and should export symbols for example).
14744 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14747 hpux9* | hpux10* | hpux11*)
14748 lt_prog_compiler_wl_GCJ='-Wl,'
14749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14750 # not for PA HP-UX.
14751 case "$host_cpu" in
14756 lt_prog_compiler_pic_GCJ='+Z'
14759 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14760 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14763 irix5* | irix6* | nonstopux*)
14764 lt_prog_compiler_wl_GCJ='-Wl,'
14765 # PIC (with -KPIC) is the default.
14766 lt_prog_compiler_static_GCJ='-non_shared'
14770 lt_prog_compiler_pic_GCJ='-KPIC'
14771 lt_prog_compiler_static_GCJ='-Bstatic'
14777 lt_prog_compiler_wl_GCJ='-Wl,'
14778 lt_prog_compiler_pic_GCJ='-KPIC'
14779 lt_prog_compiler_static_GCJ='-static'
14782 lt_prog_compiler_wl_GCJ='-Wl,'
14783 # All Alpha code is PIC.
14784 lt_prog_compiler_static_GCJ='-non_shared'
14789 osf3* | osf4* | osf5*)
14790 lt_prog_compiler_wl_GCJ='-Wl,'
14791 # All OSF/1 code is PIC.
14792 lt_prog_compiler_static_GCJ='-non_shared'
14796 lt_prog_compiler_pic_GCJ='-Kpic'
14797 lt_prog_compiler_static_GCJ='-dn'
14801 lt_prog_compiler_wl_GCJ='-Wl,'
14802 lt_prog_compiler_pic_GCJ='-KPIC'
14803 lt_prog_compiler_static_GCJ='-Bstatic'
14807 lt_prog_compiler_wl_GCJ='-Qoption ld '
14808 lt_prog_compiler_pic_GCJ='-PIC'
14809 lt_prog_compiler_static_GCJ='-Bstatic'
14812 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14813 lt_prog_compiler_wl_GCJ='-Wl,'
14814 lt_prog_compiler_pic_GCJ='-KPIC'
14815 lt_prog_compiler_static_GCJ='-Bstatic'
14819 if test -d /usr/nec ;then
14820 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14821 lt_prog_compiler_static_GCJ='-Bstatic'
14826 lt_prog_compiler_pic_GCJ='-pic'
14827 lt_prog_compiler_static_GCJ='-Bstatic'
14831 lt_prog_compiler_can_build_shared_GCJ=no
14836 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14837 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14840 # Check to make sure the PIC flag actually works.
14842 if test -n "$lt_prog_compiler_pic_GCJ"; then
14843 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14844 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14845 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 lt_prog_compiler_pic_works_GCJ=no
14849 ac_outfile=conftest.$ac_objext
14850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14851 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14852 # Insert the option either (1) after the last *FLAGS variable, or
14853 # (2) before a word containing "conftest.", or (3) at the end.
14854 # Note that $ac_compile itself does not contain backslashes and begins
14855 # with a dollar sign (not a hyphen), so the echo should work correctly.
14856 # The option is referenced via a variable to avoid confusing sed.
14857 lt_compile=`echo "$ac_compile" | $SED \
14858 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14860 -e 's:$: $lt_compiler_flag:'`
14861 (eval echo "\"\$as_me:14861: $lt_compile\"" >&5)
14862 (eval "$lt_compile" 2>conftest.err)
14864 cat conftest.err >&5
14865 echo "$as_me:14865: \$? = $ac_status" >&5
14866 if (exit $ac_status) && test -s "$ac_outfile"; then
14867 # The compiler can only warn and ignore the option if not recognized
14868 # So say no if there are warnings
14869 if test ! -s conftest.err; then
14870 lt_prog_compiler_pic_works_GCJ=yes
14876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14877 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14879 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14880 case $lt_prog_compiler_pic_GCJ in
14882 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14885 lt_prog_compiler_pic_GCJ=
14886 lt_prog_compiler_can_build_shared_GCJ=no
14891 # For platforms which do not support PIC, -DPIC is meaningless:
14893 lt_prog_compiler_pic_GCJ=
14896 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14900 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14901 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14902 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 lt_cv_prog_compiler_c_o_GCJ=no
14906 $rm -r conftest 2>/dev/null
14910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14912 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14913 # that will create temporary files in the current directory regardless of
14914 # the output directory. Thus, making CWD read-only will cause this test
14915 # to fail, enabling locking or at least warning the user not to do parallel
14919 lt_compiler_flag="-o out/conftest2.$ac_objext"
14920 # Insert the option either (1) after the last *FLAGS variable, or
14921 # (2) before a word containing "conftest.", or (3) at the end.
14922 # Note that $ac_compile itself does not contain backslashes and begins
14923 # with a dollar sign (not a hyphen), so the echo should work correctly.
14924 lt_compile=`echo "$ac_compile" | $SED \
14925 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14927 -e 's:$: $lt_compiler_flag:'`
14928 (eval echo "\"\$as_me:14928: $lt_compile\"" >&5)
14929 (eval "$lt_compile" 2>out/conftest.err)
14931 cat out/conftest.err >&5
14932 echo "$as_me:14932: \$? = $ac_status" >&5
14933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14935 # The compiler can only warn and ignore the option if not recognized
14936 # So say no if there are warnings
14937 if test ! -s out/conftest.err; then
14938 lt_cv_prog_compiler_c_o_GCJ=yes
14942 $rm conftest* out/*
14949 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14950 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14953 hard_links="nottested"
14954 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14955 # do not overwrite the value of need_locks provided by the user
14956 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14957 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14962 ln conftest.a conftest.b 2>&5 || hard_links=no
14963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14964 echo "$as_me:$LINENO: result: $hard_links" >&5
14965 echo "${ECHO_T}$hard_links" >&6
14966 if test "$hard_links" = no; then
14967 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14968 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14975 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14976 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14979 allow_undefined_flag_GCJ=
14980 enable_shared_with_static_runtimes_GCJ=no
14982 archive_expsym_cmds_GCJ=
14983 old_archive_From_new_cmds_GCJ=
14984 old_archive_from_expsyms_cmds_GCJ=
14985 export_dynamic_flag_spec_GCJ=
14986 whole_archive_flag_spec_GCJ=
14987 thread_safe_flag_spec_GCJ=
14988 hardcode_libdir_flag_spec_GCJ=
14989 hardcode_libdir_flag_spec_ld_GCJ=
14990 hardcode_libdir_separator_GCJ=
14991 hardcode_direct_GCJ=no
14992 hardcode_minus_L_GCJ=no
14993 hardcode_shlibpath_var_GCJ=unsupported
14994 link_all_deplibs_GCJ=unknown
14995 hardcode_automatic_GCJ=no
14997 module_expsym_cmds_GCJ=
14998 always_export_symbols_GCJ=no
14999 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15000 # include_expsyms should be a list of space-separated symbols to be *always*
15001 # included in the symbol list
15002 include_expsyms_GCJ=
15003 # exclude_expsyms can be an extended regexp of symbols to exclude
15004 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15005 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15006 # as well as any symbol that contains `d'.
15007 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15009 # platforms (ab)use it in PIC code, but their linkers get confused if
15010 # the symbol is explicitly referenced. Since portable code cannot
15011 # rely on this symbol name, it's probably fine to never include it in
15012 # preloaded symbol tables.
15013 extract_expsyms_cmds=
15016 cygwin* | mingw* | pw32*)
15017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15018 # When not using gcc, we currently assume that we are using
15019 # Microsoft Visual C++.
15020 if test "$GCC" != yes; then
15030 if test "$with_gnu_ld" = yes; then
15031 # If archive_cmds runs LD, not CC, wlarc should be empty
15034 # See if GNU ld supports shared libraries.
15036 aix3* | aix4* | aix5*)
15037 # On AIX/PPC, the GNU linker is very broken
15038 if test "$host_cpu" != ia64; then
15042 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15043 *** to be unable to reliably create shared libraries on AIX.
15044 *** Therefore, libtool is disabling shared libraries support. If you
15045 *** really care for shared libraries, you may want to modify your PATH
15046 *** so that a non-GNU linker is found, and then restart.
15053 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)'
15054 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15055 hardcode_minus_L_GCJ=yes
15057 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15058 # that the semantics of dynamic libraries on AmigaOS, at least up
15059 # to version 4, is to share data among multiple programs linked
15060 # with the same dynamic library. Since this doesn't match the
15061 # behavior of shared libraries on other platforms, we can't use
15067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15068 allow_undefined_flag_GCJ=unsupported
15069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15070 # support --undefined. This deserves some investigation. FIXME
15071 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15077 cygwin* | mingw* | pw32*)
15078 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15079 # as there is no search path for DLLs.
15080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15081 allow_undefined_flag_GCJ=unsupported
15082 always_export_symbols_GCJ=no
15083 enable_shared_with_static_runtimes_GCJ=yes
15084 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15086 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15087 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15088 # If the export-symbols file already is a .def file (1st line
15089 # is EXPORTS), use it as is; otherwise, prepend...
15090 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15091 cp $export_symbols $output_objdir/$soname.def;
15093 echo EXPORTS > $output_objdir/$soname.def;
15094 cat $export_symbols >> $output_objdir/$soname.def;
15096 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15104 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15107 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15113 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15118 *** create shared libraries on Solaris systems. Therefore, libtool
15119 *** is disabling shared libraries support. We urge you to upgrade GNU
15120 *** binutils to release 2.9.1 or newer. Another option is to modify
15121 *** your PATH or compiler configuration so that the native linker is
15122 *** used, and then restart.
15125 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15126 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15134 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_direct_GCJ=yes
15137 hardcode_shlibpath_var_GCJ=no
15141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15150 if test "$ld_shlibs_GCJ" = yes; then
15151 runpath_var=LD_RUN_PATH
15152 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15153 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15154 # ancient GNU ld didn't support --whole-archive et. al.
15155 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15156 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15158 whole_archive_flag_spec_GCJ=
15162 # PORTME fill in a description of your system's linker (not GNU ld)
15165 allow_undefined_flag_GCJ=unsupported
15166 always_export_symbols_GCJ=yes
15167 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'
15168 # Note: this linker hardcodes the directories in LIBPATH if there
15169 # are no directories specified by -L.
15170 hardcode_minus_L_GCJ=yes
15171 if test "$GCC" = yes && test -z "$link_static_flag"; then
15172 # Neither direct hardcoding nor static linking is supported with a
15174 hardcode_direct_GCJ=unsupported
15179 if test "$host_cpu" = ia64; then
15180 # On IA64, the linker does run time linking by default, so we don't
15181 # have to do anything special.
15182 aix_use_runtimelinking=no
15183 exp_sym_flag='-Bexport'
15186 # If we're using GNU nm, then we don't want the "-C" option.
15187 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15188 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15189 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'
15191 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'
15193 aix_use_runtimelinking=no
15195 # Test if we are trying to use run time linking or normal
15196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15197 # need to do runtime linking.
15198 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15199 for ld_flag in $LDFLAGS; do
15200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15201 aix_use_runtimelinking=yes
15207 exp_sym_flag='-bexport'
15208 no_entry_flag='-bnoentry'
15211 # When large executables or shared objects are built, AIX ld can
15212 # have problems creating the table of contents. If linking a library
15213 # or program results in "error TOC overflow" add -mminimal-toc to
15214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15217 archive_cmds_GCJ=''
15218 hardcode_direct_GCJ=yes
15219 hardcode_libdir_separator_GCJ=':'
15220 link_all_deplibs_GCJ=yes
15222 if test "$GCC" = yes; then
15223 case $host_os in aix4.012|aix4.012.*)
15224 # We only want to do this on AIX 4.2 and lower, the check
15225 # below for broken collect2 doesn't work under 4.3+
15226 collect2name=`${CC} -print-prog-name=collect2`
15227 if test -f "$collect2name" && \
15228 strings "$collect2name" | grep resolve_lib_name >/dev/null
15230 # We have reworked collect2
15231 hardcode_direct_GCJ=yes
15233 # We have old collect2
15234 hardcode_direct_GCJ=unsupported
15235 # It fails to find uninstalled libraries when the uninstalled
15236 # path is not listed in the libpath. Setting hardcode_minus_L
15237 # to unsupported forces relinking
15238 hardcode_minus_L_GCJ=yes
15239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15240 hardcode_libdir_separator_GCJ=
15243 shared_flag='-shared'
15246 if test "$host_cpu" = ia64; then
15247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15248 # chokes on -Wl,-G. The following line is correct:
15251 if test "$aix_use_runtimelinking" = yes; then
15252 shared_flag='${wl}-G'
15254 shared_flag='${wl}-bM:SRE'
15259 # It seems that -bexpall does not export symbols beginning with
15260 # underscore (_), so it is better to generate a list of symbols to export.
15261 always_export_symbols_GCJ=yes
15262 if test "$aix_use_runtimelinking" = yes; then
15263 # Warning - without using the other runtime loading flags (-brtl),
15264 # -berok will link without error, but may produce a broken library.
15265 allow_undefined_flag_GCJ='-berok'
15266 # Determine the default libpath from the value encoded in an empty executable.
15267 cat >conftest.$ac_ext <<_ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15282 rm -f conftest.$ac_objext conftest$ac_exeext
15283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15284 (eval $ac_link) 2>conftest.er1
15286 grep -v '^ *+' conftest.er1 >conftest.err
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -z "$ac_c_werror_flag"
15292 || test ! -s conftest.err'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15307 # Check for a 64-bit object if we didn't find anything.
15308 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; }
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15315 rm -f conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15319 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15320 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"
15322 if test "$host_cpu" = ia64; then
15323 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15324 allow_undefined_flag_GCJ="-z nodefs"
15325 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"
15327 # Determine the default libpath from the value encoded in an empty executable.
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345 (eval $ac_link) 2>conftest.er1
15347 grep -v '^ *+' conftest.er1 >conftest.err
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -z "$ac_c_werror_flag"
15353 || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest$ac_exeext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15368 # Check for a 64-bit object if we didn't find anything.
15369 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; }
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15376 rm -f conftest.err conftest.$ac_objext \
15377 conftest$ac_exeext conftest.$ac_ext
15378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15380 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15381 # Warning - without using the other run time loading flags,
15382 # -berok will link without error, but may produce a broken library.
15383 no_undefined_flag_GCJ=' ${wl}-bernotok'
15384 allow_undefined_flag_GCJ=' ${wl}-berok'
15385 # -bexpall does not export symbols beginning with underscore (_)
15386 always_export_symbols_GCJ=yes
15387 # Exported symbols can be pulled into shared objects from archives
15388 whole_archive_flag_spec_GCJ=' '
15389 archive_cmds_need_lc_GCJ=yes
15390 # This is similar to how AIX traditionally builds it's shared libraries.
15391 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'
15397 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)'
15398 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15399 hardcode_minus_L_GCJ=yes
15400 # see comment about different semantics on the GNU ld section
15405 export_dynamic_flag_spec_GCJ=-rdynamic
15408 cygwin* | mingw* | pw32*)
15409 # When not using gcc, we currently assume that we are using
15410 # Microsoft Visual C++.
15411 # hardcode_libdir_flag_spec is actually meaningless, as there is
15412 # no search path for DLLs.
15413 hardcode_libdir_flag_spec_GCJ=' '
15414 allow_undefined_flag_GCJ=unsupported
15415 # Tell ltmain to make .lib files, not .a files.
15417 # Tell ltmain to make .dll files, not .so files.
15419 # FIXME: Setting linknames here is a bad hack.
15420 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15421 # The linker will automatically build a .lib file if we build a DLL.
15422 old_archive_From_new_cmds_GCJ='true'
15423 # FIXME: Should let the user specify the lib program.
15424 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15425 fix_srcfile_path='`cygpath -w "$srcfile"`'
15426 enable_shared_with_static_runtimes_GCJ=yes
15429 darwin* | rhapsody*)
15430 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15431 archive_cmds_need_lc_GCJ=no
15433 rhapsody* | darwin1.[012])
15434 allow_undefined_flag_GCJ='-undefined suppress'
15437 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15440 # FIXME: Relying on posixy $() will cause problems for
15441 # cross-compilation, but unfortunately the echo tests do not
15442 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15443 # `"' quotes if we put them in here... so don't!
15444 lt_int_apple_cc_single_mod=no
15445 output_verbose_link_cmd='echo'
15446 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15447 lt_int_apple_cc_single_mod=yes
15449 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15450 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15452 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'
15454 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15456 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15457 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}'
15459 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}'
15461 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}'
15462 hardcode_direct_GCJ=no
15463 hardcode_automatic_GCJ=yes
15464 hardcode_shlibpath_var_GCJ=unsupported
15465 whole_archive_flag_spec_GCJ='-all_load $convenience'
15466 link_all_deplibs_GCJ=yes
15471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15473 hardcode_shlibpath_var_GCJ=no
15480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15481 # support. Future versions do this automatically, but an explicit c++rt0.o
15482 # does not break anything, and helps significantly (at the cost of a little
15485 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15486 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15487 hardcode_direct_GCJ=yes
15488 hardcode_shlibpath_var_GCJ=no
15491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15493 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494 hardcode_direct_GCJ=yes
15495 hardcode_minus_L_GCJ=yes
15496 hardcode_shlibpath_var_GCJ=no
15499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15501 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15502 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15503 hardcode_direct_GCJ=yes
15504 hardcode_shlibpath_var_GCJ=no
15508 if test "$GCC" = yes; then
15509 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'
15511 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'
15513 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15514 hardcode_libdir_separator_GCJ=:
15515 hardcode_direct_GCJ=yes
15517 # hardcode_minus_L: Not really in the search PATH,
15518 # but as the default location of the library.
15519 hardcode_minus_L_GCJ=yes
15520 export_dynamic_flag_spec_GCJ='${wl}-E'
15524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15525 case "$host_cpu" in
15527 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15534 case "$host_cpu" in
15536 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15543 if test "$with_gnu_ld" = no; then
15544 case "$host_cpu" in
15546 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15547 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15548 hardcode_libdir_separator_GCJ=:
15549 hardcode_direct_GCJ=no
15550 hardcode_shlibpath_var_GCJ=no
15553 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15554 hardcode_direct_GCJ=no
15555 hardcode_shlibpath_var_GCJ=no
15557 # hardcode_minus_L: Not really in the search PATH,
15558 # but as the default location of the library.
15559 hardcode_minus_L_GCJ=yes
15562 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15563 hardcode_libdir_separator_GCJ=:
15564 hardcode_direct_GCJ=yes
15565 export_dynamic_flag_spec_GCJ='${wl}-E'
15567 # hardcode_minus_L: Not really in the search PATH,
15568 # but as the default location of the library.
15569 hardcode_minus_L_GCJ=yes
15575 irix5* | irix6* | nonstopux*)
15576 if test "$GCC" = yes; then
15577 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'
15579 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'
15580 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15583 hardcode_libdir_separator_GCJ=:
15584 link_all_deplibs_GCJ=yes
15588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15591 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15594 hardcode_direct_GCJ=yes
15595 hardcode_shlibpath_var_GCJ=no
15599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600 hardcode_direct_GCJ=yes
15601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15602 hardcode_libdir_separator_GCJ=:
15603 hardcode_shlibpath_var_GCJ=no
15607 hardcode_direct_GCJ=yes
15608 hardcode_shlibpath_var_GCJ=no
15609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15610 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15612 export_dynamic_flag_spec_GCJ='${wl}-E'
15615 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15620 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15628 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15629 hardcode_minus_L_GCJ=yes
15630 allow_undefined_flag_GCJ=unsupported
15631 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'
15632 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15636 if test "$GCC" = yes; then
15637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15638 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'
15640 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15641 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'
15643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15644 hardcode_libdir_separator_GCJ=:
15647 osf4* | osf5*) # as osf3* with the addition of -msym flag
15648 if test "$GCC" = yes; then
15649 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15650 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'
15651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15653 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15654 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'
15655 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~
15656 $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'
15658 # Both c and cxx compiler support -rpath directly
15659 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15661 hardcode_libdir_separator_GCJ=:
15665 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_shlibpath_var_GCJ=no
15667 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15668 runpath_var=LD_RUN_PATH
15669 hardcode_runpath_var=yes
15673 no_undefined_flag_GCJ=' -z text'
15674 if test "$GCC" = yes; then
15675 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15677 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15679 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15681 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15683 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15684 hardcode_shlibpath_var_GCJ=no
15686 solaris2.[0-5] | solaris2.[0-5].*) ;;
15687 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15688 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15690 link_all_deplibs_GCJ=yes
15694 if test "x$host_vendor" = xsequent; then
15695 # Use $CC to link under sequent, because it throws in some extra .o
15696 # files that make .init and .fini sections work.
15697 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15699 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15702 hardcode_direct_GCJ=yes
15703 hardcode_minus_L_GCJ=yes
15704 hardcode_shlibpath_var_GCJ=no
15708 case $host_vendor in
15710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711 hardcode_direct_GCJ=yes # is this really true???
15714 ## LD is ld it makes a PLAMLIB
15715 ## CC just makes a GrossModule.
15716 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15717 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15718 hardcode_direct_GCJ=no
15721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15725 runpath_var='LD_RUN_PATH'
15726 hardcode_shlibpath_var_GCJ=no
15730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_shlibpath_var_GCJ=no
15732 export_dynamic_flag_spec_GCJ='-Bexport'
15736 if test -d /usr/nec; then
15737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738 hardcode_shlibpath_var_GCJ=no
15739 runpath_var=LD_RUN_PATH
15740 hardcode_runpath_var=yes
15746 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747 hardcode_direct_GCJ=yes
15748 hardcode_minus_L_GCJ=no
15749 hardcode_shlibpath_var_GCJ=no
15750 hardcode_runpath_var=yes
15751 runpath_var=LD_RUN_PATH
15754 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15755 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15756 if test "$GCC" = yes; then
15757 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15761 runpath_var='LD_RUN_PATH'
15762 hardcode_shlibpath_var_GCJ=no
15766 no_undefined_flag_GCJ=' -z text'
15767 # $CC -shared without GNU ld will not create a library from C++
15768 # object files and a static libstdc++, better avoid it by now
15769 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15772 hardcode_libdir_flag_spec_GCJ=
15773 hardcode_shlibpath_var_GCJ=no
15774 runpath_var='LD_RUN_PATH'
15778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15780 hardcode_shlibpath_var_GCJ=no
15789 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15790 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15791 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15794 if test "$GCC" = yes; then
15795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15799 # Do we need to explicitly link libc?
15801 case "x$archive_cmds_need_lc_GCJ" in
15803 # Assume -lc should be added
15804 archive_cmds_need_lc_GCJ=yes
15806 if test "$enable_shared" = yes && test "$GCC" = yes; then
15807 case $archive_cmds_GCJ in
15809 # FIXME: we may have to deal with multi-command sequences.
15812 # Test whether the compiler implicitly links with -lc since on some
15813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15814 # to ld, don't add -lc before -lgcc.
15815 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821 (eval $ac_compile) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } 2>conftest.err; then
15827 libobjs=conftest.$ac_objext
15829 wl=$lt_prog_compiler_wl_GCJ
15835 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15836 allow_undefined_flag_GCJ=
15837 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15838 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }
15843 archive_cmds_need_lc_GCJ=no
15845 archive_cmds_need_lc_GCJ=yes
15847 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15849 cat conftest.err 1>&5
15852 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15853 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15860 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15861 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15862 hardcode_action_GCJ=
15863 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15864 test -n "$runpath_var GCJ" || \
15865 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15867 # We can hardcode non-existant directories.
15868 if test "$hardcode_direct_GCJ" != no &&
15869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15870 # have to relink, otherwise we might link with an installed library
15871 # when we should be linking with a yet-to-be-installed one
15872 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15873 test "$hardcode_minus_L_GCJ" != no; then
15874 # Linking always hardcodes the temporary library directory.
15875 hardcode_action_GCJ=relink
15877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15878 hardcode_action_GCJ=immediate
15881 # We cannot hardcode anything, or else we can only hardcode existing
15883 hardcode_action_GCJ=unsupported
15885 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15886 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15888 if test "$hardcode_action_GCJ" = relink; then
15889 # Fast installation is not supported
15890 enable_fast_install=no
15891 elif test "$shlibpath_overrides_runpath" = yes ||
15892 test "$enable_shared" = no; then
15893 # Fast installation is not necessary
15894 enable_fast_install=needless
15899 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15900 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15901 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15902 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15903 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15904 echo "$as_me:$LINENO: result: yes" >&5
15905 echo "${ECHO_T}yes" >&6
15907 # FIXME - insert some real tests, host_os isn't really good enough
15910 if test -n "$STRIP" ; then
15911 striplib="$STRIP -x"
15912 echo "$as_me:$LINENO: result: yes" >&5
15913 echo "${ECHO_T}yes" >&6
15915 echo "$as_me:$LINENO: result: no" >&5
15916 echo "${ECHO_T}no" >&6
15920 echo "$as_me:$LINENO: result: no" >&5
15921 echo "${ECHO_T}no" >&6
15926 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15928 library_names_spec=
15929 libname_spec='lib$name'
15933 postuninstall_cmds=
15937 shlibpath_overrides_runpath=unknown
15939 dynamic_linker="$host_os ld.so"
15940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15941 if test "$GCC" = yes; then
15942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15944 # if the path contains ";" then we assume it to be the separator
15945 # otherwise default to the standard path separator (i.e. ":") - it is
15946 # assumed that no part of a normal pathname contains ";" but that should
15947 # okay in the real world where ";" in dirpaths is itself problematic.
15948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15955 need_lib_prefix=unknown
15956 hardcode_into_libs=no
15958 # when you set need_version to no, make sure it does not cause -set_version
15959 # flags to be left without arguments
15960 need_version=unknown
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15966 shlibpath_var=LIBPATH
15968 # AIX 3 has no versioning support, so we append a major version to the name.
15969 soname_spec='${libname}${release}${shared_ext}$major'
15976 hardcode_into_libs=yes
15977 if test "$host_cpu" = ia64; then
15978 # AIX 5 supports IA64
15979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15980 shlibpath_var=LD_LIBRARY_PATH
15982 # With GCC up to 2.95.x, collect2 would create an import file
15983 # for dependence libraries. The import file would start with
15984 # the line `#! .'. This would cause the generated library to
15985 # depend on `.', always an invalid library. This was fixed in
15986 # development snapshots of GCC prior to 3.0.
15988 aix4 | aix4.[01] | aix4.[01].*)
15989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15994 can_build_shared=no
15998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15999 # soname into executable. Probably we can add versioning support to
16000 # collect2, so additional links can be useful in future.
16001 if test "$aix_use_runtimelinking" = yes; then
16002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16003 # instead of lib<name>.a to let people know that these are not
16004 # typical AIX shared libraries.
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16007 # We preserve .a as extension for shared libraries through AIX4.2
16008 # and later when we are not doing run time linking.
16009 library_names_spec='${libname}${release}.a $libname.a'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16012 shlibpath_var=LIBPATH
16017 library_names_spec='$libname.ixlibrary $libname.a'
16018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16019 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'
16023 library_names_spec='${libname}${shared_ext}'
16024 dynamic_linker="$host_os ld.so"
16025 shlibpath_var=LIBRARY_PATH
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16037 # the default ld.so.conf also contains /usr/contrib/lib and
16038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16039 # libtool to hard-code these into programs
16042 cygwin* | mingw* | pw32*)
16043 version_type=windows
16048 case $GCC,$host_os in
16049 yes,cygwin* | yes,mingw* | yes,pw32*)
16050 library_names_spec='$libname.dll.a'
16051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16052 postinstall_cmds='base_file=`basename \${file}`~
16053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16054 dldir=$destdir/`dirname \$dlpath`~
16055 test -d \$dldir || mkdir -p \$dldir~
16056 $install_prog $dir/$dlname \$dldir/$dlname'
16057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16058 dlpath=$dir/\$dldll~
16060 shlibpath_overrides_runpath=yes
16064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16066 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16069 # MinGW DLLs use traditional 'lib' prefix
16070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16072 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16073 # It is most probably a Windows format PATH printed by
16074 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16075 # path with ; separators, and with drive letters. We can handle the
16076 # drive letters (cygwin fileutils understands them), so leave them,
16077 # especially as we might pass files found there to a mingw objdump,
16078 # which wouldn't understand a cygwinified path. Ahh.
16079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16085 # pw32 DLLs use 'pw' prefix rather than 'lib'
16086 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16095 dynamic_linker='Win32 ld.exe'
16096 # FIXME: first we should search . and the directory the executable is in
16100 darwin* | rhapsody*)
16101 dynamic_linker="$host_os dyld"
16102 version_type=darwin
16105 # FIXME: Relying on posixy $() will cause problems for
16106 # cross-compilation, but unfortunately the echo tests do not
16107 # yet detect zsh echo's removal of \ escapes.
16108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16109 soname_spec='${libname}${release}${major}$shared_ext'
16110 shlibpath_overrides_runpath=yes
16111 shlibpath_var=DYLD_LIBRARY_PATH
16112 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16113 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16114 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16115 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"`
16117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16125 soname_spec='${libname}${release}${shared_ext}$major'
16126 shlibpath_var=LD_LIBRARY_PATH
16134 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16135 version_type=freebsd-$objformat
16136 case $version_type in
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16147 shlibpath_var=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath=yes
16152 freebsd3.01* | freebsdelf3.01*)
16153 shlibpath_overrides_runpath=yes
16154 hardcode_into_libs=yes
16157 shlibpath_overrides_runpath=no
16158 hardcode_into_libs=yes
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16168 soname_spec='${libname}${release}${shared_ext}$major'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 hardcode_into_libs=yes
16173 hpux9* | hpux10* | hpux11*)
16174 # Give a soname corresponding to the major version so that dld.sl refuses to
16175 # link against other versions.
16179 case "$host_cpu" in
16182 hardcode_into_libs=yes
16183 dynamic_linker="$host_os dld.so"
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 if test "X$HPUX_IA64_MODE" = X32; then
16189 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16191 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16197 hardcode_into_libs=yes
16198 dynamic_linker="$host_os dld.sl"
16199 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202 soname_spec='${libname}${release}${shared_ext}$major'
16203 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16208 dynamic_linker="$host_os dld.sl"
16209 shlibpath_var=SHLIB_PATH
16210 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16215 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16216 postinstall_cmds='chmod 555 $lib'
16219 irix5* | irix6* | nonstopux*)
16221 nonstopux*) version_type=nonstopux ;;
16223 if test "$lt_cv_prog_gnu_ld" = yes; then
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16234 irix5* | nonstopux*)
16235 libsuff= shlibsuff=
16238 case $LD in # libtool.m4 will add one of these switches to LD
16239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16240 libsuff= shlibsuff= libmagic=32-bit;;
16241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16242 libsuff=32 shlibsuff=N32 libmagic=N32;;
16243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16245 *) libsuff= shlibsuff= libmagic=never-match;;
16249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16250 shlibpath_overrides_runpath=no
16251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16253 hardcode_into_libs=yes
16256 # No shared lib support for Linux oldld, aout, or coff.
16257 linux*oldld* | linux*aout* | linux*coff*)
16261 # This must be Linux ELF.
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16269 shlibpath_var=LD_LIBRARY_PATH
16270 shlibpath_overrides_runpath=no
16271 # This implies no fast_install, which is unacceptable.
16272 # Some rework will be needed to allow for fast_install
16273 # before this can be enabled.
16274 hardcode_into_libs=yes
16276 # We used to test for /lib/ld.so.1 and disable shared libraries on
16277 # powerpc, because MkLinux only supported shared libraries with the
16278 # GNU dynamic linker. Since this was broken with cross compilers,
16279 # most powerpc-linux boxes support dynamic linking these days and
16280 # people can always --disable-shared, the test was removed, and we
16281 # assume the GNU/Linux dynamic linker is in use.
16282 dynamic_linker='GNU/Linux ld.so'
16289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16292 dynamic_linker='NetBSD (a.out) ld.so'
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 dynamic_linker='NetBSD ld.elf_so'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 shlibpath_overrides_runpath=yes
16300 hardcode_into_libs=yes
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306 shlibpath_var=LD_LIBRARY_PATH
16307 shlibpath_overrides_runpath=yes
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 shlibpath_var=LD_LIBRARY_PATH
16317 shlibpath_overrides_runpath=yes
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16329 openbsd2.[89] | openbsd2.[89].*)
16330 shlibpath_overrides_runpath=no
16333 shlibpath_overrides_runpath=yes
16337 shlibpath_overrides_runpath=yes
16342 libname_spec='$name'
16345 library_names_spec='$libname${shared_ext} $libname.a'
16346 dynamic_linker='OS/2 ld.exe'
16347 shlibpath_var=LIBPATH
16350 osf3* | osf4* | osf5*)
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16363 soname_spec='${libname}${release}${shared_ext}$major'
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365 shlibpath_var=LD_LIBRARY_PATH
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 shlibpath_overrides_runpath=yes
16376 hardcode_into_libs=yes
16377 # ldd complains unless libraries are executable
16378 postinstall_cmds='chmod +x $lib'
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=yes
16387 if test "$with_gnu_ld" = yes; then
16393 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 case $host_vendor in
16400 shlibpath_overrides_runpath=no
16402 export_dynamic_flag_spec='${wl}-Blargedynsym'
16403 runpath_var=LD_RUN_PATH
16411 shlibpath_overrides_runpath=no
16412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16418 if test -d /usr/nec ;then
16420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16421 soname_spec='$libname${shared_ext}.$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 shlibpath_var=LD_LIBRARY_PATH
16437 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16438 echo "${ECHO_T}$dynamic_linker" >&6
16439 test "$dynamic_linker" = no && can_build_shared=no
16441 if test "x$enable_dlopen" != xyes; then
16442 enable_dlopen=unknown
16443 enable_dlopen_self=unknown
16444 enable_dlopen_self_static=unknown
16451 lt_cv_dlopen="load_add_on"
16453 lt_cv_dlopen_self=yes
16457 lt_cv_dlopen="LoadLibrary"
16462 lt_cv_dlopen="dlopen"
16467 # if libdl is installed we need to link against it
16468 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 ac_check_lib_save_LIBS=$LIBS
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16482 /* Override any gcc2 internal prototype to avoid an error. */
16486 /* We use char because int might match the return type of a gcc2
16487 builtin and then its argument prototype would still apply. */
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499 (eval $ac_link) 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag"
16507 || test ! -s conftest.err'
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } &&
16513 { ac_try='test -s conftest$ac_exeext'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 ac_cv_lib_dl_dlopen=yes
16521 echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16524 ac_cv_lib_dl_dlopen=no
16526 rm -f conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16528 LIBS=$ac_check_lib_save_LIBS
16530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16532 if test $ac_cv_lib_dl_dlopen = yes; then
16533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16536 lt_cv_dlopen="dyld"
16538 lt_cv_dlopen_self=yes
16545 echo "$as_me:$LINENO: checking for shl_load" >&5
16546 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16547 if test "${ac_cv_func_shl_load+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16558 #define shl_load innocuous_shl_load
16560 /* System header to define __stub macros and hopefully few prototypes,
16561 which can conflict with char shl_load (); below.
16562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563 <limits.h> exists even on freestanding compilers. */
16566 # include <limits.h>
16568 # include <assert.h>
16573 /* Override any gcc2 internal prototype to avoid an error. */
16578 /* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16581 /* The GNU C library defines this for functions which it implements
16582 to always fail with ENOSYS. Some functions are actually named
16583 something starting with __ and the normal name is an alias. */
16584 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16587 char (*f) () = shl_load;
16596 return f != shl_load;
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>conftest.er1
16605 grep -v '^ *+' conftest.er1 >conftest.err
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -z "$ac_c_werror_flag"
16611 || test ! -s conftest.err'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; } &&
16617 { ac_try='test -s conftest$ac_exeext'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 ac_cv_func_shl_load=yes
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 ac_cv_func_shl_load=no
16630 rm -f conftest.err conftest.$ac_objext \
16631 conftest$ac_exeext conftest.$ac_ext
16633 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16634 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16635 if test $ac_cv_func_shl_load = yes; then
16636 lt_cv_dlopen="shl_load"
16638 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16639 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16640 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 ac_check_lib_save_LIBS=$LIBS
16645 cat >conftest.$ac_ext <<_ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 /* Override any gcc2 internal prototype to avoid an error. */
16656 /* We use char because int might match the return type of a gcc2
16657 builtin and then its argument prototype would still apply. */
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>conftest.er1
16671 grep -v '^ *+' conftest.er1 >conftest.err
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -z "$ac_c_werror_flag"
16677 || test ! -s conftest.err'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try='test -s conftest$ac_exeext'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16689 ac_cv_lib_dld_shl_load=yes
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ac_cv_lib_dld_shl_load=no
16696 rm -f conftest.err conftest.$ac_objext \
16697 conftest$ac_exeext conftest.$ac_ext
16698 LIBS=$ac_check_lib_save_LIBS
16700 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16701 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16702 if test $ac_cv_lib_dld_shl_load = yes; then
16703 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16705 echo "$as_me:$LINENO: checking for dlopen" >&5
16706 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16707 if test "${ac_cv_func_dlopen+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16718 #define dlopen innocuous_dlopen
16720 /* System header to define __stub macros and hopefully few prototypes,
16721 which can conflict with char dlopen (); below.
16722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16723 <limits.h> exists even on freestanding compilers. */
16726 # include <limits.h>
16728 # include <assert.h>
16733 /* Override any gcc2 internal prototype to avoid an error. */
16738 /* We use char because int might match the return type of a gcc2
16739 builtin and then its argument prototype would still apply. */
16741 /* The GNU C library defines this for functions which it implements
16742 to always fail with ENOSYS. Some functions are actually named
16743 something starting with __ and the normal name is an alias. */
16744 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16747 char (*f) () = dlopen;
16756 return f != dlopen;
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16763 (eval $ac_link) 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_func_dlopen=yes
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 ac_cv_func_dlopen=no
16790 rm -f conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16793 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16794 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16795 if test $ac_cv_func_dlopen = yes; then
16796 lt_cv_dlopen="dlopen"
16798 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16799 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16800 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 ac_check_lib_save_LIBS=$LIBS
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16812 /* Override any gcc2 internal prototype to avoid an error. */
16816 /* We use char because int might match the return type of a gcc2
16817 builtin and then its argument prototype would still apply. */
16827 rm -f conftest.$ac_objext conftest$ac_exeext
16828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16829 (eval $ac_link) 2>conftest.er1
16831 grep -v '^ *+' conftest.er1 >conftest.err
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag"
16837 || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest$ac_exeext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_cv_lib_dl_dlopen=yes
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16854 ac_cv_lib_dl_dlopen=no
16856 rm -f conftest.err conftest.$ac_objext \
16857 conftest$ac_exeext conftest.$ac_ext
16858 LIBS=$ac_check_lib_save_LIBS
16860 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16861 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16862 if test $ac_cv_lib_dl_dlopen = yes; then
16863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16865 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16866 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16867 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 ac_check_lib_save_LIBS=$LIBS
16871 LIBS="-lsvld $LIBS"
16872 cat >conftest.$ac_ext <<_ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16879 /* Override any gcc2 internal prototype to avoid an error. */
16883 /* We use char because int might match the return type of a gcc2
16884 builtin and then its argument prototype would still apply. */
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16896 (eval $ac_link) 2>conftest.er1
16898 grep -v '^ *+' conftest.er1 >conftest.err
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag"
16904 || test ! -s conftest.err'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; } &&
16910 { ac_try='test -s conftest$ac_exeext'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_lib_svld_dlopen=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_lib_svld_dlopen=no
16923 rm -f conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16927 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16928 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16929 if test $ac_cv_lib_svld_dlopen = yes; then
16930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16932 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 ac_check_lib_save_LIBS=$LIBS
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16946 /* Override any gcc2 internal prototype to avoid an error. */
16950 /* We use char because int might match the return type of a gcc2
16951 builtin and then its argument prototype would still apply. */
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963 (eval $ac_link) 2>conftest.er1
16965 grep -v '^ *+' conftest.er1 >conftest.err
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag"
16971 || test ! -s conftest.err'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest$ac_exeext'
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 ac_cv_lib_dld_dld_link=yes
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 ac_cv_lib_dld_dld_link=no
16990 rm -f conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 LIBS=$ac_check_lib_save_LIBS
16994 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16995 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16996 if test $ac_cv_lib_dld_dld_link = yes; then
16997 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17018 if test "x$lt_cv_dlopen" != xno; then
17024 case $lt_cv_dlopen in
17026 save_CPPFLAGS="$CPPFLAGS"
17027 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17029 save_LDFLAGS="$LDFLAGS"
17030 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17033 LIBS="$lt_cv_dlopen_libs $LIBS"
17035 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17036 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17037 if test "${lt_cv_dlopen_self+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 if test "$cross_compiling" = yes; then :
17041 lt_cv_dlopen_self=cross
17043 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17044 lt_status=$lt_dlunknown
17045 cat > conftest.$ac_ext <<EOF
17046 #line 17046 "configure"
17047 #include "confdefs.h"
17056 # define LT_DLGLOBAL RTLD_GLOBAL
17059 # define LT_DLGLOBAL DL_GLOBAL
17061 # define LT_DLGLOBAL 0
17065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17066 find out it does not work in some platform. */
17067 #ifndef LT_DLLAZY_OR_NOW
17069 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17072 # define LT_DLLAZY_OR_NOW DL_LAZY
17075 # define LT_DLLAZY_OR_NOW RTLD_NOW
17078 # define LT_DLLAZY_OR_NOW DL_NOW
17080 # define LT_DLLAZY_OR_NOW 0
17088 extern "C" void exit (int);
17091 void fnord() { int i=42;}
17094 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17095 int status = $lt_dlunknown;
17099 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17100 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17101 /* dlclose (self); */
17107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108 (eval $ac_link) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17112 (./conftest; exit; ) 2>/dev/null
17114 case x$lt_status in
17115 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17116 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17117 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17120 # compilation failed
17121 lt_cv_dlopen_self=no
17128 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17129 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17131 if test "x$lt_cv_dlopen_self" = xyes; then
17132 LDFLAGS="$LDFLAGS $link_static_flag"
17133 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17134 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17135 if test "${lt_cv_dlopen_self_static+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 if test "$cross_compiling" = yes; then :
17139 lt_cv_dlopen_self_static=cross
17141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17142 lt_status=$lt_dlunknown
17143 cat > conftest.$ac_ext <<EOF
17144 #line 17144 "configure"
17145 #include "confdefs.h"
17154 # define LT_DLGLOBAL RTLD_GLOBAL
17157 # define LT_DLGLOBAL DL_GLOBAL
17159 # define LT_DLGLOBAL 0
17163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17164 find out it does not work in some platform. */
17165 #ifndef LT_DLLAZY_OR_NOW
17167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17170 # define LT_DLLAZY_OR_NOW DL_LAZY
17173 # define LT_DLLAZY_OR_NOW RTLD_NOW
17176 # define LT_DLLAZY_OR_NOW DL_NOW
17178 # define LT_DLLAZY_OR_NOW 0
17186 extern "C" void exit (int);
17189 void fnord() { int i=42;}
17192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17193 int status = $lt_dlunknown;
17197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17198 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17199 /* dlclose (self); */
17205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17206 (eval $ac_link) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17210 (./conftest; exit; ) 2>/dev/null
17212 case x$lt_status in
17213 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17214 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17215 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17218 # compilation failed
17219 lt_cv_dlopen_self_static=no
17226 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17227 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17230 CPPFLAGS="$save_CPPFLAGS"
17231 LDFLAGS="$save_LDFLAGS"
17236 case $lt_cv_dlopen_self in
17237 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17238 *) enable_dlopen_self=unknown ;;
17241 case $lt_cv_dlopen_self_static in
17242 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17243 *) enable_dlopen_self_static=unknown ;;
17248 # The else clause should only fire when bootstrapping the
17249 # libtool distribution, otherwise you forgot to ship ltmain.sh
17250 # with your package, and you will get complaints that there are
17251 # no rules to generate ltmain.sh.
17252 if test -f "$ltmain"; then
17253 # See if we are running on zsh, and set the options which allow our commands through
17254 # without removal of \ escapes.
17255 if test -n "${ZSH_VERSION+set}" ; then
17256 setopt NO_GLOB_SUBST
17258 # Now quote all the things that may contain metacharacters while being
17259 # careful not to overquote the AC_SUBSTed values. We take copies of the
17260 # variables and quote the copies for generation of the libtool script.
17261 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17262 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17263 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17264 deplibs_check_method reload_flag reload_cmds need_locks \
17265 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17266 lt_cv_sys_global_symbol_to_c_name_address \
17267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17268 old_postinstall_cmds old_postuninstall_cmds \
17272 lt_prog_compiler_wl_GCJ \
17273 lt_prog_compiler_pic_GCJ \
17274 lt_prog_compiler_static_GCJ \
17275 lt_prog_compiler_no_builtin_flag_GCJ \
17276 export_dynamic_flag_spec_GCJ \
17277 thread_safe_flag_spec_GCJ \
17278 whole_archive_flag_spec_GCJ \
17279 enable_shared_with_static_runtimes_GCJ \
17280 old_archive_cmds_GCJ \
17281 old_archive_from_new_cmds_GCJ \
17282 predep_objects_GCJ \
17283 postdep_objects_GCJ \
17286 compiler_lib_search_path_GCJ \
17288 archive_expsym_cmds_GCJ \
17289 postinstall_cmds_GCJ \
17290 postuninstall_cmds_GCJ \
17291 old_archive_from_expsyms_cmds_GCJ \
17292 allow_undefined_flag_GCJ \
17293 no_undefined_flag_GCJ \
17294 export_symbols_cmds_GCJ \
17295 hardcode_libdir_flag_spec_GCJ \
17296 hardcode_libdir_flag_spec_ld_GCJ \
17297 hardcode_libdir_separator_GCJ \
17298 hardcode_automatic_GCJ \
17300 module_expsym_cmds_GCJ \
17301 lt_cv_prog_compiler_c_o_GCJ \
17302 exclude_expsyms_GCJ \
17303 include_expsyms_GCJ; do
17306 old_archive_cmds_GCJ | \
17307 old_archive_from_new_cmds_GCJ | \
17308 archive_cmds_GCJ | \
17309 archive_expsym_cmds_GCJ | \
17310 module_cmds_GCJ | \
17311 module_expsym_cmds_GCJ | \
17312 old_archive_from_expsyms_cmds_GCJ | \
17313 export_symbols_cmds_GCJ | \
17314 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17315 postinstall_cmds | postuninstall_cmds | \
17316 old_postinstall_cmds | old_postuninstall_cmds | \
17317 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17318 # Double-quote double-evaled strings.
17319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17328 *'\$0 --fallback-echo"')
17329 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17335 cat <<__EOF__ >> "$cfgfile"
17336 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17338 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17340 # Shell to use when invoking shell scripts.
17343 # Whether or not to build shared libraries.
17344 build_libtool_libs=$enable_shared
17346 # Whether or not to build static libraries.
17347 build_old_libs=$enable_static
17349 # Whether or not to add -lc for building shared libraries.
17350 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17352 # Whether or not to disallow shared libs when runtime libs are static
17353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17355 # Whether or not to optimize for fast installation.
17356 fast_install=$enable_fast_install
17359 host_alias=$host_alias
17362 # An echo program that does not interpret backslashes.
17367 AR_FLAGS=$lt_AR_FLAGS
17372 # A language-specific compiler.
17373 CC=$lt_compiler_GCJ
17375 # Is the compiler the GNU C compiler?
17381 # The linker used to build libraries.
17384 # Whether we need hard or soft links.
17387 # A BSD-compatible nm program.
17390 # A symbol stripping program
17393 # Used to examine libraries when file_magic_cmd begins "file"
17394 MAGIC_CMD=$MAGIC_CMD
17396 # Used on cygwin: DLL creation program.
17399 # Used on cygwin: object dumper.
17402 # Used on cygwin: assembler.
17405 # The name of the directory that contains temporary libtool files.
17408 # How to create reloadable object files.
17409 reload_flag=$lt_reload_flag
17410 reload_cmds=$lt_reload_cmds
17412 # How to pass a linker flag through the compiler.
17413 wl=$lt_lt_prog_compiler_wl_GCJ
17415 # Object file suffix (normally "o").
17416 objext="$ac_objext"
17418 # Old archive suffix (normally "a").
17421 # Shared library suffix (normally ".so").
17424 # Executable file suffix (normally "").
17427 # Additional compiler flags for building library objects.
17428 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17431 # What is the maximum length of a command?
17432 max_cmd_len=$lt_cv_sys_max_cmd_len
17434 # Does compiler simultaneously support -c and -o options?
17435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17437 # Must we lock files when doing compilation ?
17438 need_locks=$lt_need_locks
17440 # Do we need the lib prefix for modules?
17441 need_lib_prefix=$need_lib_prefix
17443 # Do we need a version for libraries?
17444 need_version=$need_version
17446 # Whether dlopen is supported.
17447 dlopen_support=$enable_dlopen
17449 # Whether dlopen of programs is supported.
17450 dlopen_self=$enable_dlopen_self
17452 # Whether dlopen of statically linked programs is supported.
17453 dlopen_self_static=$enable_dlopen_self_static
17455 # Compiler flag to prevent dynamic linking.
17456 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17458 # Compiler flag to turn off builtin functions.
17459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17461 # Compiler flag to allow reflexive dlopens.
17462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17464 # Compiler flag to generate shared objects directly from archives.
17465 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17467 # Compiler flag to generate thread-safe objects.
17468 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17470 # Library versioning type.
17471 version_type=$version_type
17473 # Format of library name prefix.
17474 libname_spec=$lt_libname_spec
17476 # List of archive names. First name is the real one, the rest are links.
17477 # The last name is the one that the linker finds with -lNAME.
17478 library_names_spec=$lt_library_names_spec
17480 # The coded name of the library, if different from the real name.
17481 soname_spec=$lt_soname_spec
17483 # Commands used to build and install an old-style archive.
17485 old_archive_cmds=$lt_old_archive_cmds_GCJ
17486 old_postinstall_cmds=$lt_old_postinstall_cmds
17487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17489 # Create an old-style archive from a shared archive.
17490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17492 # Create a temporary old-style archive to link instead of a shared archive.
17493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17495 # Commands used to build and install a shared archive.
17496 archive_cmds=$lt_archive_cmds_GCJ
17497 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17498 postinstall_cmds=$lt_postinstall_cmds
17499 postuninstall_cmds=$lt_postuninstall_cmds
17501 # Commands used to build a loadable module (assumed same as above if empty)
17502 module_cmds=$lt_module_cmds_GCJ
17503 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17505 # Commands to strip libraries.
17506 old_striplib=$lt_old_striplib
17507 striplib=$lt_striplib
17509 # Dependencies to place before the objects being linked to create a
17511 predep_objects=$lt_predep_objects_GCJ
17513 # Dependencies to place after the objects being linked to create a
17515 postdep_objects=$lt_postdep_objects_GCJ
17517 # Dependencies to place before the objects being linked to create a
17519 predeps=$lt_predeps_GCJ
17521 # Dependencies to place after the objects being linked to create a
17523 postdeps=$lt_postdeps_GCJ
17525 # The library search path used internally by the compiler when linking
17526 # a shared library.
17527 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17529 # Method to check whether dependent libraries are shared objects.
17530 deplibs_check_method=$lt_deplibs_check_method
17532 # Command to use when deplibs_check_method == file_magic.
17533 file_magic_cmd=$lt_file_magic_cmd
17535 # Flag that allows shared libraries with undefined symbols to be built.
17536 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17538 # Flag that forces no undefined symbols.
17539 no_undefined_flag=$lt_no_undefined_flag_GCJ
17541 # Commands used to finish a libtool library installation in a directory.
17542 finish_cmds=$lt_finish_cmds
17544 # Same as above, but a single script fragment to be evaled but not shown.
17545 finish_eval=$lt_finish_eval
17547 # Take the output of nm and produce a listing of raw symbols and C names.
17548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17550 # Transform the output of nm in a proper C declaration
17551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17553 # Transform the output of nm in a C name address pair
17554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17556 # This is the shared library runtime path variable.
17557 runpath_var=$runpath_var
17559 # This is the shared library path variable.
17560 shlibpath_var=$shlibpath_var
17562 # Is shlibpath searched before the hard-coded library search path?
17563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17565 # How to hardcode a shared library path into an executable.
17566 hardcode_action=$hardcode_action_GCJ
17568 # Whether we should hardcode library paths into libraries.
17569 hardcode_into_libs=$hardcode_into_libs
17571 # Flag to hardcode \$libdir into a binary during linking.
17572 # This must work even if \$libdir does not exist.
17573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17575 # If ld is used when linking, flag to hardcode \$libdir into
17576 # a binary during linking. This must work even if \$libdir does
17578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17580 # Whether we need a single -rpath flag with a separated argument.
17581 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17583 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17584 # resulting binary.
17585 hardcode_direct=$hardcode_direct_GCJ
17587 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17588 # resulting binary.
17589 hardcode_minus_L=$hardcode_minus_L_GCJ
17591 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17592 # the resulting binary.
17593 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17595 # Set to yes if building a shared library automatically hardcodes DIR into the library
17596 # and all subsequent libraries and executables linked against it.
17597 hardcode_automatic=$hardcode_automatic_GCJ
17599 # Variables whose values should be saved in libtool wrapper scripts and
17600 # restored at relink time.
17601 variables_saved_for_relink="$variables_saved_for_relink"
17603 # Whether libtool must link a program against all its dependency libraries.
17604 link_all_deplibs=$link_all_deplibs_GCJ
17606 # Compile-time system search path for libraries
17607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17609 # Run-time system search path for libraries
17610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17612 # Fix the shell variable \$srcfile for the compiler.
17613 fix_srcfile_path="$fix_srcfile_path_GCJ"
17615 # Set to yes if exported symbols are required.
17616 always_export_symbols=$always_export_symbols_GCJ
17618 # The commands to list exported symbols.
17619 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17621 # The commands to extract the exported symbol list from a shared archive.
17622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17624 # Symbols that should not be listed in the preloaded symbols.
17625 exclude_expsyms=$lt_exclude_expsyms_GCJ
17627 # Symbols that must always be exported.
17628 include_expsyms=$lt_include_expsyms_GCJ
17630 # ### END LIBTOOL TAG CONFIG: $tagname
17636 # If there is no Makefile yet, we rely on a make rule to execute
17637 # `config.status --recheck' to rerun these tests and create the
17638 # libtool script then.
17639 test -f Makefile && make "$ltmain"
17644 ac_cpp='$CPP $CPPFLAGS'
17645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17660 # Source file extension for RC test sources.
17663 # Object file extension for compiled RC test sources.
17667 # Code to be used in simple compile tests
17668 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17670 # Code to be used in simple link tests
17671 lt_simple_link_test_code="$lt_simple_compile_test_code"
17673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17675 # If no C compiler was specified, use CC.
17678 # Allow CC to be a program name with arguments.
17682 # Allow CC to be a program name with arguments.
17687 lt_cv_prog_compiler_c_o_RC=yes
17689 # The else clause should only fire when bootstrapping the
17690 # libtool distribution, otherwise you forgot to ship ltmain.sh
17691 # with your package, and you will get complaints that there are
17692 # no rules to generate ltmain.sh.
17693 if test -f "$ltmain"; then
17694 # See if we are running on zsh, and set the options which allow our commands through
17695 # without removal of \ escapes.
17696 if test -n "${ZSH_VERSION+set}" ; then
17697 setopt NO_GLOB_SUBST
17699 # Now quote all the things that may contain metacharacters while being
17700 # careful not to overquote the AC_SUBSTed values. We take copies of the
17701 # variables and quote the copies for generation of the libtool script.
17702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17703 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17704 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17705 deplibs_check_method reload_flag reload_cmds need_locks \
17706 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17707 lt_cv_sys_global_symbol_to_c_name_address \
17708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17709 old_postinstall_cmds old_postuninstall_cmds \
17713 lt_prog_compiler_wl_RC \
17714 lt_prog_compiler_pic_RC \
17715 lt_prog_compiler_static_RC \
17716 lt_prog_compiler_no_builtin_flag_RC \
17717 export_dynamic_flag_spec_RC \
17718 thread_safe_flag_spec_RC \
17719 whole_archive_flag_spec_RC \
17720 enable_shared_with_static_runtimes_RC \
17721 old_archive_cmds_RC \
17722 old_archive_from_new_cmds_RC \
17723 predep_objects_RC \
17724 postdep_objects_RC \
17727 compiler_lib_search_path_RC \
17729 archive_expsym_cmds_RC \
17730 postinstall_cmds_RC \
17731 postuninstall_cmds_RC \
17732 old_archive_from_expsyms_cmds_RC \
17733 allow_undefined_flag_RC \
17734 no_undefined_flag_RC \
17735 export_symbols_cmds_RC \
17736 hardcode_libdir_flag_spec_RC \
17737 hardcode_libdir_flag_spec_ld_RC \
17738 hardcode_libdir_separator_RC \
17739 hardcode_automatic_RC \
17741 module_expsym_cmds_RC \
17742 lt_cv_prog_compiler_c_o_RC \
17743 exclude_expsyms_RC \
17744 include_expsyms_RC; do
17747 old_archive_cmds_RC | \
17748 old_archive_from_new_cmds_RC | \
17749 archive_cmds_RC | \
17750 archive_expsym_cmds_RC | \
17752 module_expsym_cmds_RC | \
17753 old_archive_from_expsyms_cmds_RC | \
17754 export_symbols_cmds_RC | \
17755 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17756 postinstall_cmds | postuninstall_cmds | \
17757 old_postinstall_cmds | old_postuninstall_cmds | \
17758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17759 # Double-quote double-evaled strings.
17760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17769 *'\$0 --fallback-echo"')
17770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17776 cat <<__EOF__ >> "$cfgfile"
17777 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17781 # Shell to use when invoking shell scripts.
17784 # Whether or not to build shared libraries.
17785 build_libtool_libs=$enable_shared
17787 # Whether or not to build static libraries.
17788 build_old_libs=$enable_static
17790 # Whether or not to add -lc for building shared libraries.
17791 build_libtool_need_lc=$archive_cmds_need_lc_RC
17793 # Whether or not to disallow shared libs when runtime libs are static
17794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17796 # Whether or not to optimize for fast installation.
17797 fast_install=$enable_fast_install
17800 host_alias=$host_alias
17803 # An echo program that does not interpret backslashes.
17808 AR_FLAGS=$lt_AR_FLAGS
17813 # A language-specific compiler.
17816 # Is the compiler the GNU C compiler?
17822 # The linker used to build libraries.
17825 # Whether we need hard or soft links.
17828 # A BSD-compatible nm program.
17831 # A symbol stripping program
17834 # Used to examine libraries when file_magic_cmd begins "file"
17835 MAGIC_CMD=$MAGIC_CMD
17837 # Used on cygwin: DLL creation program.
17840 # Used on cygwin: object dumper.
17843 # Used on cygwin: assembler.
17846 # The name of the directory that contains temporary libtool files.
17849 # How to create reloadable object files.
17850 reload_flag=$lt_reload_flag
17851 reload_cmds=$lt_reload_cmds
17853 # How to pass a linker flag through the compiler.
17854 wl=$lt_lt_prog_compiler_wl_RC
17856 # Object file suffix (normally "o").
17857 objext="$ac_objext"
17859 # Old archive suffix (normally "a").
17862 # Shared library suffix (normally ".so").
17865 # Executable file suffix (normally "").
17868 # Additional compiler flags for building library objects.
17869 pic_flag=$lt_lt_prog_compiler_pic_RC
17872 # What is the maximum length of a command?
17873 max_cmd_len=$lt_cv_sys_max_cmd_len
17875 # Does compiler simultaneously support -c and -o options?
17876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17878 # Must we lock files when doing compilation ?
17879 need_locks=$lt_need_locks
17881 # Do we need the lib prefix for modules?
17882 need_lib_prefix=$need_lib_prefix
17884 # Do we need a version for libraries?
17885 need_version=$need_version
17887 # Whether dlopen is supported.
17888 dlopen_support=$enable_dlopen
17890 # Whether dlopen of programs is supported.
17891 dlopen_self=$enable_dlopen_self
17893 # Whether dlopen of statically linked programs is supported.
17894 dlopen_self_static=$enable_dlopen_self_static
17896 # Compiler flag to prevent dynamic linking.
17897 link_static_flag=$lt_lt_prog_compiler_static_RC
17899 # Compiler flag to turn off builtin functions.
17900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17902 # Compiler flag to allow reflexive dlopens.
17903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17905 # Compiler flag to generate shared objects directly from archives.
17906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17908 # Compiler flag to generate thread-safe objects.
17909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17911 # Library versioning type.
17912 version_type=$version_type
17914 # Format of library name prefix.
17915 libname_spec=$lt_libname_spec
17917 # List of archive names. First name is the real one, the rest are links.
17918 # The last name is the one that the linker finds with -lNAME.
17919 library_names_spec=$lt_library_names_spec
17921 # The coded name of the library, if different from the real name.
17922 soname_spec=$lt_soname_spec
17924 # Commands used to build and install an old-style archive.
17926 old_archive_cmds=$lt_old_archive_cmds_RC
17927 old_postinstall_cmds=$lt_old_postinstall_cmds
17928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17930 # Create an old-style archive from a shared archive.
17931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17933 # Create a temporary old-style archive to link instead of a shared archive.
17934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17936 # Commands used to build and install a shared archive.
17937 archive_cmds=$lt_archive_cmds_RC
17938 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17939 postinstall_cmds=$lt_postinstall_cmds
17940 postuninstall_cmds=$lt_postuninstall_cmds
17942 # Commands used to build a loadable module (assumed same as above if empty)
17943 module_cmds=$lt_module_cmds_RC
17944 module_expsym_cmds=$lt_module_expsym_cmds_RC
17946 # Commands to strip libraries.
17947 old_striplib=$lt_old_striplib
17948 striplib=$lt_striplib
17950 # Dependencies to place before the objects being linked to create a
17952 predep_objects=$lt_predep_objects_RC
17954 # Dependencies to place after the objects being linked to create a
17956 postdep_objects=$lt_postdep_objects_RC
17958 # Dependencies to place before the objects being linked to create a
17960 predeps=$lt_predeps_RC
17962 # Dependencies to place after the objects being linked to create a
17964 postdeps=$lt_postdeps_RC
17966 # The library search path used internally by the compiler when linking
17967 # a shared library.
17968 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17970 # Method to check whether dependent libraries are shared objects.
17971 deplibs_check_method=$lt_deplibs_check_method
17973 # Command to use when deplibs_check_method == file_magic.
17974 file_magic_cmd=$lt_file_magic_cmd
17976 # Flag that allows shared libraries with undefined symbols to be built.
17977 allow_undefined_flag=$lt_allow_undefined_flag_RC
17979 # Flag that forces no undefined symbols.
17980 no_undefined_flag=$lt_no_undefined_flag_RC
17982 # Commands used to finish a libtool library installation in a directory.
17983 finish_cmds=$lt_finish_cmds
17985 # Same as above, but a single script fragment to be evaled but not shown.
17986 finish_eval=$lt_finish_eval
17988 # Take the output of nm and produce a listing of raw symbols and C names.
17989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17991 # Transform the output of nm in a proper C declaration
17992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17994 # Transform the output of nm in a C name address pair
17995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17997 # This is the shared library runtime path variable.
17998 runpath_var=$runpath_var
18000 # This is the shared library path variable.
18001 shlibpath_var=$shlibpath_var
18003 # Is shlibpath searched before the hard-coded library search path?
18004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18006 # How to hardcode a shared library path into an executable.
18007 hardcode_action=$hardcode_action_RC
18009 # Whether we should hardcode library paths into libraries.
18010 hardcode_into_libs=$hardcode_into_libs
18012 # Flag to hardcode \$libdir into a binary during linking.
18013 # This must work even if \$libdir does not exist.
18014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18016 # If ld is used when linking, flag to hardcode \$libdir into
18017 # a binary during linking. This must work even if \$libdir does
18019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18021 # Whether we need a single -rpath flag with a separated argument.
18022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18025 # resulting binary.
18026 hardcode_direct=$hardcode_direct_RC
18028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18029 # resulting binary.
18030 hardcode_minus_L=$hardcode_minus_L_RC
18032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18033 # the resulting binary.
18034 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18036 # Set to yes if building a shared library automatically hardcodes DIR into the library
18037 # and all subsequent libraries and executables linked against it.
18038 hardcode_automatic=$hardcode_automatic_RC
18040 # Variables whose values should be saved in libtool wrapper scripts and
18041 # restored at relink time.
18042 variables_saved_for_relink="$variables_saved_for_relink"
18044 # Whether libtool must link a program against all its dependency libraries.
18045 link_all_deplibs=$link_all_deplibs_RC
18047 # Compile-time system search path for libraries
18048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18050 # Run-time system search path for libraries
18051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18053 # Fix the shell variable \$srcfile for the compiler.
18054 fix_srcfile_path="$fix_srcfile_path_RC"
18056 # Set to yes if exported symbols are required.
18057 always_export_symbols=$always_export_symbols_RC
18059 # The commands to list exported symbols.
18060 export_symbols_cmds=$lt_export_symbols_cmds_RC
18062 # The commands to extract the exported symbol list from a shared archive.
18063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18065 # Symbols that should not be listed in the preloaded symbols.
18066 exclude_expsyms=$lt_exclude_expsyms_RC
18068 # Symbols that must always be exported.
18069 include_expsyms=$lt_include_expsyms_RC
18071 # ### END LIBTOOL TAG CONFIG: $tagname
18077 # If there is no Makefile yet, we rely on a make rule to execute
18078 # `config.status --recheck' to rerun these tests and create the
18079 # libtool script then.
18080 test -f Makefile && make "$ltmain"
18085 ac_cpp='$CPP $CPPFLAGS'
18086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18095 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18096 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18097 { (exit 1); exit 1; }; }
18101 # Append the new tag name to the list of available tags.
18102 if test -n "$tagname" ; then
18103 available_tags="$available_tags $tagname"
18109 # Now substitute the updated list of available tags.
18110 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18111 mv "${ofile}T" "$ofile"
18115 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18116 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18117 { (exit 1); exit 1; }; }
18123 # This can be used to rebuild libtool when needed
18124 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18126 # Always use our own libtool.
18127 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18129 # Prevent multiple expansion
18150 echo "$as_me:$LINENO: checking for shared library suffix" >&5
18151 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
18152 eval "SHLIBEXT=$shrext"
18153 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
18154 echo "${ECHO_T}$SHLIBEXT" >&6
18158 cat >>confdefs.h <<_ACEOF
18159 #define SHLIBEXT "$SHLIBEXT"
18172 # Check whether --with-llvmsrc or --without-llvmsrc was given.
18173 if test "${with_llvmsrc+set}" = set; then
18174 withval="$with_llvmsrc"
18178 LLVM_SRC=`cd ${srcdir}/../..; pwd`
18183 # Check whether --with-llvmobj or --without-llvmobj was given.
18184 if test "${with_llvmobj+set}" = set; then
18185 withval="$with_llvmobj"
18189 LLVM_OBJ=`cd ../..; pwd`
18193 ac_config_files="$ac_config_files Makefile.common"
18194 cat >confcache <<\_ACEOF
18195 # This file is a shell script that caches the results of configure
18196 # tests run on this system so they can be shared between configure
18197 # scripts and configure runs, see configure's option --config-cache.
18198 # It is not useful on other systems. If it contains results you don't
18199 # want to keep, you may remove or edit it.
18201 # config.status only pays attention to the cache file if you give it
18202 # the --recheck option to rerun configure.
18204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18206 # following values.
18210 # The following way of writing the cache mishandles newlines in values,
18211 # but we know of no workaround that is simple, portable, and efficient.
18212 # So, don't put newlines in cache variables' values.
18213 # Ultrix sh set writes to stderr and can't be redirected directly,
18214 # and sets the high bit in the cache file unless we assign to the vars.
18217 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18219 # `set' does not quote correctly, so add quotes (double-quote
18220 # substitution turns \\\\ into \\, and sed turns \\ into \).
18223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18226 # `set' quotes correctly as required by POSIX, so do not add quotes.
18228 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18237 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18239 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18240 if test -w $cache_file; then
18241 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18242 cat confcache >$cache_file
18244 echo "not updating unwritable cache $cache_file"
18249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18250 # Let make expand exec_prefix.
18251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18255 # trailing colons and then remove the whole line if VPATH becomes empty
18256 # (actually we leave an empty line to preserve line numbers).
18257 if test "x$srcdir" = x.; then
18258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18259 s/:*\$(srcdir):*/:/;
18260 s/:*\${srcdir}:*/:/;
18262 s/^\([^=]*=[ ]*\):*/\1/;
18268 # Transform confdefs.h into DEFS.
18269 # Protect against shell expansion while executing Makefile rules.
18270 # Protect against Makefile macro expansion.
18272 # If the first sed substitution is executed (which looks for macros that
18273 # take arguments), then we branch to the quote section. Otherwise,
18274 # look for a macro that doesn't take arguments.
18275 cat >confdef2opt.sed <<\_ACEOF
18278 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
18280 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
18284 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
18290 # We use echo to avoid assuming a particular line-breaking character.
18291 # The extra dot is to prevent the shell from consuming trailing
18292 # line-breaks from the sub-command output. A line-break within
18293 # single-quotes doesn't work because, if this script is created in a
18294 # platform that uses two characters for line-breaks (e.g., DOS), tr
18296 ac_LF_and_DOT=`echo; echo .`
18297 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
18298 rm -f confdef2opt.sed
18303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18304 # 1. Remove the extension, and $U if already installed.
18305 ac_i=`echo "$ac_i" |
18306 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18308 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18309 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18311 LIBOBJS=$ac_libobjs
18313 LTLIBOBJS=$ac_ltlibobjs
18317 : ${CONFIG_STATUS=./config.status}
18318 ac_clean_files_save=$ac_clean_files
18319 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18320 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18321 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18322 cat >$CONFIG_STATUS <<_ACEOF
18324 # Generated by $as_me.
18325 # Run this file to recreate the current configuration.
18326 # Compiler output produced by configure, useful for debugging
18327 # configure, is in config.log if it exists.
18330 ac_cs_recheck=false
18332 SHELL=\${CONFIG_SHELL-$SHELL}
18335 cat >>$CONFIG_STATUS <<\_ACEOF
18336 ## --------------------- ##
18337 ## M4sh Initialization. ##
18338 ## --------------------- ##
18340 # Be Bourne compatible
18341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18344 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18345 # is contrary to our usage. Disable this feature.
18346 alias -g '${1+"$@"}'='"$@"'
18347 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18350 DUALCASE=1; export DUALCASE # for MKS sh
18352 # Support unset when possible.
18353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18360 # Work around bugs in pre-3.0 UWIN ksh.
18361 $as_unset ENV MAIL MAILPATH
18368 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18369 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18370 LC_TELEPHONE LC_TIME
18372 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18373 eval $as_var=C; export $as_var
18379 # Required to use basename.
18380 if expr a : '\(a\)' >/dev/null 2>&1; then
18386 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18387 as_basename=basename
18393 # Name of the executable.
18394 as_me=`$as_basename "$0" ||
18395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18396 X"$0" : 'X\(//\)$' \| \
18397 X"$0" : 'X\(/\)$' \| \
18398 . : '\(.\)' 2>/dev/null ||
18400 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18401 /^X\/\(\/\/\)$/{ s//\1/; q; }
18402 /^X\/\(\/\).*/{ s//\1/; q; }
18406 # PATH needs CR, and LINENO needs CR and PATH.
18407 # Avoid depending upon Character Ranges.
18408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18411 as_cr_digits='0123456789'
18412 as_cr_alnum=$as_cr_Letters$as_cr_digits
18414 # The user is always right.
18415 if test "${PATH_SEPARATOR+set}" != set; then
18416 echo "#! /bin/sh" >conf$$.sh
18417 echo "exit 0" >>conf$$.sh
18419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18428 as_lineno_1=$LINENO
18429 as_lineno_2=$LINENO
18430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18431 test "x$as_lineno_1" != "x$as_lineno_2" &&
18432 test "x$as_lineno_3" = "x$as_lineno_2" || {
18433 # Find who we are. Look in the path if we contain no path at all
18436 *[\\/]* ) as_myself=$0 ;;
18437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18438 for as_dir in $PATH
18441 test -z "$as_dir" && as_dir=.
18442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18447 # We did not find ourselves, most probably we were run as `sh COMMAND'
18448 # in which case we are not to be found in the path.
18449 if test "x$as_myself" = x; then
18452 if test ! -f "$as_myself"; then
18453 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18454 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18455 { (exit 1); exit 1; }; }
18457 case $CONFIG_SHELL in
18459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18460 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18463 test -z "$as_dir" && as_dir=.
18464 for as_base in sh bash ksh sh5; do
18467 if ("$as_dir/$as_base" -c '
18468 as_lineno_1=$LINENO
18469 as_lineno_2=$LINENO
18470 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18471 test "x$as_lineno_1" != "x$as_lineno_2" &&
18472 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18473 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18474 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18475 CONFIG_SHELL=$as_dir/$as_base
18476 export CONFIG_SHELL
18477 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18485 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18486 # uniformly replaced by the line number. The first 'sed' inserts a
18487 # line-number line before each line; the second 'sed' does the real
18488 # work. The second script uses 'N' to pair each line-number line
18489 # with the numbered line, and appends trailing '-' during
18490 # substitution so that $LINENO is not a special case at line end.
18491 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18492 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18493 sed '=' <$as_myself |
18498 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18501 s,^['$as_cr_digits']*\n,,
18502 ' >$as_me.lineno &&
18503 chmod +x $as_me.lineno ||
18504 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18505 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18506 { (exit 1); exit 1; }; }
18508 # Don't try to exec as it changes $[0], causing all sort of problems
18509 # (the dirname of $[0] is not the place where we might find the
18510 # original and so on. Autoconf is especially sensible to this).
18512 # Exit status is that of the last command.
18517 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18518 *c*,-n*) ECHO_N= ECHO_C='
18520 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18521 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18524 if expr a : '\(a\)' >/dev/null 2>&1; then
18530 rm -f conf$$ conf$$.exe conf$$.file
18532 if ln -s conf$$.file conf$$ 2>/dev/null; then
18533 # We could just check for DJGPP; but this test a) works b) is more generic
18534 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18535 if test -f conf$$.exe; then
18536 # Don't use ln at all; we don't have any links
18541 elif ln conf$$.file conf$$ 2>/dev/null; then
18546 rm -f conf$$ conf$$.exe conf$$.file
18548 if mkdir -p . 2>/dev/null; then
18551 test -d ./-p && rmdir ./-p
18555 as_executable_p="test -f"
18557 # Sed expression to map a string onto a valid CPP name.
18558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18560 # Sed expression to map a string onto a valid variable name.
18561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18565 # We need space, tab and new line, in precisely that order.
18575 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18576 # report actual input values of CONFIG_FILES etc. instead of their
18577 # values after options handling. Logging --version etc. is OK.
18581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18582 ## Running $as_me. ##
18587 This file was extended by [Stacker] $as_me [1.0], which was
18588 generated by GNU Autoconf 2.59. Invocation command line was
18590 CONFIG_FILES = $CONFIG_FILES
18591 CONFIG_HEADERS = $CONFIG_HEADERS
18592 CONFIG_LINKS = $CONFIG_LINKS
18593 CONFIG_COMMANDS = $CONFIG_COMMANDS
18597 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18601 # Files that config.status was made for.
18602 if test -n "$ac_config_files"; then
18603 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18606 if test -n "$ac_config_headers"; then
18607 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18610 if test -n "$ac_config_links"; then
18611 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18614 if test -n "$ac_config_commands"; then
18615 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18621 \`$as_me' instantiates files from templates according to the
18622 current configuration.
18624 Usage: $0 [OPTIONS] [FILE]...
18626 -h, --help print this help, then exit
18627 -V, --version print version number, then exit
18628 -q, --quiet do not print progress messages
18629 -d, --debug don't remove temporary files
18630 --recheck update $as_me by reconfiguring in the same conditions
18631 --file=FILE[:TEMPLATE]
18632 instantiate the configuration file FILE
18634 Configuration files:
18637 Configuration commands:
18640 Report bugs to <bug-autoconf@gnu.org>."
18643 cat >>$CONFIG_STATUS <<_ACEOF
18645 [Stacker] config.status [1.0]
18646 configured by $0, generated by GNU Autoconf 2.59,
18647 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18649 Copyright (C) 2003 Free Software Foundation, Inc.
18650 This config.status script is free software; the Free Software Foundation
18651 gives unlimited permission to copy, distribute and modify it."
18655 cat >>$CONFIG_STATUS <<\_ACEOF
18656 # If no file are specified by the user, then we need to provide default
18657 # value. By we need to know if files were specified by the user.
18663 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18664 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18672 *) # This is not an option, so the user has probably given explicit
18675 ac_need_defaults=false;;
18679 # Handling of the options.
18681 cat >>$CONFIG_STATUS <<\_ACEOF
18682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18684 --version | --vers* | -V )
18685 echo "$ac_cs_version"; exit 0 ;;
18687 # Conflict between --help and --header
18688 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18689 Try \`$0 --help' for more information." >&5
18690 echo "$as_me: error: ambiguous option: $1
18691 Try \`$0 --help' for more information." >&2;}
18692 { (exit 1); exit 1; }; };;
18693 --help | --hel | -h )
18694 echo "$ac_cs_usage"; exit 0 ;;
18695 --debug | --d* | -d )
18697 --file | --fil | --fi | --f )
18699 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18700 ac_need_defaults=false;;
18701 --header | --heade | --head | --hea )
18703 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18704 ac_need_defaults=false;;
18705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18706 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18709 # This is an error.
18710 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18711 Try \`$0 --help' for more information." >&5
18712 echo "$as_me: error: unrecognized option: $1
18713 Try \`$0 --help' for more information." >&2;}
18714 { (exit 1); exit 1; }; } ;;
18716 *) ac_config_targets="$ac_config_targets $1" ;;
18722 ac_configure_extra_args=
18724 if $ac_cs_silent; then
18726 ac_configure_extra_args="$ac_configure_extra_args --silent"
18730 cat >>$CONFIG_STATUS <<_ACEOF
18731 if \$ac_cs_recheck; then
18732 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18733 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18738 cat >>$CONFIG_STATUS <<_ACEOF
18740 # INIT-COMMANDS section.
18743 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
18744 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
18745 ${srcdir}/autoconf/mkinstalldirs `dirname lib/compiler/Makefile`
18746 ${srcdir}/autoconf/mkinstalldirs `dirname lib/runtime/Makefile`
18747 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
18748 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
18749 ${srcdir}/autoconf/mkinstalldirs `dirname tools/stkrc/Makefile`
18755 cat >>$CONFIG_STATUS <<\_ACEOF
18756 for ac_config_target in $ac_config_targets
18758 case "$ac_config_target" in
18759 # Handling of arguments.
18760 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
18761 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18762 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18763 "lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/compiler/Makefile" ;;
18764 "lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/runtime/Makefile" ;;
18765 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18766 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18767 "tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/stkrc/Makefile" ;;
18768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18770 { (exit 1); exit 1; }; };;
18774 # If the user did not use the arguments to specify the items to instantiate,
18775 # then the envvar interface is used. Set only those that are not.
18776 # We use the long form for the default assignment because of an extremely
18777 # bizarre bug on SunOS 4.1.3.
18778 if $ac_need_defaults; then
18779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18780 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18783 # Have a temporary directory for convenience. Make it in the build tree
18784 # simply because there is no reason to put it here, and in addition,
18785 # creating and moving files from /tmp can sometimes cause problems.
18786 # Create a temporary directory, and hook for its removal unless debugging.
18789 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18790 trap '{ (exit 1); exit 1; }' 1 2 13 15
18793 # Create a (secure) tmp directory for tmp files.
18796 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18797 test -n "$tmp" && test -d "$tmp"
18800 tmp=./confstat$$-$RANDOM
18801 (umask 077 && mkdir $tmp)
18804 echo "$me: cannot create a temporary directory in ." >&2
18805 { (exit 1); exit 1; }
18810 cat >>$CONFIG_STATUS <<_ACEOF
18813 # CONFIG_FILES section.
18816 # No need to generate the scripts if there are no CONFIG_FILES.
18817 # This happens for instance when ./config.status config.h
18818 if test -n "\$CONFIG_FILES"; then
18819 # Protect against being on the right side of a sed subst in config.status.
18820 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18821 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18822 s,@SHELL@,$SHELL,;t t
18823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18824 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18825 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18826 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18827 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18828 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18829 s,@exec_prefix@,$exec_prefix,;t t
18830 s,@prefix@,$prefix,;t t
18831 s,@program_transform_name@,$program_transform_name,;t t
18832 s,@bindir@,$bindir,;t t
18833 s,@sbindir@,$sbindir,;t t
18834 s,@libexecdir@,$libexecdir,;t t
18835 s,@datadir@,$datadir,;t t
18836 s,@sysconfdir@,$sysconfdir,;t t
18837 s,@sharedstatedir@,$sharedstatedir,;t t
18838 s,@localstatedir@,$localstatedir,;t t
18839 s,@libdir@,$libdir,;t t
18840 s,@includedir@,$includedir,;t t
18841 s,@oldincludedir@,$oldincludedir,;t t
18842 s,@infodir@,$infodir,;t t
18843 s,@mandir@,$mandir,;t t
18844 s,@build_alias@,$build_alias,;t t
18845 s,@host_alias@,$host_alias,;t t
18846 s,@target_alias@,$target_alias,;t t
18847 s,@DEFS@,$DEFS,;t t
18848 s,@ECHO_C@,$ECHO_C,;t t
18849 s,@ECHO_N@,$ECHO_N,;t t
18850 s,@ECHO_T@,$ECHO_T,;t t
18851 s,@LIBS@,$LIBS,;t t
18852 s,@build@,$build,;t t
18853 s,@build_cpu@,$build_cpu,;t t
18854 s,@build_vendor@,$build_vendor,;t t
18855 s,@build_os@,$build_os,;t t
18856 s,@host@,$host,;t t
18857 s,@host_cpu@,$host_cpu,;t t
18858 s,@host_vendor@,$host_vendor,;t t
18859 s,@host_os@,$host_os,;t t
18861 s,@CFLAGS@,$CFLAGS,;t t
18862 s,@LDFLAGS@,$LDFLAGS,;t t
18863 s,@CPPFLAGS@,$CPPFLAGS,;t t
18864 s,@ac_ct_CC@,$ac_ct_CC,;t t
18865 s,@EXEEXT@,$EXEEXT,;t t
18866 s,@OBJEXT@,$OBJEXT,;t t
18867 s,@EGREP@,$EGREP,;t t
18868 s,@LN_S@,$LN_S,;t t
18869 s,@ECHO@,$ECHO,;t t
18871 s,@ac_ct_AR@,$ac_ct_AR,;t t
18872 s,@RANLIB@,$RANLIB,;t t
18873 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18874 s,@STRIP@,$STRIP,;t t
18875 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18878 s,@CXXFLAGS@,$CXXFLAGS,;t t
18879 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18880 s,@CXXCPP@,$CXXCPP,;t t
18882 s,@FFLAGS@,$FFLAGS,;t t
18883 s,@ac_ct_F77@,$ac_ct_F77,;t t
18884 s,@LIBTOOL@,$LIBTOOL,;t t
18885 s,@SHLIBEXT@,$SHLIBEXT,;t t
18886 s,@LLVM_SRC@,$LLVM_SRC,;t t
18887 s,@LLVM_OBJ@,$LLVM_OBJ,;t t
18888 s,@LIBOBJS@,$LIBOBJS,;t t
18889 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18894 cat >>$CONFIG_STATUS <<\_ACEOF
18895 # Split the substitutions into bite-sized pieces for seds with
18896 # small command number limits, like on Digital OSF/1 and HP-UX.
18897 ac_max_sed_lines=48
18898 ac_sed_frag=1 # Number of current file.
18899 ac_beg=1 # First line for current file.
18900 ac_end=$ac_max_sed_lines # Line after last line for current file.
18903 while $ac_more_lines; do
18904 if test $ac_beg -gt 1; then
18905 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18907 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18909 if test ! -s $tmp/subs.frag; then
18910 ac_more_lines=false
18912 # The purpose of the label and of the branching condition is to
18913 # speed up the sed processing (if there are no `@' at all, there
18914 # is no need to browse any of the substitutions).
18915 # These are the two extra sed commands mentioned above.
18917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18918 if test -z "$ac_sed_cmds"; then
18919 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18921 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18923 ac_sed_frag=`expr $ac_sed_frag + 1`
18925 ac_end=`expr $ac_end + $ac_max_sed_lines`
18928 if test -z "$ac_sed_cmds"; then
18931 fi # test -n "$CONFIG_FILES"
18934 cat >>$CONFIG_STATUS <<\_ACEOF
18935 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18938 - | *:- | *:-:* ) # input from stdin
18940 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18942 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18944 * ) ac_file_in=$ac_file.in ;;
18947 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18948 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18950 X"$ac_file" : 'X\(//\)[^/]' \| \
18951 X"$ac_file" : 'X\(//\)$' \| \
18952 X"$ac_file" : 'X\(/\)' \| \
18953 . : '\(.\)' 2>/dev/null ||
18955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18957 /^X\(\/\/\)$/{ s//\1/; q; }
18958 /^X\(\/\).*/{ s//\1/; q; }
18960 { if $as_mkdir_p; then
18965 while test ! -d "$as_dir"; do
18966 as_dirs="$as_dir $as_dirs"
18967 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18969 X"$as_dir" : 'X\(//\)[^/]' \| \
18970 X"$as_dir" : 'X\(//\)$' \| \
18971 X"$as_dir" : 'X\(/\)' \| \
18972 . : '\(.\)' 2>/dev/null ||
18974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18976 /^X\(\/\/\)$/{ s//\1/; q; }
18977 /^X\(\/\).*/{ s//\1/; q; }
18980 test ! -n "$as_dirs" || mkdir $as_dirs
18981 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18982 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18983 { (exit 1); exit 1; }; }; }
18987 if test "$ac_dir" != .; then
18988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18989 # A "../" for each directory in $ac_dir_suffix.
18990 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18992 ac_dir_suffix= ac_top_builddir=
18996 .) # No --srcdir option. We are building in place.
18998 if test -z "$ac_top_builddir"; then
19001 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19003 [\\/]* | ?:[\\/]* ) # Absolute path.
19004 ac_srcdir=$srcdir$ac_dir_suffix;
19005 ac_top_srcdir=$srcdir ;;
19006 *) # Relative path.
19007 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19008 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19011 # Do not use `cd foo && pwd` to compute absolute paths, because
19012 # the directories may not exist.
19014 .) ac_abs_builddir="$ac_dir";;
19017 .) ac_abs_builddir=`pwd`;;
19018 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19019 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19022 case $ac_abs_builddir in
19023 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19025 case ${ac_top_builddir}. in
19026 .) ac_abs_top_builddir=$ac_abs_builddir;;
19027 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19028 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19031 case $ac_abs_builddir in
19032 .) ac_abs_srcdir=$ac_srcdir;;
19035 .) ac_abs_srcdir=$ac_abs_builddir;;
19036 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19037 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19040 case $ac_abs_builddir in
19041 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19043 case $ac_top_srcdir in
19044 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19045 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19046 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19052 if test x"$ac_file" != x-; then
19053 { echo "$as_me:$LINENO: creating $ac_file" >&5
19054 echo "$as_me: creating $ac_file" >&6;}
19057 # Let's still pretend it is `configure' which instantiates (i.e., don't
19058 # use $as_me), people would be surprised to read:
19059 # /* config.h. Generated by config.status. */
19060 if test x"$ac_file" = x-; then
19063 configure_input="$ac_file. "
19065 configure_input=$configure_input"Generated from `echo $ac_file_in |
19066 sed 's,.*/,,'` by configure."
19068 # First look for the input files in the build tree, otherwise in the
19070 ac_file_inputs=`IFS=:
19071 for f in $ac_file_in; do
19073 -) echo $tmp/stdin ;;
19075 # Absolute (can't be DOS-style, as IFS=:)
19076 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19077 echo "$as_me: error: cannot find input file: $f" >&2;}
19078 { (exit 1); exit 1; }; }
19081 if test -f "$f"; then
19084 elif test -f "$srcdir/$f"; then
19089 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19090 echo "$as_me: error: cannot find input file: $f" >&2;}
19091 { (exit 1); exit 1; }; }
19094 done` || { (exit 1); exit 1; }
19096 cat >>$CONFIG_STATUS <<_ACEOF
19100 cat >>$CONFIG_STATUS <<\_ACEOF
19102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19103 s,@configure_input@,$configure_input,;t t
19104 s,@srcdir@,$ac_srcdir,;t t
19105 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19106 s,@top_srcdir@,$ac_top_srcdir,;t t
19107 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19108 s,@builddir@,$ac_builddir,;t t
19109 s,@abs_builddir@,$ac_abs_builddir,;t t
19110 s,@top_builddir@,$ac_top_builddir,;t t
19111 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19112 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19114 if test x"$ac_file" != x-; then
19115 mv $tmp/out $ac_file
19123 cat >>$CONFIG_STATUS <<\_ACEOF
19126 # CONFIG_COMMANDS section.
19128 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19129 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19130 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19131 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19132 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19133 X"$ac_dest" : 'X\(//\)[^/]' \| \
19134 X"$ac_dest" : 'X\(//\)$' \| \
19135 X"$ac_dest" : 'X\(/\)' \| \
19136 . : '\(.\)' 2>/dev/null ||
19138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19140 /^X\(\/\/\)$/{ s//\1/; q; }
19141 /^X\(\/\).*/{ s//\1/; q; }
19143 { if $as_mkdir_p; then
19148 while test ! -d "$as_dir"; do
19149 as_dirs="$as_dir $as_dirs"
19150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19152 X"$as_dir" : 'X\(//\)[^/]' \| \
19153 X"$as_dir" : 'X\(//\)$' \| \
19154 X"$as_dir" : 'X\(/\)' \| \
19155 . : '\(.\)' 2>/dev/null ||
19157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19159 /^X\(\/\/\)$/{ s//\1/; q; }
19160 /^X\(\/\).*/{ s//\1/; q; }
19163 test ! -n "$as_dirs" || mkdir $as_dirs
19164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19166 { (exit 1); exit 1; }; }; }
19170 if test "$ac_dir" != .; then
19171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19172 # A "../" for each directory in $ac_dir_suffix.
19173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19175 ac_dir_suffix= ac_top_builddir=
19179 .) # No --srcdir option. We are building in place.
19181 if test -z "$ac_top_builddir"; then
19184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19186 [\\/]* | ?:[\\/]* ) # Absolute path.
19187 ac_srcdir=$srcdir$ac_dir_suffix;
19188 ac_top_srcdir=$srcdir ;;
19189 *) # Relative path.
19190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19194 # Do not use `cd foo && pwd` to compute absolute paths, because
19195 # the directories may not exist.
19197 .) ac_abs_builddir="$ac_dir";;
19200 .) ac_abs_builddir=`pwd`;;
19201 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19202 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19205 case $ac_abs_builddir in
19206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19208 case ${ac_top_builddir}. in
19209 .) ac_abs_top_builddir=$ac_abs_builddir;;
19210 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19211 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19214 case $ac_abs_builddir in
19215 .) ac_abs_srcdir=$ac_srcdir;;
19218 .) ac_abs_srcdir=$ac_abs_builddir;;
19219 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19220 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19223 case $ac_abs_builddir in
19224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19226 case $ac_top_srcdir in
19227 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19228 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19229 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19234 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19235 echo "$as_me: executing $ac_dest commands" >&6;}
19237 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
19238 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
19239 lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/compiler/Makefile lib/compiler/Makefile ;;
19240 lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/runtime/Makefile lib/runtime/Makefile ;;
19241 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
19242 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
19243 tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/stkrc/Makefile tools/stkrc/Makefile ;;
19248 cat >>$CONFIG_STATUS <<\_ACEOF
19250 { (exit 0); exit 0; }
19252 chmod +x $CONFIG_STATUS
19253 ac_clean_files=$ac_clean_files_save
19256 # configure is writing to config.log, and then calls config.status.
19257 # config.status does its own redirection, appending to config.log.
19258 # Unfortunately, on DOS this fails, as config.log is still kept open
19259 # by configure, so config.status won't be able to write to it; its
19260 # output is simply discarded. So we exec the FD to /dev/null,
19261 # effectively closing config.log, so it can be properly (re)opened and
19262 # appended to by config.status. When coming back to configure, we
19263 # need to make the FD available again.
19264 if test "$no_create" != yes; then
19266 ac_config_status_args=
19267 test "$silent" = yes &&
19268 ac_config_status_args="$ac_config_status_args --quiet"
19270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19273 # would make configure fail if this is the last instruction.
19274 $ac_cs_success || { (exit 1); exit 1; }